diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index a55b1c4b847..d6a5e8ae6b6 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -596,11 +596,19 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | stop group async replication | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.stop_group_async_replication.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.update.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.aggregated_list.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.list.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.patch.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.test_iam_permissions.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.patch.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.test_iam_permissions.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_checks.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_checks.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_checks.insert.js) | @@ -734,6 +742,9 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | perform maintenance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_blocks.perform_maintenance.js) | | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_blocks.set_iam_policy.js) | | test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_blocks.test_iam_permissions.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_slots.get.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_slots.list.js) | +| update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_slots.update.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.get.js) | | get iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.get_iam_policy.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.list.js) | 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 25eeeeebd87..08a52e72f2d 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: 20260106 +// Source file revision: 20260213 // API name: compute // API version: v1 @@ -4713,6 +4713,119 @@ message AggregatedListRegionCommitmentsRequest { } +// A request message for RegionHealthAggregationPolicies.AggregatedList. See the method description for details. +message AggregatedListRegionHealthAggregationPoliciesRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // Indicates whether every visible scope for each scope type (zone, region, + // global) should be included in the response. For new resource types added + // after this field, the flag has no effect as new resource types will always + // include every visible scope for each scope type in response. For resource + // types which predate this field, if this flag is omitted or false, only + // scopes of the scope types where the resource type is expected to be found + // will be included. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Name of the project scoping this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The Shared VPC service project id or service project number for which + // aggregated list request is invoked for subnetworks list-usable api. + optional int64 service_project_number = 316757497; + +} + // A request message for Reservations.AggregatedList. See the method description for details. message AggregatedListReservationsRequest { // A filter expression that filters resources listed in the response. Most @@ -7085,7 +7198,7 @@ message AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk { } // Properties of the SKU instances being reserved. -// Next ID: 9 +// Next ID: 10 message AllocationSpecificSKUAllocationReservedInstanceProperties { // Specifies accelerator type and count. repeated AcceleratorConfig guest_accelerators = 463595119; @@ -7742,7 +7855,7 @@ message AttachedDiskInitializeParams { // as the instance zone. repeated string replica_zones = 48438272; - // Resource manager tags to be bound to the disk. Tag keys and values + // Input only. Resource manager tags to be bound to the disk. Tag keys and values // have the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -8834,6 +8947,9 @@ message Backend { // balancing mode. optional float max_utilization = 148192199; + // Information about the resource or system that manages the backend. + optional BackendBackendOrchestrationInfo orchestration_info = 441144300; + // This field indicates whether this backend should be fully utilized before // sending traffic to backends with default preference. The possible values // are: @@ -8849,6 +8965,14 @@ message Backend { } +// A message containing information about the resource or system that manages +// the backend. +message BackendBackendOrchestrationInfo { + // The URI of the resource or system that manages the backend. + optional string resource_uri = 152830395; + +} + // Represents a Cloud Storage Bucket resource. // // This Cloud Storage bucket resource is referenced by a URL map of a load @@ -9948,6 +10072,9 @@ message BackendService { // networkPassThroughLbTrafficPolicy cannot be specified with haPolicy. optional BackendServiceNetworkPassThroughLbTrafficPolicy network_pass_through_lb_traffic_policy = 230323750; + // Information about the resource or system that manages the backend service. + optional BackendServiceOrchestrationInfo orchestration_info = 441144300; + // Settings controlling the ejection of unhealthy backend endpoints from the // load balancing pool of each individual proxy instance that processes the // traffic for the given backend service. If not set, this feature is @@ -11073,6 +11200,15 @@ message BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity { } +// A message containing information about the resource or system that manages +// the backend service. +message BackendServiceOrchestrationInfo { + // The resource URI of the resource or system that manages the backend + // service. + optional string resource_uri = 152830395; + +} + // Additional Backend Service parameters. message BackendServiceParams { // Tag keys/values directly bound to this resource. @@ -11918,6 +12054,16 @@ message BulkZoneSetLabelsRequest { } +// +message BundledLocalSsds { + // The default disk interface if the interface is not specified. + optional string default_interface = 17309883; + + // The number of partitions. + optional int32 partition_count = 408514426; + +} + // message CacheInvalidationRule { // A list of cache tags used to identify cached objects. @@ -12349,6 +12495,8 @@ message Commitment { GENERAL_PURPOSE_N4 = 301912158; + GENERAL_PURPOSE_N4A = 232471459; + GENERAL_PURPOSE_N4D = 232471462; GENERAL_PURPOSE_T2D = 232477166; @@ -14799,10 +14947,10 @@ message DeleteRegionDiskRequest { } -// A request message for RegionHealthChecks.Delete. See the method description for details. -message DeleteRegionHealthCheckRequest { - // Name of the HealthCheck resource to delete. - string health_check = 308876645 [(google.api.field_behavior) = REQUIRED]; +// A request message for RegionHealthAggregationPolicies.Delete. See the method description for details. +message DeleteRegionHealthAggregationPolicyRequest { + // Name of the HealthAggregationPolicy resource to delete. + string health_aggregation_policy = 240314354 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -14833,11 +14981,10 @@ message DeleteRegionHealthCheckRequest { } -// A request message for RegionHealthCheckServices.Delete. See the method description for details. -message DeleteRegionHealthCheckServiceRequest { - // Name of the HealthCheckService to delete. The name - // must be 1-63 characters long, and comply with RFC1035. - string health_check_service = 408374747 [(google.api.field_behavior) = REQUIRED]; +// A request message for RegionHealthChecks.Delete. See the method description for details. +message DeleteRegionHealthCheckRequest { + // Name of the HealthCheck resource to delete. + string health_check = 308876645 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -14868,10 +15015,11 @@ message DeleteRegionHealthCheckServiceRequest { } -// A request message for RegionInstanceGroupManagers.Delete. See the method description for details. -message DeleteRegionInstanceGroupManagerRequest { - // Name of the managed instance group to delete. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; +// A request message for RegionHealthCheckServices.Delete. See the method description for details. +message DeleteRegionHealthCheckServiceRequest { + // Name of the HealthCheckService to delete. The name + // must be 1-63 characters long, and comply with RFC1035. + string health_check_service = 408374747 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -14902,114 +15050,10 @@ message DeleteRegionInstanceGroupManagerRequest { } -// A request message for RegionInstanceTemplates.Delete. See the method description for details. -message DeleteRegionInstanceTemplateRequest { - // The name of the instance template to delete. - string instance_template = 309248228 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // The name of the region for this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - -} - -// A request message for RegionInstantSnapshots.Delete. See the method description for details. -message DeleteRegionInstantSnapshotRequest { - // Name of the InstantSnapshot resource to delete. - string instant_snapshot = 391638626 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // The name of the region for this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - -} - -// A request message for RegionNetworkEndpointGroups.Delete. See the method description for details. -message DeleteRegionNetworkEndpointGroupRequest { - // The name of the network endpoint group to delete. It should comply with - // RFC1035. - string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // The name of the region where - // the network endpoint group is located. It should comply with RFC1035. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - -} - -// A request message for RegionNetworkFirewallPolicies.Delete. See the method description for details. -message DeleteRegionNetworkFirewallPolicyRequest { - // Name of the firewall policy to delete. - string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; +// A request message for RegionInstanceGroupManagers.Delete. See the method description for details. +message DeleteRegionInstanceGroupManagerRequest { + // Name of the managed instance group to delete. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -15040,10 +15084,10 @@ message DeleteRegionNetworkFirewallPolicyRequest { } -// A request message for RegionNotificationEndpoints.Delete. See the method description for details. -message DeleteRegionNotificationEndpointRequest { - // Name of the NotificationEndpoint resource to delete. - string notification_endpoint = 376807017 [(google.api.field_behavior) = REQUIRED]; +// A request message for RegionInstanceTemplates.Delete. See the method description for details. +message DeleteRegionInstanceTemplateRequest { + // The name of the instance template to delete. + string instance_template = 309248228 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -15051,7 +15095,7 @@ message DeleteRegionNotificationEndpointRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // The name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -15074,33 +15118,18 @@ message DeleteRegionNotificationEndpointRequest { } -// A request message for RegionOperations.Delete. See the method description for details. -message DeleteRegionOperationRequest { - // 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. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - -} - -// A response message for RegionOperations.Delete. See the method description for details. -message DeleteRegionOperationResponse { -} +// A request message for RegionInstantSnapshots.Delete. See the method description for details. +message DeleteRegionInstantSnapshotRequest { + // Name of the InstantSnapshot resource to delete. + string instant_snapshot = 391638626 [(google.api.field_behavior) = REQUIRED]; -// A request message for RegionSecurityPolicies.Delete. See the method description for details. -message DeleteRegionSecurityPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // The name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -15121,20 +15150,22 @@ message DeleteRegionSecurityPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the security policy to delete. - string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionSslCertificates.Delete. See the method description for details. -message DeleteRegionSslCertificateRequest { +// A request message for RegionNetworkEndpointGroups.Delete. See the method description for details. +message DeleteRegionNetworkEndpointGroupRequest { + // The name of the network endpoint group to delete. It should comply with + // RFC1035. + string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // The name of the region where + // the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -15155,13 +15186,13 @@ message DeleteRegionSslCertificateRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the SslCertificate resource to delete. - string ssl_certificate = 46443492 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionSslPolicies.Delete. See the method description for details. -message DeleteRegionSslPolicyRequest { +// A request message for RegionNetworkFirewallPolicies.Delete. See the method description for details. +message DeleteRegionNetworkFirewallPolicyRequest { + // Name of the firewall policy to delete. + string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -15189,14 +15220,13 @@ message DeleteRegionSslPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the SSL policy to delete. The name must be 1-63 characters long, - // and comply with RFC1035. - string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionTargetHttpProxies.Delete. See the method description for details. -message DeleteRegionTargetHttpProxyRequest { +// A request message for RegionNotificationEndpoints.Delete. See the method description for details. +message DeleteRegionNotificationEndpointRequest { + // Name of the NotificationEndpoint resource to delete. + string notification_endpoint = 376807017 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -15224,13 +15254,28 @@ message DeleteRegionTargetHttpProxyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the TargetHttpProxy resource to delete. - string target_http_proxy = 206872421 [(google.api.field_behavior) = REQUIRED]; +} + +// A request message for RegionOperations.Delete. See the method description for details. +message DeleteRegionOperationRequest { + // 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. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionTargetHttpsProxies.Delete. See the method description for details. -message DeleteRegionTargetHttpsProxyRequest { +// A response message for RegionOperations.Delete. See the method description for details. +message DeleteRegionOperationResponse { +} + +// A request message for RegionSecurityPolicies.Delete. See the method description for details. +message DeleteRegionSecurityPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -15258,13 +15303,13 @@ message DeleteRegionTargetHttpsProxyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the TargetHttpsProxy resource to delete. - string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; + // Name of the security policy to delete. + string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionTargetTcpProxies.Delete. See the method description for details. -message DeleteRegionTargetTcpProxyRequest { +// A request message for RegionSslCertificates.Delete. See the method description for details. +message DeleteRegionSslCertificateRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -15292,13 +15337,13 @@ message DeleteRegionTargetTcpProxyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the TargetTcpProxy resource to delete. - string target_tcp_proxy = 503065442 [(google.api.field_behavior) = REQUIRED]; + // Name of the SslCertificate resource to delete. + string ssl_certificate = 46443492 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionUrlMaps.Delete. See the method description for details. -message DeleteRegionUrlMapRequest { +// A request message for RegionSslPolicies.Delete. See the method description for details. +message DeleteRegionSslPolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -15311,23 +15356,6 @@ message DeleteRegionUrlMapRequest { (google.cloud.operation_request_field) = "region" ]; - // begin_interface: MixerMutationRequestBuilder - // Request ID to support idempotency. - optional string request_id = 37109963; - - // Name of the UrlMap resource to delete. - string url_map = 367020684 [(google.api.field_behavior) = REQUIRED]; - -} - -// A request message for Reservations.Delete. See the method description for details. -message DeleteReservationRequest { - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - // An optional request ID to identify requests. Specify a unique request ID so // that if you must retry your request, the server will know to ignore the // request if it has already been completed. @@ -15343,26 +15371,21 @@ message DeleteReservationRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the reservation to delete. - string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; - - // Name of the zone for this request. - string zone = 3744684 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "zone" - ]; + // Name of the SSL policy to delete. The name must be 1-63 characters long, + // and comply with RFC1035. + string ssl_policy = 295190213 [(google.api.field_behavior) = REQUIRED]; } -// A request message for ResourcePolicies.Delete. See the method description for details. -message DeleteResourcePolicyRequest { +// A request message for RegionTargetHttpProxies.Delete. See the method description for details. +message DeleteRegionTargetHttpProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -15383,23 +15406,20 @@ message DeleteResourcePolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the resource policy to delete. - string resource_policy = 159240835 [(google.api.field_behavior) = REQUIRED]; + // Name of the TargetHttpProxy resource to delete. + string target_http_proxy = 206872421 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routers.DeleteRoutePolicy. See the method description for details. -message DeleteRoutePolicyRouterRequest { - // The Policy name for this request. Name must conform to RFC1035 - optional string policy = 91071794; - +// A request message for RegionTargetHttpsProxies.Delete. See the method description for details. +message DeleteRegionTargetHttpsProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -15420,19 +15440,25 @@ message DeleteRoutePolicyRouterRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the Router resource where Route Policy is defined. - string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + // Name of the TargetHttpsProxy resource to delete. + string target_https_proxy = 52336748 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routes.Delete. See the method description for details. -message DeleteRouteRequest { +// A request message for RegionTargetTcpProxies.Delete. See the method description for details. +message DeleteRegionTargetTcpProxyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + // An optional request ID to identify requests. Specify a unique request ID so // that if you must retry your request, the server will know to ignore the // request if it has already been completed. @@ -15448,47 +15474,36 @@ message DeleteRouteRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the Route resource to delete. - string route = 108704329 [(google.api.field_behavior) = REQUIRED]; + // Name of the TargetTcpProxy resource to delete. + string target_tcp_proxy = 503065442 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routers.Delete. See the method description for details. -message DeleteRouterRequest { +// A request message for RegionUrlMaps.Delete. See the method description for details. +message DeleteRegionUrlMapRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. optional string request_id = 37109963; - // Name of the Router resource to delete. - string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + // Name of the UrlMap resource to delete. + string url_map = 367020684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for SecurityPolicies.Delete. See the method description for details. -message DeleteSecurityPolicyRequest { +// A request message for Reservations.Delete. See the method description for details. +message DeleteReservationRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -15510,20 +15525,26 @@ message DeleteSecurityPolicyRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the security policy to delete. - string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; + // Name of the reservation to delete. + string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; } -// A request message for ServiceAttachments.Delete. See the method description for details. -message DeleteServiceAttachmentRequest { +// A request message for ResourcePolicies.Delete. See the method description for details. +message DeleteResourcePolicyRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // Name of the region of this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -15544,19 +15565,15 @@ message DeleteServiceAttachmentRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the ServiceAttachment resource to delete. - string service_attachment = 338957549 [(google.api.field_behavior) = REQUIRED]; + // Name of the resource policy to delete. + string resource_policy = 159240835 [(google.api.field_behavior) = REQUIRED]; } -// A request message for BackendBuckets.DeleteSignedUrlKey. See the method description for details. -message DeleteSignedUrlKeyBackendBucketRequest { - // Name of the BackendBucket resource to which the Signed URL Key should be - // added. The name should conform to RFC1035. - string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; - - // The name of the Signed URL Key to delete. - string key_name = 500938859 [(google.api.field_behavior) = REQUIRED]; +// A request message for Routers.DeleteRoutePolicy. See the method description for details. +message DeleteRoutePolicyRouterRequest { + // The Policy name for this request. Name must conform to RFC1035 + optional string policy = 91071794; // Project ID for this request. string project = 227560217 [ @@ -15564,6 +15581,12 @@ message DeleteSignedUrlKeyBackendBucketRequest { (google.cloud.operation_request_field) = "project" ]; + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + // An optional request ID to identify requests. Specify a unique request ID so // that if you must retry your request, the server will know to ignore the // request if it has already been completed. @@ -15579,17 +15602,13 @@ message DeleteSignedUrlKeyBackendBucketRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; -} - -// A request message for BackendServices.DeleteSignedUrlKey. See the method description for details. -message DeleteSignedUrlKeyBackendServiceRequest { - // Name of the BackendService resource to which the Signed URL Key should be - // added. The name should conform to RFC1035. - string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; + // Name of the Router resource where Route Policy is defined. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; - // The name of the Signed URL Key to delete. - string key_name = 500938859 [(google.api.field_behavior) = REQUIRED]; +} +// A request message for Routes.Delete. See the method description for details. +message DeleteRouteRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -15611,16 +15630,25 @@ message DeleteSignedUrlKeyBackendServiceRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // Name of the Route resource to delete. + string route = 108704329 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for Snapshots.Delete. See the method description for details. -message DeleteSnapshotRequest { +// A request message for Routers.Delete. See the method description for details. +message DeleteRouterRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + // An optional request ID to identify requests. Specify a unique request ID so // that if you must retry your request, the server will know to ignore the // request if it has already been completed. @@ -15636,13 +15664,167 @@ message DeleteSnapshotRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Name of the Snapshot resource to delete. - string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + // Name of the Router resource to delete. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; } -// A request message for SslCertificates.Delete. See the method description for details. -message DeleteSslCertificateRequest { +// A request message for SecurityPolicies.Delete. See the method description for details. +message DeleteSecurityPolicyRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the security policy to delete. + string security_policy = 171082513 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for ServiceAttachments.Delete. See the method description for details. +message DeleteServiceAttachmentRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region of this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the ServiceAttachment resource to delete. + string service_attachment = 338957549 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for BackendBuckets.DeleteSignedUrlKey. See the method description for details. +message DeleteSignedUrlKeyBackendBucketRequest { + // Name of the BackendBucket resource to which the Signed URL Key should be + // added. The name should conform to RFC1035. + string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; + + // The name of the Signed URL Key to delete. + string key_name = 500938859 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for BackendServices.DeleteSignedUrlKey. See the method description for details. +message DeleteSignedUrlKeyBackendServiceRequest { + // Name of the BackendService resource to which the Signed URL Key should be + // added. The name should conform to RFC1035. + string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; + + // The name of the Signed URL Key to delete. + string key_name = 500938859 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for Snapshots.Delete. See the method description for details. +message DeleteSnapshotRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // Name of the Snapshot resource to delete. + string snapshot = 284874180 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for SslCertificates.Delete. See the method description for details. +message DeleteSslCertificateRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -17112,7 +17294,7 @@ message DiskMoveRequest { // Additional disk params. message DiskParams { - // Resource manager tags to be bound to the disk. Tag keys and values + // Input only. Resource manager tags to be bound to the disk. Tag keys and values // have the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -17850,6 +18032,10 @@ message ExternalVpnGateway { // be a dash. optional string name = 3373707; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional ExternalVpnGatewayParams params = 78313862; + // Indicates the user-supplied redundancy type of this external VPN gateway. // Check the RedundancyType enum for the list of possible values. optional string redundancy_type = 271443740; @@ -17914,6 +18100,26 @@ message ExternalVpnGatewayList { } +// +message ExternalVpnGatewayParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message FileContentBuffer { // The file type of source file. @@ -18689,9 +18895,7 @@ message FixedOrPercent { } -// A flexible specification of a time range that has 3 points of -// flexibility: (1) a flexible start time, (2) a flexible end time, (3) a -// flexible duration. +// Specifies a flexible time range with flexible start time and duration. // // It is possible to specify a contradictory time range that cannot be matched // by any Interval. This causes a validation error. @@ -21812,6 +22016,19 @@ message GetRegionDiskTypeRequest { } +// A request message for RegionHealthAggregationPolicies.Get. See the method description for details. +message GetRegionHealthAggregationPolicyRequest { + // Name of the HealthAggregationPolicy resource to return. + string health_aggregation_policy = 240314354 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionHealthChecks.Get. See the method description for details. message GetRegionHealthCheckRequest { // Name of the HealthCheck resource to return. @@ -22101,6 +22318,24 @@ message GetReservationRequest { } +// A request message for ReservationSlots.Get. See the method description for details. +message GetReservationSlotRequest { + // The name of the parent reservation and parent block, formatted as + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // The project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the reservation slot, formatted as RFC1035 or a resource ID + // number. + string reservation_slot = 277470865 [(google.api.field_behavior) = REQUIRED]; + + // The name of the zone for this request, formatted as RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for ReservationSubBlocks.Get. See the method description for details. message GetReservationSubBlockRequest { // View of the subBlock. @@ -23354,6 +23589,173 @@ message HTTPSHealthCheck { } +// +message HealthAggregationPoliciesScopedList { + // A list of HealthAggregationPolicys contained in this scope. + repeated HealthAggregationPolicy health_aggregation_policies = 87589904; + + // Informational warning which replaces the list of health aggregation + // policies when the list is empty. + optional Warning warning = 50704284; + +} + +// Represents a health aggregation policy. +// +// A health aggregation policy resource defines a policy to aggregate health. +// +// For more information, see +// Health checks overview. +message HealthAggregationPolicy { + // Specifies the type of the healthAggregationPolicy. The only allowed value + // for global resources is DNS_PUBLIC_IP_POLICY. The only allowed + // value for regional resources is BACKEND_SERVICE_POLICY. Must + // be specified when the healthAggregationPolicy is created, and cannot be + // mutated. + enum PolicyType { + // A value indicating that the enum field is not set. + UNDEFINED_POLICY_TYPE = 0; + + BACKEND_SERVICE_POLICY = 415582023; + + DNS_PUBLIC_IP_POLICY = 366354794; + + } + + // Output only. [Output Only] Creation timestamp inRFC3339 + // text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. Provide this property when you + // create the resource. + optional string description = 422937596; + + // Fingerprint of this resource. A hash of the contents stored in this object. + // This field is used in optimistic locking. This field will be ignored when + // inserting a HealthAggregationPolicy. An up-to-date fingerprint + // must be provided in order to patch the HealthAggregationPolicy; Otherwise, + // the request will fail with error 412 conditionNotMet. To see + // the latest fingerprint, make a get() request to retrieve the + // HealthAggregationPolicy. + optional string fingerprint = 234678500; + + // Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the threshold (as a + // percentage) of healthy endpoints required in order to consider the + // aggregated health result HEALTHY. Defaults to 60. Must be in + // range [0, 100]. Not applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, + // and will be set to the default if unspecified. Note that both this + // threshold and minHealthyThreshold must be satisfied in order + // for HEALTHY to be the aggregated result. "Endpoints" refers to network + // endpoints within a Network Endpoint Group or instances within an Instance + // Group. + optional uint32 healthy_percent_threshold = 72242895; + + // Output only. [Output Only] The unique identifier for the resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation + // policies. + optional string kind = 3292052; + + // Can only be set if the policyType field isBACKEND_SERVICE_POLICY. Specifies the minimum number of + // healthy endpoints required in order to consider the aggregated health + // result HEALTHY. Defaults to 1. Must be positive. Not + // applicable if the policyType field isDNB_PUBLIC_IP_POLICY. Can be mutated. This field is optional, + // and will be set to the default if unspecified. Note that both this + // threshold and healthyPercentThreshold must be satisfied in + // order for HEALTHY to be the aggregated result. "Endpoints" refers to + // network endpoints within a Network Endpoint Group or instances within an + // Instance Group. + optional uint32 min_healthy_threshold = 132310940; + + // Name of the resource. Provided by the client when the resource is created. + // The name must be 1-63 characters long, and comply withRFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + optional string name = 3373707; + + // Specifies the type of the healthAggregationPolicy. The only allowed value + // for global resources is DNS_PUBLIC_IP_POLICY. The only allowed + // value for regional resources is BACKEND_SERVICE_POLICY. Must + // be specified when the healthAggregationPolicy is created, and cannot be + // mutated. + // Check the PolicyType enum for the list of possible values. + optional string policy_type = 18158119; + + // Output only. [Output Only] URL of the region where the health aggregation policy + // resides. This field applies only to the regional resource. 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; + + // Output only. [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Server-defined URL with id for the resource. + optional string self_link_with_id = 44520962; + +} + +// Contains a list of HealthAggregationPoliciesScopedList. +message HealthAggregationPolicyAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthAggregationPoliciesScopedList resources. + map items = 100526016; + + // Output only. Type of resource. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // Output only. [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// +message HealthAggregationPolicyList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthAggregationPolicy resources. + repeated HealthAggregationPolicy items = 100526016; + + // Output only. [Output Only] Type of the resource. Alwayscompute#healthAggregationPolicy for health aggregation + // policies. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Represents a health check resource. // // Google Compute Engine has two health check resources: @@ -24908,7 +25310,7 @@ message ImageList { // Additional image params. message ImageParams { - // Resource manager tags to be bound to the image. Tag keys and values have + // Input only. Resource manager tags to be bound to the image. Tag keys and values have // the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -26362,6 +26764,40 @@ message InsertRegionDiskRequest { } +// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. +message InsertRegionHealthAggregationPolicyRequest { + // The body resource for this request + HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for RegionHealthChecks.Insert. See the method description for details. message InsertRegionHealthCheckRequest { // The body resource for this request @@ -27901,6 +28337,8 @@ message Instance { // Multiple tags can be specified via the 'tags.items' field. optional Tags tags = 3552281; + optional WorkloadIdentityConfig workload_identity_config = 338198811; + // Output only. [Output Only] URL of the zone where the instance resides. // You must specify this field as part of the HTTP request URL. It is // not settable as a field in the request body. @@ -28495,16 +28933,15 @@ message InstanceGroupManagerInstanceLifecyclePolicy { // repairing VMs in a MIG. // - DO_NOTHING: MIG does not repair a failed or an unhealthy // VM. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // DO_NOTHING + // REPAIR enum DefaultActionOnFailure { // A value indicating that the enum field is not set. UNDEFINED_DEFAULT_ACTION_ON_FAILURE = 0; - // MIG does not repair a failed or an unhealthy VM. DO_NOTHING = 451307513; - // (Default) MIG automatically repairs a failed or an unhealthy - // VM by recreating it. For more information, see About - // repairing VMs in a MIG. REPAIR = 266277773; } @@ -28530,6 +28967,30 @@ message InstanceGroupManagerInstanceLifecyclePolicy { } + // The action that a MIG performs on an unhealthy VM. A VM is marked as + // unhealthy when the application running on that VM fails a health check. + // Valid values are: + // + // - DEFAULT_ACTION (default): MIG uses the same action + // configured for instanceLifecyclePolicy.defaultActionOnFailure field. + // - REPAIR: MIG automatically repairs an unhealthy VM by + // recreating it. + // - DO_NOTHING: MIG doesn't repair an unhealthy VM. + // For more information, see + // About repairing VMs in a MIG. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // DO_NOTHING + // REPAIR + enum OnFailedHealthCheck { + // A value indicating that the enum field is not set. + UNDEFINED_ON_FAILED_HEALTH_CHECK = 0; + + // (Default) MIG uses the same action configured for + // instanceLifecyclePolicy.defaultActionOnFailure field. + DEFAULT_ACTION = 463967764; + + } + // 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. @@ -28557,6 +29018,20 @@ message InstanceGroupManagerInstanceLifecyclePolicy { // Check the ForceUpdateOnRepair enum for the list of possible values. optional string force_update_on_repair = 356302027; + // The action that a MIG performs on an unhealthy VM. A VM is marked as + // unhealthy when the application running on that VM fails a health check. + // Valid values are: + // + // - DEFAULT_ACTION (default): MIG uses the same action + // configured for instanceLifecyclePolicy.defaultActionOnFailure field. + // - REPAIR: MIG automatically repairs an unhealthy VM by + // recreating it. + // - DO_NOTHING: MIG doesn't repair an unhealthy VM. + // For more information, see + // About repairing VMs in a MIG. + // Check the OnFailedHealthCheck enum for the list of possible values. + optional string on_failed_health_check = 39807943; + } // [Output Only] A list of managed instance groups. @@ -29629,7 +30104,7 @@ message InstanceParams { // Instances.Insert API. optional Duration request_valid_for_duration = 116247389; - // Resource manager tags to be bound to the instance. Tag keys and values + // Input only. Resource manager tags to be bound to the instance. Tag keys and values // have the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -29757,7 +30232,7 @@ message InstanceProperties { // Note that for MachineImage, this is not supported yet. optional ReservationAffinity reservation_affinity = 157850683; - // Resource manager tags to be bound to the instance. Tag keys and values + // Input only. Resource manager tags to be bound to the instance. Tag keys and values // have the same definition as resource // manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and // values are in the format `tagValues/456`. The field is ignored (both PUT & @@ -29788,6 +30263,8 @@ message InstanceProperties { // the list must comply with RFC1035. optional Tags tags = 3552281; + optional WorkloadIdentityConfig workload_identity_config = 338198811; + } // Represents the change that you want to make to the instance properties. @@ -30160,6 +30637,9 @@ message InstancesReportHostAsFaultyRequestFaultReason { // Public reportable behaviors BEHAVIOR_UNSPECIFIED = 85734570; + // Any GPU or TPU errors or faults where the accelerator becomes unusable + CHIP_ERROR = 263151669; + PERFORMANCE = 135701520; SILENT_DATA_CORRUPTION = 111360678; @@ -30362,6 +30842,10 @@ message InstantSnapshot { // be a dash. optional string name = 3373707; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional InstantSnapshotParams params = 78313862; + // Output only. [Output Only] URL of the region where the instant snapshot resides. // You must specify this field as part of the HTTP request URL. It is // not settable as a field in the request body. @@ -30479,6 +30963,19 @@ message InstantSnapshotList { } +// Additional instant snapshot params. +message InstantSnapshotParams { + // Input only. Resource manager tags to be bound to the instant snapshot. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // message InstantSnapshotResourceStatus { // [Output Only] The storage size of this instant snapshot. @@ -30634,8 +31131,7 @@ message Interconnect { } - // Specific subzone in the InterconnectLocation that represents where - // this connection is to be provisioned. + // To be deprecated. enum Subzone { // A value indicating that the enum field is not set. UNDEFINED_SUBZONE = 0; @@ -30853,8 +31349,7 @@ message Interconnect { // Check the State enum for the list of possible values. optional string state = 109757585; - // Specific subzone in the InterconnectLocation that represents where - // this connection is to be provisioned. + // To be deprecated. // Check the Subzone enum for the list of possible values. optional string subzone = 280084972; @@ -34287,6 +34782,11 @@ message ListAddressesRequest { // A request message for FirewallPolicies.ListAssociations. See the method description for details. message ListAssociationsFirewallPolicyRequest { + // If set to "true", the response will contain a list of all associations for + // the containing folders and the containing organization of the target. The + // parameter has no effect if the target is an organization. + optional bool include_inherited_policies = 32280076; + // The target resource to list associations. It is an organization, or a // folder. optional string target_resource = 467318524; @@ -41777,8 +42277,8 @@ message ListRegionDisksRequest { } -// A request message for RegionHealthCheckServices.List. See the method description for details. -message ListRegionHealthCheckServicesRequest { +// A request message for RegionHealthAggregationPolicies.List. See the method description for details. +message ListRegionHealthAggregationPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -41880,8 +42380,8 @@ message ListRegionHealthCheckServicesRequest { } -// A request message for RegionHealthChecks.List. See the method description for details. -message ListRegionHealthChecksRequest { +// A request message for RegionHealthCheckServices.List. See the method description for details. +message ListRegionHealthCheckServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -41983,8 +42483,8 @@ message ListRegionHealthChecksRequest { } -// A request message for RegionInstanceGroupManagers.List. See the method description for details. -message ListRegionInstanceGroupManagersRequest { +// A request message for RegionHealthChecks.List. See the method description for details. +message ListRegionHealthChecksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42086,8 +42586,8 @@ message ListRegionInstanceGroupManagersRequest { } -// A request message for RegionInstanceGroups.List. See the method description for details. -message ListRegionInstanceGroupsRequest { +// A request message for RegionInstanceGroupManagers.List. See the method description for details. +message ListRegionInstanceGroupManagersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42189,8 +42689,8 @@ message ListRegionInstanceGroupsRequest { } -// A request message for RegionInstanceTemplates.List. See the method description for details. -message ListRegionInstanceTemplatesRequest { +// A request message for RegionInstanceGroups.List. See the method description for details. +message ListRegionInstanceGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42279,7 +42779,7 @@ message ListRegionInstanceTemplatesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the regions for this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -42292,8 +42792,8 @@ message ListRegionInstanceTemplatesRequest { } -// A request message for RegionInstantSnapshots.List. See the method description for details. -message ListRegionInstantSnapshotsRequest { +// A request message for RegionInstanceTemplates.List. See the method description for details. +message ListRegionInstanceTemplatesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42382,7 +42882,7 @@ message ListRegionInstantSnapshotsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the region for this request. + // The name of the regions for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -42395,8 +42895,8 @@ message ListRegionInstantSnapshotsRequest { } -// A request message for RegionNetworkEndpointGroups.List. See the method description for details. -message ListRegionNetworkEndpointGroupsRequest { +// A request message for RegionInstantSnapshots.List. See the method description for details. +message ListRegionInstantSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42485,8 +42985,7 @@ message ListRegionNetworkEndpointGroupsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of theregion - // where the network endpoint group is located. It should comply with RFC1035. + // The name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -42499,8 +42998,8 @@ message ListRegionNetworkEndpointGroupsRequest { } -// A request message for RegionNetworkFirewallPolicies.List. See the method description for details. -message ListRegionNetworkFirewallPoliciesRequest { +// A request message for RegionNetworkEndpointGroups.List. See the method description for details. +message ListRegionNetworkEndpointGroupsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42589,7 +43088,8 @@ message ListRegionNetworkFirewallPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // The name of theregion + // where the network endpoint group is located. It should comply with RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -42602,8 +43102,8 @@ message ListRegionNetworkFirewallPoliciesRequest { } -// A request message for RegionNotificationEndpoints.List. See the method description for details. -message ListRegionNotificationEndpointsRequest { +// A request message for RegionNetworkFirewallPolicies.List. See the method description for details. +message ListRegionNetworkFirewallPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42705,8 +43205,8 @@ message ListRegionNotificationEndpointsRequest { } -// A request message for RegionOperations.List. See the method description for details. -message ListRegionOperationsRequest { +// A request message for RegionNotificationEndpoints.List. See the method description for details. +message ListRegionNotificationEndpointsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42795,7 +43295,7 @@ message ListRegionOperationsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -42808,8 +43308,8 @@ message ListRegionOperationsRequest { } -// A request message for RegionSecurityPolicies.List. See the method description for details. -message ListRegionSecurityPoliciesRequest { +// A request message for RegionOperations.List. See the method description for details. +message ListRegionOperationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -42898,7 +43398,7 @@ message ListRegionSecurityPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -42911,8 +43411,8 @@ message ListRegionSecurityPoliciesRequest { } -// A request message for RegionSslCertificates.List. See the method description for details. -message ListRegionSslCertificatesRequest { +// A request message for RegionSecurityPolicies.List. See the method description for details. +message ListRegionSecurityPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43014,8 +43514,8 @@ message ListRegionSslCertificatesRequest { } -// A request message for RegionSslPolicies.List. See the method description for details. -message ListRegionSslPoliciesRequest { +// A request message for RegionSslCertificates.List. See the method description for details. +message ListRegionSslCertificatesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43117,8 +43617,8 @@ message ListRegionSslPoliciesRequest { } -// A request message for RegionTargetHttpProxies.List. See the method description for details. -message ListRegionTargetHttpProxiesRequest { +// A request message for RegionSslPolicies.List. See the method description for details. +message ListRegionSslPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43220,8 +43720,8 @@ message ListRegionTargetHttpProxiesRequest { } -// A request message for RegionTargetHttpsProxies.List. See the method description for details. -message ListRegionTargetHttpsProxiesRequest { +// A request message for RegionTargetHttpProxies.List. See the method description for details. +message ListRegionTargetHttpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43323,8 +43823,8 @@ message ListRegionTargetHttpsProxiesRequest { } -// A request message for RegionTargetTcpProxies.List. See the method description for details. -message ListRegionTargetTcpProxiesRequest { +// A request message for RegionTargetHttpsProxies.List. See the method description for details. +message ListRegionTargetHttpsProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43426,8 +43926,8 @@ message ListRegionTargetTcpProxiesRequest { } -// A request message for RegionUrlMaps.List. See the method description for details. -message ListRegionUrlMapsRequest { +// A request message for RegionTargetTcpProxies.List. See the method description for details. +message ListRegionTargetTcpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43529,8 +44029,8 @@ message ListRegionUrlMapsRequest { } -// A request message for RegionZones.List. See the method description for details. -message ListRegionZonesRequest { +// A request message for RegionUrlMaps.List. See the method description for details. +message ListRegionUrlMapsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43619,7 +44119,7 @@ message ListRegionZonesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Region for this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -43632,108 +44132,8 @@ message ListRegionZonesRequest { } -// A request message for Regions.List. See the method description for details. -message ListRegionsRequest { - // A filter expression that filters resources listed in the response. Most - // Compute resources support two types of filter expressions: - // expressions that support regular expressions and expressions that follow - // API improvement proposal AIP-160. - // These two types of filter expressions cannot be mixed in one request. - // - // If you want to use AIP-160, your expression must specify the field name, an - // operator, and the value that you want to use for filtering. The value - // must be a string, a number, or a boolean. The operator - // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - // - // For example, if you are filtering Compute Engine instances, you can - // exclude instances named `example-instance` by specifying - // `name != example-instance`. - // - // The `:*` comparison can be used to test whether a key has been defined. - // For example, to find all objects with `owner` label use: - // ``` - // labels.owner:* - // ``` - // - // You can also filter nested fields. For example, you could specify - // `scheduling.automaticRestart = false` to include instances only - // if they are not scheduled for automatic restarts. You can use filtering - // on nested fields to filter based onresource labels. - // - // To filter on multiple expressions, provide each separate expression within - // parentheses. For example: - // ``` - // (scheduling.automaticRestart = true) - // (cpuPlatform = "Intel Skylake") - // ``` - // By default, each expression is an `AND` expression. However, you - // can include `AND` and `OR` expressions explicitly. - // For example: - // ``` - // (cpuPlatform = "Intel Skylake") OR - // (cpuPlatform = "Intel Broadwell") AND - // (scheduling.automaticRestart = true) - // ``` - // - // If you want to use a regular expression, use the `eq` (equal) or `ne` - // (not equal) operator against a single un-parenthesized expression with or - // without quotes or against multiple parenthesized expressions. Examples: - // - // `fieldname eq unquoted literal` - // `fieldname eq 'single quoted literal'` - // `fieldname eq "double quoted literal"` - // `(fieldname1 eq literal) (fieldname2 ne "literal")` - // - // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - // The literal value must match the entire field. - // - // For example, to filter for instances that do not end with name "instance", - // you would use `name ne .*instance`. - // - // You cannot combine constraints on multiple fields using regular - // expressions. - optional string filter = 336120696; - - // The maximum number of results per page that should be returned. - // If the number of available results is larger than `maxResults`, - // Compute Engine returns a `nextPageToken` that can be used to get - // the next page of results in subsequent list requests. Acceptable values are - // `0` to `500`, inclusive. (Default: `500`) - optional uint32 max_results = 54715419; - - // Sorts list results by a certain order. By default, results - // are returned in alphanumerical order based on the resource name. - // - // You can also sort results in descending order based on the creation - // timestamp using `orderBy="creationTimestamp desc"`. This sorts - // results based on the `creationTimestamp` field in - // reverse chronological order (newest result first). Use this to sort - // resources like operations so that the newest operation is returned first. - // - // Currently, only sorting by `name` or - // `creationTimestamp desc` is supported. - optional string order_by = 160562920; - - // Specifies a page token to use. Set `pageToken` to the - // `nextPageToken` returned by a previous list request to get - // the next page of results. - optional string page_token = 19994697; - - // Project ID for this request. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - - // Opt-in for partial success behavior which provides partial results in case - // of failure. The default value is false. - // - // For example, when partial success behavior is enabled, aggregatedList for a - // single zone scope either returns all resources in the zone or no resources, - // with an error code. - optional bool return_partial_success = 517198390; - -} - -// A request message for ReservationBlocks.List. See the method description for details. -message ListReservationBlocksRequest { +// A request message for RegionZones.List. See the method description for details. +message ListRegionZonesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43822,9 +44222,8 @@ message ListReservationBlocksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // The name of the reservation. - // Name should conform to RFC1035 or be a resource ID. - string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; + // Region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -43834,13 +44233,10 @@ message ListReservationBlocksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Zone name should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for ReservationSubBlocks.List. See the method description for details. -message ListReservationSubBlocksRequest { +// A request message for Regions.List. See the method description for details. +message ListRegionsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -43926,10 +44322,6 @@ message ListReservationSubBlocksRequest { // the next page of results. optional string page_token = 19994697; - // The name of the parent reservation and parent block. In the format of - // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} - string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; - // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; @@ -43941,13 +44333,10 @@ message ListReservationSubBlocksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Zone name should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Reservations.List. See the method description for details. -message ListReservationsRequest { +// A request message for ReservationBlocks.List. See the method description for details. +message ListReservationBlocksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44036,6 +44425,10 @@ message ListReservationsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // The name of the reservation. + // Name should conform to RFC1035 or be a resource ID. + string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -44044,13 +44437,13 @@ message ListReservationsRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. + // Name of the zone for this request. Zone name should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for ResourcePolicies.List. See the method description for details. -message ListResourcePoliciesRequest { +// A request message for ReservationSlots.List. See the method description for details. +message ListReservationSlotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44136,11 +44529,12 @@ message ListResourcePoliciesRequest { // the next page of results. optional string page_token = 19994697; - // Project ID for this request. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // The name of the parent reservation and parent block, formatted as + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // The project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -44150,10 +44544,13 @@ message ListResourcePoliciesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request, formatted as RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for Routers.ListRoutePolicies. See the method description for details. -message ListRoutePoliciesRoutersRequest { +// A request message for ReservationSubBlocks.List. See the method description for details. +message ListReservationSubBlocksRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44239,12 +44636,13 @@ message ListRoutePoliciesRoutersRequest { // the next page of results. optional string page_token = 19994697; + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -44253,14 +44651,13 @@ message ListRoutePoliciesRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name or id of the resource for this request. - // Name should conform to RFC1035. - string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + // Name of the zone for this request. Zone name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for Routers.List. See the method description for details. -message ListRoutersRequest { +// A request message for Reservations.List. See the method description for details. +message ListReservationsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44349,9 +44746,6 @@ message ListRoutersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -44360,10 +44754,13 @@ message ListRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for Routes.List. See the method description for details. -message ListRoutesRequest { +// A request message for ResourcePolicies.List. See the method description for details. +message ListResourcePoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44452,6 +44849,9 @@ message ListRoutesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -44462,8 +44862,8 @@ message ListRoutesRequest { } -// A request message for SecurityPolicies.List. See the method description for details. -message ListSecurityPoliciesRequest { +// A request message for Routers.ListRoutePolicies. See the method description for details. +message ListRoutePoliciesRoutersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44552,6 +44952,9 @@ message ListSecurityPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -44560,10 +44963,14 @@ message ListSecurityPoliciesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name or id of the resource for this request. + // Name should conform to RFC1035. + string router = 148608841 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for ServiceAttachments.List. See the method description for details. -message ListServiceAttachmentsRequest { +// A request message for Routers.List. See the method description for details. +message ListRoutersRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44652,7 +45059,7 @@ message ListServiceAttachmentsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region of this request. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -44665,8 +45072,8 @@ message ListServiceAttachmentsRequest { } -// A request message for Snapshots.List. See the method description for details. -message ListSnapshotsRequest { +// A request message for Routes.List. See the method description for details. +message ListRoutesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44765,8 +45172,8 @@ message ListSnapshotsRequest { } -// A request message for SslCertificates.List. See the method description for details. -message ListSslCertificatesRequest { +// A request message for SecurityPolicies.List. See the method description for details. +message ListSecurityPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44865,8 +45272,8 @@ message ListSslCertificatesRequest { } -// A request message for SslPolicies.List. See the method description for details. -message ListSslPoliciesRequest { +// A request message for ServiceAttachments.List. See the method description for details. +message ListServiceAttachmentsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -44955,6 +45362,9 @@ message ListSslPoliciesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region of this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -44965,8 +45375,8 @@ message ListSslPoliciesRequest { } -// A request message for StoragePoolTypes.List. See the method description for details. -message ListStoragePoolTypesRequest { +// A request message for Snapshots.List. See the method description for details. +message ListSnapshotsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45063,13 +45473,10 @@ message ListStoragePoolTypesRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for StoragePools.List. See the method description for details. -message ListStoragePoolsRequest { +// A request message for SslCertificates.List. See the method description for details. +message ListSslCertificatesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45166,29 +45573,10 @@ message ListStoragePoolsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone for this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Subnetworks.List. See the method description for details. -message ListSubnetworksRequest { - // Defines the extra views returned back in the subnetwork resource. - // Supported values: - // - // - WITH_UTILIZATION: Utilization data is included in the - // response. - enum Views { - // A value indicating that the enum field is not set. - UNDEFINED_VIEWS = 0; - - DEFAULT = 115302945; - - // Utilization data is included in the response. - WITH_UTILIZATION = 504090633; - - } - +// A request message for SslPolicies.List. See the method description for details. +message ListSslPoliciesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45277,9 +45665,6 @@ message ListSubnetworksRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -45288,18 +45673,10 @@ message ListSubnetworksRequest { // with an error code. optional bool return_partial_success = 517198390; - // Defines the extra views returned back in the subnetwork resource. - // Supported values: - // - // - WITH_UTILIZATION: Utilization data is included in the - // response. - // Check the Views enum for the list of possible values. - optional string views = 112204398; - } -// A request message for TargetGrpcProxies.List. See the method description for details. -message ListTargetGrpcProxiesRequest { +// A request message for StoragePoolTypes.List. See the method description for details. +message ListStoragePoolTypesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45396,10 +45773,13 @@ message ListTargetGrpcProxiesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for TargetHttpProxies.List. See the method description for details. -message ListTargetHttpProxiesRequest { +// A request message for StoragePools.List. See the method description for details. +message ListStoragePoolsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45496,10 +45876,29 @@ message ListTargetHttpProxiesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of the zone for this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for TargetHttpsProxies.List. See the method description for details. -message ListTargetHttpsProxiesRequest { +// A request message for Subnetworks.List. See the method description for details. +message ListSubnetworksRequest { + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. + enum Views { + // A value indicating that the enum field is not set. + UNDEFINED_VIEWS = 0; + + DEFAULT = 115302945; + + // Utilization data is included in the response. + WITH_UTILIZATION = 504090633; + + } + // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45588,6 +45987,9 @@ message ListTargetHttpsProxiesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Name of the region scoping this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -45596,10 +45998,18 @@ message ListTargetHttpsProxiesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Defines the extra views returned back in the subnetwork resource. + // Supported values: + // + // - WITH_UTILIZATION: Utilization data is included in the + // response. + // Check the Views enum for the list of possible values. + optional string views = 112204398; + } -// A request message for TargetInstances.List. See the method description for details. -message ListTargetInstancesRequest { +// A request message for TargetGrpcProxies.List. See the method description for details. +message ListTargetGrpcProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45696,13 +46106,10 @@ message ListTargetInstancesRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone scoping this request. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for TargetPools.List. See the method description for details. -message ListTargetPoolsRequest { +// A request message for TargetHttpProxies.List. See the method description for details. +message ListTargetHttpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45791,9 +46198,6 @@ message ListTargetPoolsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -45804,8 +46208,8 @@ message ListTargetPoolsRequest { } -// A request message for TargetSslProxies.List. See the method description for details. -message ListTargetSslProxiesRequest { +// A request message for TargetHttpsProxies.List. See the method description for details. +message ListTargetHttpsProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -45904,8 +46308,8 @@ message ListTargetSslProxiesRequest { } -// A request message for TargetTcpProxies.List. See the method description for details. -message ListTargetTcpProxiesRequest { +// A request message for TargetInstances.List. See the method description for details. +message ListTargetInstancesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46002,10 +46406,13 @@ message ListTargetTcpProxiesRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone scoping this request. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for TargetVpnGateways.List. See the method description for details. -message ListTargetVpnGatewaysRequest { +// A request message for TargetPools.List. See the method description for details. +message ListTargetPoolsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46094,7 +46501,7 @@ message ListTargetVpnGatewaysRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // Name of the region scoping this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -46107,8 +46514,8 @@ message ListTargetVpnGatewaysRequest { } -// A request message for UrlMaps.List. See the method description for details. -message ListUrlMapsRequest { +// A request message for TargetSslProxies.List. See the method description for details. +message ListTargetSslProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46207,8 +46614,8 @@ message ListUrlMapsRequest { } -// A request message for BackendServices.ListUsable. See the method description for details. -message ListUsableBackendServicesRequest { +// A request message for TargetTcpProxies.List. See the method description for details. +message ListTargetTcpProxiesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46307,8 +46714,8 @@ message ListUsableBackendServicesRequest { } -// A request message for RegionBackendServices.ListUsable. See the method description for details. -message ListUsableRegionBackendServicesRequest { +// A request message for TargetVpnGateways.List. See the method description for details. +message ListTargetVpnGatewaysRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46397,8 +46804,7 @@ message ListUsableRegionBackendServicesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - // It must be a string that meets the requirements in RFC1035. + // Name of the region for this request. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -46411,8 +46817,8 @@ message ListUsableRegionBackendServicesRequest { } -// A request message for Subnetworks.ListUsable. See the method description for details. -message ListUsableSubnetworksRequest { +// A request message for UrlMaps.List. See the method description for details. +message ListUrlMapsRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46509,15 +46915,10 @@ message ListUsableSubnetworksRequest { // with an error code. optional bool return_partial_success = 517198390; - // The project id or project number in which the subnetwork is intended to be - // used. Only applied for Shared VPC. See [Shared VPC - // documentation](https://cloud.google.com/vpc/docs/shared-vpc/) - optional string service_project = 530592655; - } -// A request message for VpnGateways.List. See the method description for details. -message ListVpnGatewaysRequest { +// A request message for BackendServices.ListUsable. See the method description for details. +message ListUsableBackendServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46606,9 +47007,6 @@ message ListVpnGatewaysRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -46619,8 +47017,8 @@ message ListVpnGatewaysRequest { } -// A request message for VpnTunnels.List. See the method description for details. -message ListVpnTunnelsRequest { +// A request message for RegionBackendServices.ListUsable. See the method description for details. +message ListUsableRegionBackendServicesRequest { // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -46709,7 +47107,8 @@ message ListVpnTunnelsRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region for this request. + // Name of the region scoping this request. + // It must be a string that meets the requirements in RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -46722,10 +47121,321 @@ message ListVpnTunnelsRequest { } -// A request message for WireGroups.List. See the method description for details. -message ListWireGroupsRequest { - string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; - +// A request message for Subnetworks.ListUsable. See the method description for details. +message ListUsableSubnetworksRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + + // The project id or project number in which the subnetwork is intended to be + // used. Only applied for Shared VPC. See [Shared VPC + // documentation](https://cloud.google.com/vpc/docs/shared-vpc/) + optional string service_project = 530592655; + +} + +// A request message for VpnGateways.List. See the method description for details. +message ListVpnGatewaysRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for VpnTunnels.List. See the method description for details. +message ListVpnTunnelsRequest { + // A filter expression that filters resources listed in the response. Most + // Compute resources support two types of filter expressions: + // expressions that support regular expressions and expressions that follow + // API improvement proposal AIP-160. + // These two types of filter expressions cannot be mixed in one request. + // + // If you want to use AIP-160, your expression must specify the field name, an + // operator, and the value that you want to use for filtering. The value + // must be a string, a number, or a boolean. The operator + // must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + // + // For example, if you are filtering Compute Engine instances, you can + // exclude instances named `example-instance` by specifying + // `name != example-instance`. + // + // The `:*` comparison can be used to test whether a key has been defined. + // For example, to find all objects with `owner` label use: + // ``` + // labels.owner:* + // ``` + // + // You can also filter nested fields. For example, you could specify + // `scheduling.automaticRestart = false` to include instances only + // if they are not scheduled for automatic restarts. You can use filtering + // on nested fields to filter based onresource labels. + // + // To filter on multiple expressions, provide each separate expression within + // parentheses. For example: + // ``` + // (scheduling.automaticRestart = true) + // (cpuPlatform = "Intel Skylake") + // ``` + // By default, each expression is an `AND` expression. However, you + // can include `AND` and `OR` expressions explicitly. + // For example: + // ``` + // (cpuPlatform = "Intel Skylake") OR + // (cpuPlatform = "Intel Broadwell") AND + // (scheduling.automaticRestart = true) + // ``` + // + // If you want to use a regular expression, use the `eq` (equal) or `ne` + // (not equal) operator against a single un-parenthesized expression with or + // without quotes or against multiple parenthesized expressions. Examples: + // + // `fieldname eq unquoted literal` + // `fieldname eq 'single quoted literal'` + // `fieldname eq "double quoted literal"` + // `(fieldname1 eq literal) (fieldname2 ne "literal")` + // + // The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + // The literal value must match the entire field. + // + // For example, to filter for instances that do not end with name "instance", + // you would use `name ne .*instance`. + // + // You cannot combine constraints on multiple fields using regular + // expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. + // If the number of available results is larger than `maxResults`, + // Compute Engine returns a `nextPageToken` that can be used to get + // the next page of results in subsequent list requests. Acceptable values are + // `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results + // are returned in alphanumerical order based on the resource name. + // + // You can also sort results in descending order based on the creation + // timestamp using `orderBy="creationTimestamp desc"`. This sorts + // results based on the `creationTimestamp` field in + // reverse chronological order (newest result first). Use this to sort + // resources like operations so that the newest operation is returned first. + // + // Currently, only sorting by `name` or + // `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the + // `nextPageToken` returned by a previous list request to get + // the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case + // of failure. The default value is false. + // + // For example, when partial success behavior is enabled, aggregatedList for a + // single zone scope either returns all resources in the zone or no resources, + // with an error code. + optional bool return_partial_success = 517198390; + +} + +// A request message for WireGroups.List. See the method description for details. +message ListWireGroupsRequest { + string cross_site_network = 108192469 [(google.api.field_behavior) = REQUIRED]; + // A filter expression that filters resources listed in the response. Most // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -47190,12 +47900,24 @@ message LocationPolicy { // Location configurations mapped by location name. // Currently only zone names are supported and must be represented as valid // internal URLs, such as zones/us-central1-a. + // The bulkInsert operation doesn't create instances in an AI zone, even if + // an AI zone is available in the specified region. For example, if you set a + // DENY preference for us-central1-a, Compute Engine will consider + // us-central1-b and us-central1-c for instance creation, but not + // us-central1-ai1a. Also, you can't use the locations[] configuration to + // allow instance creation in an AI zone. To include an AI zone in bulkInsert + // operations, use the locationPolicy.zones[] field. map locations = 413423454; // Strategy for distributing VMs across zones in a region. // Check the TargetShape enum for the list of possible values. optional string target_shape = 338621299; + // The bulkInsert operation applies any preferences set in the locations + // field to the specific zones listed in the zones field if the same zones + // are specified in both fields. + repeated LocationPolicyZoneConfiguration zones = 116085319; + } // @@ -47234,6 +47956,16 @@ message LocationPolicyLocationConstraints { } +// +message LocationPolicyZoneConfiguration { + // The URL of the zone. + // The zone must exist in the region where the request is called. + // Zones must be represented as valid partial URLs, + // such as zones/us-central1-a. + optional string zone = 3744684; + +} + // Represents a machine image resource. // // A machine image is a Compute Engine resource that stores all the @@ -47318,6 +48050,10 @@ message MachineImage { // be a dash. optional string name = 3373707; + // Input only. [Input Only] Additional parameters that are passed in the request, but are + // not persisted in the resource. + optional MachineImageParams params = 78313862; + // Output only. Reserved for future use. optional bool satisfies_pzi = 480964257; @@ -47389,6 +48125,19 @@ message MachineImageList { } +// Machine Image parameters +message MachineImageParams { + // Input only. Resource manager tags to be bound to the machine image. Tag keys and values + // have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + // Represents a Machine Type resource. // // You can use specific machine types for your VM instances based on performance @@ -47418,6 +48167,9 @@ message MachineType { // Check the Architecture enum for the list of possible values. optional string architecture = 302803283; + // [Output Only] The configuration of bundled local SSD for the machine type. + optional BundledLocalSsds bundled_local_ssds = 387462016; + // [Output Only] Creation timestamp inRFC3339 // text format. optional string creation_timestamp = 30525366; @@ -48648,6 +49400,20 @@ message NetworkEndpoint { // A network endpoint group (NEG) defines how a set of endpoints should be // reached, whether they are reachable, and where they are located. // For more information about using NEGs for different use cases, seeNetwork endpoint groups overview. +// +// Note: Use the following APIs to manage network endpoint groups: +// +// - +// To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity +// NEGs): zonal +// API +// - +// To manage NEGs with regional scope (such as regional internet NEGs, +// serverless NEGs, Private Service Connect NEGs): regional +// API +// - +// To manage NEGs with global scope (such as global internet NEGs):global +// API message NetworkEndpointGroup { // Type of network endpoints in this network endpoint group. Can be one ofGCE_VM_IP, GCE_VM_IP_PORT,NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT,INTERNET_IP_PORT, SERVERLESS,PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. enum NetworkEndpointType { @@ -49193,6 +49959,10 @@ message NetworkInterface { // You can only specify this field for network interfaces in VPC networks. repeated AliasIpRange alias_ip_ranges = 165085631; + // Optional. If true, DNS resolution will be enabled over this interface. Only valid + // with network_attachment. + optional bool enable_vpc_scoped_dns = 283425868; + // Fingerprint hash of contents stored in this network interface. // This field will be ignored when inserting an Instance or // adding a NetworkInterface. An up-to-date @@ -49368,9 +50138,7 @@ message NetworkPeering { } - // Output only. [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The - // peering is `ACTIVE` when there's a matching configuration in the peer - // network. + // Output only. [Output Only] State for the peering. enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -49469,9 +50237,7 @@ message NetworkPeering { // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; - // Output only. [Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The - // peering is `ACTIVE` when there's a matching configuration in the peer - // network. + // Output only. [Output Only] State for the peering. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -53178,6 +53944,44 @@ message PatchRegionBackendServiceRequest { } +// A request message for RegionHealthAggregationPolicies.Patch. See the method description for details. +message PatchRegionHealthAggregationPolicyRequest { + // Name of the HealthAggregationPolicy to update. The name + // must be 1-63 characters long, and comply with RFC1035. + string health_aggregation_policy = 240314354 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + // A request message for RegionHealthChecks.Patch. See the method description for details. message PatchRegionHealthCheckRequest { // Name of the HealthCheck resource to patch. @@ -57962,6 +58766,24 @@ message Reservation { } + // Indicates the early access maintenance for the reservation. + // If this field is absent or set to NO_EARLY_ACCESS, the reservation is not + // enrolled in early access maintenance and the standard notice applies. + enum EarlyAccessMaintenance { + // A value indicating that the enum field is not set. + UNDEFINED_EARLY_ACCESS_MAINTENANCE = 0; + + // No early access. + NO_EARLY_ACCESS = 220751774; + + // Wave 1: Fastest notification period + WAVE1 = 82367576; + + // Wave 2: Medium notification period + WAVE2 = 82367577; + + } + // Protection tier for the workload which specifies the workload expectations // in the event of infrastructure failures at data center (e.g. power // and/or cooling failures). @@ -58066,6 +58888,12 @@ message Reservation { // create the resource. optional string description = 422937596; + // Indicates the early access maintenance for the reservation. + // If this field is absent or set to NO_EARLY_ACCESS, the reservation is not + // enrolled in early access maintenance and the standard notice applies. + // Check the EarlyAccessMaintenance enum for the list of possible values. + optional string early_access_maintenance = 343918356; + // Indicates whether Compute Engine allows unplanned maintenance for your VMs; // for example, to fix hardware errors. optional bool enable_emergent_maintenance = 353759497; @@ -58091,6 +58919,10 @@ message Reservation { // be a dash. optional string name = 3373707; + // Input only. Additional params passed with the request, but not persisted + // as part of resource payload. + optional ReservationParams params = 78313862; + // Protection tier for the workload which specifies the workload expectations // in the event of infrastructure failures at data center (e.g. power // and/or cooling failures). @@ -58453,6 +59285,143 @@ message ReservationList { } +// Additional reservation params. +message ReservationParams { + // Input only. Resource manager tags to be bound to the reservation. Tag keys and + // values have the same definition as resource + // manager tags. Keys and values can be either in numeric format, + // such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in + // namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and + // `{tag_value_short_name}`. The field is ignored (both PUT & + // PATCH) when empty. + map resource_manager_tags = 377671164; + +} + +// Represents a reservation slot resource. +message ReservationSlot { + // Output only. [Output Only] The state of the reservation slot. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The reservation slot has allocated all its resources. + ACTIVE = 314733318; + + // The resources are being allocated for the reservation slot. + CREATING = 455564985; + + // The reservation slot is currently being deleted. + DELETING = 528602024; + + STATE_UNSPECIFIED = 470755401; + + // The reservation slot is currently unavailable. + UNAVAILABLE = 413756464; + + } + + // Output only. [Output Only] The creation timestamp, formatted asRFC3339 text. + optional string creation_timestamp = 30525366; + + // Output only. [Output Only] The unique identifier for this resource. This identifier is + // defined by the server. + optional uint64 id = 3355; + + // Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots. + optional string kind = 3292052; + + // Output only. [Output Only] The name of the reservation slot. + optional string name = 3373707; + + // Output only. [Output Only] The physical topology of the reservation slot. + optional ReservationSlotPhysicalTopology physical_topology = 279778519; + + // Output only. [Output Only] A server-defined fully-qualified URL for this resource. + optional string self_link = 456214797; + + // Output only. [Output Only] A server-defined URL for this resource with the resource ID. + optional string self_link_with_id = 44520962; + + // Specify share settings to create a shared slot. Set to empty + // to inherit the share settings from a parent resource. + optional ShareSettings share_settings = 266668163; + + // Output only. [Output Only] The state of the reservation slot. + // Check the State enum for the list of possible values. + optional string state = 109757585; + + // Output only. [Output Only] The status of the reservation slot. + optional ReservationSlotStatus status = 181260274; + + // Output only. [Output Only] The zone in which the reservation slot resides. + optional string zone = 3744684; + +} + +// +message ReservationSlotPhysicalTopology { + // The unique identifier of the capacity block within the cluster. + optional string block = 93832333; + + // The cluster name of the reservation sub-block. + optional string cluster = 335221242; + + // The unique identifier of the capacity host within the capacity sub-block. + optional string host = 3208616; + + // The unique identifier of the capacity sub-block within the capacity + // block. + optional string sub_block = 478033358; + +} + +// +message ReservationSlotStatus { + // Output only. [Output Only] The physical topology of the reservation sub-block. + optional ReservationSlotPhysicalTopology physical_topology = 279778519; + + // Output only. The RDMA IP address of the physical host. + repeated string rdma_ip_addresses = 167842531; + + // Output only. The URIs of the instances currently running on this slot. + repeated string running_instances = 536292350; + +} + +// +message ReservationSlotsGetResponse { + optional ReservationSlot resource = 195806222; + +} + +// A list of reservation slots within a single reservation. +message ReservationSlotsListResponse { + // The unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of reservation slot resources. + repeated ReservationSlot items = 100526016; + + // The type of resource. Alwayscompute#reservationSlot for a list of reservation + // slots. + optional string kind = 3292052; + + // This token allows you to get the next page of results for + // list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for + // the query parameter pageToken in the next list request. + // Subsequent list requests will have their own nextPageToken to + // continue paging through the results. + optional string next_page_token = 79797525; + + // The server-defined URL for this resource. + optional string self_link = 456214797; + + // An informational warning message. + optional Warning warning = 50704284; + +} + // Represents a reservation subBlock resource. message ReservationSubBlock { // Output only. [Output Only] Status of the reservation subBlock. @@ -59203,6 +60172,21 @@ message ResourcePolicyDiskConsistencyGroupPolicy { // A GroupPlacementPolicy specifies resource placement configuration. // It specifies the failure bucket separation message ResourcePolicyGroupPlacementPolicy { + // Specifies the connection mode for the accelerator topology. If not + // specified, the default is AUTO_CONNECT. + enum AcceleratorTopologyMode { + // A value indicating that the enum field is not set. + UNDEFINED_ACCELERATOR_TOPOLOGY_MODE = 0; + + // The interconnected chips are pre-configured at the time of VM creation. + AUTO_CONNECT = 491872826; + + // The interconnected chips are connected on demand. At the time of VM + // creation, the chips are not connected. + PROVISION_ONLY = 399134966; + + } + // Specifies network collocation enum Collocation { // A value indicating that the enum field is not set. @@ -59214,6 +60198,11 @@ message ResourcePolicyGroupPlacementPolicy { } + // Specifies the connection mode for the accelerator topology. If not + // specified, the default is AUTO_CONNECT. + // Check the AcceleratorTopologyMode enum for the list of possible values. + optional string accelerator_topology_mode = 284293791; + // The number of availability domains to spread instances across. If two // instances are in different availability domain, they are not in the same // low latency network. @@ -59547,6 +60536,9 @@ message ResourceStatusEffectiveInstanceMetadata { // Effective enable-oslogin value at Instance level. optional bool enable_oslogin_metadata_value = 216603159; + // Effective gce-container-declaration value at Instance level. + optional bool gce_container_declaration_metadata_value = 219617210; + // Effective serial-port-enable value at Instance level. optional bool serial_port_enable_metadata_value = 430536330; @@ -66831,7 +67823,7 @@ message SnapshotList { // Additional snapshot params. message SnapshotParams { - // Resource manager tags to be bound to the snapshot. Tag keys and values have + // Input only. Resource manager tags to be bound to the snapshot. Tag keys and values have // the same definition as resource // manager tags. Keys and values can be either in numeric format, // such as `tagKeys/{tag_key_id}` and `tagValues/456` or in namespaced @@ -68309,13 +69301,13 @@ message StoragePoolDisk { // Exapool provisioned capacities for each SKU type message StoragePoolExapoolProvisionedCapacityGb { - // Output only. Size, in GiB, of provisioned capacity-optimized capacity for this Exapool + // Size, in GiB, of provisioned capacity-optimized capacity for this Exapool optional int64 capacity_optimized = 251131874; - // Output only. Size, in GiB, of provisioned read-optimized capacity for this Exapool + // Size, in GiB, of provisioned read-optimized capacity for this Exapool optional int64 read_optimized = 389863870; - // Output only. Size, in GiB, of provisioned write-optimized capacity for this Exapool + // Size, in GiB, of provisioned write-optimized capacity for this Exapool optional int64 write_optimized = 492523719; } @@ -68690,6 +69682,19 @@ message Subnetwork { } + // Configures subnet mask resolution for this subnetwork. + enum ResolveSubnetMask { + // A value indicating that the enum field is not set. + UNDEFINED_RESOLVE_SUBNET_MASK = 0; + + // All ranges assigned to the VM NIC will respond to ARP. + ARP_ALL_RANGES = 445655380; + + // Only the primary range of the VM NIC will respond to ARP. + ARP_PRIMARY_RANGE = 120210048; + + } + // The role of subnetwork. Currently, this field is only used when // purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE // subnetwork is one that is currently being used for Envoy-based load @@ -68747,9 +69752,9 @@ message Subnetwork { } - // Whether this subnetwork's ranges can conflict with existing static routes. + // Whether this subnetwork's ranges can conflict with existing custom routes. // Setting this to true allows this subnetwork's primary and secondary ranges - // to overlap with (and contain) static routes that have already been + // to overlap with (and contain) custom routes that have already been // configured on the corresponding network. // // For example if a static route has range 10.1.0.0/16, a subnet @@ -68765,8 +69770,6 @@ message Subnetwork { // // The default value is false and applies to all existing subnetworks and // automatically created subnetworks. - // - // This field cannot be set to true at resource creation time. optional bool allow_subnet_cidr_routes_overlap = 67856209; // Output only. [Output Only] Creation timestamp inRFC3339 @@ -68906,6 +69909,10 @@ message Subnetwork { // The URL of the reserved internal range. optional string reserved_internal_range = 286248754; + // Configures subnet mask resolution for this subnetwork. + // Check the ResolveSubnetMask enum for the list of possible values. + optional string resolve_subnet_mask = 517696699; + // The role of subnetwork. Currently, this field is only used when // purpose is set to GLOBAL_MANAGED_PROXY orREGIONAL_MANAGED_PROXY. The value can be set toACTIVE or BACKUP. An ACTIVE // subnetwork is one that is currently being used for Envoy-based load @@ -68918,7 +69925,7 @@ message Subnetwork { // An array of configurations for secondary IP ranges for VM instances // contained in this subnetwork. The primary IP of such VM must belong to the // primary ipCidrRange of the subnetwork. The alias IPs may belong to either - // primary or secondary ranges. This field can be updated with apatch request. + // primary or secondary ranges. This field can be updated with apatch request. Supports both IPv4 and IPv6 ranges. repeated SubnetworkSecondaryRange secondary_ip_ranges = 136658915; // [Output Only] Server-defined URL for the resource. @@ -69113,18 +70120,31 @@ message SubnetworkSecondaryRange { // The range of IP addresses belonging to this subnetwork secondary range. // Provide this property when you create the subnetwork. Ranges must be // unique and non-overlapping with all primary and secondary IP ranges - // within a network. Only IPv4 is supported. The range can be any range - // listed in theValid + // within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, + // the range can be any range listed in theValid // ranges list. + // + // For IPv6: + // The range must have a /64 prefix length. + // The range must be omitted, for auto-allocation from Google-defined ULA + // IPv6 range. + // For BYOGUA internal IPv6 secondary range, the range may be specified + // along with the `ipCollection` field. + // If an `ipCollection` is specified, the requested ip_cidr_range must lie + // within the range of the PDP referenced by the `ipCollection` field for + // allocation. + // If `ipCollection` field is specified, but ip_cidr_range is not, + // the range is auto-allocated from the PDP referenced by the `ipCollection` + // field. optional string ip_cidr_range = 98117322; // The name associated with this subnetwork secondary range, used when adding - // an alias IP range to a VM instance. + // an alias IP/IPv6 range to a VM instance. // The name must be 1-63 characters long, and comply withRFC1035. // The name must be unique within the subnetwork. optional string range_name = 332216397; - // The URL of the reserved internal range. + // The URL of the reserved internal range. Only IPv4 is supported. optional string reserved_internal_range = 286248754; } @@ -70965,6 +71985,10 @@ message TargetVpnGateway { // client when the VPN gateway is created. optional string network = 232872494; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional TargetVpnGatewayParams params = 78313862; + // [Output Only] URL of the region where the target VPN gateway resides. // You must specify this field as part of the HTTP request URL. It is // not settable as a field in the request body. @@ -71040,6 +72064,26 @@ message TargetVpnGatewayList { } +// +message TargetVpnGatewayParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message TargetVpnGatewaysScopedList { // [Output Only] A list of target VPN gateways contained in this scope. @@ -71504,6 +72548,22 @@ message TestIamPermissionsRegionDiskRequest { } +// A request message for RegionHealthAggregationPolicies.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionHealthAggregationPolicyRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionHealthChecks.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionHealthCheckRequest { // Project ID for this request. @@ -71520,6 +72580,22 @@ message TestIamPermissionsRegionHealthCheckRequest { } +// A request message for RegionHealthCheckServices.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionHealthCheckServiceRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for RegionInstanceGroups.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionInstanceGroupRequest { // Project ID for this request. @@ -72625,14 +73701,166 @@ message UpdateRegionAutoscalerRequest { } -// A request message for RegionBackendServices.Update. See the method description for details. -message UpdateRegionBackendServiceRequest { - // Name of the BackendService resource to update. - string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - BackendService backend_service_resource = 347586723 [(google.api.field_behavior) = REQUIRED]; - +// A request message for RegionBackendServices.Update. See the method description for details. +message UpdateRegionBackendServiceRequest { + // Name of the BackendService resource to update. + string backend_service = 306946058 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + BackendService backend_service_resource = 347586723 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionCommitments.Update. See the method description for details. +message UpdateRegionCommitmentRequest { + // Name of the commitment that you want to update. + string commitment = 482134805 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; + + optional string paths = 106438894; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; + +} + +// A request message for RegionDisks.Update. See the method description for details. +message UpdateRegionDiskRequest { + // The disk name for this request. + string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; + + optional string paths = 106438894; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; + +} + +// A request message for RegionHealthChecks.Update. See the method description for details. +message UpdateRegionHealthCheckRequest { + // Name of the HealthCheck resource to update. + string health_check = 308876645 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region scoping this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + +} + +// A request message for RegionUrlMaps.Update. See the method description for details. +message UpdateRegionUrlMapRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, @@ -72645,73 +73873,20 @@ message UpdateRegionBackendServiceRequest { (google.cloud.operation_request_field) = "region" ]; - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). + // begin_interface: MixerMutationRequestBuilder + // Request ID to support idempotency. optional string request_id = 37109963; -} - -// A request message for RegionCommitments.Update. See the method description for details. -message UpdateRegionCommitmentRequest { - // Name of the commitment that you want to update. - string commitment = 482134805 [(google.api.field_behavior) = REQUIRED]; + // Name of the UrlMap resource to update. + string url_map = 367020684 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; - - optional string paths = 106438894; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // Name of the region for this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // update_mask indicates fields to be updated as part of this request. - optional string update_mask = 500079778; + UrlMap url_map_resource = 168675425 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionDisks.Update. See the method description for details. -message UpdateRegionDiskRequest { - // The disk name for this request. - string disk = 3083677 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; - +// A request message for Reservations.Update. See the method description for details. +message UpdateReservationRequest { optional string paths = 106438894; // Project ID for this request. @@ -72720,12 +73895,6 @@ message UpdateRegionDiskRequest { (google.cloud.operation_request_field) = "project" ]; - // The name of the region for this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - // An optional request ID to identify requests. Specify a unique request ID so // that if you must retry your request, the server will know to ignore the // request if it has already been completed. @@ -72741,109 +73910,44 @@ message UpdateRegionDiskRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // update_mask indicates fields to be updated as part of this request. - optional string update_mask = 500079778; - -} - -// A request message for RegionHealthChecks.Update. See the method description for details. -message UpdateRegionHealthCheckRequest { - // Name of the HealthCheck resource to update. - string health_check = 308876645 [(google.api.field_behavior) = REQUIRED]; + // Name of the reservation to update. + string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; - - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - - // Name of the region scoping this request. - string region = 138946292 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" - ]; - - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - -} + Reservation reservation_resource = 285030177 [(google.api.field_behavior) = REQUIRED]; -// A request message for RegionUrlMaps.Update. See the method description for details. -message UpdateRegionUrlMapRequest { - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; + // Update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; - // Name of the region scoping this request. - string region = 138946292 [ + // Name of the zone for this request. + string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "region" + (google.cloud.operation_request_field) = "zone" ]; - // begin_interface: MixerMutationRequestBuilder - // Request ID to support idempotency. - optional string request_id = 37109963; - - // Name of the UrlMap resource to update. - string url_map = 367020684 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - UrlMap url_map_resource = 168675425 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for Reservations.Update. See the method description for details. -message UpdateReservationRequest { - optional string paths = 106438894; +// A request message for ReservationSlots.Update. See the method description for details. +message UpdateReservationSlotRequest { + // The name of the sub-block resource. + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; - // Project ID for this request. + // The project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // An optional request ID to identify requests. Specify a unique request ID so - // that if you must retry your request, the server will know to ignore the - // request if it has already been completed. - // - // For example, consider a situation where you make an initial request and - // the request times out. If you make the request again with the same - // request ID, the server can check if original operation with the same - // request ID was received, and if so, will ignore the second request. This - // prevents clients from accidentally creating duplicate commitments. - // - // The request ID must be - // a valid UUID with the exception that zero UUID is not supported - // (00000000-0000-0000-0000-000000000000). - optional string request_id = 37109963; - - // Name of the reservation to update. - string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; + // The name of the slot resource. + string reservation_slot = 277470865 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - Reservation reservation_resource = 285030177 [(google.api.field_behavior) = REQUIRED]; + ReservationSlot reservation_slot_resource = 408545788 [(google.api.field_behavior) = REQUIRED]; - // Update_mask indicates fields to be updated as part of this request. + // The fields to be updated as part of this request. optional string update_mask = 500079778; - // Name of the zone for this request. + // The name of the zone for this request, formatted as RFC1035. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "zone" @@ -73598,6 +74702,7 @@ message UsableSubnetwork { // Secondary IP range of a usable subnetwork. message UsableSubnetworkSecondaryRange { // The range of IP addresses belonging to this subnetwork secondary range. + // Can be Ipv4 or Ipv6 range. optional string ip_cidr_range = 98117322; // The name associated with this subnetwork secondary range, used when adding @@ -73884,6 +74989,10 @@ message VpnGateway { // client when the VPN gateway is created. optional string network = 232872494; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional VpnGatewayParams params = 78313862; + // Output only. [Output Only] URL of the region where the VPN gateway resides. optional string region = 138946292; @@ -73957,6 +75066,26 @@ message VpnGatewayList { } +// +message VpnGatewayParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message VpnGatewayStatus { // Output only. List of VPN connection for this VpnGateway. @@ -74243,6 +75372,10 @@ message VpnTunnel { // cannot be a dash. optional string name = 3373707; + // Input only. [Input Only] Additional params passed with the request, but not persisted + // as part of resource payload. + optional VpnTunnelParams params = 78313862; + // URL of the peer side external VPN gateway to which this VPN tunnel is // connected. // Provided by the client when the VPN tunnel is created. @@ -74410,6 +75543,26 @@ message VpnTunnelList { } +// +message VpnTunnelParams { + // Tag keys/values directly bound to this resource. + // Tag keys and values have the same definition as resource + // manager tags. The field is allowed for INSERT + // only. The keys/values to set on the resource should be specified in + // either ID { : } or Namespaced format + // { : }. + // For example the following are valid inputs: + // * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"} + // * {"123/environment" : "production", "345/abc" : "xyz"} + // Note: + // * Invalid combinations of ID & namespaced format is not supported. For + // instance: {"123/environment" : "tagValues/444"} is invalid. + // * Inconsistent format is not supported. For instance: + // {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid. + map resource_manager_tags = 377671164; + +} + // message VpnTunnelPhase1Algorithms { repeated string dh = 3204; @@ -75158,6 +76311,14 @@ message WithdrawPublicDelegatedPrefixeRequest { } +// +message WorkloadIdentityConfig { + optional string identity = 401109182; + + optional bool identity_certificate_enabled = 342892440; + +} + // message XpnHostList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -76212,7 +77373,7 @@ service Disks { // Updates the specified disk with the data included in the request. // The update is performed only on selected fields included as part - // of update-mask. Only the following fields can be modified: user_license. + // of update-mask. rpc Update(UpdateDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -76938,6 +78099,20 @@ service GlobalNetworkEndpointGroups { // Creates a network endpoint group in the specified project using the // parameters that are included in the request. + // + // Note: Use the following APIs to manage network endpoint groups: + // + // - + // To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + // NEGs): zonal + // API + // - + // To manage NEGs with regional scope (such as regional internet NEGs, + // serverless NEGs, Private Service Connect NEGs): regional + // API + // - + // To manage NEGs with global scope (such as global internet NEGs):global + // API rpc Insert(InsertGlobalNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -79750,6 +80925,20 @@ service NetworkEndpointGroups { // Creates a network endpoint group in the specified project using the // parameters that are included in the request. + // + // Note: Use the following APIs to manage network endpoint groups: + // + // - + // To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + // NEGs): zonal + // API + // - + // To manage NEGs with regional scope (such as regional internet NEGs, + // serverless NEGs, Private Service Connect NEGs): regional + // API + // - + // To manage NEGs with global scope (such as global internet NEGs):global + // API rpc Insert(InsertNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -81616,8 +82805,7 @@ service RegionDisks { } // Update the specified disk with the data included in the request. Update is - // performed only on selected fields included as part of update-mask. Only the - // following fields can be modified: user_license. + // performed only on selected fields included as part of update-mask. rpc Update(UpdateRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "disk_resource" @@ -81629,6 +82817,87 @@ service RegionDisks { } +// The RegionHealthAggregationPolicies API. +service RegionHealthAggregationPolicies { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the list of all HealthAggregationPolicy resources, + // regional and global, available to the specified project. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListRegionHealthAggregationPoliciesRequest) returns (HealthAggregationPolicyAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/healthAggregationPolicies" + }; + option (google.api.method_signature) = "project"; + } + + // Deletes the specified HealthAggregationPolicy in the given region. + rpc Delete(DeleteRegionHealthAggregationPolicyRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified HealthAggregationPolicy resource in the given region. + rpc Get(GetRegionHealthAggregationPolicyRequest) returns (HealthAggregationPolicy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy"; + } + + // Create a HealthAggregationPolicy in the specified project in the given + // region using the parameters that are included in the request. + rpc Insert(InsertRegionHealthAggregationPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "health_aggregation_policy_resource" + post: "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Lists the HealthAggregationPolicies for a project in the given region. + rpc List(ListRegionHealthAggregationPoliciesRequest) returns (HealthAggregationPolicyList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies" + }; + option (google.api.method_signature) = "project,region"; + } + + // Updates the specified regional HealthAggregationPolicy + // resource with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + rpc Patch(PatchRegionHealthAggregationPolicyRequest) returns (Operation) { + option (google.api.http) = { + body: "health_aggregation_policy_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + }; + option (google.api.method_signature) = "project,region,health_aggregation_policy,health_aggregation_policy_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionHealthAggregationPolicyRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionHealthCheckServices API. service RegionHealthCheckServices { option (google.api.default_host) = @@ -81688,6 +82957,15 @@ service RegionHealthCheckServices { option (google.cloud.operation_service) = "RegionOperations"; } + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionHealthCheckServiceRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + } // The RegionHealthChecks API. @@ -82446,6 +83724,20 @@ service RegionNetworkEndpointGroups { // Creates a network endpoint group in the specified project using the // parameters that are included in the request. + // + // Note: Use the following APIs to manage network endpoint groups: + // + // - + // To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + // NEGs): zonal + // API + // - + // To manage NEGs with regional scope (such as regional internet NEGs, + // serverless NEGs, Private Service Connect NEGs): regional + // API + // - + // To manage NEGs with global scope (such as global internet NEGs):global + // API rpc Insert(InsertRegionNetworkEndpointGroupRequest) returns (Operation) { option (google.api.http) = { body: "network_endpoint_group_resource" @@ -83406,6 +84698,43 @@ service ReservationBlocks { } +// The ReservationSlots API. +service ReservationSlots { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves information about the specified reservation slot. + rpc Get(GetReservationSlotRequest) returns (ReservationSlotsGetResponse) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_slot"; + } + + // Retrieves a list of reservation slots under a single reservation. + rpc List(ListReservationSlotsRequest) returns (ReservationSlotsListResponse) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots" + }; + option (google.api.method_signature) = "project,zone,parent_name"; + } + + // Update a reservation slot in the specified sub-block. + rpc Update(UpdateReservationSlotRequest) returns (Operation) { + option (google.api.http) = { + body: "reservation_slot_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_slot,reservation_slot_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + +} + // The ReservationSubBlocks API. service ReservationSubBlocks { option (google.api.default_host) = @@ -83418,7 +84747,7 @@ service ReservationSubBlocks { // Retrieves information about the specified reservation subBlock. rpc Get(GetReservationSubBlockRequest) returns (ReservationSubBlocksGetResponse) { option (google.api.http) = { - get: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}" + get: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}" }; option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block"; } @@ -83427,7 +84756,7 @@ service ReservationSubBlocks { // policy or resource exists. rpc GetIamPolicy(GetIamPolicyReservationSubBlockRequest) returns (Policy) { option (google.api.http) = { - get: "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy" + get: "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/getIamPolicy" }; option (google.api.method_signature) = "project,zone,parent_resource,resource"; } @@ -83435,7 +84764,7 @@ service ReservationSubBlocks { // Retrieves a list of reservation subBlocks under a single reservation. rpc List(ListReservationSubBlocksRequest) returns (ReservationSubBlocksListResponse) { option (google.api.http) = { - get: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks" + get: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks" }; option (google.api.method_signature) = "project,zone,parent_name"; } @@ -83443,7 +84772,7 @@ service ReservationSubBlocks { // Allows customers to perform maintenance on a reservation subBlock rpc PerformMaintenance(PerformMaintenanceReservationSubBlockRequest) returns (Operation) { option (google.api.http) = { - post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" }; option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block"; option (google.cloud.operation_service) = "ZoneOperations"; @@ -83453,7 +84782,7 @@ service ReservationSubBlocks { rpc ReportFaulty(ReportFaultyReservationSubBlockRequest) returns (Operation) { option (google.api.http) = { body: "reservation_sub_blocks_report_faulty_request_resource" - post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" }; option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_report_faulty_request_resource"; option (google.cloud.operation_service) = "ZoneOperations"; @@ -83464,7 +84793,7 @@ service ReservationSubBlocks { rpc SetIamPolicy(SetIamPolicyReservationSubBlockRequest) returns (Policy) { option (google.api.http) = { body: "zone_set_nested_policy_request_resource" - post: "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy" + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/setIamPolicy" }; option (google.api.method_signature) = "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource"; } @@ -83473,7 +84802,7 @@ service ReservationSubBlocks { rpc TestIamPermissions(TestIamPermissionsReservationSubBlockRequest) returns (TestPermissionsResponse) { option (google.api.http) = { body: "test_permissions_request_resource" - post: "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions" + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/testIamPermissions" }; option (google.api.method_signature) = "project,zone,parent_resource,resource,test_permissions_request_resource"; } diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 132209733f3..442c92afb1b 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -8870,6 +8870,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. */ + interface IAggregatedListRegionHealthAggregationPoliciesRequest { + + /** AggregatedListRegionHealthAggregationPoliciesRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest project */ + project?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionHealthAggregationPoliciesRequest. */ + class AggregatedListRegionHealthAggregationPoliciesRequest implements IAggregatedListRegionHealthAggregationPoliciesRequest { + + /** + * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest); + + /** AggregatedListRegionHealthAggregationPoliciesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest project. */ + public project: string; + + /** AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionHealthAggregationPoliciesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest): google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is not a 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.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is 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.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. + * @param message Plain 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 AggregatedListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionHealthAggregationPoliciesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest; + + /** + * Creates a plain object from an AggregatedListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionHealthAggregationPoliciesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListReservationsRequest. */ interface IAggregatedListReservationsRequest { @@ -15955,6 +16094,9 @@ export namespace google { /** Backend maxUtilization */ maxUtilization?: (number|null); + /** Backend orchestrationInfo */ + orchestrationInfo?: (google.cloud.compute.v1.IBackendBackendOrchestrationInfo|null); + /** Backend preference */ preference?: (string|null); } @@ -16007,6 +16149,9 @@ export namespace google { /** Backend maxUtilization. */ public maxUtilization?: (number|null); + /** Backend orchestrationInfo. */ + public orchestrationInfo?: (google.cloud.compute.v1.IBackendBackendOrchestrationInfo|null); + /** Backend preference. */ public preference?: (string|null); @@ -16108,6 +16253,103 @@ export namespace google { } } + /** Properties of a BackendBackendOrchestrationInfo. */ + interface IBackendBackendOrchestrationInfo { + + /** BackendBackendOrchestrationInfo resourceUri */ + resourceUri?: (string|null); + } + + /** Represents a BackendBackendOrchestrationInfo. */ + class BackendBackendOrchestrationInfo implements IBackendBackendOrchestrationInfo { + + /** + * Constructs a new BackendBackendOrchestrationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendBackendOrchestrationInfo); + + /** BackendBackendOrchestrationInfo resourceUri. */ + public resourceUri?: (string|null); + + /** + * Creates a new BackendBackendOrchestrationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendBackendOrchestrationInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IBackendBackendOrchestrationInfo): google.cloud.compute.v1.BackendBackendOrchestrationInfo; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1.BackendBackendOrchestrationInfo.verify|verify} messages. + * @param message BackendBackendOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBackendBackendOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBackendOrchestrationInfo.verify|verify} messages. + * @param message BackendBackendOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBackendBackendOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendBackendOrchestrationInfo + * @throws {Error} If the payload is not a 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.BackendBackendOrchestrationInfo; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendBackendOrchestrationInfo + * @throws {Error} If the payload is 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.BackendBackendOrchestrationInfo; + + /** + * Verifies a BackendBackendOrchestrationInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendBackendOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendBackendOrchestrationInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BackendBackendOrchestrationInfo; + + /** + * Creates a plain object from a BackendBackendOrchestrationInfo message. Also converts values to other types if specified. + * @param message BackendBackendOrchestrationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BackendBackendOrchestrationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendBackendOrchestrationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendBackendOrchestrationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendBucket. */ interface IBackendBucket { @@ -17318,6 +17560,9 @@ export namespace google { /** BackendService networkPassThroughLbTrafficPolicy */ networkPassThroughLbTrafficPolicy?: (google.cloud.compute.v1.IBackendServiceNetworkPassThroughLbTrafficPolicy|null); + /** BackendService orchestrationInfo */ + orchestrationInfo?: (google.cloud.compute.v1.IBackendServiceOrchestrationInfo|null); + /** BackendService outlierDetection */ outlierDetection?: (google.cloud.compute.v1.IOutlierDetection|null); @@ -17481,6 +17726,9 @@ export namespace google { /** BackendService networkPassThroughLbTrafficPolicy. */ public networkPassThroughLbTrafficPolicy?: (google.cloud.compute.v1.IBackendServiceNetworkPassThroughLbTrafficPolicy|null); + /** BackendService orchestrationInfo. */ + public orchestrationInfo?: (google.cloud.compute.v1.IBackendServiceOrchestrationInfo|null); + /** BackendService outlierDetection. */ public outlierDetection?: (google.cloud.compute.v1.IOutlierDetection|null); @@ -20103,6 +20351,103 @@ export namespace google { } } + /** Properties of a BackendServiceOrchestrationInfo. */ + interface IBackendServiceOrchestrationInfo { + + /** BackendServiceOrchestrationInfo resourceUri */ + resourceUri?: (string|null); + } + + /** Represents a BackendServiceOrchestrationInfo. */ + class BackendServiceOrchestrationInfo implements IBackendServiceOrchestrationInfo { + + /** + * Constructs a new BackendServiceOrchestrationInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendServiceOrchestrationInfo); + + /** BackendServiceOrchestrationInfo resourceUri. */ + public resourceUri?: (string|null); + + /** + * Creates a new BackendServiceOrchestrationInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendServiceOrchestrationInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IBackendServiceOrchestrationInfo): google.cloud.compute.v1.BackendServiceOrchestrationInfo; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1.BackendServiceOrchestrationInfo.verify|verify} messages. + * @param message BackendServiceOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBackendServiceOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendServiceOrchestrationInfo.verify|verify} messages. + * @param message BackendServiceOrchestrationInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBackendServiceOrchestrationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendServiceOrchestrationInfo + * @throws {Error} If the payload is not a 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.BackendServiceOrchestrationInfo; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendServiceOrchestrationInfo + * @throws {Error} If the payload is 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.BackendServiceOrchestrationInfo; + + /** + * Verifies a BackendServiceOrchestrationInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendServiceOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendServiceOrchestrationInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BackendServiceOrchestrationInfo; + + /** + * Creates a plain object from a BackendServiceOrchestrationInfo message. Also converts values to other types if specified. + * @param message BackendServiceOrchestrationInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BackendServiceOrchestrationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendServiceOrchestrationInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendServiceOrchestrationInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a BackendServiceParams. */ interface IBackendServiceParams { @@ -22948,6 +23293,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BundledLocalSsds. */ + interface IBundledLocalSsds { + + /** BundledLocalSsds defaultInterface */ + defaultInterface?: (string|null); + + /** BundledLocalSsds partitionCount */ + partitionCount?: (number|null); + } + + /** Represents a BundledLocalSsds. */ + class BundledLocalSsds implements IBundledLocalSsds { + + /** + * Constructs a new BundledLocalSsds. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBundledLocalSsds); + + /** BundledLocalSsds defaultInterface. */ + public defaultInterface?: (string|null); + + /** BundledLocalSsds partitionCount. */ + public partitionCount?: (number|null); + + /** + * Creates a new BundledLocalSsds instance using the specified properties. + * @param [properties] Properties to set + * @returns BundledLocalSsds instance + */ + public static create(properties?: google.cloud.compute.v1.IBundledLocalSsds): google.cloud.compute.v1.BundledLocalSsds; + + /** + * Encodes the specified BundledLocalSsds message. Does not implicitly {@link google.cloud.compute.v1.BundledLocalSsds.verify|verify} messages. + * @param message BundledLocalSsds message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBundledLocalSsds, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BundledLocalSsds message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BundledLocalSsds.verify|verify} messages. + * @param message BundledLocalSsds message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBundledLocalSsds, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BundledLocalSsds message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BundledLocalSsds + * @throws {Error} If the payload is not a 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.BundledLocalSsds; + + /** + * Decodes a BundledLocalSsds message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BundledLocalSsds + * @throws {Error} If the payload is 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.BundledLocalSsds; + + /** + * Verifies a BundledLocalSsds message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BundledLocalSsds message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BundledLocalSsds + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BundledLocalSsds; + + /** + * Creates a plain object from a BundledLocalSsds message. Also converts values to other types if specified. + * @param message BundledLocalSsds + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BundledLocalSsds, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BundledLocalSsds to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BundledLocalSsds + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a CacheInvalidationRule. */ interface ICacheInvalidationRule { @@ -24571,6 +25019,7 @@ export namespace google { GENERAL_PURPOSE_N2 = 301912156, GENERAL_PURPOSE_N2D = 232471400, GENERAL_PURPOSE_N4 = 301912158, + GENERAL_PURPOSE_N4A = 232471459, GENERAL_PURPOSE_N4D = 232471462, GENERAL_PURPOSE_T2D = 232477166, GRAPHICS_OPTIMIZED = 68500563, @@ -33280,6 +33729,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionHealthAggregationPolicyRequest. */ + interface IDeleteRegionHealthAggregationPolicyRequest { + + /** DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy */ + healthAggregationPolicy?: (string|null); + + /** DeleteRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** DeleteRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** DeleteRegionHealthAggregationPolicyRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionHealthAggregationPolicyRequest. */ + class DeleteRegionHealthAggregationPolicyRequest implements IDeleteRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new DeleteRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest); + + /** DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy. */ + public healthAggregationPolicy: string; + + /** DeleteRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** DeleteRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** DeleteRegionHealthAggregationPolicyRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest): google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a 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.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is 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.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Verifies a DeleteRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a DeleteRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message DeleteRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionHealthCheckRequest. */ interface IDeleteRegionHealthCheckRequest { @@ -43503,6 +44067,9 @@ export namespace google { /** ExternalVpnGateway name */ name?: (string|null); + /** ExternalVpnGateway params */ + params?: (google.cloud.compute.v1.IExternalVpnGatewayParams|null); + /** ExternalVpnGateway redundancyType */ redundancyType?: (string|null); @@ -43543,6 +44110,9 @@ export namespace google { /** ExternalVpnGateway name. */ public name?: (string|null); + /** ExternalVpnGateway params. */ + public params?: (google.cloud.compute.v1.IExternalVpnGatewayParams|null); + /** ExternalVpnGateway redundancyType. */ public redundancyType?: (string|null); @@ -43880,6 +44450,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an ExternalVpnGatewayParams. */ + interface IExternalVpnGatewayParams { + + /** ExternalVpnGatewayParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents an ExternalVpnGatewayParams. */ + class ExternalVpnGatewayParams implements IExternalVpnGatewayParams { + + /** + * Constructs a new ExternalVpnGatewayParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IExternalVpnGatewayParams); + + /** ExternalVpnGatewayParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new ExternalVpnGatewayParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ExternalVpnGatewayParams instance + */ + public static create(properties?: google.cloud.compute.v1.IExternalVpnGatewayParams): google.cloud.compute.v1.ExternalVpnGatewayParams; + + /** + * Encodes the specified ExternalVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1.ExternalVpnGatewayParams.verify|verify} messages. + * @param message ExternalVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IExternalVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExternalVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ExternalVpnGatewayParams.verify|verify} messages. + * @param message ExternalVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IExternalVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExternalVpnGatewayParams + * @throws {Error} If the payload is not a 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.ExternalVpnGatewayParams; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExternalVpnGatewayParams + * @throws {Error} If the payload is 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.ExternalVpnGatewayParams; + + /** + * Verifies an ExternalVpnGatewayParams message. + * @param message Plain 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 ExternalVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExternalVpnGatewayParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ExternalVpnGatewayParams; + + /** + * Creates a plain object from an ExternalVpnGatewayParams message. Also converts values to other types if specified. + * @param message ExternalVpnGatewayParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ExternalVpnGatewayParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExternalVpnGatewayParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExternalVpnGatewayParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a FileContentBuffer. */ interface IFileContentBuffer { @@ -61602,6 +62269,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionHealthAggregationPolicyRequest. */ + interface IGetRegionHealthAggregationPolicyRequest { + + /** GetRegionHealthAggregationPolicyRequest healthAggregationPolicy */ + healthAggregationPolicy?: (string|null); + + /** GetRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** GetRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionHealthAggregationPolicyRequest. */ + class GetRegionHealthAggregationPolicyRequest implements IGetRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new GetRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest); + + /** GetRegionHealthAggregationPolicyRequest healthAggregationPolicy. */ + public healthAggregationPolicy: string; + + /** GetRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** GetRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** + * Creates a new GetRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest): google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a 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.GetRegionHealthAggregationPolicyRequest; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is 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.GetRegionHealthAggregationPolicyRequest; + + /** + * Verifies a GetRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a GetRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message GetRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionHealthCheckRequest. */ interface IGetRegionHealthCheckRequest { @@ -63799,6 +64575,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetReservationSlotRequest. */ + interface IGetReservationSlotRequest { + + /** GetReservationSlotRequest parentName */ + parentName?: (string|null); + + /** GetReservationSlotRequest project */ + project?: (string|null); + + /** GetReservationSlotRequest reservationSlot */ + reservationSlot?: (string|null); + + /** GetReservationSlotRequest zone */ + zone?: (string|null); + } + + /** Represents a GetReservationSlotRequest. */ + class GetReservationSlotRequest implements IGetReservationSlotRequest { + + /** + * Constructs a new GetReservationSlotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetReservationSlotRequest); + + /** GetReservationSlotRequest parentName. */ + public parentName: string; + + /** GetReservationSlotRequest project. */ + public project: string; + + /** GetReservationSlotRequest reservationSlot. */ + public reservationSlot: string; + + /** GetReservationSlotRequest zone. */ + public zone: string; + + /** + * Creates a new GetReservationSlotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetReservationSlotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetReservationSlotRequest): google.cloud.compute.v1.GetReservationSlotRequest; + + /** + * Encodes the specified GetReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetReservationSlotRequest.verify|verify} messages. + * @param message GetReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetReservationSlotRequest.verify|verify} messages. + * @param message GetReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetReservationSlotRequest + * @throws {Error} If the payload is not a 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.GetReservationSlotRequest; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetReservationSlotRequest + * @throws {Error} If the payload is 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.GetReservationSlotRequest; + + /** + * Verifies a GetReservationSlotRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetReservationSlotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetReservationSlotRequest; + + /** + * Creates a plain object from a GetReservationSlotRequest message. Also converts values to other types if specified. + * @param message GetReservationSlotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetReservationSlotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetReservationSlotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetReservationSlotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetReservationSubBlockRequest. */ interface IGetReservationSubBlockRequest { @@ -69927,6 +70818,542 @@ export namespace google { } } + /** Properties of a HealthAggregationPoliciesScopedList. */ + interface IHealthAggregationPoliciesScopedList { + + /** HealthAggregationPoliciesScopedList healthAggregationPolicies */ + healthAggregationPolicies?: (google.cloud.compute.v1.IHealthAggregationPolicy[]|null); + + /** HealthAggregationPoliciesScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthAggregationPoliciesScopedList. */ + class HealthAggregationPoliciesScopedList implements IHealthAggregationPoliciesScopedList { + + /** + * Constructs a new HealthAggregationPoliciesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthAggregationPoliciesScopedList); + + /** HealthAggregationPoliciesScopedList healthAggregationPolicies. */ + public healthAggregationPolicies: google.cloud.compute.v1.IHealthAggregationPolicy[]; + + /** HealthAggregationPoliciesScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthAggregationPoliciesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPoliciesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthAggregationPoliciesScopedList): google.cloud.compute.v1.HealthAggregationPoliciesScopedList; + + /** + * Encodes the specified HealthAggregationPoliciesScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @param message HealthAggregationPoliciesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthAggregationPoliciesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPoliciesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @param message HealthAggregationPoliciesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthAggregationPoliciesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is not a 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.HealthAggregationPoliciesScopedList; + + /** + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is 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.HealthAggregationPoliciesScopedList; + + /** + * Verifies a HealthAggregationPoliciesScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPoliciesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPoliciesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthAggregationPoliciesScopedList; + + /** + * Creates a plain object from a HealthAggregationPoliciesScopedList message. Also converts values to other types if specified. + * @param message HealthAggregationPoliciesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthAggregationPoliciesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPoliciesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPoliciesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthAggregationPolicy. */ + interface IHealthAggregationPolicy { + + /** HealthAggregationPolicy creationTimestamp */ + creationTimestamp?: (string|null); + + /** HealthAggregationPolicy description */ + description?: (string|null); + + /** HealthAggregationPolicy fingerprint */ + fingerprint?: (string|null); + + /** HealthAggregationPolicy healthyPercentThreshold */ + healthyPercentThreshold?: (number|null); + + /** HealthAggregationPolicy id */ + id?: (number|Long|string|null); + + /** HealthAggregationPolicy kind */ + kind?: (string|null); + + /** HealthAggregationPolicy minHealthyThreshold */ + minHealthyThreshold?: (number|null); + + /** HealthAggregationPolicy name */ + name?: (string|null); + + /** HealthAggregationPolicy policyType */ + policyType?: (string|null); + + /** HealthAggregationPolicy region */ + region?: (string|null); + + /** HealthAggregationPolicy selfLink */ + selfLink?: (string|null); + + /** HealthAggregationPolicy selfLinkWithId */ + selfLinkWithId?: (string|null); + } + + /** Represents a HealthAggregationPolicy. */ + class HealthAggregationPolicy implements IHealthAggregationPolicy { + + /** + * Constructs a new HealthAggregationPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthAggregationPolicy); + + /** HealthAggregationPolicy creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** HealthAggregationPolicy description. */ + public description?: (string|null); + + /** HealthAggregationPolicy fingerprint. */ + public fingerprint?: (string|null); + + /** HealthAggregationPolicy healthyPercentThreshold. */ + public healthyPercentThreshold?: (number|null); + + /** HealthAggregationPolicy id. */ + public id?: (number|Long|string|null); + + /** HealthAggregationPolicy kind. */ + public kind?: (string|null); + + /** HealthAggregationPolicy minHealthyThreshold. */ + public minHealthyThreshold?: (number|null); + + /** HealthAggregationPolicy name. */ + public name?: (string|null); + + /** HealthAggregationPolicy policyType. */ + public policyType?: (string|null); + + /** HealthAggregationPolicy region. */ + public region?: (string|null); + + /** HealthAggregationPolicy selfLink. */ + public selfLink?: (string|null); + + /** HealthAggregationPolicy selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** + * Creates a new HealthAggregationPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPolicy instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthAggregationPolicy): google.cloud.compute.v1.HealthAggregationPolicy; + + /** + * Encodes the specified HealthAggregationPolicy message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicy.verify|verify} messages. + * @param message HealthAggregationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthAggregationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicy.verify|verify} messages. + * @param message HealthAggregationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthAggregationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPolicy + * @throws {Error} If the payload is not a 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.HealthAggregationPolicy; + + /** + * Decodes a HealthAggregationPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPolicy + * @throws {Error} If the payload is 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.HealthAggregationPolicy; + + /** + * Verifies a HealthAggregationPolicy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthAggregationPolicy; + + /** + * Creates a plain object from a HealthAggregationPolicy message. Also converts values to other types if specified. + * @param message HealthAggregationPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthAggregationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace HealthAggregationPolicy { + + /** PolicyType enum. */ + enum PolicyType { + UNDEFINED_POLICY_TYPE = 0, + BACKEND_SERVICE_POLICY = 415582023, + DNS_PUBLIC_IP_POLICY = 366354794 + } + } + + /** Properties of a HealthAggregationPolicyAggregatedList. */ + interface IHealthAggregationPolicyAggregatedList { + + /** HealthAggregationPolicyAggregatedList id */ + id?: (string|null); + + /** HealthAggregationPolicyAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.IHealthAggregationPoliciesScopedList }|null); + + /** HealthAggregationPolicyAggregatedList kind */ + kind?: (string|null); + + /** HealthAggregationPolicyAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthAggregationPolicyAggregatedList selfLink */ + selfLink?: (string|null); + + /** HealthAggregationPolicyAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** HealthAggregationPolicyAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthAggregationPolicyAggregatedList. */ + class HealthAggregationPolicyAggregatedList implements IHealthAggregationPolicyAggregatedList { + + /** + * Constructs a new HealthAggregationPolicyAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList); + + /** HealthAggregationPolicyAggregatedList id. */ + public id?: (string|null); + + /** HealthAggregationPolicyAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.IHealthAggregationPoliciesScopedList }; + + /** HealthAggregationPolicyAggregatedList kind. */ + public kind?: (string|null); + + /** HealthAggregationPolicyAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthAggregationPolicyAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** HealthAggregationPolicyAggregatedList unreachables. */ + public unreachables: string[]; + + /** HealthAggregationPolicyAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthAggregationPolicyAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPolicyAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList): google.cloud.compute.v1.HealthAggregationPolicyAggregatedList; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @param message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @param message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is not a 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.HealthAggregationPolicyAggregatedList; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is 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.HealthAggregationPolicyAggregatedList; + + /** + * Verifies a HealthAggregationPolicyAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPolicyAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPolicyAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthAggregationPolicyAggregatedList; + + /** + * Creates a plain object from a HealthAggregationPolicyAggregatedList message. Also converts values to other types if specified. + * @param message HealthAggregationPolicyAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthAggregationPolicyAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPolicyAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPolicyAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthAggregationPolicyList. */ + interface IHealthAggregationPolicyList { + + /** HealthAggregationPolicyList id */ + id?: (string|null); + + /** HealthAggregationPolicyList items */ + items?: (google.cloud.compute.v1.IHealthAggregationPolicy[]|null); + + /** HealthAggregationPolicyList kind */ + kind?: (string|null); + + /** HealthAggregationPolicyList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthAggregationPolicyList selfLink */ + selfLink?: (string|null); + + /** HealthAggregationPolicyList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthAggregationPolicyList. */ + class HealthAggregationPolicyList implements IHealthAggregationPolicyList { + + /** + * Constructs a new HealthAggregationPolicyList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthAggregationPolicyList); + + /** HealthAggregationPolicyList id. */ + public id?: (string|null); + + /** HealthAggregationPolicyList items. */ + public items: google.cloud.compute.v1.IHealthAggregationPolicy[]; + + /** HealthAggregationPolicyList kind. */ + public kind?: (string|null); + + /** HealthAggregationPolicyList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthAggregationPolicyList selfLink. */ + public selfLink?: (string|null); + + /** HealthAggregationPolicyList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthAggregationPolicyList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthAggregationPolicyList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthAggregationPolicyList): google.cloud.compute.v1.HealthAggregationPolicyList; + + /** + * Encodes the specified HealthAggregationPolicyList message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyList.verify|verify} messages. + * @param message HealthAggregationPolicyList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthAggregationPolicyList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthAggregationPolicyList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyList.verify|verify} messages. + * @param message HealthAggregationPolicyList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthAggregationPolicyList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthAggregationPolicyList + * @throws {Error} If the payload is not a 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.HealthAggregationPolicyList; + + /** + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthAggregationPolicyList + * @throws {Error} If the payload is 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.HealthAggregationPolicyList; + + /** + * Verifies a HealthAggregationPolicyList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthAggregationPolicyList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthAggregationPolicyList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthAggregationPolicyList; + + /** + * Creates a plain object from a HealthAggregationPolicyList message. Also converts values to other types if specified. + * @param message HealthAggregationPolicyList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthAggregationPolicyList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthAggregationPolicyList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthAggregationPolicyList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthCheck. */ interface IHealthCheck { @@ -78958,6 +80385,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionHealthAggregationPolicyRequest. */ + interface IInsertRegionHealthAggregationPolicyRequest { + + /** InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource */ + healthAggregationPolicyResource?: (google.cloud.compute.v1.IHealthAggregationPolicy|null); + + /** InsertRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** InsertRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** InsertRegionHealthAggregationPolicyRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionHealthAggregationPolicyRequest. */ + class InsertRegionHealthAggregationPolicyRequest implements IInsertRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new InsertRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest); + + /** InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. */ + public healthAggregationPolicyResource?: (google.cloud.compute.v1.IHealthAggregationPolicy|null); + + /** InsertRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** InsertRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** InsertRegionHealthAggregationPolicyRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new InsertRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest): google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a 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.InsertRegionHealthAggregationPolicyRequest; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is 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.InsertRegionHealthAggregationPolicyRequest; + + /** + * Verifies an InsertRegionHealthAggregationPolicyRequest message. + * @param message Plain 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 InsertRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from an InsertRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message InsertRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionHealthCheckRequest. */ interface IInsertRegionHealthCheckRequest { @@ -83418,6 +84960,9 @@ export namespace google { /** Instance tags */ tags?: (google.cloud.compute.v1.ITags|null); + /** Instance workloadIdentityConfig */ + workloadIdentityConfig?: (google.cloud.compute.v1.IWorkloadIdentityConfig|null); + /** Instance zone */ zone?: (string|null); } @@ -83566,6 +85111,9 @@ export namespace google { /** Instance tags. */ public tags?: (google.cloud.compute.v1.ITags|null); + /** Instance workloadIdentityConfig. */ + public workloadIdentityConfig?: (google.cloud.compute.v1.IWorkloadIdentityConfig|null); + /** Instance zone. */ public zone?: (string|null); @@ -85671,6 +87219,9 @@ export namespace google { /** InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair */ forceUpdateOnRepair?: (string|null); + + /** InstanceGroupManagerInstanceLifecyclePolicy onFailedHealthCheck */ + onFailedHealthCheck?: (string|null); } /** Represents an InstanceGroupManagerInstanceLifecyclePolicy. */ @@ -85688,6 +87239,9 @@ export namespace google { /** InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair. */ public forceUpdateOnRepair?: (string|null); + /** InstanceGroupManagerInstanceLifecyclePolicy onFailedHealthCheck. */ + public onFailedHealthCheck?: (string|null); + /** * Creates a new InstanceGroupManagerInstanceLifecyclePolicy instance using the specified properties. * @param [properties] Properties to set @@ -85781,6 +87335,12 @@ export namespace google { NO = 2497, YES = 87751 } + + /** OnFailedHealthCheck enum. */ + enum OnFailedHealthCheck { + UNDEFINED_ON_FAILED_HEALTH_CHECK = 0, + DEFAULT_ACTION = 463967764 + } } /** Properties of an InstanceGroupManagerList. */ @@ -90750,6 +92310,9 @@ export namespace google { /** InstanceProperties tags */ tags?: (google.cloud.compute.v1.ITags|null); + + /** InstanceProperties workloadIdentityConfig */ + workloadIdentityConfig?: (google.cloud.compute.v1.IWorkloadIdentityConfig|null); } /** Represents an InstanceProperties. */ @@ -90824,6 +92387,9 @@ export namespace google { /** InstanceProperties tags. */ public tags?: (google.cloud.compute.v1.ITags|null); + /** InstanceProperties workloadIdentityConfig. */ + public workloadIdentityConfig?: (google.cloud.compute.v1.IWorkloadIdentityConfig|null); + /** * Creates a new InstanceProperties instance using the specified properties. * @param [properties] Properties to set @@ -92739,6 +94305,7 @@ export namespace google { enum Behavior { UNDEFINED_BEHAVIOR = 0, BEHAVIOR_UNSPECIFIED = 85734570, + CHIP_ERROR = 263151669, PERFORMANCE = 135701520, SILENT_DATA_CORRUPTION = 111360678, UNRECOVERABLE_GPU_ERROR = 363710747 @@ -93678,6 +95245,9 @@ export namespace google { /** InstantSnapshot name */ name?: (string|null); + /** InstantSnapshot params */ + params?: (google.cloud.compute.v1.IInstantSnapshotParams|null); + /** InstantSnapshot region */ region?: (string|null); @@ -93745,6 +95315,9 @@ export namespace google { /** InstantSnapshot name. */ public name?: (string|null); + /** InstantSnapshot params. */ + public params?: (google.cloud.compute.v1.IInstantSnapshotParams|null); + /** InstantSnapshot region. */ public region?: (string|null); @@ -94134,6 +95707,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstantSnapshotParams. */ + interface IInstantSnapshotParams { + + /** InstantSnapshotParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents an InstantSnapshotParams. */ + class InstantSnapshotParams implements IInstantSnapshotParams { + + /** + * Constructs a new InstantSnapshotParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstantSnapshotParams); + + /** InstantSnapshotParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new InstantSnapshotParams instance using the specified properties. + * @param [properties] Properties to set + * @returns InstantSnapshotParams instance + */ + public static create(properties?: google.cloud.compute.v1.IInstantSnapshotParams): google.cloud.compute.v1.InstantSnapshotParams; + + /** + * Encodes the specified InstantSnapshotParams message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotParams.verify|verify} messages. + * @param message InstantSnapshotParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstantSnapshotParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstantSnapshotParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotParams.verify|verify} messages. + * @param message InstantSnapshotParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstantSnapshotParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstantSnapshotParams + * @throws {Error} If the payload is not a 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.InstantSnapshotParams; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstantSnapshotParams + * @throws {Error} If the payload is 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.InstantSnapshotParams; + + /** + * Verifies an InstantSnapshotParams message. + * @param message Plain 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 InstantSnapshotParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstantSnapshotParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstantSnapshotParams; + + /** + * Creates a plain object from an InstantSnapshotParams message. Also converts values to other types if specified. + * @param message InstantSnapshotParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstantSnapshotParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstantSnapshotParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstantSnapshotParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstantSnapshotResourceStatus. */ interface IInstantSnapshotResourceStatus { @@ -105309,6 +106979,9 @@ export namespace google { /** Properties of a ListAssociationsFirewallPolicyRequest. */ interface IListAssociationsFirewallPolicyRequest { + /** ListAssociationsFirewallPolicyRequest includeInheritedPolicies */ + includeInheritedPolicies?: (boolean|null); + /** ListAssociationsFirewallPolicyRequest targetResource */ targetResource?: (string|null); } @@ -105322,6 +106995,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IListAssociationsFirewallPolicyRequest); + /** ListAssociationsFirewallPolicyRequest includeInheritedPolicies. */ + public includeInheritedPolicies?: (boolean|null); + /** ListAssociationsFirewallPolicyRequest targetResource. */ public targetResource?: (string|null); @@ -115075,6 +116751,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionHealthAggregationPoliciesRequest. */ + interface IListRegionHealthAggregationPoliciesRequest { + + /** ListRegionHealthAggregationPoliciesRequest filter */ + filter?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionHealthAggregationPoliciesRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest project */ + project?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest region */ + region?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionHealthAggregationPoliciesRequest. */ + class ListRegionHealthAggregationPoliciesRequest implements IListRegionHealthAggregationPoliciesRequest { + + /** + * Constructs a new ListRegionHealthAggregationPoliciesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest); + + /** ListRegionHealthAggregationPoliciesRequest filter. */ + public filter?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionHealthAggregationPoliciesRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionHealthAggregationPoliciesRequest project. */ + public project: string; + + /** ListRegionHealthAggregationPoliciesRequest region. */ + public region: string; + + /** ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionHealthAggregationPoliciesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest): google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest; + + /** + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message ListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * @param message ListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is not a 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.ListRegionHealthAggregationPoliciesRequest; + + /** + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionHealthAggregationPoliciesRequest + * @throws {Error} If the payload is 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.ListRegionHealthAggregationPoliciesRequest; + + /** + * Verifies a ListRegionHealthAggregationPoliciesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionHealthAggregationPoliciesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest; + + /** + * Creates a plain object from a ListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. + * @param message ListRegionHealthAggregationPoliciesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionHealthAggregationPoliciesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionHealthCheckServicesRequest. */ interface IListRegionHealthCheckServicesRequest { @@ -117735,6 +119544,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListReservationSlotsRequest. */ + interface IListReservationSlotsRequest { + + /** ListReservationSlotsRequest filter */ + filter?: (string|null); + + /** ListReservationSlotsRequest maxResults */ + maxResults?: (number|null); + + /** ListReservationSlotsRequest orderBy */ + orderBy?: (string|null); + + /** ListReservationSlotsRequest pageToken */ + pageToken?: (string|null); + + /** ListReservationSlotsRequest parentName */ + parentName?: (string|null); + + /** ListReservationSlotsRequest project */ + project?: (string|null); + + /** ListReservationSlotsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** ListReservationSlotsRequest zone */ + zone?: (string|null); + } + + /** Represents a ListReservationSlotsRequest. */ + class ListReservationSlotsRequest implements IListReservationSlotsRequest { + + /** + * Constructs a new ListReservationSlotsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListReservationSlotsRequest); + + /** ListReservationSlotsRequest filter. */ + public filter?: (string|null); + + /** ListReservationSlotsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListReservationSlotsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListReservationSlotsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListReservationSlotsRequest parentName. */ + public parentName: string; + + /** ListReservationSlotsRequest project. */ + public project: string; + + /** ListReservationSlotsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListReservationSlotsRequest zone. */ + public zone: string; + + /** + * Creates a new ListReservationSlotsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListReservationSlotsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListReservationSlotsRequest): google.cloud.compute.v1.ListReservationSlotsRequest; + + /** + * Encodes the specified ListReservationSlotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationSlotsRequest.verify|verify} messages. + * @param message ListReservationSlotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListReservationSlotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListReservationSlotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationSlotsRequest.verify|verify} messages. + * @param message ListReservationSlotsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListReservationSlotsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListReservationSlotsRequest + * @throws {Error} If the payload is not a 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.ListReservationSlotsRequest; + + /** + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListReservationSlotsRequest + * @throws {Error} If the payload is 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.ListReservationSlotsRequest; + + /** + * Verifies a ListReservationSlotsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListReservationSlotsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListReservationSlotsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListReservationSlotsRequest; + + /** + * Creates a plain object from a ListReservationSlotsRequest message. Also converts values to other types if specified. + * @param message ListReservationSlotsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListReservationSlotsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListReservationSlotsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListReservationSlotsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListReservationSubBlocksRequest. */ interface IListReservationSubBlocksRequest { @@ -122161,6 +124109,9 @@ export namespace google { /** LocationPolicy targetShape */ targetShape?: (string|null); + + /** LocationPolicy zones */ + zones?: (google.cloud.compute.v1.ILocationPolicyZoneConfiguration[]|null); } /** Represents a LocationPolicy. */ @@ -122178,6 +124129,9 @@ export namespace google { /** LocationPolicy targetShape. */ public targetShape?: (string|null); + /** LocationPolicy zones. */ + public zones: google.cloud.compute.v1.ILocationPolicyZoneConfiguration[]; + /** * Creates a new LocationPolicy instance using the specified properties. * @param [properties] Properties to set @@ -122478,6 +124432,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a LocationPolicyZoneConfiguration. */ + interface ILocationPolicyZoneConfiguration { + + /** LocationPolicyZoneConfiguration zone */ + zone?: (string|null); + } + + /** Represents a LocationPolicyZoneConfiguration. */ + class LocationPolicyZoneConfiguration implements ILocationPolicyZoneConfiguration { + + /** + * Constructs a new LocationPolicyZoneConfiguration. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ILocationPolicyZoneConfiguration); + + /** LocationPolicyZoneConfiguration zone. */ + public zone?: (string|null); + + /** + * Creates a new LocationPolicyZoneConfiguration instance using the specified properties. + * @param [properties] Properties to set + * @returns LocationPolicyZoneConfiguration instance + */ + public static create(properties?: google.cloud.compute.v1.ILocationPolicyZoneConfiguration): google.cloud.compute.v1.LocationPolicyZoneConfiguration; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyZoneConfiguration.verify|verify} messages. + * @param message LocationPolicyZoneConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ILocationPolicyZoneConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyZoneConfiguration.verify|verify} messages. + * @param message LocationPolicyZoneConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ILocationPolicyZoneConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LocationPolicyZoneConfiguration + * @throws {Error} If the payload is not a 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.LocationPolicyZoneConfiguration; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LocationPolicyZoneConfiguration + * @throws {Error} If the payload is 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.LocationPolicyZoneConfiguration; + + /** + * Verifies a LocationPolicyZoneConfiguration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a LocationPolicyZoneConfiguration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LocationPolicyZoneConfiguration + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.LocationPolicyZoneConfiguration; + + /** + * Creates a plain object from a LocationPolicyZoneConfiguration message. Also converts values to other types if specified. + * @param message LocationPolicyZoneConfiguration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.LocationPolicyZoneConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LocationPolicyZoneConfiguration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LocationPolicyZoneConfiguration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a MachineImage. */ interface IMachineImage { @@ -122511,6 +124562,9 @@ export namespace google { /** MachineImage name */ name?: (string|null); + /** MachineImage params */ + params?: (google.cloud.compute.v1.IMachineImageParams|null); + /** MachineImage satisfiesPzi */ satisfiesPzi?: (boolean|null); @@ -122581,6 +124635,9 @@ export namespace google { /** MachineImage name. */ public name?: (string|null); + /** MachineImage params. */ + public params?: (google.cloud.compute.v1.IMachineImageParams|null); + /** MachineImage satisfiesPzi. */ public satisfiesPzi?: (boolean|null); @@ -122829,6 +124886,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a MachineImageParams. */ + interface IMachineImageParams { + + /** MachineImageParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a MachineImageParams. */ + class MachineImageParams implements IMachineImageParams { + + /** + * Constructs a new MachineImageParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IMachineImageParams); + + /** MachineImageParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new MachineImageParams instance using the specified properties. + * @param [properties] Properties to set + * @returns MachineImageParams instance + */ + public static create(properties?: google.cloud.compute.v1.IMachineImageParams): google.cloud.compute.v1.MachineImageParams; + + /** + * Encodes the specified MachineImageParams message. Does not implicitly {@link google.cloud.compute.v1.MachineImageParams.verify|verify} messages. + * @param message MachineImageParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IMachineImageParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MachineImageParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.MachineImageParams.verify|verify} messages. + * @param message MachineImageParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IMachineImageParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MachineImageParams + * @throws {Error} If the payload is not a 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.MachineImageParams; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MachineImageParams + * @throws {Error} If the payload is 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.MachineImageParams; + + /** + * Verifies a MachineImageParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MachineImageParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MachineImageParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.MachineImageParams; + + /** + * Creates a plain object from a MachineImageParams message. Also converts values to other types if specified. + * @param message MachineImageParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.MachineImageParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MachineImageParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MachineImageParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a MachineType. */ interface IMachineType { @@ -122838,6 +124992,9 @@ export namespace google { /** MachineType architecture */ architecture?: (string|null); + /** MachineType bundledLocalSsds */ + bundledLocalSsds?: (google.cloud.compute.v1.IBundledLocalSsds|null); + /** MachineType creationTimestamp */ creationTimestamp?: (string|null); @@ -122896,6 +125053,9 @@ export namespace google { /** MachineType architecture. */ public architecture?: (string|null); + /** MachineType bundledLocalSsds. */ + public bundledLocalSsds?: (google.cloud.compute.v1.IBundledLocalSsds|null); + /** MachineType creationTimestamp. */ public creationTimestamp?: (string|null); @@ -128663,6 +130823,9 @@ export namespace google { /** NetworkInterface aliasIpRanges */ aliasIpRanges?: (google.cloud.compute.v1.IAliasIpRange[]|null); + /** NetworkInterface enableVpcScopedDns */ + enableVpcScopedDns?: (boolean|null); + /** NetworkInterface fingerprint */ fingerprint?: (string|null); @@ -128730,6 +130893,9 @@ export namespace google { /** NetworkInterface aliasIpRanges. */ public aliasIpRanges: google.cloud.compute.v1.IAliasIpRange[]; + /** NetworkInterface enableVpcScopedDns. */ + public enableVpcScopedDns?: (boolean|null); + /** NetworkInterface fingerprint. */ public fingerprint?: (string|null); @@ -140974,6 +143140,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchRegionHealthAggregationPolicyRequest. */ + interface IPatchRegionHealthAggregationPolicyRequest { + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy */ + healthAggregationPolicy?: (string|null); + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource */ + healthAggregationPolicyResource?: (google.cloud.compute.v1.IHealthAggregationPolicy|null); + + /** PatchRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** PatchRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** PatchRegionHealthAggregationPolicyRequest requestId */ + requestId?: (string|null); + } + + /** Represents a PatchRegionHealthAggregationPolicyRequest. */ + class PatchRegionHealthAggregationPolicyRequest implements IPatchRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new PatchRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest); + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy. */ + public healthAggregationPolicy: string; + + /** PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. */ + public healthAggregationPolicyResource?: (google.cloud.compute.v1.IHealthAggregationPolicy|null); + + /** PatchRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** PatchRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** PatchRegionHealthAggregationPolicyRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new PatchRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest): google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a 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.PatchRegionHealthAggregationPolicyRequest; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is 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.PatchRegionHealthAggregationPolicyRequest; + + /** + * Verifies a PatchRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PatchRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a PatchRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message PatchRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchRegionHealthCheckRequest. */ interface IPatchRegionHealthCheckRequest { @@ -156686,6 +158973,9 @@ export namespace google { /** Reservation description */ description?: (string|null); + /** Reservation earlyAccessMaintenance */ + earlyAccessMaintenance?: (string|null); + /** Reservation enableEmergentMaintenance */ enableEmergentMaintenance?: (boolean|null); @@ -156701,6 +158991,9 @@ export namespace google { /** Reservation name */ name?: (string|null); + /** Reservation params */ + params?: (google.cloud.compute.v1.IReservationParams|null); + /** Reservation protectionTier */ protectionTier?: (string|null); @@ -156771,6 +159064,9 @@ export namespace google { /** Reservation description. */ public description?: (string|null); + /** Reservation earlyAccessMaintenance. */ + public earlyAccessMaintenance?: (string|null); + /** Reservation enableEmergentMaintenance. */ public enableEmergentMaintenance?: (boolean|null); @@ -156786,6 +159082,9 @@ export namespace google { /** Reservation name. */ public name?: (string|null); + /** Reservation params. */ + public params?: (google.cloud.compute.v1.IReservationParams|null); + /** Reservation protectionTier. */ public protectionTier?: (string|null); @@ -156909,6 +159208,14 @@ export namespace google { DEPLOYMENT_TYPE_UNSPECIFIED = 234847180 } + /** EarlyAccessMaintenance enum. */ + enum EarlyAccessMaintenance { + UNDEFINED_EARLY_ACCESS_MAINTENANCE = 0, + NO_EARLY_ACCESS = 220751774, + WAVE1 = 82367576, + WAVE2 = 82367577 + } + /** ProtectionTier enum. */ enum ProtectionTier { UNDEFINED_PROTECTION_TIER = 0, @@ -158289,6 +160596,721 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationParams. */ + interface IReservationParams { + + /** ReservationParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a ReservationParams. */ + class ReservationParams implements IReservationParams { + + /** + * Constructs a new ReservationParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationParams); + + /** ReservationParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new ReservationParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationParams instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationParams): google.cloud.compute.v1.ReservationParams; + + /** + * Encodes the specified ReservationParams message. Does not implicitly {@link google.cloud.compute.v1.ReservationParams.verify|verify} messages. + * @param message ReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationParams.verify|verify} messages. + * @param message ReservationParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationParams + * @throws {Error} If the payload is not a 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.ReservationParams; + + /** + * Decodes a ReservationParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationParams + * @throws {Error} If the payload is 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.ReservationParams; + + /** + * Verifies a ReservationParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationParams; + + /** + * Creates a plain object from a ReservationParams message. Also converts values to other types if specified. + * @param message ReservationParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlot. */ + interface IReservationSlot { + + /** ReservationSlot creationTimestamp */ + creationTimestamp?: (string|null); + + /** ReservationSlot id */ + id?: (number|Long|string|null); + + /** ReservationSlot kind */ + kind?: (string|null); + + /** ReservationSlot name */ + name?: (string|null); + + /** ReservationSlot physicalTopology */ + physicalTopology?: (google.cloud.compute.v1.IReservationSlotPhysicalTopology|null); + + /** ReservationSlot selfLink */ + selfLink?: (string|null); + + /** ReservationSlot selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** ReservationSlot shareSettings */ + shareSettings?: (google.cloud.compute.v1.IShareSettings|null); + + /** ReservationSlot state */ + state?: (string|null); + + /** ReservationSlot status */ + status?: (google.cloud.compute.v1.IReservationSlotStatus|null); + + /** ReservationSlot zone */ + zone?: (string|null); + } + + /** Represents a ReservationSlot. */ + class ReservationSlot implements IReservationSlot { + + /** + * Constructs a new ReservationSlot. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationSlot); + + /** ReservationSlot creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** ReservationSlot id. */ + public id?: (number|Long|string|null); + + /** ReservationSlot kind. */ + public kind?: (string|null); + + /** ReservationSlot name. */ + public name?: (string|null); + + /** ReservationSlot physicalTopology. */ + public physicalTopology?: (google.cloud.compute.v1.IReservationSlotPhysicalTopology|null); + + /** ReservationSlot selfLink. */ + public selfLink?: (string|null); + + /** ReservationSlot selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** ReservationSlot shareSettings. */ + public shareSettings?: (google.cloud.compute.v1.IShareSettings|null); + + /** ReservationSlot state. */ + public state?: (string|null); + + /** ReservationSlot status. */ + public status?: (google.cloud.compute.v1.IReservationSlotStatus|null); + + /** ReservationSlot zone. */ + public zone?: (string|null); + + /** + * Creates a new ReservationSlot instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlot instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationSlot): google.cloud.compute.v1.ReservationSlot; + + /** + * Encodes the specified ReservationSlot message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlot.verify|verify} messages. + * @param message ReservationSlot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationSlot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlot message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlot.verify|verify} messages. + * @param message ReservationSlot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationSlot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlot message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlot + * @throws {Error} If the payload is not a 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.ReservationSlot; + + /** + * Decodes a ReservationSlot message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlot + * @throws {Error} If the payload is 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.ReservationSlot; + + /** + * Verifies a ReservationSlot message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlot message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlot + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationSlot; + + /** + * Creates a plain object from a ReservationSlot message. Also converts values to other types if specified. + * @param message ReservationSlot + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationSlot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlot to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlot + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationSlot { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + ACTIVE = 314733318, + CREATING = 455564985, + DELETING = 528602024, + STATE_UNSPECIFIED = 470755401, + UNAVAILABLE = 413756464 + } + } + + /** Properties of a ReservationSlotPhysicalTopology. */ + interface IReservationSlotPhysicalTopology { + + /** ReservationSlotPhysicalTopology block */ + block?: (string|null); + + /** ReservationSlotPhysicalTopology cluster */ + cluster?: (string|null); + + /** ReservationSlotPhysicalTopology host */ + host?: (string|null); + + /** ReservationSlotPhysicalTopology subBlock */ + subBlock?: (string|null); + } + + /** Represents a ReservationSlotPhysicalTopology. */ + class ReservationSlotPhysicalTopology implements IReservationSlotPhysicalTopology { + + /** + * Constructs a new ReservationSlotPhysicalTopology. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationSlotPhysicalTopology); + + /** ReservationSlotPhysicalTopology block. */ + public block?: (string|null); + + /** ReservationSlotPhysicalTopology cluster. */ + public cluster?: (string|null); + + /** ReservationSlotPhysicalTopology host. */ + public host?: (string|null); + + /** ReservationSlotPhysicalTopology subBlock. */ + public subBlock?: (string|null); + + /** + * Creates a new ReservationSlotPhysicalTopology instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotPhysicalTopology instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationSlotPhysicalTopology): google.cloud.compute.v1.ReservationSlotPhysicalTopology; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotPhysicalTopology.verify|verify} messages. + * @param message ReservationSlotPhysicalTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationSlotPhysicalTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotPhysicalTopology.verify|verify} messages. + * @param message ReservationSlotPhysicalTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationSlotPhysicalTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotPhysicalTopology + * @throws {Error} If the payload is not a 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.ReservationSlotPhysicalTopology; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotPhysicalTopology + * @throws {Error} If the payload is 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.ReservationSlotPhysicalTopology; + + /** + * Verifies a ReservationSlotPhysicalTopology message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotPhysicalTopology message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotPhysicalTopology + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationSlotPhysicalTopology; + + /** + * Creates a plain object from a ReservationSlotPhysicalTopology message. Also converts values to other types if specified. + * @param message ReservationSlotPhysicalTopology + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationSlotPhysicalTopology, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotPhysicalTopology to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotPhysicalTopology + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlotStatus. */ + interface IReservationSlotStatus { + + /** ReservationSlotStatus physicalTopology */ + physicalTopology?: (google.cloud.compute.v1.IReservationSlotPhysicalTopology|null); + + /** ReservationSlotStatus rdmaIpAddresses */ + rdmaIpAddresses?: (string[]|null); + + /** ReservationSlotStatus runningInstances */ + runningInstances?: (string[]|null); + } + + /** Represents a ReservationSlotStatus. */ + class ReservationSlotStatus implements IReservationSlotStatus { + + /** + * Constructs a new ReservationSlotStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationSlotStatus); + + /** ReservationSlotStatus physicalTopology. */ + public physicalTopology?: (google.cloud.compute.v1.IReservationSlotPhysicalTopology|null); + + /** ReservationSlotStatus rdmaIpAddresses. */ + public rdmaIpAddresses: string[]; + + /** ReservationSlotStatus runningInstances. */ + public runningInstances: string[]; + + /** + * Creates a new ReservationSlotStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotStatus instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationSlotStatus): google.cloud.compute.v1.ReservationSlotStatus; + + /** + * Encodes the specified ReservationSlotStatus message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotStatus.verify|verify} messages. + * @param message ReservationSlotStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationSlotStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotStatus.verify|verify} messages. + * @param message ReservationSlotStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationSlotStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotStatus + * @throws {Error} If the payload is not a 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.ReservationSlotStatus; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotStatus + * @throws {Error} If the payload is 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.ReservationSlotStatus; + + /** + * Verifies a ReservationSlotStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationSlotStatus; + + /** + * Creates a plain object from a ReservationSlotStatus message. Also converts values to other types if specified. + * @param message ReservationSlotStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationSlotStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlotsGetResponse. */ + interface IReservationSlotsGetResponse { + + /** ReservationSlotsGetResponse resource */ + resource?: (google.cloud.compute.v1.IReservationSlot|null); + } + + /** Represents a ReservationSlotsGetResponse. */ + class ReservationSlotsGetResponse implements IReservationSlotsGetResponse { + + /** + * Constructs a new ReservationSlotsGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationSlotsGetResponse); + + /** ReservationSlotsGetResponse resource. */ + public resource?: (google.cloud.compute.v1.IReservationSlot|null); + + /** + * Creates a new ReservationSlotsGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotsGetResponse instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationSlotsGetResponse): google.cloud.compute.v1.ReservationSlotsGetResponse; + + /** + * Encodes the specified ReservationSlotsGetResponse message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetResponse.verify|verify} messages. + * @param message ReservationSlotsGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationSlotsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotsGetResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetResponse.verify|verify} messages. + * @param message ReservationSlotsGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationSlotsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotsGetResponse + * @throws {Error} If the payload is not a 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.ReservationSlotsGetResponse; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotsGetResponse + * @throws {Error} If the payload is 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.ReservationSlotsGetResponse; + + /** + * Verifies a ReservationSlotsGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotsGetResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotsGetResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationSlotsGetResponse; + + /** + * Creates a plain object from a ReservationSlotsGetResponse message. Also converts values to other types if specified. + * @param message ReservationSlotsGetResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationSlotsGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotsGetResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotsGetResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReservationSlotsListResponse. */ + interface IReservationSlotsListResponse { + + /** ReservationSlotsListResponse id */ + id?: (string|null); + + /** ReservationSlotsListResponse items */ + items?: (google.cloud.compute.v1.IReservationSlot[]|null); + + /** ReservationSlotsListResponse kind */ + kind?: (string|null); + + /** ReservationSlotsListResponse nextPageToken */ + nextPageToken?: (string|null); + + /** ReservationSlotsListResponse selfLink */ + selfLink?: (string|null); + + /** ReservationSlotsListResponse warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a ReservationSlotsListResponse. */ + class ReservationSlotsListResponse implements IReservationSlotsListResponse { + + /** + * Constructs a new ReservationSlotsListResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationSlotsListResponse); + + /** ReservationSlotsListResponse id. */ + public id?: (string|null); + + /** ReservationSlotsListResponse items. */ + public items: google.cloud.compute.v1.IReservationSlot[]; + + /** ReservationSlotsListResponse kind. */ + public kind?: (string|null); + + /** ReservationSlotsListResponse nextPageToken. */ + public nextPageToken?: (string|null); + + /** ReservationSlotsListResponse selfLink. */ + public selfLink?: (string|null); + + /** ReservationSlotsListResponse warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new ReservationSlotsListResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotsListResponse instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationSlotsListResponse): google.cloud.compute.v1.ReservationSlotsListResponse; + + /** + * Encodes the specified ReservationSlotsListResponse message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsListResponse.verify|verify} messages. + * @param message ReservationSlotsListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationSlotsListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotsListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsListResponse.verify|verify} messages. + * @param message ReservationSlotsListResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationSlotsListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotsListResponse + * @throws {Error} If the payload is not a 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.ReservationSlotsListResponse; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotsListResponse + * @throws {Error} If the payload is 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.ReservationSlotsListResponse; + + /** + * Verifies a ReservationSlotsListResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotsListResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotsListResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationSlotsListResponse; + + /** + * Creates a plain object from a ReservationSlotsListResponse message. Also converts values to other types if specified. + * @param message ReservationSlotsListResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationSlotsListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotsListResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotsListResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ReservationSubBlock. */ interface IReservationSubBlock { @@ -161180,6 +164202,9 @@ export namespace google { /** Properties of a ResourcePolicyGroupPlacementPolicy. */ interface IResourcePolicyGroupPlacementPolicy { + /** ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode */ + acceleratorTopologyMode?: (string|null); + /** ResourcePolicyGroupPlacementPolicy availabilityDomainCount */ availabilityDomainCount?: (number|null); @@ -161202,6 +164227,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IResourcePolicyGroupPlacementPolicy); + /** ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode. */ + public acceleratorTopologyMode?: (string|null); + /** ResourcePolicyGroupPlacementPolicy availabilityDomainCount. */ public availabilityDomainCount?: (number|null); @@ -161294,6 +164322,13 @@ export namespace google { namespace ResourcePolicyGroupPlacementPolicy { + /** AcceleratorTopologyMode enum. */ + enum AcceleratorTopologyMode { + UNDEFINED_ACCELERATOR_TOPOLOGY_MODE = 0, + AUTO_CONNECT = 491872826, + PROVISION_ONLY = 399134966 + } + /** Collocation enum. */ enum Collocation { UNDEFINED_COLLOCATION = 0, @@ -162903,6 +165938,9 @@ export namespace google { /** ResourceStatusEffectiveInstanceMetadata enableOsloginMetadataValue */ enableOsloginMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue */ + gceContainerDeclarationMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue */ serialPortEnableMetadataValue?: (boolean|null); @@ -162937,6 +165975,9 @@ export namespace google { /** ResourceStatusEffectiveInstanceMetadata enableOsloginMetadataValue. */ public enableOsloginMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue. */ + public gceContainerDeclarationMetadataValue?: (boolean|null); + /** ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue. */ public serialPortEnableMetadataValue?: (boolean|null); @@ -194082,6 +197123,9 @@ export namespace google { /** Subnetwork reservedInternalRange */ reservedInternalRange?: (string|null); + /** Subnetwork resolveSubnetMask */ + resolveSubnetMask?: (string|null); + /** Subnetwork role */ role?: (string|null); @@ -194188,6 +197232,9 @@ export namespace google { /** Subnetwork reservedInternalRange. */ public reservedInternalRange?: (string|null); + /** Subnetwork resolveSubnetMask. */ + public resolveSubnetMask?: (string|null); + /** Subnetwork role. */ public role?: (string|null); @@ -194328,6 +197375,13 @@ export namespace google { REGIONAL_MANAGED_PROXY = 153049966 } + /** ResolveSubnetMask enum. */ + enum ResolveSubnetMask { + UNDEFINED_RESOLVE_SUBNET_MASK = 0, + ARP_ALL_RANGES = 445655380, + ARP_PRIMARY_RANGE = 120210048 + } + /** Role enum. */ enum Role { UNDEFINED_ROLE = 0, @@ -201313,6 +204367,9 @@ export namespace google { /** TargetVpnGateway network */ network?: (string|null); + /** TargetVpnGateway params */ + params?: (google.cloud.compute.v1.ITargetVpnGatewayParams|null); + /** TargetVpnGateway region */ region?: (string|null); @@ -201362,6 +204419,9 @@ export namespace google { /** TargetVpnGateway network. */ public network?: (string|null); + /** TargetVpnGateway params. */ + public params?: (google.cloud.compute.v1.ITargetVpnGatewayParams|null); + /** TargetVpnGateway region. */ public region?: (string|null); @@ -201724,6 +204784,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TargetVpnGatewayParams. */ + interface ITargetVpnGatewayParams { + + /** TargetVpnGatewayParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a TargetVpnGatewayParams. */ + class TargetVpnGatewayParams implements ITargetVpnGatewayParams { + + /** + * Constructs a new TargetVpnGatewayParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITargetVpnGatewayParams); + + /** TargetVpnGatewayParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new TargetVpnGatewayParams instance using the specified properties. + * @param [properties] Properties to set + * @returns TargetVpnGatewayParams instance + */ + public static create(properties?: google.cloud.compute.v1.ITargetVpnGatewayParams): google.cloud.compute.v1.TargetVpnGatewayParams; + + /** + * Encodes the specified TargetVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1.TargetVpnGatewayParams.verify|verify} messages. + * @param message TargetVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITargetVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TargetVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TargetVpnGatewayParams.verify|verify} messages. + * @param message TargetVpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITargetVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TargetVpnGatewayParams + * @throws {Error} If the payload is not a 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.TargetVpnGatewayParams; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TargetVpnGatewayParams + * @throws {Error} If the payload is 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.TargetVpnGatewayParams; + + /** + * Verifies a TargetVpnGatewayParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TargetVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TargetVpnGatewayParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TargetVpnGatewayParams; + + /** + * Creates a plain object from a TargetVpnGatewayParams message. Also converts values to other types if specified. + * @param message TargetVpnGatewayParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TargetVpnGatewayParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TargetVpnGatewayParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TargetVpnGatewayParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TargetVpnGatewaysScopedList. */ interface ITargetVpnGatewaysScopedList { @@ -205211,6 +208368,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. */ + interface ITestIamPermissionsRegionHealthAggregationPolicyRequest { + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. */ + class TestIamPermissionsRegionHealthAggregationPolicyRequest implements ITestIamPermissionsRegionHealthAggregationPolicyRequest { + + /** + * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest); + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest project. */ + public project: string; + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest region. */ + public region: string; + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest): google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a 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.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is 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.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Verifies a TestIamPermissionsRegionHealthAggregationPolicyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionHealthAggregationPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionHealthAggregationPolicyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionHealthAggregationPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionHealthCheckRequest. */ interface ITestIamPermissionsRegionHealthCheckRequest { @@ -205326,6 +208598,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. */ + interface ITestIamPermissionsRegionHealthCheckServiceRequest { + + /** TestIamPermissionsRegionHealthCheckServiceRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionHealthCheckServiceRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionHealthCheckServiceRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionHealthCheckServiceRequest. */ + class TestIamPermissionsRegionHealthCheckServiceRequest implements ITestIamPermissionsRegionHealthCheckServiceRequest { + + /** + * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest); + + /** TestIamPermissionsRegionHealthCheckServiceRequest project. */ + public project: string; + + /** TestIamPermissionsRegionHealthCheckServiceRequest region. */ + public region: string; + + /** TestIamPermissionsRegionHealthCheckServiceRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionHealthCheckServiceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest): google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest; + + /** + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionHealthCheckServiceRequest + * @throws {Error} If the payload is not a 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.TestIamPermissionsRegionHealthCheckServiceRequest; + + /** + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionHealthCheckServiceRequest + * @throws {Error} If the payload is 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.TestIamPermissionsRegionHealthCheckServiceRequest; + + /** + * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionHealthCheckServiceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionHealthCheckServiceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionHealthCheckServiceRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionHealthCheckServiceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionInstanceGroupRequest. */ interface ITestIamPermissionsRegionInstanceGroupRequest { @@ -210809,6 +214196,133 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpdateReservationSlotRequest. */ + interface IUpdateReservationSlotRequest { + + /** UpdateReservationSlotRequest parentName */ + parentName?: (string|null); + + /** UpdateReservationSlotRequest project */ + project?: (string|null); + + /** UpdateReservationSlotRequest reservationSlot */ + reservationSlot?: (string|null); + + /** UpdateReservationSlotRequest reservationSlotResource */ + reservationSlotResource?: (google.cloud.compute.v1.IReservationSlot|null); + + /** UpdateReservationSlotRequest updateMask */ + updateMask?: (string|null); + + /** UpdateReservationSlotRequest zone */ + zone?: (string|null); + } + + /** Represents an UpdateReservationSlotRequest. */ + class UpdateReservationSlotRequest implements IUpdateReservationSlotRequest { + + /** + * Constructs a new UpdateReservationSlotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateReservationSlotRequest); + + /** UpdateReservationSlotRequest parentName. */ + public parentName: string; + + /** UpdateReservationSlotRequest project. */ + public project: string; + + /** UpdateReservationSlotRequest reservationSlot. */ + public reservationSlot: string; + + /** UpdateReservationSlotRequest reservationSlotResource. */ + public reservationSlotResource?: (google.cloud.compute.v1.IReservationSlot|null); + + /** UpdateReservationSlotRequest updateMask. */ + public updateMask?: (string|null); + + /** UpdateReservationSlotRequest zone. */ + public zone: string; + + /** + * Creates a new UpdateReservationSlotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateReservationSlotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateReservationSlotRequest): google.cloud.compute.v1.UpdateReservationSlotRequest; + + /** + * Encodes the specified UpdateReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationSlotRequest.verify|verify} messages. + * @param message UpdateReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationSlotRequest.verify|verify} messages. + * @param message UpdateReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateReservationSlotRequest + * @throws {Error} If the payload is not a 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.UpdateReservationSlotRequest; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateReservationSlotRequest + * @throws {Error} If the payload is 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.UpdateReservationSlotRequest; + + /** + * Verifies an UpdateReservationSlotRequest message. + * @param message Plain 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 UpdateReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateReservationSlotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateReservationSlotRequest; + + /** + * Creates a plain object from an UpdateReservationSlotRequest message. Also converts values to other types if specified. + * @param message UpdateReservationSlotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateReservationSlotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateReservationSlotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateReservationSlotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UpdateRoutePolicyRouterRequest. */ interface IUpdateRoutePolicyRouterRequest { @@ -214004,6 +217518,9 @@ export namespace google { /** VpnGateway network */ network?: (string|null); + /** VpnGateway params */ + params?: (google.cloud.compute.v1.IVpnGatewayParams|null); + /** VpnGateway region */ region?: (string|null); @@ -214053,6 +217570,9 @@ export namespace google { /** VpnGateway network. */ public network?: (string|null); + /** VpnGateway params. */ + public params?: (google.cloud.compute.v1.IVpnGatewayParams|null); + /** VpnGateway region. */ public region?: (string|null); @@ -214421,6 +217941,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a VpnGatewayParams. */ + interface IVpnGatewayParams { + + /** VpnGatewayParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a VpnGatewayParams. */ + class VpnGatewayParams implements IVpnGatewayParams { + + /** + * Constructs a new VpnGatewayParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IVpnGatewayParams); + + /** VpnGatewayParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new VpnGatewayParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VpnGatewayParams instance + */ + public static create(properties?: google.cloud.compute.v1.IVpnGatewayParams): google.cloud.compute.v1.VpnGatewayParams; + + /** + * Encodes the specified VpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1.VpnGatewayParams.verify|verify} messages. + * @param message VpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.VpnGatewayParams.verify|verify} messages. + * @param message VpnGatewayParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IVpnGatewayParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VpnGatewayParams + * @throws {Error} If the payload is not a 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.VpnGatewayParams; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VpnGatewayParams + * @throws {Error} If the payload is 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.VpnGatewayParams; + + /** + * Verifies a VpnGatewayParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VpnGatewayParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.VpnGatewayParams; + + /** + * Creates a plain object from a VpnGatewayParams message. Also converts values to other types if specified. + * @param message VpnGatewayParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.VpnGatewayParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VpnGatewayParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VpnGatewayParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a VpnGatewayStatus. */ interface IVpnGatewayStatus { @@ -215212,6 +218829,9 @@ export namespace google { /** VpnTunnel name */ name?: (string|null); + /** VpnTunnel params */ + params?: (google.cloud.compute.v1.IVpnTunnelParams|null); + /** VpnTunnel peerExternalGateway */ peerExternalGateway?: (string|null); @@ -215297,6 +218917,9 @@ export namespace google { /** VpnTunnel name. */ public name?: (string|null); + /** VpnTunnel params. */ + public params?: (google.cloud.compute.v1.IVpnTunnelParams|null); + /** VpnTunnel peerExternalGateway. */ public peerExternalGateway?: (string|null); @@ -215801,6 +219424,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a VpnTunnelParams. */ + interface IVpnTunnelParams { + + /** VpnTunnelParams resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + } + + /** Represents a VpnTunnelParams. */ + class VpnTunnelParams implements IVpnTunnelParams { + + /** + * Constructs a new VpnTunnelParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IVpnTunnelParams); + + /** VpnTunnelParams resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + + /** + * Creates a new VpnTunnelParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VpnTunnelParams instance + */ + public static create(properties?: google.cloud.compute.v1.IVpnTunnelParams): google.cloud.compute.v1.VpnTunnelParams; + + /** + * Encodes the specified VpnTunnelParams message. Does not implicitly {@link google.cloud.compute.v1.VpnTunnelParams.verify|verify} messages. + * @param message VpnTunnelParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IVpnTunnelParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VpnTunnelParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.VpnTunnelParams.verify|verify} messages. + * @param message VpnTunnelParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IVpnTunnelParams, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VpnTunnelParams + * @throws {Error} If the payload is not a 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.VpnTunnelParams; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VpnTunnelParams + * @throws {Error} If the payload is 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.VpnTunnelParams; + + /** + * Verifies a VpnTunnelParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a VpnTunnelParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VpnTunnelParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.VpnTunnelParams; + + /** + * Creates a plain object from a VpnTunnelParams message. Also converts values to other types if specified. + * @param message VpnTunnelParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.VpnTunnelParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VpnTunnelParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VpnTunnelParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a VpnTunnelPhase1Algorithms. */ interface IVpnTunnelPhase1Algorithms { @@ -218332,6 +222052,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a WorkloadIdentityConfig. */ + interface IWorkloadIdentityConfig { + + /** WorkloadIdentityConfig identity */ + identity?: (string|null); + + /** WorkloadIdentityConfig identityCertificateEnabled */ + identityCertificateEnabled?: (boolean|null); + } + + /** Represents a WorkloadIdentityConfig. */ + class WorkloadIdentityConfig implements IWorkloadIdentityConfig { + + /** + * Constructs a new WorkloadIdentityConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IWorkloadIdentityConfig); + + /** WorkloadIdentityConfig identity. */ + public identity?: (string|null); + + /** WorkloadIdentityConfig identityCertificateEnabled. */ + public identityCertificateEnabled?: (boolean|null); + + /** + * Creates a new WorkloadIdentityConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkloadIdentityConfig instance + */ + public static create(properties?: google.cloud.compute.v1.IWorkloadIdentityConfig): google.cloud.compute.v1.WorkloadIdentityConfig; + + /** + * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.cloud.compute.v1.WorkloadIdentityConfig.verify|verify} messages. + * @param message WorkloadIdentityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.WorkloadIdentityConfig.verify|verify} messages. + * @param message WorkloadIdentityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkloadIdentityConfig + * @throws {Error} If the payload is not a 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.WorkloadIdentityConfig; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkloadIdentityConfig + * @throws {Error} If the payload is 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.WorkloadIdentityConfig; + + /** + * Verifies a WorkloadIdentityConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkloadIdentityConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.WorkloadIdentityConfig; + + /** + * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified. + * @param message WorkloadIdentityConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.WorkloadIdentityConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkloadIdentityConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkloadIdentityConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a XpnHostList. */ interface IXpnHostList { @@ -231673,6 +235496,177 @@ export namespace google { type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents a RegionHealthAggregationPolicies */ + class RegionHealthAggregationPolicies extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionHealthAggregationPolicies service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RegionHealthAggregationPolicies service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionHealthAggregationPolicies; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthAggregationPolicyAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest, callback: google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1.RegionHealthAggregationPolicies.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthAggregationPolicy + */ + public get(request: google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1.RegionHealthAggregationPolicies.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1.RegionHealthAggregationPolicies.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls List. + * @param request ListRegionHealthAggregationPoliciesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthAggregationPolicyList + */ + public list(request: google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, callback: google.cloud.compute.v1.RegionHealthAggregationPolicies.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionHealthAggregationPoliciesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest): Promise; + + /** + * Calls Patch. + * @param request PatchRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patch(request: google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1.RegionHealthAggregationPolicies.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest, callback: google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest): Promise; + } + + namespace RegionHealthAggregationPolicies { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|aggregatedList}. + * @param error Error, if any + * @param [response] HealthAggregationPolicyAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthAggregationPolicyAggregatedList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|get}. + * @param error Error, if any + * @param [response] HealthAggregationPolicy + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthAggregationPolicy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|list}. + * @param error Error, if any + * @param [response] HealthAggregationPolicyList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthAggregationPolicyList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|patch}. + * @param error Error, if any + * @param [response] Operation + */ + type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a RegionHealthCheckServices */ class RegionHealthCheckServices extends $protobuf.rpc.Service { @@ -231762,6 +235756,20 @@ export namespace google { * @returns Promise */ public patch(request: google.cloud.compute.v1.IPatchRegionHealthCheckServiceRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthCheckServiceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest, callback: google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthCheckServiceRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest): Promise; } namespace RegionHealthCheckServices { @@ -231800,6 +235808,13 @@ export namespace google { * @param [response] Operation */ type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthCheckServices|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; } /** Represents a RegionHealthChecks */ @@ -235075,6 +239090,93 @@ export namespace google { type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; } + /** Represents a ReservationSlots */ + class ReservationSlots extends $protobuf.rpc.Service { + + /** + * Constructs a new ReservationSlots service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ReservationSlots service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ReservationSlots; + + /** + * Calls Get. + * @param request GetReservationSlotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReservationSlotsGetResponse + */ + public get(request: google.cloud.compute.v1.IGetReservationSlotRequest, callback: google.cloud.compute.v1.ReservationSlots.GetCallback): void; + + /** + * Calls Get. + * @param request GetReservationSlotRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetReservationSlotRequest): Promise; + + /** + * Calls List. + * @param request ListReservationSlotsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReservationSlotsListResponse + */ + public list(request: google.cloud.compute.v1.IListReservationSlotsRequest, callback: google.cloud.compute.v1.ReservationSlots.ListCallback): void; + + /** + * Calls List. + * @param request ListReservationSlotsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListReservationSlotsRequest): Promise; + + /** + * Calls Update. + * @param request UpdateReservationSlotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public update(request: google.cloud.compute.v1.IUpdateReservationSlotRequest, callback: google.cloud.compute.v1.ReservationSlots.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateReservationSlotRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1.IUpdateReservationSlotRequest): Promise; + } + + namespace ReservationSlots { + + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|get}. + * @param error Error, if any + * @param [response] ReservationSlotsGetResponse + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.ReservationSlotsGetResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|list}. + * @param error Error, if any + * @param [response] ReservationSlotsListResponse + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.ReservationSlotsListResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + } + /** Represents a ReservationSubBlocks */ class ReservationSubBlocks extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index ba409bccf9d..9e5178c2a53 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -26485,31 +26485,31 @@ return AggregatedListRegionCommitmentsRequest; })(); - v1.AggregatedListReservationsRequest = (function() { + v1.AggregatedListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of an AggregatedListReservationsRequest. + * Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListReservationsRequest - * @property {string|null} [filter] AggregatedListReservationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken - * @property {string|null} [project] AggregatedListReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListReservationsRequest serviceProjectNumber + * @interface IAggregatedListRegionHealthAggregationPoliciesRequest + * @property {string|null} [filter] AggregatedListRegionHealthAggregationPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthAggregationPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthAggregationPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthAggregationPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthAggregationPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListReservationsRequest. + * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListReservationsRequest. - * @implements IAggregatedListReservationsRequest + * @classdesc Represents an AggregatedListRegionHealthAggregationPoliciesRequest. + * @implements IAggregatedListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function AggregatedListReservationsRequest(properties) { + function AggregatedListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26517,136 +26517,136 @@ } /** - * AggregatedListReservationsRequest filter. + * AggregatedListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.filter = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * AggregatedListReservationsRequest includeAllScopes. + * AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListReservationsRequest maxResults. + * AggregatedListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.maxResults = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListReservationsRequest orderBy. + * AggregatedListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.orderBy = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListReservationsRequest pageToken. + * AggregatedListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.pageToken = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListReservationsRequest project. + * AggregatedListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.project = ""; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * AggregatedListReservationsRequest returnPartialSuccess. + * AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListReservationsRequest serviceProjectNumber. + * AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListReservationsRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListReservationsRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest instance */ - AggregatedListReservationsRequest.create = function create(properties) { - return new AggregatedListReservationsRequest(properties); + AggregatedListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new AggregatedListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthAggregationPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -26669,33 +26669,33 @@ }; /** - * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decode = function decode(reader, length, error) { + AggregatedListRegionHealthAggregationPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -26742,30 +26742,30 @@ }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionHealthAggregationPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListReservationsRequest message. + * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListReservationsRequest.verify = function verify(message) { + AggregatedListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26811,17 +26811,17 @@ }; /** - * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest */ - AggregatedListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) + AggregatedListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26849,15 +26849,15 @@ }; /** - * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest + * @param {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListReservationsRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26907,59 +26907,59 @@ }; /** - * Converts this AggregatedListReservationsRequest to JSON. + * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListReservationsRequest + * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest"; }; - return AggregatedListReservationsRequest; + return AggregatedListRegionHealthAggregationPoliciesRequest; })(); - v1.AggregatedListResourcePoliciesRequest = (function() { + v1.AggregatedListReservationsRequest = (function() { /** - * Properties of an AggregatedListResourcePoliciesRequest. + * Properties of an AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListResourcePoliciesRequest - * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken - * @property {string|null} [project] AggregatedListResourcePoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListResourcePoliciesRequest serviceProjectNumber + * @interface IAggregatedListReservationsRequest + * @property {string|null} [filter] AggregatedListReservationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken + * @property {string|null} [project] AggregatedListReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListReservationsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListResourcePoliciesRequest. + * Constructs a new AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListResourcePoliciesRequest. - * @implements IAggregatedListResourcePoliciesRequest + * @classdesc Represents an AggregatedListReservationsRequest. + * @implements IAggregatedListReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set */ - function AggregatedListResourcePoliciesRequest(properties) { + function AggregatedListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26967,136 +26967,136 @@ } /** - * AggregatedListResourcePoliciesRequest filter. + * AggregatedListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.filter = null; + AggregatedListReservationsRequest.prototype.filter = null; /** - * AggregatedListResourcePoliciesRequest includeAllScopes. + * AggregatedListReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; + AggregatedListReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListResourcePoliciesRequest maxResults. + * AggregatedListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.maxResults = null; + AggregatedListReservationsRequest.prototype.maxResults = null; /** - * AggregatedListResourcePoliciesRequest orderBy. + * AggregatedListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.orderBy = null; + AggregatedListReservationsRequest.prototype.orderBy = null; /** - * AggregatedListResourcePoliciesRequest pageToken. + * AggregatedListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.pageToken = null; + AggregatedListReservationsRequest.prototype.pageToken = null; /** - * AggregatedListResourcePoliciesRequest project. + * AggregatedListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.project = ""; + AggregatedListReservationsRequest.prototype.project = ""; /** - * AggregatedListResourcePoliciesRequest returnPartialSuccess. + * AggregatedListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListResourcePoliciesRequest serviceProjectNumber. + * AggregatedListReservationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListReservationsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. + * Creates a new AggregatedListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance */ - AggregatedListResourcePoliciesRequest.create = function create(properties) { - return new AggregatedListResourcePoliciesRequest(properties); + AggregatedListReservationsRequest.create = function create(properties) { + return new AggregatedListReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { + AggregatedListReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -27119,33 +27119,33 @@ }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListReservationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -27192,30 +27192,30 @@ }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListResourcePoliciesRequest message. + * Verifies an AggregatedListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListResourcePoliciesRequest.verify = function verify(message) { + AggregatedListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27261,17 +27261,17 @@ }; /** - * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest */ - AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) + AggregatedListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27299,15 +27299,15 @@ }; /** - * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { + AggregatedListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27357,59 +27357,59 @@ }; /** - * Converts this AggregatedListResourcePoliciesRequest to JSON. + * Converts this AggregatedListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListResourcePoliciesRequest + * Gets the default type url for AggregatedListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; }; - return AggregatedListResourcePoliciesRequest; + return AggregatedListReservationsRequest; })(); - v1.AggregatedListRoutersRequest = (function() { + v1.AggregatedListResourcePoliciesRequest = (function() { /** - * Properties of an AggregatedListRoutersRequest. + * Properties of an AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListRoutersRequest - * @property {string|null} [filter] AggregatedListRoutersRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults - * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy - * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken - * @property {string|null} [project] AggregatedListRoutersRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRoutersRequest serviceProjectNumber + * @interface IAggregatedListResourcePoliciesRequest + * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken + * @property {string|null} [project] AggregatedListResourcePoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListResourcePoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRoutersRequest. + * Constructs a new AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRoutersRequest. - * @implements IAggregatedListRoutersRequest + * @classdesc Represents an AggregatedListResourcePoliciesRequest. + * @implements IAggregatedListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set */ - function AggregatedListRoutersRequest(properties) { + function AggregatedListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27417,136 +27417,136 @@ } /** - * AggregatedListRoutersRequest filter. + * AggregatedListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.filter = null; + AggregatedListResourcePoliciesRequest.prototype.filter = null; /** - * AggregatedListRoutersRequest includeAllScopes. + * AggregatedListResourcePoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.includeAllScopes = null; + AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRoutersRequest maxResults. + * AggregatedListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.maxResults = null; + AggregatedListResourcePoliciesRequest.prototype.maxResults = null; /** - * AggregatedListRoutersRequest orderBy. + * AggregatedListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.orderBy = null; + AggregatedListResourcePoliciesRequest.prototype.orderBy = null; /** - * AggregatedListRoutersRequest pageToken. + * AggregatedListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.pageToken = null; + AggregatedListResourcePoliciesRequest.prototype.pageToken = null; /** - * AggregatedListRoutersRequest project. + * AggregatedListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.project = ""; + AggregatedListResourcePoliciesRequest.prototype.project = ""; /** - * AggregatedListRoutersRequest returnPartialSuccess. + * AggregatedListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; + AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRoutersRequest serviceProjectNumber. + * AggregatedListResourcePoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.serviceProjectNumber = null; + AggregatedListResourcePoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRoutersRequest instance using the specified properties. + * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance */ - AggregatedListRoutersRequest.create = function create(properties) { - return new AggregatedListRoutersRequest(properties); + AggregatedListResourcePoliciesRequest.create = function create(properties) { + return new AggregatedListResourcePoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encode = function encode(message, writer) { + AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -27569,33 +27569,33 @@ }; /** - * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decode = function decode(reader, length, error) { + AggregatedListResourcePoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -27642,30 +27642,30 @@ }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRoutersRequest message. + * Verifies an AggregatedListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRoutersRequest.verify = function verify(message) { + AggregatedListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27711,17 +27711,17 @@ }; /** - * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest */ - AggregatedListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) + AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27749,15 +27749,15 @@ }; /** - * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest + * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRoutersRequest.toObject = function toObject(message, options) { + AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27807,59 +27807,59 @@ }; /** - * Converts this AggregatedListRoutersRequest to JSON. + * Converts this AggregatedListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { + AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRoutersRequest + * Gets the default type url for AggregatedListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; }; - return AggregatedListRoutersRequest; + return AggregatedListResourcePoliciesRequest; })(); - v1.AggregatedListSecurityPoliciesRequest = (function() { + v1.AggregatedListRoutersRequest = (function() { /** - * Properties of an AggregatedListSecurityPoliciesRequest. + * Properties of an AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSecurityPoliciesRequest - * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSecurityPoliciesRequest serviceProjectNumber + * @interface IAggregatedListRoutersRequest + * @property {string|null} [filter] AggregatedListRoutersRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults + * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy + * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken + * @property {string|null} [project] AggregatedListRoutersRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRoutersRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSecurityPoliciesRequest. + * Constructs a new AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSecurityPoliciesRequest. - * @implements IAggregatedListSecurityPoliciesRequest + * @classdesc Represents an AggregatedListRoutersRequest. + * @implements IAggregatedListRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set */ - function AggregatedListSecurityPoliciesRequest(properties) { + function AggregatedListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27867,136 +27867,136 @@ } /** - * AggregatedListSecurityPoliciesRequest filter. + * AggregatedListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.filter = null; + AggregatedListRoutersRequest.prototype.filter = null; /** - * AggregatedListSecurityPoliciesRequest includeAllScopes. + * AggregatedListRoutersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRoutersRequest.prototype.includeAllScopes = null; /** - * AggregatedListSecurityPoliciesRequest maxResults. + * AggregatedListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; + AggregatedListRoutersRequest.prototype.maxResults = null; /** - * AggregatedListSecurityPoliciesRequest orderBy. + * AggregatedListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; + AggregatedListRoutersRequest.prototype.orderBy = null; /** - * AggregatedListSecurityPoliciesRequest pageToken. + * AggregatedListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; + AggregatedListRoutersRequest.prototype.pageToken = null; /** - * AggregatedListSecurityPoliciesRequest project. + * AggregatedListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.project = ""; + AggregatedListRoutersRequest.prototype.project = ""; /** - * AggregatedListSecurityPoliciesRequest returnPartialSuccess. + * AggregatedListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSecurityPoliciesRequest serviceProjectNumber. + * AggregatedListRoutersRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRoutersRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance */ - AggregatedListSecurityPoliciesRequest.create = function create(properties) { - return new AggregatedListSecurityPoliciesRequest(properties); + AggregatedListRoutersRequest.create = function create(properties) { + return new AggregatedListRoutersRequest(properties); }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28019,33 +28019,33 @@ }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListRoutersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28092,30 +28092,30 @@ }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSecurityPoliciesRequest message. + * Verifies an AggregatedListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSecurityPoliciesRequest.verify = function verify(message) { + AggregatedListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -28161,17 +28161,17 @@ }; /** - * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest */ - AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) + AggregatedListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -28199,15 +28199,15 @@ }; /** - * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28257,59 +28257,59 @@ }; /** - * Converts this AggregatedListSecurityPoliciesRequest to JSON. + * Converts this AggregatedListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSecurityPoliciesRequest + * Gets the default type url for AggregatedListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; }; - return AggregatedListSecurityPoliciesRequest; + return AggregatedListRoutersRequest; })(); - v1.AggregatedListServiceAttachmentsRequest = (function() { + v1.AggregatedListSecurityPoliciesRequest = (function() { /** - * Properties of an AggregatedListServiceAttachmentsRequest. + * Properties of an AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListServiceAttachmentsRequest - * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListServiceAttachmentsRequest serviceProjectNumber + * @interface IAggregatedListSecurityPoliciesRequest + * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSecurityPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListServiceAttachmentsRequest. + * Constructs a new AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListServiceAttachmentsRequest. - * @implements IAggregatedListServiceAttachmentsRequest + * @classdesc Represents an AggregatedListSecurityPoliciesRequest. + * @implements IAggregatedListSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set */ - function AggregatedListServiceAttachmentsRequest(properties) { + function AggregatedListSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28317,136 +28317,136 @@ } /** - * AggregatedListServiceAttachmentsRequest filter. + * AggregatedListSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.filter = null; + AggregatedListSecurityPoliciesRequest.prototype.filter = null; /** - * AggregatedListServiceAttachmentsRequest includeAllScopes. + * AggregatedListSecurityPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListServiceAttachmentsRequest maxResults. + * AggregatedListSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; + AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListServiceAttachmentsRequest orderBy. + * AggregatedListSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; + AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListServiceAttachmentsRequest pageToken. + * AggregatedListSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; + AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListServiceAttachmentsRequest project. + * AggregatedListSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.project = ""; + AggregatedListSecurityPoliciesRequest.prototype.project = ""; /** - * AggregatedListServiceAttachmentsRequest returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListServiceAttachmentsRequest serviceProjectNumber. + * AggregatedListSecurityPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.serviceProjectNumber = null; + AggregatedListSecurityPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance */ - AggregatedListServiceAttachmentsRequest.create = function create(properties) { - return new AggregatedListServiceAttachmentsRequest(properties); + AggregatedListSecurityPoliciesRequest.create = function create(properties) { + return new AggregatedListSecurityPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28469,33 +28469,33 @@ }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length, error) { + AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28542,30 +28542,30 @@ }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListServiceAttachmentsRequest message. + * Verifies an AggregatedListSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListServiceAttachmentsRequest.verify = function verify(message) { + AggregatedListSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -28611,17 +28611,17 @@ }; /** - * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest */ - AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) + AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -28649,15 +28649,15 @@ }; /** - * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28707,59 +28707,59 @@ }; /** - * Converts this AggregatedListServiceAttachmentsRequest to JSON. + * Converts this AggregatedListSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListServiceAttachmentsRequest + * Gets the default type url for AggregatedListSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; }; - return AggregatedListServiceAttachmentsRequest; + return AggregatedListSecurityPoliciesRequest; })(); - v1.AggregatedListSslCertificatesRequest = (function() { + v1.AggregatedListServiceAttachmentsRequest = (function() { /** - * Properties of an AggregatedListSslCertificatesRequest. + * Properties of an AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSslCertificatesRequest - * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken - * @property {string|null} [project] AggregatedListSslCertificatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslCertificatesRequest serviceProjectNumber + * @interface IAggregatedListServiceAttachmentsRequest + * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListServiceAttachmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSslCertificatesRequest. + * Constructs a new AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslCertificatesRequest. - * @implements IAggregatedListSslCertificatesRequest + * @classdesc Represents an AggregatedListServiceAttachmentsRequest. + * @implements IAggregatedListServiceAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListSslCertificatesRequest(properties) { + function AggregatedListServiceAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28767,136 +28767,136 @@ } /** - * AggregatedListSslCertificatesRequest filter. + * AggregatedListServiceAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.filter = null; + AggregatedListServiceAttachmentsRequest.prototype.filter = null; /** - * AggregatedListSslCertificatesRequest includeAllScopes. + * AggregatedListServiceAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; + AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslCertificatesRequest maxResults. + * AggregatedListServiceAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.maxResults = null; + AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListSslCertificatesRequest orderBy. + * AggregatedListServiceAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.orderBy = null; + AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListSslCertificatesRequest pageToken. + * AggregatedListServiceAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.pageToken = null; + AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListSslCertificatesRequest project. + * AggregatedListServiceAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.project = ""; + AggregatedListServiceAttachmentsRequest.prototype.project = ""; /** - * AggregatedListSslCertificatesRequest returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; + AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslCertificatesRequest serviceProjectNumber. + * AggregatedListServiceAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.serviceProjectNumber = null; + AggregatedListServiceAttachmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. + * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance */ - AggregatedListSslCertificatesRequest.create = function create(properties) { - return new AggregatedListSslCertificatesRequest(properties); + AggregatedListServiceAttachmentsRequest.create = function create(properties) { + return new AggregatedListServiceAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { + AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28919,33 +28919,33 @@ }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decode = function decode(reader, length, error) { + AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28992,30 +28992,30 @@ }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslCertificatesRequest message. + * Verifies an AggregatedListServiceAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslCertificatesRequest.verify = function verify(message) { + AggregatedListServiceAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29061,17 +29061,17 @@ }; /** - * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest */ - AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) + AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29099,15 +29099,15 @@ }; /** - * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest + * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { + AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -29157,59 +29157,59 @@ }; /** - * Converts this AggregatedListSslCertificatesRequest to JSON. + * Converts this AggregatedListServiceAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { + AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslCertificatesRequest + * Gets the default type url for AggregatedListServiceAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; }; - return AggregatedListSslCertificatesRequest; + return AggregatedListServiceAttachmentsRequest; })(); - v1.AggregatedListSslPoliciesRequest = (function() { + v1.AggregatedListSslCertificatesRequest = (function() { /** - * Properties of an AggregatedListSslPoliciesRequest. + * Properties of an AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSslPoliciesRequest - * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSslPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslPoliciesRequest serviceProjectNumber + * @interface IAggregatedListSslCertificatesRequest + * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken + * @property {string|null} [project] AggregatedListSslCertificatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslCertificatesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSslPoliciesRequest. + * Constructs a new AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslPoliciesRequest. - * @implements IAggregatedListSslPoliciesRequest + * @classdesc Represents an AggregatedListSslCertificatesRequest. + * @implements IAggregatedListSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set */ - function AggregatedListSslPoliciesRequest(properties) { + function AggregatedListSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29217,136 +29217,136 @@ } /** - * AggregatedListSslPoliciesRequest filter. + * AggregatedListSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.filter = null; + AggregatedListSslCertificatesRequest.prototype.filter = null; /** - * AggregatedListSslPoliciesRequest includeAllScopes. + * AggregatedListSslCertificatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslPoliciesRequest maxResults. + * AggregatedListSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.maxResults = null; + AggregatedListSslCertificatesRequest.prototype.maxResults = null; /** - * AggregatedListSslPoliciesRequest orderBy. + * AggregatedListSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.orderBy = null; + AggregatedListSslCertificatesRequest.prototype.orderBy = null; /** - * AggregatedListSslPoliciesRequest pageToken. + * AggregatedListSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.pageToken = null; + AggregatedListSslCertificatesRequest.prototype.pageToken = null; /** - * AggregatedListSslPoliciesRequest project. + * AggregatedListSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.project = ""; + AggregatedListSslCertificatesRequest.prototype.project = ""; /** - * AggregatedListSslPoliciesRequest returnPartialSuccess. + * AggregatedListSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslPoliciesRequest serviceProjectNumber. + * AggregatedListSslCertificatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListSslCertificatesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance */ - AggregatedListSslPoliciesRequest.create = function create(properties) { - return new AggregatedListSslPoliciesRequest(properties); + AggregatedListSslCertificatesRequest.create = function create(properties) { + return new AggregatedListSslCertificatesRequest(properties); }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { + AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -29369,33 +29369,33 @@ }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListSslCertificatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -29442,30 +29442,30 @@ }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslPoliciesRequest message. + * Verifies an AggregatedListSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslPoliciesRequest.verify = function verify(message) { + AggregatedListSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29511,17 +29511,17 @@ }; /** - * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest */ - AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) + AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29549,15 +29549,15 @@ }; /** - * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -29607,59 +29607,59 @@ }; /** - * Converts this AggregatedListSslPoliciesRequest to JSON. + * Converts this AggregatedListSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslPoliciesRequest + * Gets the default type url for AggregatedListSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; }; - return AggregatedListSslPoliciesRequest; + return AggregatedListSslCertificatesRequest; })(); - v1.AggregatedListStoragePoolTypesRequest = (function() { + v1.AggregatedListSslPoliciesRequest = (function() { /** - * Properties of an AggregatedListStoragePoolTypesRequest. + * Properties of an AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListStoragePoolTypesRequest - * @property {string|null} [filter] AggregatedListStoragePoolTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListStoragePoolTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListStoragePoolTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListStoragePoolTypesRequest pageToken - * @property {string|null} [project] AggregatedListStoragePoolTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolTypesRequest serviceProjectNumber + * @interface IAggregatedListSslPoliciesRequest + * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSslPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSslPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListStoragePoolTypesRequest. + * Constructs a new AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListStoragePoolTypesRequest. - * @implements IAggregatedListStoragePoolTypesRequest + * @classdesc Represents an AggregatedListSslPoliciesRequest. + * @implements IAggregatedListSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolTypesRequest(properties) { + function AggregatedListSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29667,136 +29667,136 @@ } /** - * AggregatedListStoragePoolTypesRequest filter. + * AggregatedListSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.filter = null; + AggregatedListSslPoliciesRequest.prototype.filter = null; /** - * AggregatedListStoragePoolTypesRequest includeAllScopes. + * AggregatedListSslPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; + AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolTypesRequest maxResults. + * AggregatedListSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; + AggregatedListSslPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolTypesRequest orderBy. + * AggregatedListSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; + AggregatedListSslPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolTypesRequest pageToken. + * AggregatedListSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; + AggregatedListSslPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolTypesRequest project. + * AggregatedListSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.project = ""; + AggregatedListSslPoliciesRequest.prototype.project = ""; /** - * AggregatedListStoragePoolTypesRequest returnPartialSuccess. + * AggregatedListSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolTypesRequest serviceProjectNumber. + * AggregatedListSslPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListSslPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. + * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance */ - AggregatedListStoragePoolTypesRequest.create = function create(properties) { - return new AggregatedListStoragePoolTypesRequest(properties); + AggregatedListSslPoliciesRequest.create = function create(properties) { + return new AggregatedListSslPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolTypesRequest.encode = function encode(message, writer) { + AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -29819,33 +29819,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolTypesRequest.decode = function decode(reader, length, error) { + AggregatedListSslPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -29892,30 +29892,30 @@ }; /** - * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListStoragePoolTypesRequest message. + * Verifies an AggregatedListSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListStoragePoolTypesRequest.verify = function verify(message) { + AggregatedListSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29961,17 +29961,17 @@ }; /** - * Creates an AggregatedListStoragePoolTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest */ - AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest) + AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29999,15 +29999,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest + * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { + AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30057,59 +30057,59 @@ }; /** - * Converts this AggregatedListStoragePoolTypesRequest to JSON. + * Converts this AggregatedListSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListStoragePoolTypesRequest + * Gets the default type url for AggregatedListSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; }; - return AggregatedListStoragePoolTypesRequest; + return AggregatedListSslPoliciesRequest; })(); - v1.AggregatedListStoragePoolsRequest = (function() { + v1.AggregatedListStoragePoolTypesRequest = (function() { /** - * Properties of an AggregatedListStoragePoolsRequest. + * Properties of an AggregatedListStoragePoolTypesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListStoragePoolsRequest - * @property {string|null} [filter] AggregatedListStoragePoolsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListStoragePoolsRequest maxResults - * @property {string|null} [orderBy] AggregatedListStoragePoolsRequest orderBy - * @property {string|null} [pageToken] AggregatedListStoragePoolsRequest pageToken - * @property {string|null} [project] AggregatedListStoragePoolsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolsRequest serviceProjectNumber + * @interface IAggregatedListStoragePoolTypesRequest + * @property {string|null} [filter] AggregatedListStoragePoolTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListStoragePoolTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListStoragePoolTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListStoragePoolTypesRequest pageToken + * @property {string|null} [project] AggregatedListStoragePoolTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListStoragePoolsRequest. + * Constructs a new AggregatedListStoragePoolTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListStoragePoolsRequest. - * @implements IAggregatedListStoragePoolsRequest + * @classdesc Represents an AggregatedListStoragePoolTypesRequest. + * @implements IAggregatedListStoragePoolTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolsRequest(properties) { + function AggregatedListStoragePoolTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30117,136 +30117,136 @@ } /** - * AggregatedListStoragePoolsRequest filter. + * AggregatedListStoragePoolTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.filter = null; + AggregatedListStoragePoolTypesRequest.prototype.filter = null; /** - * AggregatedListStoragePoolsRequest includeAllScopes. + * AggregatedListStoragePoolTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolsRequest maxResults. + * AggregatedListStoragePoolTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.maxResults = null; + AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolsRequest orderBy. + * AggregatedListStoragePoolTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.orderBy = null; + AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolsRequest pageToken. + * AggregatedListStoragePoolTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.pageToken = null; + AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolsRequest project. + * AggregatedListStoragePoolTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.project = ""; + AggregatedListStoragePoolTypesRequest.prototype.project = ""; /** - * AggregatedListStoragePoolsRequest returnPartialSuccess. + * AggregatedListStoragePoolTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolsRequest serviceProjectNumber. + * AggregatedListStoragePoolTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.serviceProjectNumber = null; + AggregatedListStoragePoolTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance */ - AggregatedListStoragePoolsRequest.create = function create(properties) { - return new AggregatedListStoragePoolsRequest(properties); + AggregatedListStoragePoolTypesRequest.create = function create(properties) { + return new AggregatedListStoragePoolTypesRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolsRequest.encode = function encode(message, writer) { + AggregatedListStoragePoolTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -30269,33 +30269,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @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.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolsRequest.decode = function decode(reader, length, error) { + AggregatedListStoragePoolTypesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -30342,30 +30342,30 @@ }; /** - * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListStoragePoolsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListStoragePoolTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListStoragePoolsRequest message. + * Verifies an AggregatedListStoragePoolTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListStoragePoolsRequest.verify = function verify(message) { + AggregatedListStoragePoolTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -30411,17 +30411,17 @@ }; /** - * Creates an AggregatedListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListStoragePoolTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest */ - AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest) + AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -30449,15 +30449,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListStoragePoolTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest + * @param {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30507,60 +30507,59 @@ }; /** - * Converts this AggregatedListStoragePoolsRequest to JSON. + * Converts this AggregatedListStoragePoolTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListStoragePoolsRequest + * Gets the default type url for AggregatedListStoragePoolTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest"; }; - return AggregatedListStoragePoolsRequest; + return AggregatedListStoragePoolTypesRequest; })(); - v1.AggregatedListSubnetworksRequest = (function() { + v1.AggregatedListStoragePoolsRequest = (function() { /** - * Properties of an AggregatedListSubnetworksRequest. + * Properties of an AggregatedListStoragePoolsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSubnetworksRequest - * @property {string|null} [filter] AggregatedListSubnetworksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults - * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy - * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken - * @property {string|null} [project] AggregatedListSubnetworksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListSubnetworksRequest serviceProjectNumber - * @property {string|null} [views] AggregatedListSubnetworksRequest views + * @interface IAggregatedListStoragePoolsRequest + * @property {string|null} [filter] AggregatedListStoragePoolsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListStoragePoolsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListStoragePoolsRequest maxResults + * @property {string|null} [orderBy] AggregatedListStoragePoolsRequest orderBy + * @property {string|null} [pageToken] AggregatedListStoragePoolsRequest pageToken + * @property {string|null} [project] AggregatedListStoragePoolsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListStoragePoolsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListStoragePoolsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSubnetworksRequest. + * Constructs a new AggregatedListStoragePoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSubnetworksRequest. - * @implements IAggregatedListSubnetworksRequest + * @classdesc Represents an AggregatedListStoragePoolsRequest. + * @implements IAggregatedListStoragePoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set */ - function AggregatedListSubnetworksRequest(properties) { + function AggregatedListStoragePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30568,158 +30567,142 @@ } /** - * AggregatedListSubnetworksRequest filter. + * AggregatedListStoragePoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.filter = null; + AggregatedListStoragePoolsRequest.prototype.filter = null; /** - * AggregatedListSubnetworksRequest includeAllScopes. + * AggregatedListStoragePoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListSubnetworksRequest maxResults. + * AggregatedListStoragePoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.maxResults = null; + AggregatedListStoragePoolsRequest.prototype.maxResults = null; /** - * AggregatedListSubnetworksRequest orderBy. + * AggregatedListStoragePoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.orderBy = null; + AggregatedListStoragePoolsRequest.prototype.orderBy = null; /** - * AggregatedListSubnetworksRequest pageToken. + * AggregatedListStoragePoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.pageToken = null; + AggregatedListStoragePoolsRequest.prototype.pageToken = null; /** - * AggregatedListSubnetworksRequest project. + * AggregatedListStoragePoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.project = ""; + AggregatedListStoragePoolsRequest.prototype.project = ""; /** - * AggregatedListSubnetworksRequest returnPartialSuccess. + * AggregatedListStoragePoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSubnetworksRequest serviceProjectNumber. + * AggregatedListStoragePoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest - * @instance - */ - AggregatedListSubnetworksRequest.prototype.serviceProjectNumber = null; - - /** - * AggregatedListSubnetworksRequest views. - * @member {string|null|undefined} views - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.views = null; + AggregatedListStoragePoolsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); - // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_views", { - get: $util.oneOfGetter($oneOfFields = ["views"]), - set: $util.oneOfSetter($oneOfFields) - }); - /** - * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance */ - AggregatedListSubnetworksRequest.create = function create(properties) { - return new AggregatedListSubnetworksRequest(properties); + AggregatedListStoragePoolsRequest.create = function create(properties) { + return new AggregatedListStoragePoolsRequest(properties); }; /** - * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encode = function encode(message, writer) { + AggregatedListStoragePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.views != null && Object.hasOwnProperty.call(message, "views")) - writer.uint32(/* id 112204398, wireType 2 =*/897635186).string(message.views); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -30736,33 +30719,33 @@ }; /** - * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decode = function decode(reader, length, error) { + AggregatedListStoragePoolsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -30800,10 +30783,6 @@ message.serviceProjectNumber = reader.int64(); break; } - case 112204398: { - message.views = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -30813,30 +30792,30 @@ }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListStoragePoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSubnetworksRequest message. + * Verifies an AggregatedListStoragePoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSubnetworksRequest.verify = function verify(message) { + AggregatedListStoragePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -30878,26 +30857,21 @@ if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) return "serviceProjectNumber: integer|Long expected"; } - if (message.views != null && message.hasOwnProperty("views")) { - properties._views = 1; - if (!$util.isString(message.views)) - return "views: string expected"; - } return null; }; /** - * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListStoragePoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest */ - AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) + AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -30921,21 +30895,19 @@ message.serviceProjectNumber = object.serviceProjectNumber; else if (typeof object.serviceProjectNumber === "object") message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); - if (object.views != null) - message.views = String(object.views); return message; }; /** - * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListStoragePoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest + * @param {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30951,11 +30923,6 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.views != null && message.hasOwnProperty("views")) { - object.views = message.views; - if (options.oneofs) - object._views = "views"; - } if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -30990,75 +30957,60 @@ }; /** - * Converts this AggregatedListSubnetworksRequest to JSON. + * Converts this AggregatedListStoragePoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSubnetworksRequest + * Gets the default type url for AggregatedListStoragePoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolsRequest"; }; - /** - * Views enum. - * @name google.cloud.compute.v1.AggregatedListSubnetworksRequest.Views - * @enum {number} - * @property {number} UNDEFINED_VIEWS=0 UNDEFINED_VIEWS value - * @property {number} DEFAULT=115302945 DEFAULT value - * @property {number} WITH_UTILIZATION=504090633 WITH_UTILIZATION value - */ - AggregatedListSubnetworksRequest.Views = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_VIEWS"] = 0; - values[valuesById[115302945] = "DEFAULT"] = 115302945; - values[valuesById[504090633] = "WITH_UTILIZATION"] = 504090633; - return values; - })(); - - return AggregatedListSubnetworksRequest; + return AggregatedListStoragePoolsRequest; })(); - v1.AggregatedListTargetHttpProxiesRequest = (function() { + v1.AggregatedListSubnetworksRequest = (function() { /** - * Properties of an AggregatedListTargetHttpProxiesRequest. + * Properties of an AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetHttpProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpProxiesRequest serviceProjectNumber + * @interface IAggregatedListSubnetworksRequest + * @property {string|null} [filter] AggregatedListSubnetworksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults + * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy + * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken + * @property {string|null} [project] AggregatedListSubnetworksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListSubnetworksRequest serviceProjectNumber + * @property {string|null} [views] AggregatedListSubnetworksRequest views */ /** - * Constructs a new AggregatedListTargetHttpProxiesRequest. + * Constructs a new AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. - * @implements IAggregatedListTargetHttpProxiesRequest + * @classdesc Represents an AggregatedListSubnetworksRequest. + * @implements IAggregatedListSubnetworksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpProxiesRequest(properties) { + function AggregatedListSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31066,142 +31018,158 @@ } /** - * AggregatedListTargetHttpProxiesRequest filter. + * AggregatedListSubnetworksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.filter = null; + AggregatedListSubnetworksRequest.prototype.filter = null; /** - * AggregatedListTargetHttpProxiesRequest includeAllScopes. + * AggregatedListSubnetworksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpProxiesRequest maxResults. + * AggregatedListSubnetworksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; + AggregatedListSubnetworksRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpProxiesRequest orderBy. + * AggregatedListSubnetworksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; + AggregatedListSubnetworksRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpProxiesRequest pageToken. + * AggregatedListSubnetworksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; + AggregatedListSubnetworksRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpProxiesRequest project. + * AggregatedListSubnetworksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.project = ""; + AggregatedListSubnetworksRequest.prototype.project = ""; /** - * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. + * AggregatedListSubnetworksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. + * AggregatedListSubnetworksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.serviceProjectNumber = null; + AggregatedListSubnetworksRequest.prototype.serviceProjectNumber = null; + + /** + * AggregatedListSubnetworksRequest views. + * @member {string|null|undefined} views + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @instance + */ + AggregatedListSubnetworksRequest.prototype.views = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_views", { + get: $util.oneOfGetter($oneOfFields = ["views"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** - * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance */ - AggregatedListTargetHttpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpProxiesRequest(properties); + AggregatedListSubnetworksRequest.create = function create(properties) { + return new AggregatedListSubnetworksRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { + AggregatedListSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.views != null && Object.hasOwnProperty.call(message, "views")) + writer.uint32(/* id 112204398, wireType 2 =*/897635186).string(message.views); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -31218,33 +31186,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length, error) { + AggregatedListSubnetworksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -31282,6 +31250,10 @@ message.serviceProjectNumber = reader.int64(); break; } + case 112204398: { + message.views = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -31291,30 +31263,30 @@ }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpProxiesRequest message. + * Verifies an AggregatedListSubnetworksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { + AggregatedListSubnetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -31356,21 +31328,26 @@ if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) return "serviceProjectNumber: integer|Long expected"; } + if (message.views != null && message.hasOwnProperty("views")) { + properties._views = 1; + if (!$util.isString(message.views)) + return "views: string expected"; + } return null; }; /** - * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest */ - AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) + AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -31394,19 +31371,21 @@ message.serviceProjectNumber = object.serviceProjectNumber; else if (typeof object.serviceProjectNumber === "object") message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); + if (object.views != null) + message.views = String(object.views); return message; }; /** - * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31422,6 +31401,11 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.views != null && message.hasOwnProperty("views")) { + object.views = message.views; + if (options.oneofs) + object._views = "views"; + } if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -31456,59 +31440,75 @@ }; /** - * Converts this AggregatedListTargetHttpProxiesRequest to JSON. + * Converts this AggregatedListSubnetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpProxiesRequest + * Gets the default type url for AggregatedListSubnetworksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; }; - return AggregatedListTargetHttpProxiesRequest; + /** + * Views enum. + * @name google.cloud.compute.v1.AggregatedListSubnetworksRequest.Views + * @enum {number} + * @property {number} UNDEFINED_VIEWS=0 UNDEFINED_VIEWS value + * @property {number} DEFAULT=115302945 DEFAULT value + * @property {number} WITH_UTILIZATION=504090633 WITH_UTILIZATION value + */ + AggregatedListSubnetworksRequest.Views = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_VIEWS"] = 0; + values[valuesById[115302945] = "DEFAULT"] = 115302945; + values[valuesById[504090633] = "WITH_UTILIZATION"] = 504090633; + return values; + })(); + + return AggregatedListSubnetworksRequest; })(); - v1.AggregatedListTargetHttpsProxiesRequest = (function() { + v1.AggregatedListTargetHttpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpsProxiesRequest. + * Properties of an AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetHttpsProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpsProxiesRequest serviceProjectNumber + * @interface IAggregatedListTargetHttpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpProxiesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetHttpsProxiesRequest. + * Constructs a new AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. - * @implements IAggregatedListTargetHttpsProxiesRequest + * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. + * @implements IAggregatedListTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpsProxiesRequest(properties) { + function AggregatedListTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31516,136 +31516,136 @@ } /** - * AggregatedListTargetHttpsProxiesRequest filter. + * AggregatedListTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; + AggregatedListTargetHttpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpsProxiesRequest includeAllScopes. + * AggregatedListTargetHttpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpsProxiesRequest maxResults. + * AggregatedListTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; + AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpsProxiesRequest orderBy. + * AggregatedListTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; + AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpsProxiesRequest pageToken. + * AggregatedListTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; + AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpsProxiesRequest project. + * AggregatedListTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; + AggregatedListTargetHttpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. + * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetHttpProxiesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance */ - AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpsProxiesRequest(properties); + AggregatedListTargetHttpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -31668,33 +31668,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { + AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -31741,30 +31741,30 @@ }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpsProxiesRequest message. + * Verifies an AggregatedListTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { + AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -31810,17 +31810,17 @@ }; /** - * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest */ - AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) + AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -31848,15 +31848,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31906,59 +31906,59 @@ }; /** - * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. + * Converts this AggregatedListTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpsProxiesRequest + * Gets the default type url for AggregatedListTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; }; - return AggregatedListTargetHttpsProxiesRequest; + return AggregatedListTargetHttpProxiesRequest; })(); - v1.AggregatedListTargetInstancesRequest = (function() { + v1.AggregatedListTargetHttpsProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetInstancesRequest. + * Properties of an AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetInstancesRequest - * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken - * @property {string|null} [project] AggregatedListTargetInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetInstancesRequest serviceProjectNumber + * @interface IAggregatedListTargetHttpsProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetHttpsProxiesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetInstancesRequest. + * Constructs a new AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetInstancesRequest. - * @implements IAggregatedListTargetInstancesRequest + * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. + * @implements IAggregatedListTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetInstancesRequest(properties) { + function AggregatedListTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31966,136 +31966,136 @@ } /** - * AggregatedListTargetInstancesRequest filter. + * AggregatedListTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.filter = null; + AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetInstancesRequest includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetInstancesRequest maxResults. + * AggregatedListTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.maxResults = null; + AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetInstancesRequest orderBy. + * AggregatedListTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.orderBy = null; + AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetInstancesRequest pageToken. + * AggregatedListTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.pageToken = null; + AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetInstancesRequest project. + * AggregatedListTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.project = ""; + AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetInstancesRequest returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetInstancesRequest serviceProjectNumber. + * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetHttpsProxiesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance */ - AggregatedListTargetInstancesRequest.create = function create(properties) { - return new AggregatedListTargetInstancesRequest(properties); + AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -32118,33 +32118,33 @@ }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decode = function decode(reader, length, error) { + AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -32191,30 +32191,30 @@ }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetInstancesRequest message. + * Verifies an AggregatedListTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetInstancesRequest.verify = function verify(message) { + AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -32260,17 +32260,17 @@ }; /** - * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest */ - AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) + AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -32298,15 +32298,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -32356,59 +32356,59 @@ }; /** - * Converts this AggregatedListTargetInstancesRequest to JSON. + * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetInstancesRequest + * Gets the default type url for AggregatedListTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; }; - return AggregatedListTargetInstancesRequest; + return AggregatedListTargetHttpsProxiesRequest; })(); - v1.AggregatedListTargetPoolsRequest = (function() { + v1.AggregatedListTargetInstancesRequest = (function() { /** - * Properties of an AggregatedListTargetPoolsRequest. + * Properties of an AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetPoolsRequest - * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken - * @property {string|null} [project] AggregatedListTargetPoolsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetPoolsRequest serviceProjectNumber + * @interface IAggregatedListTargetInstancesRequest + * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken + * @property {string|null} [project] AggregatedListTargetInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetInstancesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetPoolsRequest. + * Constructs a new AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetPoolsRequest. - * @implements IAggregatedListTargetPoolsRequest + * @classdesc Represents an AggregatedListTargetInstancesRequest. + * @implements IAggregatedListTargetInstancesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set */ - function AggregatedListTargetPoolsRequest(properties) { + function AggregatedListTargetInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32416,136 +32416,136 @@ } /** - * AggregatedListTargetPoolsRequest filter. + * AggregatedListTargetInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.filter = null; + AggregatedListTargetInstancesRequest.prototype.filter = null; /** - * AggregatedListTargetPoolsRequest includeAllScopes. + * AggregatedListTargetInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; + AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetPoolsRequest maxResults. + * AggregatedListTargetInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.maxResults = null; + AggregatedListTargetInstancesRequest.prototype.maxResults = null; /** - * AggregatedListTargetPoolsRequest orderBy. + * AggregatedListTargetInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.orderBy = null; + AggregatedListTargetInstancesRequest.prototype.orderBy = null; /** - * AggregatedListTargetPoolsRequest pageToken. + * AggregatedListTargetInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.pageToken = null; + AggregatedListTargetInstancesRequest.prototype.pageToken = null; /** - * AggregatedListTargetPoolsRequest project. + * AggregatedListTargetInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.project = ""; + AggregatedListTargetInstancesRequest.prototype.project = ""; /** - * AggregatedListTargetPoolsRequest returnPartialSuccess. + * AggregatedListTargetInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetPoolsRequest serviceProjectNumber. + * AggregatedListTargetInstancesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetInstancesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. + * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance */ - AggregatedListTargetPoolsRequest.create = function create(properties) { - return new AggregatedListTargetPoolsRequest(properties); + AggregatedListTargetInstancesRequest.create = function create(properties) { + return new AggregatedListTargetInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encode = function encode(message, writer) { + AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -32568,33 +32568,33 @@ }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decode = function decode(reader, length, error) { + AggregatedListTargetInstancesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -32641,30 +32641,30 @@ }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetPoolsRequest message. + * Verifies an AggregatedListTargetInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetPoolsRequest.verify = function verify(message) { + AggregatedListTargetInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -32710,17 +32710,17 @@ }; /** - * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest */ - AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) + AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -32748,15 +32748,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { + AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -32806,59 +32806,59 @@ }; /** - * Converts this AggregatedListTargetPoolsRequest to JSON. + * Converts this AggregatedListTargetInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetPoolsRequest + * Gets the default type url for AggregatedListTargetInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; }; - return AggregatedListTargetPoolsRequest; + return AggregatedListTargetInstancesRequest; })(); - v1.AggregatedListTargetTcpProxiesRequest = (function() { + v1.AggregatedListTargetPoolsRequest = (function() { /** - * Properties of an AggregatedListTargetTcpProxiesRequest. + * Properties of an AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetTcpProxiesRequest - * @property {string|null} [filter] AggregatedListTargetTcpProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetTcpProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetTcpProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetTcpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetTcpProxiesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetTcpProxiesRequest serviceProjectNumber + * @interface IAggregatedListTargetPoolsRequest + * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken + * @property {string|null} [project] AggregatedListTargetPoolsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetPoolsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetTcpProxiesRequest. + * Constructs a new AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. - * @implements IAggregatedListTargetTcpProxiesRequest + * @classdesc Represents an AggregatedListTargetPoolsRequest. + * @implements IAggregatedListTargetPoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set */ - function AggregatedListTargetTcpProxiesRequest(properties) { + function AggregatedListTargetPoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32866,136 +32866,136 @@ } /** - * AggregatedListTargetTcpProxiesRequest filter. + * AggregatedListTargetPoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + AggregatedListTargetPoolsRequest.prototype.filter = null; /** - * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * AggregatedListTargetPoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetTcpProxiesRequest maxResults. + * AggregatedListTargetPoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + AggregatedListTargetPoolsRequest.prototype.maxResults = null; /** - * AggregatedListTargetTcpProxiesRequest orderBy. + * AggregatedListTargetPoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + AggregatedListTargetPoolsRequest.prototype.orderBy = null; /** - * AggregatedListTargetTcpProxiesRequest pageToken. + * AggregatedListTargetPoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + AggregatedListTargetPoolsRequest.prototype.pageToken = null; /** - * AggregatedListTargetTcpProxiesRequest project. + * AggregatedListTargetPoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + AggregatedListTargetPoolsRequest.prototype.project = ""; /** - * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * AggregatedListTargetPoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. + * AggregatedListTargetPoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetPoolsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance */ - AggregatedListTargetTcpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetTcpProxiesRequest(properties); + AggregatedListTargetPoolsRequest.create = function create(properties) { + return new AggregatedListTargetPoolsRequest(properties); }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { + AggregatedListTargetPoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -33018,33 +33018,33 @@ }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length, error) { + AggregatedListTargetPoolsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -33091,30 +33091,30 @@ }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetTcpProxiesRequest message. + * Verifies an AggregatedListTargetPoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { + AggregatedListTargetPoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -33160,17 +33160,17 @@ }; /** - * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest */ - AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) + AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -33198,15 +33198,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -33256,59 +33256,59 @@ }; /** - * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * Converts this AggregatedListTargetPoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetTcpProxiesRequest + * Gets the default type url for AggregatedListTargetPoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; }; - return AggregatedListTargetTcpProxiesRequest; + return AggregatedListTargetPoolsRequest; })(); - v1.AggregatedListTargetVpnGatewaysRequest = (function() { + v1.AggregatedListTargetTcpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetVpnGatewaysRequest. + * Properties of an AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetVpnGatewaysRequest serviceProjectNumber + * @interface IAggregatedListTargetTcpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetTcpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetTcpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetTcpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetTcpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetTcpProxiesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetTcpProxiesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListTargetVpnGatewaysRequest. + * Constructs a new AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. - * @implements IAggregatedListTargetVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. + * @implements IAggregatedListTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetVpnGatewaysRequest(properties) { + function AggregatedListTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33316,136 +33316,136 @@ } /** - * AggregatedListTargetVpnGatewaysRequest filter. + * AggregatedListTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetTcpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetTcpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetVpnGatewaysRequest maxResults. + * AggregatedListTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetVpnGatewaysRequest orderBy. + * AggregatedListTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetVpnGatewaysRequest pageToken. + * AggregatedListTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetVpnGatewaysRequest project. + * AggregatedListTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetTcpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. + * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetTcpProxiesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance */ - AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListTargetVpnGatewaysRequest(properties); + AggregatedListTargetTcpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -33468,33 +33468,33 @@ }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length, error) { + AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -33541,30 +33541,30 @@ }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetVpnGatewaysRequest message. + * Verifies an AggregatedListTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { + AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -33610,17 +33610,17 @@ }; /** - * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest */ - AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) + AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -33648,15 +33648,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -33706,59 +33706,59 @@ }; /** - * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. + * Converts this AggregatedListTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetVpnGatewaysRequest + * Gets the default type url for AggregatedListTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; }; - return AggregatedListTargetVpnGatewaysRequest; + return AggregatedListTargetTcpProxiesRequest; })(); - v1.AggregatedListUrlMapsRequest = (function() { + v1.AggregatedListTargetVpnGatewaysRequest = (function() { /** - * Properties of an AggregatedListUrlMapsRequest. + * Properties of an AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListUrlMapsRequest - * @property {string|null} [filter] AggregatedListUrlMapsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults - * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy - * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken - * @property {string|null} [project] AggregatedListUrlMapsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListUrlMapsRequest serviceProjectNumber + * @interface IAggregatedListTargetVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListTargetVpnGatewaysRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListUrlMapsRequest. + * Constructs a new AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListUrlMapsRequest. - * @implements IAggregatedListUrlMapsRequest + * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. + * @implements IAggregatedListTargetVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set */ - function AggregatedListUrlMapsRequest(properties) { + function AggregatedListTargetVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33766,136 +33766,136 @@ } /** - * AggregatedListUrlMapsRequest filter. + * AggregatedListTargetVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.filter = null; + AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; /** - * AggregatedListUrlMapsRequest includeAllScopes. + * AggregatedListTargetVpnGatewaysRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; /** - * AggregatedListUrlMapsRequest maxResults. + * AggregatedListTargetVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.maxResults = null; + AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; /** - * AggregatedListUrlMapsRequest orderBy. + * AggregatedListTargetVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.orderBy = null; + AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; /** - * AggregatedListUrlMapsRequest pageToken. + * AggregatedListTargetVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.pageToken = null; + AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; /** - * AggregatedListUrlMapsRequest project. + * AggregatedListTargetVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.project = ""; + AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; /** - * AggregatedListUrlMapsRequest returnPartialSuccess. + * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListUrlMapsRequest serviceProjectNumber. + * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.serviceProjectNumber = null; + AggregatedListTargetVpnGatewaysRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance */ - AggregatedListUrlMapsRequest.create = function create(properties) { - return new AggregatedListUrlMapsRequest(properties); + AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListTargetVpnGatewaysRequest(properties); }; /** - * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encode = function encode(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -33918,33 +33918,33 @@ }; /** - * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decode = function decode(reader, length, error) { + AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -33991,30 +33991,30 @@ }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListUrlMapsRequest message. + * Verifies an AggregatedListTargetVpnGatewaysRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListUrlMapsRequest.verify = function verify(message) { + AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34060,17 +34060,17 @@ }; /** - * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest */ - AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34098,15 +34098,15 @@ }; /** - * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34156,59 +34156,59 @@ }; /** - * Converts this AggregatedListUrlMapsRequest to JSON. + * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance * @returns {Object.} JSON object */ - AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListUrlMapsRequest + * Gets the default type url for AggregatedListTargetVpnGatewaysRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; }; - return AggregatedListUrlMapsRequest; + return AggregatedListTargetVpnGatewaysRequest; })(); - v1.AggregatedListVpnGatewaysRequest = (function() { + v1.AggregatedListUrlMapsRequest = (function() { /** - * Properties of an AggregatedListVpnGatewaysRequest. + * Properties of an AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListVpnGatewaysRequest serviceProjectNumber + * @interface IAggregatedListUrlMapsRequest + * @property {string|null} [filter] AggregatedListUrlMapsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults + * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy + * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken + * @property {string|null} [project] AggregatedListUrlMapsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListUrlMapsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListVpnGatewaysRequest. + * Constructs a new AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListVpnGatewaysRequest. - * @implements IAggregatedListVpnGatewaysRequest + * @classdesc Represents an AggregatedListUrlMapsRequest. + * @implements IAggregatedListUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set */ - function AggregatedListVpnGatewaysRequest(properties) { + function AggregatedListUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34216,136 +34216,136 @@ } /** - * AggregatedListVpnGatewaysRequest filter. + * AggregatedListUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.filter = null; + AggregatedListUrlMapsRequest.prototype.filter = null; /** - * AggregatedListVpnGatewaysRequest includeAllScopes. + * AggregatedListUrlMapsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnGatewaysRequest maxResults. + * AggregatedListUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListUrlMapsRequest.prototype.maxResults = null; /** - * AggregatedListVpnGatewaysRequest orderBy. + * AggregatedListUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListUrlMapsRequest.prototype.orderBy = null; /** - * AggregatedListVpnGatewaysRequest pageToken. + * AggregatedListUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListUrlMapsRequest.prototype.pageToken = null; /** - * AggregatedListVpnGatewaysRequest project. + * AggregatedListUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.project = ""; + AggregatedListUrlMapsRequest.prototype.project = ""; /** - * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * AggregatedListUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListVpnGatewaysRequest serviceProjectNumber. + * AggregatedListUrlMapsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.serviceProjectNumber = null; + AggregatedListUrlMapsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance */ - AggregatedListVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListVpnGatewaysRequest(properties); + AggregatedListUrlMapsRequest.create = function create(properties) { + return new AggregatedListUrlMapsRequest(properties); }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -34368,33 +34368,33 @@ }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListVpnGatewaysRequest.decode = function decode(reader, length, error) { + AggregatedListUrlMapsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -34441,30 +34441,30 @@ }; /** - * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListVpnGatewaysRequest message. + * Verifies an AggregatedListUrlMapsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListVpnGatewaysRequest.verify = function verify(message) { + AggregatedListUrlMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34510,17 +34510,17 @@ }; /** - * Creates an AggregatedListVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest */ - AggregatedListVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest) + AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34548,15 +34548,15 @@ }; /** - * Creates a plain object from an AggregatedListVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest + * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34606,59 +34606,59 @@ }; /** - * Converts this AggregatedListVpnGatewaysRequest to JSON. + * Converts this AggregatedListUrlMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListVpnGatewaysRequest + * Gets the default type url for AggregatedListUrlMapsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; }; - return AggregatedListVpnGatewaysRequest; + return AggregatedListUrlMapsRequest; })(); - v1.AggregatedListVpnTunnelsRequest = (function() { + v1.AggregatedListVpnGatewaysRequest = (function() { /** - * Properties of an AggregatedListVpnTunnelsRequest. + * Properties of an AggregatedListVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListVpnTunnelsRequest - * @property {string|null} [filter] AggregatedListVpnTunnelsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListVpnTunnelsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListVpnTunnelsRequest maxResults - * @property {string|null} [orderBy] AggregatedListVpnTunnelsRequest orderBy - * @property {string|null} [pageToken] AggregatedListVpnTunnelsRequest pageToken - * @property {string|null} [project] AggregatedListVpnTunnelsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnTunnelsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListVpnTunnelsRequest serviceProjectNumber + * @interface IAggregatedListVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListVpnGatewaysRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListVpnTunnelsRequest. + * Constructs a new AggregatedListVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListVpnTunnelsRequest. - * @implements IAggregatedListVpnTunnelsRequest + * @classdesc Represents an AggregatedListVpnGatewaysRequest. + * @implements IAggregatedListVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set */ - function AggregatedListVpnTunnelsRequest(properties) { + function AggregatedListVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34666,136 +34666,586 @@ } /** - * AggregatedListVpnTunnelsRequest filter. + * AggregatedListVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.filter = null; + AggregatedListVpnGatewaysRequest.prototype.filter = null; /** - * AggregatedListVpnTunnelsRequest includeAllScopes. + * AggregatedListVpnGatewaysRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.includeAllScopes = null; + AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnTunnelsRequest maxResults. + * AggregatedListVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.maxResults = null; + AggregatedListVpnGatewaysRequest.prototype.maxResults = null; /** - * AggregatedListVpnTunnelsRequest orderBy. + * AggregatedListVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.orderBy = null; + AggregatedListVpnGatewaysRequest.prototype.orderBy = null; /** - * AggregatedListVpnTunnelsRequest pageToken. + * AggregatedListVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.pageToken = null; + AggregatedListVpnGatewaysRequest.prototype.pageToken = null; /** - * AggregatedListVpnTunnelsRequest project. + * AggregatedListVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.project = ""; + AggregatedListVpnGatewaysRequest.prototype.project = ""; /** - * AggregatedListVpnTunnelsRequest returnPartialSuccess. + * AggregatedListVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.returnPartialSuccess = null; + AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListVpnTunnelsRequest serviceProjectNumber. + * AggregatedListVpnGatewaysRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.serviceProjectNumber = null; + AggregatedListVpnGatewaysRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnTunnelsRequest instance using the specified properties. + * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListVpnTunnelsRequest} AggregatedListVpnTunnelsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance */ - AggregatedListVpnTunnelsRequest.create = function create(properties) { - return new AggregatedListVpnTunnelsRequest(properties); + AggregatedListVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListVpnGatewaysRequest(properties); }; /** - * Encodes the specified AggregatedListVpnTunnelsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnTunnelsRequest.verify|verify} messages. + * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest} message AggregatedListVpnTunnelsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnTunnelsRequest.encode = function encode(message, writer) { + AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.serviceProjectNumber != null && Object.hasOwnProperty.call(message, "serviceProjectNumber")) + writer.uint32(/* id 316757497, wireType 0 =*/2534059976).int64(message.serviceProjectNumber); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.includeAllScopes != null && Object.hasOwnProperty.call(message, "includeAllScopes")) + writer.uint32(/* id 391327988, wireType 0 =*/3130623904).bool(message.includeAllScopes); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListVpnGatewaysRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 391327988: { + message.includeAllScopes = reader.bool(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + case 316757497: { + message.serviceProjectNumber = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListVpnGatewaysRequest message. + * @function verify + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListVpnGatewaysRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + properties._serviceProjectNumber = 1; + if (!$util.isInteger(message.serviceProjectNumber) && !(message.serviceProjectNumber && $util.isInteger(message.serviceProjectNumber.low) && $util.isInteger(message.serviceProjectNumber.high))) + return "serviceProjectNumber: integer|Long expected"; + } + return null; + }; + + /** + * Creates an AggregatedListVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + */ + AggregatedListVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.serviceProjectNumber != null) + if ($util.Long) + (message.serviceProjectNumber = $util.Long.fromValue(object.serviceProjectNumber)).unsigned = false; + else if (typeof object.serviceProjectNumber === "string") + message.serviceProjectNumber = parseInt(object.serviceProjectNumber, 10); + else if (typeof object.serviceProjectNumber === "number") + message.serviceProjectNumber = object.serviceProjectNumber; + else if (typeof object.serviceProjectNumber === "object") + message.serviceProjectNumber = new $util.LongBits(object.serviceProjectNumber.low >>> 0, object.serviceProjectNumber.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AggregatedListVpnGatewaysRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListVpnGatewaysRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.serviceProjectNumber != null && message.hasOwnProperty("serviceProjectNumber")) { + if (typeof message.serviceProjectNumber === "number") + object.serviceProjectNumber = options.longs === String ? String(message.serviceProjectNumber) : message.serviceProjectNumber; + else + object.serviceProjectNumber = options.longs === String ? $util.Long.prototype.toString.call(message.serviceProjectNumber) : options.longs === Number ? new $util.LongBits(message.serviceProjectNumber.low >>> 0, message.serviceProjectNumber.high >>> 0).toNumber() : message.serviceProjectNumber; + if (options.oneofs) + object._serviceProjectNumber = "serviceProjectNumber"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + object.includeAllScopes = message.includeAllScopes; + if (options.oneofs) + object._includeAllScopes = "includeAllScopes"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this AggregatedListVpnGatewaysRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListVpnGatewaysRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListVpnGatewaysRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListVpnGatewaysRequest"; + }; + + return AggregatedListVpnGatewaysRequest; + })(); + + v1.AggregatedListVpnTunnelsRequest = (function() { + + /** + * Properties of an AggregatedListVpnTunnelsRequest. + * @memberof google.cloud.compute.v1 + * @interface IAggregatedListVpnTunnelsRequest + * @property {string|null} [filter] AggregatedListVpnTunnelsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListVpnTunnelsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListVpnTunnelsRequest maxResults + * @property {string|null} [orderBy] AggregatedListVpnTunnelsRequest orderBy + * @property {string|null} [pageToken] AggregatedListVpnTunnelsRequest pageToken + * @property {string|null} [project] AggregatedListVpnTunnelsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnTunnelsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListVpnTunnelsRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListVpnTunnelsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListVpnTunnelsRequest. + * @implements IAggregatedListVpnTunnelsRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set + */ + function AggregatedListVpnTunnelsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListVpnTunnelsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.filter = null; + + /** + * AggregatedListVpnTunnelsRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListVpnTunnelsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.maxResults = null; + + /** + * AggregatedListVpnTunnelsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.orderBy = null; + + /** + * AggregatedListVpnTunnelsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.pageToken = null; + + /** + * AggregatedListVpnTunnelsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.project = ""; + + /** + * AggregatedListVpnTunnelsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListVpnTunnelsRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.serviceProjectNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListVpnTunnelsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnTunnelsRequest} AggregatedListVpnTunnelsRequest instance + */ + AggregatedListVpnTunnelsRequest.create = function create(properties) { + return new AggregatedListVpnTunnelsRequest(properties); + }; + + /** + * Encodes the specified AggregatedListVpnTunnelsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnTunnelsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest} message AggregatedListVpnTunnelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnTunnelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -47768,6 +48218,7 @@ * @property {number|null} [maxRatePerEndpoint] Backend maxRatePerEndpoint * @property {number|null} [maxRatePerInstance] Backend maxRatePerInstance * @property {number|null} [maxUtilization] Backend maxUtilization + * @property {google.cloud.compute.v1.IBackendBackendOrchestrationInfo|null} [orchestrationInfo] Backend orchestrationInfo * @property {string|null} [preference] Backend preference */ @@ -47891,6 +48342,14 @@ */ Backend.prototype.maxUtilization = null; + /** + * Backend orchestrationInfo. + * @member {google.cloud.compute.v1.IBackendBackendOrchestrationInfo|null|undefined} orchestrationInfo + * @memberof google.cloud.compute.v1.Backend + * @instance + */ + Backend.prototype.orchestrationInfo = null; + /** * Backend preference. * @member {string|null|undefined} preference @@ -47974,6 +48433,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Backend.prototype, "_orchestrationInfo", { + get: $util.oneOfGetter($oneOfFields = ["orchestrationInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Backend.prototype, "_preference", { get: $util.oneOfGetter($oneOfFields = ["preference"]), @@ -48033,6 +48498,8 @@ $root.google.cloud.compute.v1.BackendCustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 429453813, wireType 2 =*/3435630506).fork()).ldelim(); if (message.balancingMode != null && Object.hasOwnProperty.call(message, "balancingMode")) writer.uint32(/* id 430286217, wireType 2 =*/3442289738).string(message.balancingMode); + if (message.orchestrationInfo != null && Object.hasOwnProperty.call(message, "orchestrationInfo")) + $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo.encode(message.orchestrationInfo, writer.uint32(/* id 441144300, wireType 2 =*/3529154402).fork()).ldelim(); return writer; }; @@ -48123,6 +48590,10 @@ message.maxUtilization = reader.float(); break; } + case 441144300: { + message.orchestrationInfo = $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo.decode(reader, reader.uint32()); + break; + } case 150781147: { message.preference = reader.string(); break; @@ -48232,6 +48703,14 @@ if (typeof message.maxUtilization !== "number") return "maxUtilization: number expected"; } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + properties._orchestrationInfo = 1; + { + var error = $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo.verify(message.orchestrationInfo); + if (error) + return "orchestrationInfo." + error; + } + } if (message.preference != null && message.hasOwnProperty("preference")) { properties._preference = 1; if (!$util.isString(message.preference)) @@ -48286,6 +48765,11 @@ message.maxRatePerInstance = Number(object.maxRatePerInstance); if (object.maxUtilization != null) message.maxUtilization = Number(object.maxUtilization); + if (object.orchestrationInfo != null) { + if (typeof object.orchestrationInfo !== "object") + throw TypeError(".google.cloud.compute.v1.Backend.orchestrationInfo: object expected"); + message.orchestrationInfo = $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo.fromObject(object.orchestrationInfo); + } if (object.preference != null) message.preference = String(object.preference); return message; @@ -48376,6 +48860,11 @@ if (options.oneofs) object._balancingMode = "balancingMode"; } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + object.orchestrationInfo = $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo.toObject(message.orchestrationInfo, options); + if (options.oneofs) + object._orchestrationInfo = "orchestrationInfo"; + } return object; }; @@ -48446,6 +48935,224 @@ return Backend; })(); + v1.BackendBackendOrchestrationInfo = (function() { + + /** + * Properties of a BackendBackendOrchestrationInfo. + * @memberof google.cloud.compute.v1 + * @interface IBackendBackendOrchestrationInfo + * @property {string|null} [resourceUri] BackendBackendOrchestrationInfo resourceUri + */ + + /** + * Constructs a new BackendBackendOrchestrationInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendBackendOrchestrationInfo. + * @implements IBackendBackendOrchestrationInfo + * @constructor + * @param {google.cloud.compute.v1.IBackendBackendOrchestrationInfo=} [properties] Properties to set + */ + function BackendBackendOrchestrationInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendBackendOrchestrationInfo resourceUri. + * @member {string|null|undefined} resourceUri + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @instance + */ + BackendBackendOrchestrationInfo.prototype.resourceUri = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendBackendOrchestrationInfo.prototype, "_resourceUri", { + get: $util.oneOfGetter($oneOfFields = ["resourceUri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendBackendOrchestrationInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.IBackendBackendOrchestrationInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo instance + */ + BackendBackendOrchestrationInfo.create = function create(properties) { + return new BackendBackendOrchestrationInfo(properties); + }; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1.BackendBackendOrchestrationInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.IBackendBackendOrchestrationInfo} message BackendBackendOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBackendOrchestrationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceUri != null && Object.hasOwnProperty.call(message, "resourceUri")) + writer.uint32(/* id 152830395, wireType 2 =*/1222643162).string(message.resourceUri); + return writer; + }; + + /** + * Encodes the specified BackendBackendOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBackendOrchestrationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.IBackendBackendOrchestrationInfo} message BackendBackendOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBackendOrchestrationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @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.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBackendOrchestrationInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 152830395: { + message.resourceUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendBackendOrchestrationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBackendOrchestrationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendBackendOrchestrationInfo message. + * @function verify + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendBackendOrchestrationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + properties._resourceUri = 1; + if (!$util.isString(message.resourceUri)) + return "resourceUri: string expected"; + } + return null; + }; + + /** + * Creates a BackendBackendOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendBackendOrchestrationInfo} BackendBackendOrchestrationInfo + */ + BackendBackendOrchestrationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo) + return object; + var message = new $root.google.cloud.compute.v1.BackendBackendOrchestrationInfo(); + if (object.resourceUri != null) + message.resourceUri = String(object.resourceUri); + return message; + }; + + /** + * Creates a plain object from a BackendBackendOrchestrationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.BackendBackendOrchestrationInfo} message BackendBackendOrchestrationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendBackendOrchestrationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + object.resourceUri = message.resourceUri; + if (options.oneofs) + object._resourceUri = "resourceUri"; + } + return object; + }; + + /** + * Converts this BackendBackendOrchestrationInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @instance + * @returns {Object.} JSON object + */ + BackendBackendOrchestrationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendBackendOrchestrationInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1.BackendBackendOrchestrationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendBackendOrchestrationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.BackendBackendOrchestrationInfo"; + }; + + return BackendBackendOrchestrationInfo; + })(); + v1.BackendBucket = (function() { /** @@ -51757,6 +52464,7 @@ * @property {string|null} [name] BackendService name * @property {string|null} [network] BackendService network * @property {google.cloud.compute.v1.IBackendServiceNetworkPassThroughLbTrafficPolicy|null} [networkPassThroughLbTrafficPolicy] BackendService networkPassThroughLbTrafficPolicy + * @property {google.cloud.compute.v1.IBackendServiceOrchestrationInfo|null} [orchestrationInfo] BackendService orchestrationInfo * @property {google.cloud.compute.v1.IOutlierDetection|null} [outlierDetection] BackendService outlierDetection * @property {google.cloud.compute.v1.IBackendServiceParams|null} [params] BackendService params * @property {number|null} [port] BackendService port @@ -52072,6 +52780,14 @@ */ BackendService.prototype.networkPassThroughLbTrafficPolicy = null; + /** + * BackendService orchestrationInfo. + * @member {google.cloud.compute.v1.IBackendServiceOrchestrationInfo|null|undefined} orchestrationInfo + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + BackendService.prototype.orchestrationInfo = null; + /** * BackendService outlierDetection. * @member {google.cloud.compute.v1.IOutlierDetection|null|undefined} outlierDetection @@ -52373,6 +53089,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendService.prototype, "_orchestrationInfo", { + get: $util.oneOfGetter($oneOfFields = ["orchestrationInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BackendService.prototype, "_outlierDetection", { get: $util.oneOfGetter($oneOfFields = ["outlierDetection"]), @@ -52578,6 +53300,8 @@ if (message.customMetrics != null && message.customMetrics.length) for (var i = 0; i < message.customMetrics.length; ++i) $root.google.cloud.compute.v1.BackendServiceCustomMetric.encode(message.customMetrics[i], writer.uint32(/* id 429453813, wireType 2 =*/3435630506).fork()).ldelim(); + if (message.orchestrationInfo != null && Object.hasOwnProperty.call(message, "orchestrationInfo")) + $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo.encode(message.orchestrationInfo, writer.uint32(/* id 441144300, wireType 2 =*/3529154402).fork()).ldelim(); if (message.healthChecks != null && message.healthChecks.length) for (var i = 0; i < message.healthChecks.length; ++i) writer.uint32(/* id 448370606, wireType 2 =*/3586964850).string(message.healthChecks[i]); @@ -52801,6 +53525,10 @@ message.networkPassThroughLbTrafficPolicy = $root.google.cloud.compute.v1.BackendServiceNetworkPassThroughLbTrafficPolicy.decode(reader, reader.uint32()); break; } + case 441144300: { + message.orchestrationInfo = $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo.decode(reader, reader.uint32()); + break; + } case 354625086: { message.outlierDetection = $root.google.cloud.compute.v1.OutlierDetection.decode(reader, reader.uint32()); break; @@ -53133,6 +53861,14 @@ return "networkPassThroughLbTrafficPolicy." + error; } } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + properties._orchestrationInfo = 1; + { + var error = $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo.verify(message.orchestrationInfo); + if (error) + return "orchestrationInfo." + error; + } + } if (message.outlierDetection != null && message.hasOwnProperty("outlierDetection")) { properties._outlierDetection = 1; { @@ -53409,6 +54145,11 @@ throw TypeError(".google.cloud.compute.v1.BackendService.networkPassThroughLbTrafficPolicy: object expected"); message.networkPassThroughLbTrafficPolicy = $root.google.cloud.compute.v1.BackendServiceNetworkPassThroughLbTrafficPolicy.fromObject(object.networkPassThroughLbTrafficPolicy); } + if (object.orchestrationInfo != null) { + if (typeof object.orchestrationInfo !== "object") + throw TypeError(".google.cloud.compute.v1.BackendService.orchestrationInfo: object expected"); + message.orchestrationInfo = $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo.fromObject(object.orchestrationInfo); + } if (object.outlierDetection != null) { if (typeof object.outlierDetection !== "object") throw TypeError(".google.cloud.compute.v1.BackendService.outlierDetection: object expected"); @@ -53716,6 +54457,11 @@ for (var j = 0; j < message.customMetrics.length; ++j) object.customMetrics[j] = $root.google.cloud.compute.v1.BackendServiceCustomMetric.toObject(message.customMetrics[j], options); } + if (message.orchestrationInfo != null && message.hasOwnProperty("orchestrationInfo")) { + object.orchestrationInfo = $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo.toObject(message.orchestrationInfo, options); + if (options.oneofs) + object._orchestrationInfo = "orchestrationInfo"; + } if (message.healthChecks && message.healthChecks.length) { object.healthChecks = []; for (var j = 0; j < message.healthChecks.length; ++j) @@ -60507,6 +61253,224 @@ return BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity; })(); + v1.BackendServiceOrchestrationInfo = (function() { + + /** + * Properties of a BackendServiceOrchestrationInfo. + * @memberof google.cloud.compute.v1 + * @interface IBackendServiceOrchestrationInfo + * @property {string|null} [resourceUri] BackendServiceOrchestrationInfo resourceUri + */ + + /** + * Constructs a new BackendServiceOrchestrationInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendServiceOrchestrationInfo. + * @implements IBackendServiceOrchestrationInfo + * @constructor + * @param {google.cloud.compute.v1.IBackendServiceOrchestrationInfo=} [properties] Properties to set + */ + function BackendServiceOrchestrationInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendServiceOrchestrationInfo resourceUri. + * @member {string|null|undefined} resourceUri + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @instance + */ + BackendServiceOrchestrationInfo.prototype.resourceUri = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendServiceOrchestrationInfo.prototype, "_resourceUri", { + get: $util.oneOfGetter($oneOfFields = ["resourceUri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendServiceOrchestrationInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.IBackendServiceOrchestrationInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo instance + */ + BackendServiceOrchestrationInfo.create = function create(properties) { + return new BackendServiceOrchestrationInfo(properties); + }; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message. Does not implicitly {@link google.cloud.compute.v1.BackendServiceOrchestrationInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.IBackendServiceOrchestrationInfo} message BackendServiceOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceOrchestrationInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceUri != null && Object.hasOwnProperty.call(message, "resourceUri")) + writer.uint32(/* id 152830395, wireType 2 =*/1222643162).string(message.resourceUri); + return writer; + }; + + /** + * Encodes the specified BackendServiceOrchestrationInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendServiceOrchestrationInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.IBackendServiceOrchestrationInfo} message BackendServiceOrchestrationInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceOrchestrationInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @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.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceOrchestrationInfo.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 152830395: { + message.resourceUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendServiceOrchestrationInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceOrchestrationInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendServiceOrchestrationInfo message. + * @function verify + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendServiceOrchestrationInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + properties._resourceUri = 1; + if (!$util.isString(message.resourceUri)) + return "resourceUri: string expected"; + } + return null; + }; + + /** + * Creates a BackendServiceOrchestrationInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendServiceOrchestrationInfo} BackendServiceOrchestrationInfo + */ + BackendServiceOrchestrationInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo) + return object; + var message = new $root.google.cloud.compute.v1.BackendServiceOrchestrationInfo(); + if (object.resourceUri != null) + message.resourceUri = String(object.resourceUri); + return message; + }; + + /** + * Creates a plain object from a BackendServiceOrchestrationInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {google.cloud.compute.v1.BackendServiceOrchestrationInfo} message BackendServiceOrchestrationInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendServiceOrchestrationInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.resourceUri != null && message.hasOwnProperty("resourceUri")) { + object.resourceUri = message.resourceUri; + if (options.oneofs) + object._resourceUri = "resourceUri"; + } + return object; + }; + + /** + * Converts this BackendServiceOrchestrationInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @instance + * @returns {Object.} JSON object + */ + BackendServiceOrchestrationInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendServiceOrchestrationInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1.BackendServiceOrchestrationInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendServiceOrchestrationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.BackendServiceOrchestrationInfo"; + }; + + return BackendServiceOrchestrationInfo; + })(); + v1.BackendServiceParams = (function() { /** @@ -68389,6 +69353,257 @@ return BulkZoneSetLabelsRequest; })(); + v1.BundledLocalSsds = (function() { + + /** + * Properties of a BundledLocalSsds. + * @memberof google.cloud.compute.v1 + * @interface IBundledLocalSsds + * @property {string|null} [defaultInterface] BundledLocalSsds defaultInterface + * @property {number|null} [partitionCount] BundledLocalSsds partitionCount + */ + + /** + * Constructs a new BundledLocalSsds. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BundledLocalSsds. + * @implements IBundledLocalSsds + * @constructor + * @param {google.cloud.compute.v1.IBundledLocalSsds=} [properties] Properties to set + */ + function BundledLocalSsds(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BundledLocalSsds defaultInterface. + * @member {string|null|undefined} defaultInterface + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @instance + */ + BundledLocalSsds.prototype.defaultInterface = null; + + /** + * BundledLocalSsds partitionCount. + * @member {number|null|undefined} partitionCount + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @instance + */ + BundledLocalSsds.prototype.partitionCount = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BundledLocalSsds.prototype, "_defaultInterface", { + get: $util.oneOfGetter($oneOfFields = ["defaultInterface"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BundledLocalSsds.prototype, "_partitionCount", { + get: $util.oneOfGetter($oneOfFields = ["partitionCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BundledLocalSsds instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {google.cloud.compute.v1.IBundledLocalSsds=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BundledLocalSsds} BundledLocalSsds instance + */ + BundledLocalSsds.create = function create(properties) { + return new BundledLocalSsds(properties); + }; + + /** + * Encodes the specified BundledLocalSsds message. Does not implicitly {@link google.cloud.compute.v1.BundledLocalSsds.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {google.cloud.compute.v1.IBundledLocalSsds} message BundledLocalSsds message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BundledLocalSsds.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaultInterface != null && Object.hasOwnProperty.call(message, "defaultInterface")) + writer.uint32(/* id 17309883, wireType 2 =*/138479066).string(message.defaultInterface); + if (message.partitionCount != null && Object.hasOwnProperty.call(message, "partitionCount")) + writer.uint32(/* id 408514426, wireType 0 =*/3268115408).int32(message.partitionCount); + return writer; + }; + + /** + * Encodes the specified BundledLocalSsds message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BundledLocalSsds.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {google.cloud.compute.v1.IBundledLocalSsds} message BundledLocalSsds message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BundledLocalSsds.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BundledLocalSsds message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @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.BundledLocalSsds} BundledLocalSsds + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BundledLocalSsds.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BundledLocalSsds(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 17309883: { + message.defaultInterface = reader.string(); + break; + } + case 408514426: { + message.partitionCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BundledLocalSsds message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BundledLocalSsds} BundledLocalSsds + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BundledLocalSsds.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BundledLocalSsds message. + * @function verify + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BundledLocalSsds.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.defaultInterface != null && message.hasOwnProperty("defaultInterface")) { + properties._defaultInterface = 1; + if (!$util.isString(message.defaultInterface)) + return "defaultInterface: string expected"; + } + if (message.partitionCount != null && message.hasOwnProperty("partitionCount")) { + properties._partitionCount = 1; + if (!$util.isInteger(message.partitionCount)) + return "partitionCount: integer expected"; + } + return null; + }; + + /** + * Creates a BundledLocalSsds message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BundledLocalSsds} BundledLocalSsds + */ + BundledLocalSsds.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BundledLocalSsds) + return object; + var message = new $root.google.cloud.compute.v1.BundledLocalSsds(); + if (object.defaultInterface != null) + message.defaultInterface = String(object.defaultInterface); + if (object.partitionCount != null) + message.partitionCount = object.partitionCount | 0; + return message; + }; + + /** + * Creates a plain object from a BundledLocalSsds message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {google.cloud.compute.v1.BundledLocalSsds} message BundledLocalSsds + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BundledLocalSsds.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.defaultInterface != null && message.hasOwnProperty("defaultInterface")) { + object.defaultInterface = message.defaultInterface; + if (options.oneofs) + object._defaultInterface = "defaultInterface"; + } + if (message.partitionCount != null && message.hasOwnProperty("partitionCount")) { + object.partitionCount = message.partitionCount; + if (options.oneofs) + object._partitionCount = "partitionCount"; + } + return object; + }; + + /** + * Converts this BundledLocalSsds to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @instance + * @returns {Object.} JSON object + */ + BundledLocalSsds.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BundledLocalSsds + * @function getTypeUrl + * @memberof google.cloud.compute.v1.BundledLocalSsds + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BundledLocalSsds.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.BundledLocalSsds"; + }; + + return BundledLocalSsds; + })(); + v1.CacheInvalidationRule = (function() { /** @@ -73027,6 +74242,7 @@ * @property {number} GENERAL_PURPOSE_N2=301912156 GENERAL_PURPOSE_N2 value * @property {number} GENERAL_PURPOSE_N2D=232471400 GENERAL_PURPOSE_N2D value * @property {number} GENERAL_PURPOSE_N4=301912158 GENERAL_PURPOSE_N4 value + * @property {number} GENERAL_PURPOSE_N4A=232471459 GENERAL_PURPOSE_N4A value * @property {number} GENERAL_PURPOSE_N4D=232471462 GENERAL_PURPOSE_N4D value * @property {number} GENERAL_PURPOSE_T2D=232477166 GENERAL_PURPOSE_T2D value * @property {number} GRAPHICS_OPTIMIZED=68500563 GRAPHICS_OPTIMIZED value @@ -73069,6 +74285,7 @@ values[valuesById[301912156] = "GENERAL_PURPOSE_N2"] = 301912156; values[valuesById[232471400] = "GENERAL_PURPOSE_N2D"] = 232471400; values[valuesById[301912158] = "GENERAL_PURPOSE_N4"] = 301912158; + values[valuesById[232471459] = "GENERAL_PURPOSE_N4A"] = 232471459; values[valuesById[232471462] = "GENERAL_PURPOSE_N4D"] = 232471462; values[valuesById[232477166] = "GENERAL_PURPOSE_T2D"] = 232477166; values[valuesById[68500563] = "GRAPHICS_OPTIMIZED"] = 68500563; @@ -95279,27 +96496,27 @@ return DeleteRegionDiskRequest; })(); - v1.DeleteRegionHealthCheckRequest = (function() { + v1.DeleteRegionHealthAggregationPolicyRequest = (function() { /** - * Properties of a DeleteRegionHealthCheckRequest. + * Properties of a DeleteRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1 - * @interface IDeleteRegionHealthCheckRequest - * @property {string|null} [healthCheck] DeleteRegionHealthCheckRequest healthCheck - * @property {string|null} [project] DeleteRegionHealthCheckRequest project - * @property {string|null} [region] DeleteRegionHealthCheckRequest region - * @property {string|null} [requestId] DeleteRegionHealthCheckRequest requestId + * @interface IDeleteRegionHealthAggregationPolicyRequest + * @property {string|null} [healthAggregationPolicy] DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy + * @property {string|null} [project] DeleteRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] DeleteRegionHealthAggregationPolicyRequest region + * @property {string|null} [requestId] DeleteRegionHealthAggregationPolicyRequest requestId */ /** - * Constructs a new DeleteRegionHealthCheckRequest. + * Constructs a new DeleteRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a DeleteRegionHealthCheckRequest. - * @implements IDeleteRegionHealthCheckRequest + * @classdesc Represents a DeleteRegionHealthAggregationPolicyRequest. + * @implements IDeleteRegionHealthAggregationPolicyRequest * @constructor - * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest=} [properties] Properties to set */ - function DeleteRegionHealthCheckRequest(properties) { + function DeleteRegionHealthAggregationPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95307,68 +96524,68 @@ } /** - * DeleteRegionHealthCheckRequest healthCheck. - * @member {string} healthCheck - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * DeleteRegionHealthAggregationPolicyRequest healthAggregationPolicy. + * @member {string} healthAggregationPolicy + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @instance */ - DeleteRegionHealthCheckRequest.prototype.healthCheck = ""; + DeleteRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicy = ""; /** - * DeleteRegionHealthCheckRequest project. + * DeleteRegionHealthAggregationPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @instance */ - DeleteRegionHealthCheckRequest.prototype.project = ""; + DeleteRegionHealthAggregationPolicyRequest.prototype.project = ""; /** - * DeleteRegionHealthCheckRequest region. + * DeleteRegionHealthAggregationPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @instance */ - DeleteRegionHealthCheckRequest.prototype.region = ""; + DeleteRegionHealthAggregationPolicyRequest.prototype.region = ""; /** - * DeleteRegionHealthCheckRequest requestId. + * DeleteRegionHealthAggregationPolicyRequest requestId. * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @instance */ - DeleteRegionHealthCheckRequest.prototype.requestId = null; + DeleteRegionHealthAggregationPolicyRequest.prototype.requestId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(DeleteRegionHealthCheckRequest.prototype, "_requestId", { + Object.defineProperty(DeleteRegionHealthAggregationPolicyRequest.prototype, "_requestId", { get: $util.oneOfGetter($oneOfFields = ["requestId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new DeleteRegionHealthCheckRequest instance using the specified properties. + * Creates a new DeleteRegionHealthAggregationPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.DeleteRegionHealthCheckRequest} DeleteRegionHealthCheckRequest instance + * @param {google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest instance */ - DeleteRegionHealthCheckRequest.create = function create(properties) { - return new DeleteRegionHealthCheckRequest(properties); + DeleteRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new DeleteRegionHealthAggregationPolicyRequest(properties); }; /** - * Encodes the specified DeleteRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest} message DeleteRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest} message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteRegionHealthCheckRequest.encode = function encode(message, writer) { + DeleteRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) @@ -95377,46 +96594,335 @@ writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); - if (message.healthCheck != null && Object.hasOwnProperty.call(message, "healthCheck")) - writer.uint32(/* id 308876645, wireType 2 =*/2471013162).string(message.healthCheck); + if (message.healthAggregationPolicy != null && Object.hasOwnProperty.call(message, "healthAggregationPolicy")) + writer.uint32(/* id 240314354, wireType 2 =*/1922514834).string(message.healthAggregationPolicy); return writer; }; /** - * Encodes the specified DeleteRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified DeleteRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest} message DeleteRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest} message DeleteRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteRegionHealthCheckRequest message from the specified reader or buffer. + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest * @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.DeleteRegionHealthCheckRequest} DeleteRegionHealthCheckRequest + * @returns {google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteRegionHealthCheckRequest.decode = function decode(reader, length, error) { + DeleteRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.DeleteRegionHealthCheckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 308876645: { - message.healthCheck = reader.string(); + case 240314354: { + message.healthAggregationPolicy = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + if (!$util.isString(message.healthAggregationPolicy)) + return "healthAggregationPolicy: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest} DeleteRegionHealthAggregationPolicyRequest + */ + DeleteRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicy != null) + message.healthAggregationPolicy = String(object.healthAggregationPolicy); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest} message DeleteRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicy = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + object.healthAggregationPolicy = message.healthAggregationPolicy; + return object; + }; + + /** + * Converts this DeleteRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest"; + }; + + return DeleteRegionHealthAggregationPolicyRequest; + })(); + + v1.DeleteRegionHealthCheckRequest = (function() { + + /** + * Properties of a DeleteRegionHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionHealthCheckRequest + * @property {string|null} [healthCheck] DeleteRegionHealthCheckRequest healthCheck + * @property {string|null} [project] DeleteRegionHealthCheckRequest project + * @property {string|null} [region] DeleteRegionHealthCheckRequest region + * @property {string|null} [requestId] DeleteRegionHealthCheckRequest requestId + */ + + /** + * Constructs a new DeleteRegionHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionHealthCheckRequest. + * @implements IDeleteRegionHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest=} [properties] Properties to set + */ + function DeleteRegionHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionHealthCheckRequest healthCheck. + * @member {string} healthCheck + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @instance + */ + DeleteRegionHealthCheckRequest.prototype.healthCheck = ""; + + /** + * DeleteRegionHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @instance + */ + DeleteRegionHealthCheckRequest.prototype.project = ""; + + /** + * DeleteRegionHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @instance + */ + DeleteRegionHealthCheckRequest.prototype.region = ""; + + /** + * DeleteRegionHealthCheckRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @instance + */ + DeleteRegionHealthCheckRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionHealthCheckRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionHealthCheckRequest} DeleteRegionHealthCheckRequest instance + */ + DeleteRegionHealthCheckRequest.create = function create(properties) { + return new DeleteRegionHealthCheckRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest} message DeleteRegionHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionHealthCheckRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthCheck != null && Object.hasOwnProperty.call(message, "healthCheck")) + writer.uint32(/* id 308876645, wireType 2 =*/2471013162).string(message.healthCheck); + return writer; + }; + + /** + * Encodes the specified DeleteRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionHealthCheckRequest} message DeleteRegionHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionHealthCheckRequest + * @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.DeleteRegionHealthCheckRequest} DeleteRegionHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionHealthCheckRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.DeleteRegionHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 308876645: { + message.healthCheck = reader.string(); break; } case 227560217: { @@ -122508,6 +124014,7 @@ * @property {string|null} [labelFingerprint] ExternalVpnGateway labelFingerprint * @property {Object.|null} [labels] ExternalVpnGateway labels * @property {string|null} [name] ExternalVpnGateway name + * @property {google.cloud.compute.v1.IExternalVpnGatewayParams|null} [params] ExternalVpnGateway params * @property {string|null} [redundancyType] ExternalVpnGateway redundancyType * @property {string|null} [selfLink] ExternalVpnGateway selfLink */ @@ -122593,6 +124100,14 @@ */ ExternalVpnGateway.prototype.name = null; + /** + * ExternalVpnGateway params. + * @member {google.cloud.compute.v1.IExternalVpnGatewayParams|null|undefined} params + * @memberof google.cloud.compute.v1.ExternalVpnGateway + * @instance + */ + ExternalVpnGateway.prototype.params = null; + /** * ExternalVpnGateway redundancyType. * @member {string|null|undefined} redundancyType @@ -122648,6 +124163,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ExternalVpnGateway.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ExternalVpnGateway.prototype, "_redundancyType", { get: $util.oneOfGetter($oneOfFields = ["redundancyType"]), @@ -122695,6 +124216,8 @@ $root.google.cloud.compute.v1.ExternalVpnGatewayInterface.encode(message.interfaces[i], writer.uint32(/* id 12073562, wireType 2 =*/96588498).fork()).ldelim(); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.ExternalVpnGatewayParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 178124825, wireType 2 =*/1424998602).string(message.labelFingerprint); if (message.redundancyType != null && Object.hasOwnProperty.call(message, "redundancyType")) @@ -122795,6 +124318,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.ExternalVpnGatewayParams.decode(reader, reader.uint32()); + break; + } case 271443740: { message.redundancyType = reader.string(); break; @@ -122886,6 +124413,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.ExternalVpnGatewayParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.redundancyType != null && message.hasOwnProperty("redundancyType")) { properties._redundancyType = 1; if (!$util.isString(message.redundancyType)) @@ -122947,6 +124482,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.ExternalVpnGateway.params: object expected"); + message.params = $root.google.cloud.compute.v1.ExternalVpnGatewayParams.fromObject(object.params); + } if (object.redundancyType != null) message.redundancyType = String(object.redundancyType); if (object.selfLink != null) @@ -122999,6 +124539,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.ExternalVpnGatewayParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) { object.labelFingerprint = message.labelFingerprint; if (options.oneofs) @@ -123793,6 +125338,246 @@ return ExternalVpnGatewayList; })(); + v1.ExternalVpnGatewayParams = (function() { + + /** + * Properties of an ExternalVpnGatewayParams. + * @memberof google.cloud.compute.v1 + * @interface IExternalVpnGatewayParams + * @property {Object.|null} [resourceManagerTags] ExternalVpnGatewayParams resourceManagerTags + */ + + /** + * Constructs a new ExternalVpnGatewayParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an ExternalVpnGatewayParams. + * @implements IExternalVpnGatewayParams + * @constructor + * @param {google.cloud.compute.v1.IExternalVpnGatewayParams=} [properties] Properties to set + */ + function ExternalVpnGatewayParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExternalVpnGatewayParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @instance + */ + ExternalVpnGatewayParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new ExternalVpnGatewayParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.IExternalVpnGatewayParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ExternalVpnGatewayParams} ExternalVpnGatewayParams instance + */ + ExternalVpnGatewayParams.create = function create(properties) { + return new ExternalVpnGatewayParams(properties); + }; + + /** + * Encodes the specified ExternalVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1.ExternalVpnGatewayParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.IExternalVpnGatewayParams} message ExternalVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalVpnGatewayParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExternalVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ExternalVpnGatewayParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.IExternalVpnGatewayParams} message ExternalVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalVpnGatewayParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @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.ExternalVpnGatewayParams} ExternalVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalVpnGatewayParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ExternalVpnGatewayParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExternalVpnGatewayParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ExternalVpnGatewayParams} ExternalVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalVpnGatewayParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExternalVpnGatewayParams message. + * @function verify + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExternalVpnGatewayParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an ExternalVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ExternalVpnGatewayParams} ExternalVpnGatewayParams + */ + ExternalVpnGatewayParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ExternalVpnGatewayParams) + return object; + var message = new $root.google.cloud.compute.v1.ExternalVpnGatewayParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.ExternalVpnGatewayParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an ExternalVpnGatewayParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.ExternalVpnGatewayParams} message ExternalVpnGatewayParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExternalVpnGatewayParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this ExternalVpnGatewayParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @instance + * @returns {Object.} JSON object + */ + ExternalVpnGatewayParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExternalVpnGatewayParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ExternalVpnGatewayParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExternalVpnGatewayParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ExternalVpnGatewayParams"; + }; + + return ExternalVpnGatewayParams; + })(); + v1.FileContentBuffer = (function() { /** @@ -169862,6 +171647,258 @@ return GetRegionDiskTypeRequest; })(); + v1.GetRegionHealthAggregationPolicyRequest = (function() { + + /** + * Properties of a GetRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionHealthAggregationPolicyRequest + * @property {string|null} [healthAggregationPolicy] GetRegionHealthAggregationPolicyRequest healthAggregationPolicy + * @property {string|null} [project] GetRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] GetRegionHealthAggregationPolicyRequest region + */ + + /** + * Constructs a new GetRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionHealthAggregationPolicyRequest. + * @implements IGetRegionHealthAggregationPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest=} [properties] Properties to set + */ + function GetRegionHealthAggregationPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionHealthAggregationPolicyRequest healthAggregationPolicy. + * @member {string} healthAggregationPolicy + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @instance + */ + GetRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicy = ""; + + /** + * GetRegionHealthAggregationPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @instance + */ + GetRegionHealthAggregationPolicyRequest.prototype.project = ""; + + /** + * GetRegionHealthAggregationPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @instance + */ + GetRegionHealthAggregationPolicyRequest.prototype.region = ""; + + /** + * Creates a new GetRegionHealthAggregationPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest instance + */ + GetRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new GetRegionHealthAggregationPolicyRequest(properties); + }; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest} message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthAggregationPolicy != null && Object.hasOwnProperty.call(message, "healthAggregationPolicy")) + writer.uint32(/* id 240314354, wireType 2 =*/1922514834).string(message.healthAggregationPolicy); + return writer; + }; + + /** + * Encodes the specified GetRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest} message GetRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @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.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 240314354: { + message.healthAggregationPolicy = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + if (!$util.isString(message.healthAggregationPolicy)) + return "healthAggregationPolicy: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + return null; + }; + + /** + * Creates a GetRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest} GetRegionHealthAggregationPolicyRequest + */ + GetRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicy != null) + message.healthAggregationPolicy = String(object.healthAggregationPolicy); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a GetRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest} message GetRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicy = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + object.healthAggregationPolicy = message.healthAggregationPolicy; + return object; + }; + + /** + * Converts this GetRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest"; + }; + + return GetRegionHealthAggregationPolicyRequest; + })(); + v1.GetRegionHealthCheckRequest = (function() { /** @@ -174957,6 +176994,281 @@ return GetReservationRequest; })(); + v1.GetReservationSlotRequest = (function() { + + /** + * Properties of a GetReservationSlotRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetReservationSlotRequest + * @property {string|null} [parentName] GetReservationSlotRequest parentName + * @property {string|null} [project] GetReservationSlotRequest project + * @property {string|null} [reservationSlot] GetReservationSlotRequest reservationSlot + * @property {string|null} [zone] GetReservationSlotRequest zone + */ + + /** + * Constructs a new GetReservationSlotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetReservationSlotRequest. + * @implements IGetReservationSlotRequest + * @constructor + * @param {google.cloud.compute.v1.IGetReservationSlotRequest=} [properties] Properties to set + */ + function GetReservationSlotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetReservationSlotRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.parentName = ""; + + /** + * GetReservationSlotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.project = ""; + + /** + * GetReservationSlotRequest reservationSlot. + * @member {string} reservationSlot + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.reservationSlot = ""; + + /** + * GetReservationSlotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @instance + */ + GetReservationSlotRequest.prototype.zone = ""; + + /** + * Creates a new GetReservationSlotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IGetReservationSlotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetReservationSlotRequest} GetReservationSlotRequest instance + */ + GetReservationSlotRequest.create = function create(properties) { + return new GetReservationSlotRequest(properties); + }; + + /** + * Encodes the specified GetReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetReservationSlotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IGetReservationSlotRequest} message GetReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetReservationSlotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.reservationSlot != null && Object.hasOwnProperty.call(message, "reservationSlot")) + writer.uint32(/* id 277470865, wireType 2 =*/2219766922).string(message.reservationSlot); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + return writer; + }; + + /** + * Encodes the specified GetReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetReservationSlotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IGetReservationSlotRequest} message GetReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetReservationSlotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @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.GetReservationSlotRequest} GetReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetReservationSlotRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.GetReservationSlotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 478151936: { + message.parentName = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 277470865: { + message.reservationSlot = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetReservationSlotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetReservationSlotRequest} GetReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetReservationSlotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetReservationSlotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetReservationSlotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + if (!$util.isString(message.reservationSlot)) + return "reservationSlot: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetReservationSlotRequest} GetReservationSlotRequest + */ + GetReservationSlotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetReservationSlotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetReservationSlotRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.reservationSlot != null) + message.reservationSlot = String(object.reservationSlot); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetReservationSlotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.GetReservationSlotRequest} message GetReservationSlotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetReservationSlotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.reservationSlot = ""; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + object.reservationSlot = message.reservationSlot; + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + return object; + }; + + /** + * Converts this GetReservationSlotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @instance + * @returns {Object.} JSON object + */ + GetReservationSlotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetReservationSlotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetReservationSlotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetReservationSlotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetReservationSlotRequest"; + }; + + return GetReservationSlotRequest; + })(); + v1.GetReservationSubBlockRequest = (function() { /** @@ -189974,45 +192286,26 @@ return HTTPSHealthCheck; })(); - v1.HealthCheck = (function() { + v1.HealthAggregationPoliciesScopedList = (function() { /** - * Properties of a HealthCheck. + * Properties of a HealthAggregationPoliciesScopedList. * @memberof google.cloud.compute.v1 - * @interface IHealthCheck - * @property {number|null} [checkIntervalSec] HealthCheck checkIntervalSec - * @property {string|null} [creationTimestamp] HealthCheck creationTimestamp - * @property {string|null} [description] HealthCheck description - * @property {google.cloud.compute.v1.IGRPCHealthCheck|null} [grpcHealthCheck] HealthCheck grpcHealthCheck - * @property {google.cloud.compute.v1.IGRPCTLSHealthCheck|null} [grpcTlsHealthCheck] HealthCheck grpcTlsHealthCheck - * @property {number|null} [healthyThreshold] HealthCheck healthyThreshold - * @property {google.cloud.compute.v1.IHTTP2HealthCheck|null} [http2HealthCheck] HealthCheck http2HealthCheck - * @property {google.cloud.compute.v1.IHTTPHealthCheck|null} [httpHealthCheck] HealthCheck httpHealthCheck - * @property {google.cloud.compute.v1.IHTTPSHealthCheck|null} [httpsHealthCheck] HealthCheck httpsHealthCheck - * @property {number|Long|null} [id] HealthCheck id - * @property {string|null} [kind] HealthCheck kind - * @property {google.cloud.compute.v1.IHealthCheckLogConfig|null} [logConfig] HealthCheck logConfig - * @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 - * @property {string|null} [type] HealthCheck type - * @property {number|null} [unhealthyThreshold] HealthCheck unhealthyThreshold + * @interface IHealthAggregationPoliciesScopedList + * @property {Array.|null} [healthAggregationPolicies] HealthAggregationPoliciesScopedList healthAggregationPolicies + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthAggregationPoliciesScopedList warning */ /** - * Constructs a new HealthCheck. + * Constructs a new HealthAggregationPoliciesScopedList. * @memberof google.cloud.compute.v1 - * @classdesc Represents a HealthCheck. - * @implements IHealthCheck + * @classdesc Represents a HealthAggregationPoliciesScopedList. + * @implements IHealthAggregationPoliciesScopedList * @constructor - * @param {google.cloud.compute.v1.IHealthCheck=} [properties] Properties to set + * @param {google.cloud.compute.v1.IHealthAggregationPoliciesScopedList=} [properties] Properties to set */ - function HealthCheck(properties) { - this.sourceRegions = []; + function HealthAggregationPoliciesScopedList(properties) { + this.healthAggregationPolicies = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190020,318 +192313,476 @@ } /** - * HealthCheck checkIntervalSec. - * @member {number|null|undefined} checkIntervalSec - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPoliciesScopedList healthAggregationPolicies. + * @member {Array.} healthAggregationPolicies + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList * @instance */ - HealthCheck.prototype.checkIntervalSec = null; + HealthAggregationPoliciesScopedList.prototype.healthAggregationPolicies = $util.emptyArray; /** - * HealthCheck creationTimestamp. - * @member {string|null|undefined} creationTimestamp - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPoliciesScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList * @instance */ - HealthCheck.prototype.creationTimestamp = null; + HealthAggregationPoliciesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPoliciesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * HealthCheck description. - * @member {string|null|undefined} description - * @memberof google.cloud.compute.v1.HealthCheck - * @instance + * Creates a new HealthAggregationPoliciesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthAggregationPoliciesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList instance */ - HealthCheck.prototype.description = null; + HealthAggregationPoliciesScopedList.create = function create(properties) { + return new HealthAggregationPoliciesScopedList(properties); + }; /** - * HealthCheck grpcHealthCheck. - * @member {google.cloud.compute.v1.IGRPCHealthCheck|null|undefined} grpcHealthCheck - * @memberof google.cloud.compute.v1.HealthCheck - * @instance + * Encodes the specified HealthAggregationPoliciesScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthAggregationPoliciesScopedList} message HealthAggregationPoliciesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - HealthCheck.prototype.grpcHealthCheck = null; + HealthAggregationPoliciesScopedList.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.healthAggregationPolicies != null && message.healthAggregationPolicies.length) + for (var i = 0; i < message.healthAggregationPolicies.length; ++i) + $root.google.cloud.compute.v1.HealthAggregationPolicy.encode(message.healthAggregationPolicies[i], writer.uint32(/* id 87589904, wireType 2 =*/700719234).fork()).ldelim(); + return writer; + }; /** - * HealthCheck grpcTlsHealthCheck. - * @member {google.cloud.compute.v1.IGRPCTLSHealthCheck|null|undefined} grpcTlsHealthCheck - * @memberof google.cloud.compute.v1.HealthCheck - * @instance + * Encodes the specified HealthAggregationPoliciesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPoliciesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthAggregationPoliciesScopedList} message HealthAggregationPoliciesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - HealthCheck.prototype.grpcTlsHealthCheck = null; + HealthAggregationPoliciesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * HealthCheck healthyThreshold. - * @member {number|null|undefined} healthyThreshold - * @memberof google.cloud.compute.v1.HealthCheck - * @instance + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @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.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HealthCheck.prototype.healthyThreshold = null; + HealthAggregationPoliciesScopedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 87589904: { + if (!(message.healthAggregationPolicies && message.healthAggregationPolicies.length)) + message.healthAggregationPolicies = []; + message.healthAggregationPolicies.push($root.google.cloud.compute.v1.HealthAggregationPolicy.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * HealthCheck http2HealthCheck. - * @member {google.cloud.compute.v1.IHTTP2HealthCheck|null|undefined} http2HealthCheck - * @memberof google.cloud.compute.v1.HealthCheck - * @instance + * Decodes a HealthAggregationPoliciesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HealthCheck.prototype.http2HealthCheck = null; + HealthAggregationPoliciesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * HealthCheck httpHealthCheck. - * @member {google.cloud.compute.v1.IHTTPHealthCheck|null|undefined} httpHealthCheck - * @memberof google.cloud.compute.v1.HealthCheck - * @instance + * Verifies a HealthAggregationPoliciesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HealthCheck.prototype.httpHealthCheck = null; + HealthAggregationPoliciesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicies != null && message.hasOwnProperty("healthAggregationPolicies")) { + if (!Array.isArray(message.healthAggregationPolicies)) + return "healthAggregationPolicies: array expected"; + for (var i = 0; i < message.healthAggregationPolicies.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthAggregationPolicy.verify(message.healthAggregationPolicies[i]); + if (error) + return "healthAggregationPolicies." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; /** - * HealthCheck httpsHealthCheck. - * @member {google.cloud.compute.v1.IHTTPSHealthCheck|null|undefined} httpsHealthCheck - * @memberof google.cloud.compute.v1.HealthCheck + * Creates a HealthAggregationPoliciesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthAggregationPoliciesScopedList} HealthAggregationPoliciesScopedList + */ + HealthAggregationPoliciesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList) + return object; + var message = new $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList(); + if (object.healthAggregationPolicies) { + if (!Array.isArray(object.healthAggregationPolicies)) + throw TypeError(".google.cloud.compute.v1.HealthAggregationPoliciesScopedList.healthAggregationPolicies: array expected"); + message.healthAggregationPolicies = []; + for (var i = 0; i < object.healthAggregationPolicies.length; ++i) { + if (typeof object.healthAggregationPolicies[i] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthAggregationPoliciesScopedList.healthAggregationPolicies: object expected"); + message.healthAggregationPolicies[i] = $root.google.cloud.compute.v1.HealthAggregationPolicy.fromObject(object.healthAggregationPolicies[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.HealthAggregationPoliciesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthAggregationPoliciesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {google.cloud.compute.v1.HealthAggregationPoliciesScopedList} message HealthAggregationPoliciesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthAggregationPoliciesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthAggregationPolicies = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.healthAggregationPolicies && message.healthAggregationPolicies.length) { + object.healthAggregationPolicies = []; + for (var j = 0; j < message.healthAggregationPolicies.length; ++j) + object.healthAggregationPolicies[j] = $root.google.cloud.compute.v1.HealthAggregationPolicy.toObject(message.healthAggregationPolicies[j], options); + } + return object; + }; + + /** + * Converts this HealthAggregationPoliciesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList * @instance + * @returns {Object.} JSON object */ - HealthCheck.prototype.httpsHealthCheck = null; + HealthAggregationPoliciesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * HealthCheck id. - * @member {number|Long|null|undefined} id - * @memberof google.cloud.compute.v1.HealthCheck + * Gets the default type url for HealthAggregationPoliciesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthAggregationPoliciesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthAggregationPoliciesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthAggregationPoliciesScopedList"; + }; + + return HealthAggregationPoliciesScopedList; + })(); + + v1.HealthAggregationPolicy = (function() { + + /** + * Properties of a HealthAggregationPolicy. + * @memberof google.cloud.compute.v1 + * @interface IHealthAggregationPolicy + * @property {string|null} [creationTimestamp] HealthAggregationPolicy creationTimestamp + * @property {string|null} [description] HealthAggregationPolicy description + * @property {string|null} [fingerprint] HealthAggregationPolicy fingerprint + * @property {number|null} [healthyPercentThreshold] HealthAggregationPolicy healthyPercentThreshold + * @property {number|Long|null} [id] HealthAggregationPolicy id + * @property {string|null} [kind] HealthAggregationPolicy kind + * @property {number|null} [minHealthyThreshold] HealthAggregationPolicy minHealthyThreshold + * @property {string|null} [name] HealthAggregationPolicy name + * @property {string|null} [policyType] HealthAggregationPolicy policyType + * @property {string|null} [region] HealthAggregationPolicy region + * @property {string|null} [selfLink] HealthAggregationPolicy selfLink + * @property {string|null} [selfLinkWithId] HealthAggregationPolicy selfLinkWithId + */ + + /** + * Constructs a new HealthAggregationPolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthAggregationPolicy. + * @implements IHealthAggregationPolicy + * @constructor + * @param {google.cloud.compute.v1.IHealthAggregationPolicy=} [properties] Properties to set + */ + function HealthAggregationPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthAggregationPolicy creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.id = null; + HealthAggregationPolicy.prototype.creationTimestamp = null; /** - * HealthCheck kind. - * @member {string|null|undefined} kind - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.kind = null; + HealthAggregationPolicy.prototype.description = null; /** - * HealthCheck logConfig. - * @member {google.cloud.compute.v1.IHealthCheckLogConfig|null|undefined} logConfig - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy fingerprint. + * @member {string|null|undefined} fingerprint + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.logConfig = null; + HealthAggregationPolicy.prototype.fingerprint = null; /** - * HealthCheck name. - * @member {string|null|undefined} name - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy healthyPercentThreshold. + * @member {number|null|undefined} healthyPercentThreshold + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.name = null; + HealthAggregationPolicy.prototype.healthyPercentThreshold = null; /** - * HealthCheck region. - * @member {string|null|undefined} region - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.region = null; + HealthAggregationPolicy.prototype.id = null; /** - * HealthCheck selfLink. - * @member {string|null|undefined} selfLink - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.selfLink = null; + HealthAggregationPolicy.prototype.kind = null; /** - * HealthCheck sourceRegions. - * @member {Array.} sourceRegions - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy minHealthyThreshold. + * @member {number|null|undefined} minHealthyThreshold + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.sourceRegions = $util.emptyArray; + HealthAggregationPolicy.prototype.minHealthyThreshold = null; /** - * HealthCheck sslHealthCheck. - * @member {google.cloud.compute.v1.ISSLHealthCheck|null|undefined} sslHealthCheck - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.sslHealthCheck = null; + HealthAggregationPolicy.prototype.name = null; /** - * HealthCheck tcpHealthCheck. - * @member {google.cloud.compute.v1.ITCPHealthCheck|null|undefined} tcpHealthCheck - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy policyType. + * @member {string|null|undefined} policyType + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.tcpHealthCheck = null; + HealthAggregationPolicy.prototype.policyType = null; /** - * HealthCheck timeoutSec. - * @member {number|null|undefined} timeoutSec - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.timeoutSec = null; + HealthAggregationPolicy.prototype.region = null; /** - * HealthCheck type. - * @member {string|null|undefined} type - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.type = null; + HealthAggregationPolicy.prototype.selfLink = null; /** - * HealthCheck unhealthyThreshold. - * @member {number|null|undefined} unhealthyThreshold - * @memberof google.cloud.compute.v1.HealthCheck + * HealthAggregationPolicy selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @instance */ - HealthCheck.prototype.unhealthyThreshold = null; + HealthAggregationPolicy.prototype.selfLinkWithId = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_checkIntervalSec", { - get: $util.oneOfGetter($oneOfFields = ["checkIntervalSec"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_creationTimestamp", { + Object.defineProperty(HealthAggregationPolicy.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_description", { + Object.defineProperty(HealthAggregationPolicy.prototype, "_description", { get: $util.oneOfGetter($oneOfFields = ["description"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_grpcHealthCheck", { - get: $util.oneOfGetter($oneOfFields = ["grpcHealthCheck"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_grpcTlsHealthCheck", { - get: $util.oneOfGetter($oneOfFields = ["grpcTlsHealthCheck"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_healthyThreshold", { - get: $util.oneOfGetter($oneOfFields = ["healthyThreshold"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_http2HealthCheck", { - get: $util.oneOfGetter($oneOfFields = ["http2HealthCheck"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_httpHealthCheck", { - get: $util.oneOfGetter($oneOfFields = ["httpHealthCheck"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_fingerprint", { + get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_httpsHealthCheck", { - get: $util.oneOfGetter($oneOfFields = ["httpsHealthCheck"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_healthyPercentThreshold", { + get: $util.oneOfGetter($oneOfFields = ["healthyPercentThreshold"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_id", { + Object.defineProperty(HealthAggregationPolicy.prototype, "_id", { get: $util.oneOfGetter($oneOfFields = ["id"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_kind", { + Object.defineProperty(HealthAggregationPolicy.prototype, "_kind", { get: $util.oneOfGetter($oneOfFields = ["kind"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_logConfig", { - get: $util.oneOfGetter($oneOfFields = ["logConfig"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_minHealthyThreshold", { + get: $util.oneOfGetter($oneOfFields = ["minHealthyThreshold"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_name", { + Object.defineProperty(HealthAggregationPolicy.prototype, "_name", { get: $util.oneOfGetter($oneOfFields = ["name"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_region", { - get: $util.oneOfGetter($oneOfFields = ["region"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_selfLink", { - get: $util.oneOfGetter($oneOfFields = ["selfLink"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_sslHealthCheck", { - get: $util.oneOfGetter($oneOfFields = ["sslHealthCheck"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_tcpHealthCheck", { - get: $util.oneOfGetter($oneOfFields = ["tcpHealthCheck"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_policyType", { + get: $util.oneOfGetter($oneOfFields = ["policyType"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_timeoutSec", { - get: $util.oneOfGetter($oneOfFields = ["timeoutSec"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_type", { - get: $util.oneOfGetter($oneOfFields = ["type"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheck.prototype, "_unhealthyThreshold", { - get: $util.oneOfGetter($oneOfFields = ["unhealthyThreshold"]), + Object.defineProperty(HealthAggregationPolicy.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new HealthCheck instance using the specified properties. + * Creates a new HealthAggregationPolicy instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1.IHealthCheck=} [properties] Properties to set - * @returns {google.cloud.compute.v1.HealthCheck} HealthCheck instance + * @param {google.cloud.compute.v1.IHealthAggregationPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthAggregationPolicy} HealthAggregationPolicy instance */ - HealthCheck.create = function create(properties) { - return new HealthCheck(properties); + HealthAggregationPolicy.create = function create(properties) { + return new HealthAggregationPolicy(properties); }; /** - * Encodes the specified HealthCheck message. Does not implicitly {@link google.cloud.compute.v1.HealthCheck.verify|verify} messages. + * Encodes the specified HealthAggregationPolicy message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicy.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1.IHealthCheck} message HealthCheck message or plain object to encode + * @param {google.cloud.compute.v1.IHealthAggregationPolicy} message HealthAggregationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HealthCheck.encode = function encode(message, writer) { + HealthAggregationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.id != null && Object.hasOwnProperty.call(message, "id")) @@ -190340,83 +192791,60 @@ writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); - if (message.http2HealthCheck != null && Object.hasOwnProperty.call(message, "http2HealthCheck")) - $root.google.cloud.compute.v1.HTTP2HealthCheck.encode(message.http2HealthCheck, writer.uint32(/* id 11360986, wireType 2 =*/90887890).fork()).ldelim(); + if (message.policyType != null && Object.hasOwnProperty.call(message, "policyType")) + writer.uint32(/* id 18158119, wireType 2 =*/145264954).string(message.policyType); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); - if (message.timeoutSec != null && Object.hasOwnProperty.call(message, "timeoutSec")) - writer.uint32(/* id 79994995, wireType 0 =*/639959960).int32(message.timeoutSec); - if (message.grpcHealthCheck != null && Object.hasOwnProperty.call(message, "grpcHealthCheck")) - $root.google.cloud.compute.v1.GRPCHealthCheck.encode(message.grpcHealthCheck, writer.uint32(/* id 85529574, wireType 2 =*/684236594).fork()).ldelim(); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.healthyPercentThreshold != null && Object.hasOwnProperty.call(message, "healthyPercentThreshold")) + writer.uint32(/* id 72242895, wireType 0 =*/577943160).uint32(message.healthyPercentThreshold); + if (message.minHealthyThreshold != null && Object.hasOwnProperty.call(message, "minHealthyThreshold")) + writer.uint32(/* id 132310940, wireType 0 =*/1058487520).uint32(message.minHealthyThreshold); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); - if (message.unhealthyThreshold != null && Object.hasOwnProperty.call(message, "unhealthyThreshold")) - writer.uint32(/* id 227958480, wireType 0 =*/1823667840).int32(message.unhealthyThreshold); - if (message.grpcTlsHealthCheck != null && Object.hasOwnProperty.call(message, "grpcTlsHealthCheck")) - $root.google.cloud.compute.v1.GRPCTLSHealthCheck.encode(message.grpcTlsHealthCheck, writer.uint32(/* id 267273258, wireType 2 =*/2138186066).fork()).ldelim(); - if (message.sslHealthCheck != null && Object.hasOwnProperty.call(message, "sslHealthCheck")) - $root.google.cloud.compute.v1.SSLHealthCheck.encode(message.sslHealthCheck, writer.uint32(/* id 280032440, wireType 2 =*/2240259522).fork()).ldelim(); - if (message.checkIntervalSec != null && Object.hasOwnProperty.call(message, "checkIntervalSec")) - writer.uint32(/* id 345561006, wireType 0 =*/2764488048).int32(message.checkIntervalSec); - if (message.logConfig != null && Object.hasOwnProperty.call(message, "logConfig")) - $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.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) + writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); - if (message.httpsHealthCheck != null && Object.hasOwnProperty.call(message, "httpsHealthCheck")) - $root.google.cloud.compute.v1.HTTPSHealthCheck.encode(message.httpsHealthCheck, writer.uint32(/* id 436046905, wireType 2 =*/3488375242).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); - if (message.tcpHealthCheck != null && Object.hasOwnProperty.call(message, "tcpHealthCheck")) - $root.google.cloud.compute.v1.TCPHealthCheck.encode(message.tcpHealthCheck, writer.uint32(/* id 469980419, wireType 2 =*/3759843354).fork()).ldelim(); return writer; }; /** - * Encodes the specified HealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheck.verify|verify} messages. + * Encodes the specified HealthAggregationPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1.IHealthCheck} message HealthCheck message or plain object to encode + * @param {google.cloud.compute.v1.IHealthAggregationPolicy} message HealthAggregationPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HealthCheck.encodeDelimited = function encodeDelimited(message, writer) { + HealthAggregationPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HealthCheck message from the specified reader or buffer. + * Decodes a HealthAggregationPolicy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @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.HealthCheck} HealthCheck + * @returns {google.cloud.compute.v1.HealthAggregationPolicy} HealthAggregationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HealthCheck.decode = function decode(reader, length, error) { + HealthAggregationPolicy.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthCheck(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthAggregationPolicy(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 345561006: { - message.checkIntervalSec = reader.int32(); - break; - } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -190425,28 +192853,12 @@ message.description = reader.string(); break; } - case 85529574: { - message.grpcHealthCheck = $root.google.cloud.compute.v1.GRPCHealthCheck.decode(reader, reader.uint32()); - break; - } - case 267273258: { - message.grpcTlsHealthCheck = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.decode(reader, reader.uint32()); - break; - } - case 403212361: { - message.healthyThreshold = reader.int32(); - break; - } - case 11360986: { - message.http2HealthCheck = $root.google.cloud.compute.v1.HTTP2HealthCheck.decode(reader, reader.uint32()); - break; - } - case 412586940: { - message.httpHealthCheck = $root.google.cloud.compute.v1.HTTPHealthCheck.decode(reader, reader.uint32()); + case 234678500: { + message.fingerprint = reader.string(); break; } - case 436046905: { - message.httpsHealthCheck = $root.google.cloud.compute.v1.HTTPSHealthCheck.decode(reader, reader.uint32()); + case 72242895: { + message.healthyPercentThreshold = reader.uint32(); break; } case 3355: { @@ -190457,14 +192869,18 @@ message.kind = reader.string(); break; } - case 351299741: { - message.logConfig = $root.google.cloud.compute.v1.HealthCheckLogConfig.decode(reader, reader.uint32()); + case 132310940: { + message.minHealthyThreshold = reader.uint32(); break; } case 3373707: { message.name = reader.string(); break; } + case 18158119: { + message.policyType = reader.string(); + break; + } case 138946292: { message.region = reader.string(); break; @@ -190473,30 +192889,8 @@ 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; - } - case 469980419: { - message.tcpHealthCheck = $root.google.cloud.compute.v1.TCPHealthCheck.decode(reader, reader.uint32()); - break; - } - case 79994995: { - message.timeoutSec = reader.int32(); - break; - } - case 3575610: { - message.type = reader.string(); - break; - } - case 227958480: { - message.unhealthyThreshold = reader.int32(); + case 44520962: { + message.selfLinkWithId = reader.string(); break; } default: @@ -190508,38 +192902,33 @@ }; /** - * Decodes a HealthCheck message from the specified reader or buffer, length delimited. + * Decodes a HealthAggregationPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.HealthCheck} HealthCheck + * @returns {google.cloud.compute.v1.HealthAggregationPolicy} HealthAggregationPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HealthCheck.decodeDelimited = function decodeDelimited(reader) { + HealthAggregationPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HealthCheck message. + * Verifies a HealthAggregationPolicy message. * @function verify - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HealthCheck.verify = function verify(message) { + HealthAggregationPolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.checkIntervalSec != null && message.hasOwnProperty("checkIntervalSec")) { - properties._checkIntervalSec = 1; - if (!$util.isInteger(message.checkIntervalSec)) - return "checkIntervalSec: integer expected"; - } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -190550,50 +192939,15 @@ if (!$util.isString(message.description)) return "description: string expected"; } - if (message.grpcHealthCheck != null && message.hasOwnProperty("grpcHealthCheck")) { - properties._grpcHealthCheck = 1; - { - var error = $root.google.cloud.compute.v1.GRPCHealthCheck.verify(message.grpcHealthCheck); - if (error) - return "grpcHealthCheck." + error; - } - } - if (message.grpcTlsHealthCheck != null && message.hasOwnProperty("grpcTlsHealthCheck")) { - properties._grpcTlsHealthCheck = 1; - { - var error = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.verify(message.grpcTlsHealthCheck); - if (error) - return "grpcTlsHealthCheck." + error; - } - } - if (message.healthyThreshold != null && message.hasOwnProperty("healthyThreshold")) { - properties._healthyThreshold = 1; - if (!$util.isInteger(message.healthyThreshold)) - return "healthyThreshold: integer expected"; - } - if (message.http2HealthCheck != null && message.hasOwnProperty("http2HealthCheck")) { - properties._http2HealthCheck = 1; - { - var error = $root.google.cloud.compute.v1.HTTP2HealthCheck.verify(message.http2HealthCheck); - if (error) - return "http2HealthCheck." + error; - } - } - if (message.httpHealthCheck != null && message.hasOwnProperty("httpHealthCheck")) { - properties._httpHealthCheck = 1; - { - var error = $root.google.cloud.compute.v1.HTTPHealthCheck.verify(message.httpHealthCheck); - if (error) - return "httpHealthCheck." + error; - } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + properties._fingerprint = 1; + if (!$util.isString(message.fingerprint)) + return "fingerprint: string expected"; } - if (message.httpsHealthCheck != null && message.hasOwnProperty("httpsHealthCheck")) { - properties._httpsHealthCheck = 1; - { - var error = $root.google.cloud.compute.v1.HTTPSHealthCheck.verify(message.httpsHealthCheck); - if (error) - return "httpsHealthCheck." + error; - } + if (message.healthyPercentThreshold != null && message.hasOwnProperty("healthyPercentThreshold")) { + properties._healthyPercentThreshold = 1; + if (!$util.isInteger(message.healthyPercentThreshold)) + return "healthyPercentThreshold: integer expected"; } if (message.id != null && message.hasOwnProperty("id")) { properties._id = 1; @@ -190605,19 +192959,21 @@ if (!$util.isString(message.kind)) return "kind: string expected"; } - if (message.logConfig != null && message.hasOwnProperty("logConfig")) { - properties._logConfig = 1; - { - var error = $root.google.cloud.compute.v1.HealthCheckLogConfig.verify(message.logConfig); - if (error) - return "logConfig." + error; - } + if (message.minHealthyThreshold != null && message.hasOwnProperty("minHealthyThreshold")) { + properties._minHealthyThreshold = 1; + if (!$util.isInteger(message.minHealthyThreshold)) + return "minHealthyThreshold: integer expected"; } if (message.name != null && message.hasOwnProperty("name")) { properties._name = 1; if (!$util.isString(message.name)) return "name: string expected"; } + if (message.policyType != null && message.hasOwnProperty("policyType")) { + properties._policyType = 1; + if (!$util.isString(message.policyType)) + return "policyType: string expected"; + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -190628,92 +192984,34 @@ 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; - { - var error = $root.google.cloud.compute.v1.SSLHealthCheck.verify(message.sslHealthCheck); - if (error) - return "sslHealthCheck." + error; - } - } - if (message.tcpHealthCheck != null && message.hasOwnProperty("tcpHealthCheck")) { - properties._tcpHealthCheck = 1; - { - var error = $root.google.cloud.compute.v1.TCPHealthCheck.verify(message.tcpHealthCheck); - if (error) - return "tcpHealthCheck." + error; - } - } - if (message.timeoutSec != null && message.hasOwnProperty("timeoutSec")) { - properties._timeoutSec = 1; - if (!$util.isInteger(message.timeoutSec)) - return "timeoutSec: integer expected"; - } - if (message.type != null && message.hasOwnProperty("type")) { - properties._type = 1; - if (!$util.isString(message.type)) - return "type: string expected"; - } - if (message.unhealthyThreshold != null && message.hasOwnProperty("unhealthyThreshold")) { - properties._unhealthyThreshold = 1; - if (!$util.isInteger(message.unhealthyThreshold)) - return "unhealthyThreshold: integer expected"; + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; } return null; }; /** - * Creates a HealthCheck message from a plain object. Also converts values to their respective internal types. + * Creates a HealthAggregationPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.HealthCheck} HealthCheck + * @returns {google.cloud.compute.v1.HealthAggregationPolicy} HealthAggregationPolicy */ - HealthCheck.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.HealthCheck) + HealthAggregationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthAggregationPolicy) return object; - var message = new $root.google.cloud.compute.v1.HealthCheck(); - if (object.checkIntervalSec != null) - message.checkIntervalSec = object.checkIntervalSec | 0; + var message = new $root.google.cloud.compute.v1.HealthAggregationPolicy(); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.description != null) message.description = String(object.description); - if (object.grpcHealthCheck != null) { - if (typeof object.grpcHealthCheck !== "object") - throw TypeError(".google.cloud.compute.v1.HealthCheck.grpcHealthCheck: object expected"); - message.grpcHealthCheck = $root.google.cloud.compute.v1.GRPCHealthCheck.fromObject(object.grpcHealthCheck); - } - if (object.grpcTlsHealthCheck != null) { - if (typeof object.grpcTlsHealthCheck !== "object") - throw TypeError(".google.cloud.compute.v1.HealthCheck.grpcTlsHealthCheck: object expected"); - message.grpcTlsHealthCheck = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.fromObject(object.grpcTlsHealthCheck); - } - if (object.healthyThreshold != null) - message.healthyThreshold = object.healthyThreshold | 0; - if (object.http2HealthCheck != null) { - if (typeof object.http2HealthCheck !== "object") - throw TypeError(".google.cloud.compute.v1.HealthCheck.http2HealthCheck: object expected"); - message.http2HealthCheck = $root.google.cloud.compute.v1.HTTP2HealthCheck.fromObject(object.http2HealthCheck); - } - if (object.httpHealthCheck != null) { - if (typeof object.httpHealthCheck !== "object") - throw TypeError(".google.cloud.compute.v1.HealthCheck.httpHealthCheck: object expected"); - message.httpHealthCheck = $root.google.cloud.compute.v1.HTTPHealthCheck.fromObject(object.httpHealthCheck); - } - if (object.httpsHealthCheck != null) { - if (typeof object.httpsHealthCheck !== "object") - throw TypeError(".google.cloud.compute.v1.HealthCheck.httpsHealthCheck: object expected"); - message.httpsHealthCheck = $root.google.cloud.compute.v1.HTTPSHealthCheck.fromObject(object.httpsHealthCheck); - } + if (object.fingerprint != null) + message.fingerprint = String(object.fingerprint); + if (object.healthyPercentThreshold != null) + message.healthyPercentThreshold = object.healthyPercentThreshold >>> 0; if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; @@ -190725,58 +193023,34 @@ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); if (object.kind != null) message.kind = String(object.kind); - if (object.logConfig != null) { - if (typeof object.logConfig !== "object") - throw TypeError(".google.cloud.compute.v1.HealthCheck.logConfig: object expected"); - message.logConfig = $root.google.cloud.compute.v1.HealthCheckLogConfig.fromObject(object.logConfig); - } + if (object.minHealthyThreshold != null) + message.minHealthyThreshold = object.minHealthyThreshold >>> 0; if (object.name != null) message.name = String(object.name); + if (object.policyType != null) + message.policyType = String(object.policyType); if (object.region != null) 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"); - message.sslHealthCheck = $root.google.cloud.compute.v1.SSLHealthCheck.fromObject(object.sslHealthCheck); - } - if (object.tcpHealthCheck != null) { - if (typeof object.tcpHealthCheck !== "object") - throw TypeError(".google.cloud.compute.v1.HealthCheck.tcpHealthCheck: object expected"); - message.tcpHealthCheck = $root.google.cloud.compute.v1.TCPHealthCheck.fromObject(object.tcpHealthCheck); - } - if (object.timeoutSec != null) - message.timeoutSec = object.timeoutSec | 0; - if (object.type != null) - message.type = String(object.type); - if (object.unhealthyThreshold != null) - message.unhealthyThreshold = object.unhealthyThreshold | 0; + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); return message; }; /** - * Creates a plain object from a HealthCheck message. Also converts values to other types if specified. + * Creates a plain object from a HealthAggregationPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicy * @static - * @param {google.cloud.compute.v1.HealthCheck} message HealthCheck + * @param {google.cloud.compute.v1.HealthAggregationPolicy} message HealthAggregationPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HealthCheck.toObject = function toObject(message, options) { + HealthAggregationPolicy.toObject = function toObject(message, options) { 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; @@ -190795,179 +193069,584 @@ if (options.oneofs) object._name = "name"; } - if (message.type != null && message.hasOwnProperty("type")) { - object.type = message.type; - if (options.oneofs) - object._type = "type"; - } - if (message.http2HealthCheck != null && message.hasOwnProperty("http2HealthCheck")) { - object.http2HealthCheck = $root.google.cloud.compute.v1.HTTP2HealthCheck.toObject(message.http2HealthCheck, options); + if (message.policyType != null && message.hasOwnProperty("policyType")) { + object.policyType = message.policyType; if (options.oneofs) - object._http2HealthCheck = "http2HealthCheck"; + object._policyType = "policyType"; } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { object.creationTimestamp = message.creationTimestamp; if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } - if (message.timeoutSec != null && message.hasOwnProperty("timeoutSec")) { - object.timeoutSec = message.timeoutSec; + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; if (options.oneofs) - object._timeoutSec = "timeoutSec"; + object._selfLinkWithId = "selfLinkWithId"; } - if (message.grpcHealthCheck != null && message.hasOwnProperty("grpcHealthCheck")) { - object.grpcHealthCheck = $root.google.cloud.compute.v1.GRPCHealthCheck.toObject(message.grpcHealthCheck, options); + if (message.healthyPercentThreshold != null && message.hasOwnProperty("healthyPercentThreshold")) { + object.healthyPercentThreshold = message.healthyPercentThreshold; if (options.oneofs) - object._grpcHealthCheck = "grpcHealthCheck"; + object._healthyPercentThreshold = "healthyPercentThreshold"; + } + if (message.minHealthyThreshold != null && message.hasOwnProperty("minHealthyThreshold")) { + object.minHealthyThreshold = message.minHealthyThreshold; + if (options.oneofs) + object._minHealthyThreshold = "minHealthyThreshold"; } if (message.region != null && message.hasOwnProperty("region")) { object.region = message.region; if (options.oneofs) object._region = "region"; } - if (message.unhealthyThreshold != null && message.hasOwnProperty("unhealthyThreshold")) { - object.unhealthyThreshold = message.unhealthyThreshold; + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + object.fingerprint = message.fingerprint; if (options.oneofs) - object._unhealthyThreshold = "unhealthyThreshold"; + object._fingerprint = "fingerprint"; } - if (message.grpcTlsHealthCheck != null && message.hasOwnProperty("grpcTlsHealthCheck")) { - object.grpcTlsHealthCheck = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.toObject(message.grpcTlsHealthCheck, options); + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; if (options.oneofs) - object._grpcTlsHealthCheck = "grpcTlsHealthCheck"; + object._description = "description"; } - if (message.sslHealthCheck != null && message.hasOwnProperty("sslHealthCheck")) { - object.sslHealthCheck = $root.google.cloud.compute.v1.SSLHealthCheck.toObject(message.sslHealthCheck, options); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; if (options.oneofs) - object._sslHealthCheck = "sslHealthCheck"; + object._selfLink = "selfLink"; } - if (message.checkIntervalSec != null && message.hasOwnProperty("checkIntervalSec")) { - object.checkIntervalSec = message.checkIntervalSec; - if (options.oneofs) - object._checkIntervalSec = "checkIntervalSec"; + return object; + }; + + /** + * Converts this HealthAggregationPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthAggregationPolicy + * @instance + * @returns {Object.} JSON object + */ + HealthAggregationPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthAggregationPolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthAggregationPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthAggregationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.logConfig != null && message.hasOwnProperty("logConfig")) { - object.logConfig = $root.google.cloud.compute.v1.HealthCheckLogConfig.toObject(message.logConfig, options); - if (options.oneofs) - object._logConfig = "logConfig"; + return typeUrlPrefix + "/google.cloud.compute.v1.HealthAggregationPolicy"; + }; + + /** + * PolicyType enum. + * @name google.cloud.compute.v1.HealthAggregationPolicy.PolicyType + * @enum {number} + * @property {number} UNDEFINED_POLICY_TYPE=0 UNDEFINED_POLICY_TYPE value + * @property {number} BACKEND_SERVICE_POLICY=415582023 BACKEND_SERVICE_POLICY value + * @property {number} DNS_PUBLIC_IP_POLICY=366354794 DNS_PUBLIC_IP_POLICY value + */ + HealthAggregationPolicy.PolicyType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_POLICY_TYPE"] = 0; + values[valuesById[415582023] = "BACKEND_SERVICE_POLICY"] = 415582023; + values[valuesById[366354794] = "DNS_PUBLIC_IP_POLICY"] = 366354794; + return values; + })(); + + return HealthAggregationPolicy; + })(); + + v1.HealthAggregationPolicyAggregatedList = (function() { + + /** + * Properties of a HealthAggregationPolicyAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface IHealthAggregationPolicyAggregatedList + * @property {string|null} [id] HealthAggregationPolicyAggregatedList id + * @property {Object.|null} [items] HealthAggregationPolicyAggregatedList items + * @property {string|null} [kind] HealthAggregationPolicyAggregatedList kind + * @property {string|null} [nextPageToken] HealthAggregationPolicyAggregatedList nextPageToken + * @property {string|null} [selfLink] HealthAggregationPolicyAggregatedList selfLink + * @property {Array.|null} [unreachables] HealthAggregationPolicyAggregatedList unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthAggregationPolicyAggregatedList warning + */ + + /** + * Constructs a new HealthAggregationPolicyAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthAggregationPolicyAggregatedList. + * @implements IHealthAggregationPolicyAggregatedList + * @constructor + * @param {google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList=} [properties] Properties to set + */ + function HealthAggregationPolicyAggregatedList(properties) { + this.items = {}; + this.unreachables = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthAggregationPolicyAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.id = null; + + /** + * HealthAggregationPolicyAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.items = $util.emptyObject; + + /** + * HealthAggregationPolicyAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.kind = null; + + /** + * HealthAggregationPolicyAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.nextPageToken = null; + + /** + * HealthAggregationPolicyAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.selfLink = null; + + /** + * HealthAggregationPolicyAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * HealthAggregationPolicyAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @instance + */ + HealthAggregationPolicyAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthAggregationPolicyAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthAggregationPolicyAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList instance + */ + HealthAggregationPolicyAggregatedList.create = function create(properties) { + return new HealthAggregationPolicyAggregatedList(properties); + }; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList} message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPolicyAggregatedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified HealthAggregationPolicyAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthAggregationPolicyAggregatedList} message HealthAggregationPolicyAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthAggregationPolicyAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @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.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPolicyAggregatedList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthAggregationPolicyAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(reader.string()); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - if (message.healthyThreshold != null && message.hasOwnProperty("healthyThreshold")) { - object.healthyThreshold = message.healthyThreshold; - if (options.oneofs) - object._healthyThreshold = "healthyThreshold"; + return message; + }; + + /** + * Decodes a HealthAggregationPolicyAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPolicyAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthAggregationPolicyAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthAggregationPolicyAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; } - if (message.sourceRegions && message.sourceRegions.length) { - object.sourceRegions = []; - for (var j = 0; j < message.sourceRegions.length; ++j) - object.sourceRegions[j] = message.sourceRegions[j]; + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } } - if (message.httpHealthCheck != null && message.hasOwnProperty("httpHealthCheck")) { - object.httpHealthCheck = $root.google.cloud.compute.v1.HTTPHealthCheck.toObject(message.httpHealthCheck, options); + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: 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 HealthAggregationPolicyAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthAggregationPolicyAggregatedList} HealthAggregationPolicyAggregatedList + */ + HealthAggregationPolicyAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthAggregationPolicyAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.HealthAggregationPolicyAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList.fromObject(object.items[keys[i]]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.HealthAggregationPolicyAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthAggregationPolicyAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList + * @static + * @param {google.cloud.compute.v1.HealthAggregationPolicyAggregatedList} message HealthAggregationPolicyAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthAggregationPolicyAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; + if (options.objects || options.defaults) + object.items = {}; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; if (options.oneofs) - object._httpHealthCheck = "httpHealthCheck"; + object._id = "id"; } - if (message.description != null && message.hasOwnProperty("description")) { - object.description = message.description; + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; if (options.oneofs) - object._description = "description"; + object._kind = "kind"; } - if (message.httpsHealthCheck != null && message.hasOwnProperty("httpsHealthCheck")) { - object.httpsHealthCheck = $root.google.cloud.compute.v1.HTTPSHealthCheck.toObject(message.httpsHealthCheck, options); + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); if (options.oneofs) - object._httpsHealthCheck = "httpsHealthCheck"; + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1.HealthAggregationPoliciesScopedList.toObject(message.items[keys2[j]], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) object._selfLink = "selfLink"; } - if (message.tcpHealthCheck != null && message.hasOwnProperty("tcpHealthCheck")) { - object.tcpHealthCheck = $root.google.cloud.compute.v1.TCPHealthCheck.toObject(message.tcpHealthCheck, options); - if (options.oneofs) - object._tcpHealthCheck = "tcpHealthCheck"; - } return object; }; /** - * Converts this HealthCheck to JSON. + * Converts this HealthAggregationPolicyAggregatedList to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList * @instance * @returns {Object.} JSON object */ - HealthCheck.prototype.toJSON = function toJSON() { + HealthAggregationPolicyAggregatedList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HealthCheck + * Gets the default type url for HealthAggregationPolicyAggregatedList * @function getTypeUrl - * @memberof google.cloud.compute.v1.HealthCheck + * @memberof google.cloud.compute.v1.HealthAggregationPolicyAggregatedList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HealthAggregationPolicyAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.HealthCheck"; + return typeUrlPrefix + "/google.cloud.compute.v1.HealthAggregationPolicyAggregatedList"; }; - /** - * Type enum. - * @name google.cloud.compute.v1.HealthCheck.Type - * @enum {number} - * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value - * @property {number} GRPC=2196510 GRPC value - * @property {number} GRPC_WITH_TLS=268089571 GRPC_WITH_TLS value - * @property {number} HTTP=2228360 HTTP value - * @property {number} HTTP2=69079210 HTTP2 value - * @property {number} HTTPS=69079243 HTTPS value - * @property {number} INVALID=530283991 INVALID value - * @property {number} SSL=82412 SSL value - * @property {number} TCP=82881 TCP value - */ - HealthCheck.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED_TYPE"] = 0; - values[valuesById[2196510] = "GRPC"] = 2196510; - values[valuesById[268089571] = "GRPC_WITH_TLS"] = 268089571; - values[valuesById[2228360] = "HTTP"] = 2228360; - values[valuesById[69079210] = "HTTP2"] = 69079210; - values[valuesById[69079243] = "HTTPS"] = 69079243; - values[valuesById[530283991] = "INVALID"] = 530283991; - values[valuesById[82412] = "SSL"] = 82412; - values[valuesById[82881] = "TCP"] = 82881; - return values; - })(); - - return HealthCheck; + return HealthAggregationPolicyAggregatedList; })(); - v1.HealthCheckList = (function() { + v1.HealthAggregationPolicyList = (function() { /** - * Properties of a HealthCheckList. + * Properties of a HealthAggregationPolicyList. * @memberof google.cloud.compute.v1 - * @interface IHealthCheckList - * @property {string|null} [id] HealthCheckList id - * @property {Array.|null} [items] HealthCheckList items - * @property {string|null} [kind] HealthCheckList kind - * @property {string|null} [nextPageToken] HealthCheckList nextPageToken - * @property {string|null} [selfLink] HealthCheckList selfLink - * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthCheckList warning + * @interface IHealthAggregationPolicyList + * @property {string|null} [id] HealthAggregationPolicyList id + * @property {Array.|null} [items] HealthAggregationPolicyList items + * @property {string|null} [kind] HealthAggregationPolicyList kind + * @property {string|null} [nextPageToken] HealthAggregationPolicyList nextPageToken + * @property {string|null} [selfLink] HealthAggregationPolicyList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthAggregationPolicyList warning */ /** - * Constructs a new HealthCheckList. + * Constructs a new HealthAggregationPolicyList. * @memberof google.cloud.compute.v1 - * @classdesc Represents a HealthCheckList. - * @implements IHealthCheckList + * @classdesc Represents a HealthAggregationPolicyList. + * @implements IHealthAggregationPolicyList * @constructor - * @param {google.cloud.compute.v1.IHealthCheckList=} [properties] Properties to set + * @param {google.cloud.compute.v1.IHealthAggregationPolicyList=} [properties] Properties to set */ - function HealthCheckList(properties) { + function HealthAggregationPolicyList(properties) { this.items = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -190976,108 +193655,108 @@ } /** - * HealthCheckList id. + * HealthAggregationPolicyList id. * @member {string|null|undefined} id - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @instance */ - HealthCheckList.prototype.id = null; + HealthAggregationPolicyList.prototype.id = null; /** - * HealthCheckList items. - * @member {Array.} items - * @memberof google.cloud.compute.v1.HealthCheckList + * HealthAggregationPolicyList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @instance */ - HealthCheckList.prototype.items = $util.emptyArray; + HealthAggregationPolicyList.prototype.items = $util.emptyArray; /** - * HealthCheckList kind. + * HealthAggregationPolicyList kind. * @member {string|null|undefined} kind - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @instance */ - HealthCheckList.prototype.kind = null; + HealthAggregationPolicyList.prototype.kind = null; /** - * HealthCheckList nextPageToken. + * HealthAggregationPolicyList nextPageToken. * @member {string|null|undefined} nextPageToken - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @instance */ - HealthCheckList.prototype.nextPageToken = null; + HealthAggregationPolicyList.prototype.nextPageToken = null; /** - * HealthCheckList selfLink. + * HealthAggregationPolicyList selfLink. * @member {string|null|undefined} selfLink - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @instance */ - HealthCheckList.prototype.selfLink = null; + HealthAggregationPolicyList.prototype.selfLink = null; /** - * HealthCheckList warning. + * HealthAggregationPolicyList warning. * @member {google.cloud.compute.v1.IWarning|null|undefined} warning - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @instance */ - HealthCheckList.prototype.warning = null; + HealthAggregationPolicyList.prototype.warning = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheckList.prototype, "_id", { + Object.defineProperty(HealthAggregationPolicyList.prototype, "_id", { get: $util.oneOfGetter($oneOfFields = ["id"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheckList.prototype, "_kind", { + Object.defineProperty(HealthAggregationPolicyList.prototype, "_kind", { get: $util.oneOfGetter($oneOfFields = ["kind"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheckList.prototype, "_nextPageToken", { + Object.defineProperty(HealthAggregationPolicyList.prototype, "_nextPageToken", { get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheckList.prototype, "_selfLink", { + Object.defineProperty(HealthAggregationPolicyList.prototype, "_selfLink", { get: $util.oneOfGetter($oneOfFields = ["selfLink"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthCheckList.prototype, "_warning", { + Object.defineProperty(HealthAggregationPolicyList.prototype, "_warning", { get: $util.oneOfGetter($oneOfFields = ["warning"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new HealthCheckList instance using the specified properties. + * Creates a new HealthAggregationPolicyList instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @static - * @param {google.cloud.compute.v1.IHealthCheckList=} [properties] Properties to set - * @returns {google.cloud.compute.v1.HealthCheckList} HealthCheckList instance + * @param {google.cloud.compute.v1.IHealthAggregationPolicyList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthAggregationPolicyList} HealthAggregationPolicyList instance */ - HealthCheckList.create = function create(properties) { - return new HealthCheckList(properties); + HealthAggregationPolicyList.create = function create(properties) { + return new HealthAggregationPolicyList(properties); }; /** - * Encodes the specified HealthCheckList message. Does not implicitly {@link google.cloud.compute.v1.HealthCheckList.verify|verify} messages. + * Encodes the specified HealthAggregationPolicyList message. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyList.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @static - * @param {google.cloud.compute.v1.IHealthCheckList} message HealthCheckList message or plain object to encode + * @param {google.cloud.compute.v1.IHealthAggregationPolicyList} message HealthAggregationPolicyList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HealthCheckList.encode = function encode(message, writer) { + HealthAggregationPolicyList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.id != null && Object.hasOwnProperty.call(message, "id")) @@ -191090,40 +193769,40 @@ writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); if (message.items != null && message.items.length) for (var i = 0; i < message.items.length; ++i) - $root.google.cloud.compute.v1.HealthCheck.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + $root.google.cloud.compute.v1.HealthAggregationPolicy.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); return writer; }; /** - * Encodes the specified HealthCheckList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheckList.verify|verify} messages. + * Encodes the specified HealthAggregationPolicyList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthAggregationPolicyList.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @static - * @param {google.cloud.compute.v1.IHealthCheckList} message HealthCheckList message or plain object to encode + * @param {google.cloud.compute.v1.IHealthAggregationPolicyList} message HealthAggregationPolicyList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HealthCheckList.encodeDelimited = function encodeDelimited(message, writer) { + HealthAggregationPolicyList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HealthCheckList message from the specified reader or buffer. + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.HealthCheckList + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList * @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.HealthCheckList} HealthCheckList + * @returns {google.cloud.compute.v1.HealthAggregationPolicyList} HealthAggregationPolicyList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HealthCheckList.decode = function decode(reader, length, error) { + HealthAggregationPolicyList.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthCheckList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthAggregationPolicyList(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -191136,7 +193815,1379 @@ case 100526016: { if (!(message.items && message.items.length)) message.items = []; - message.items.push($root.google.cloud.compute.v1.HealthCheck.decode(reader, reader.uint32())); + message.items.push($root.google.cloud.compute.v1.HealthAggregationPolicy.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthAggregationPolicyList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthAggregationPolicyList} HealthAggregationPolicyList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthAggregationPolicyList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthAggregationPolicyList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthAggregationPolicyList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthAggregationPolicy.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthAggregationPolicyList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthAggregationPolicyList} HealthAggregationPolicyList + */ + HealthAggregationPolicyList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthAggregationPolicyList) + return object; + var message = new $root.google.cloud.compute.v1.HealthAggregationPolicyList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.HealthAggregationPolicyList.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthAggregationPolicyList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.HealthAggregationPolicy.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.HealthAggregationPolicyList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthAggregationPolicyList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList + * @static + * @param {google.cloud.compute.v1.HealthAggregationPolicyList} message HealthAggregationPolicyList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthAggregationPolicyList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.items = []; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1.HealthAggregationPolicy.toObject(message.items[j], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this HealthAggregationPolicyList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList + * @instance + * @returns {Object.} JSON object + */ + HealthAggregationPolicyList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthAggregationPolicyList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthAggregationPolicyList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthAggregationPolicyList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthAggregationPolicyList"; + }; + + return HealthAggregationPolicyList; + })(); + + v1.HealthCheck = (function() { + + /** + * Properties of a HealthCheck. + * @memberof google.cloud.compute.v1 + * @interface IHealthCheck + * @property {number|null} [checkIntervalSec] HealthCheck checkIntervalSec + * @property {string|null} [creationTimestamp] HealthCheck creationTimestamp + * @property {string|null} [description] HealthCheck description + * @property {google.cloud.compute.v1.IGRPCHealthCheck|null} [grpcHealthCheck] HealthCheck grpcHealthCheck + * @property {google.cloud.compute.v1.IGRPCTLSHealthCheck|null} [grpcTlsHealthCheck] HealthCheck grpcTlsHealthCheck + * @property {number|null} [healthyThreshold] HealthCheck healthyThreshold + * @property {google.cloud.compute.v1.IHTTP2HealthCheck|null} [http2HealthCheck] HealthCheck http2HealthCheck + * @property {google.cloud.compute.v1.IHTTPHealthCheck|null} [httpHealthCheck] HealthCheck httpHealthCheck + * @property {google.cloud.compute.v1.IHTTPSHealthCheck|null} [httpsHealthCheck] HealthCheck httpsHealthCheck + * @property {number|Long|null} [id] HealthCheck id + * @property {string|null} [kind] HealthCheck kind + * @property {google.cloud.compute.v1.IHealthCheckLogConfig|null} [logConfig] HealthCheck logConfig + * @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 + * @property {string|null} [type] HealthCheck type + * @property {number|null} [unhealthyThreshold] HealthCheck unhealthyThreshold + */ + + /** + * Constructs a new HealthCheck. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthCheck. + * @implements IHealthCheck + * @constructor + * @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) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthCheck checkIntervalSec. + * @member {number|null|undefined} checkIntervalSec + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.checkIntervalSec = null; + + /** + * HealthCheck creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.creationTimestamp = null; + + /** + * HealthCheck description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.description = null; + + /** + * HealthCheck grpcHealthCheck. + * @member {google.cloud.compute.v1.IGRPCHealthCheck|null|undefined} grpcHealthCheck + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.grpcHealthCheck = null; + + /** + * HealthCheck grpcTlsHealthCheck. + * @member {google.cloud.compute.v1.IGRPCTLSHealthCheck|null|undefined} grpcTlsHealthCheck + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.grpcTlsHealthCheck = null; + + /** + * HealthCheck healthyThreshold. + * @member {number|null|undefined} healthyThreshold + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.healthyThreshold = null; + + /** + * HealthCheck http2HealthCheck. + * @member {google.cloud.compute.v1.IHTTP2HealthCheck|null|undefined} http2HealthCheck + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.http2HealthCheck = null; + + /** + * HealthCheck httpHealthCheck. + * @member {google.cloud.compute.v1.IHTTPHealthCheck|null|undefined} httpHealthCheck + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.httpHealthCheck = null; + + /** + * HealthCheck httpsHealthCheck. + * @member {google.cloud.compute.v1.IHTTPSHealthCheck|null|undefined} httpsHealthCheck + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.httpsHealthCheck = null; + + /** + * HealthCheck id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.id = null; + + /** + * HealthCheck kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.kind = null; + + /** + * HealthCheck logConfig. + * @member {google.cloud.compute.v1.IHealthCheckLogConfig|null|undefined} logConfig + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.logConfig = null; + + /** + * HealthCheck name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.name = null; + + /** + * HealthCheck region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.region = null; + + /** + * HealthCheck selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + 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 + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.sslHealthCheck = null; + + /** + * HealthCheck tcpHealthCheck. + * @member {google.cloud.compute.v1.ITCPHealthCheck|null|undefined} tcpHealthCheck + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.tcpHealthCheck = null; + + /** + * HealthCheck timeoutSec. + * @member {number|null|undefined} timeoutSec + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.timeoutSec = null; + + /** + * HealthCheck type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.type = null; + + /** + * HealthCheck unhealthyThreshold. + * @member {number|null|undefined} unhealthyThreshold + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + */ + HealthCheck.prototype.unhealthyThreshold = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_checkIntervalSec", { + get: $util.oneOfGetter($oneOfFields = ["checkIntervalSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_grpcHealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["grpcHealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_grpcTlsHealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["grpcTlsHealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_healthyThreshold", { + get: $util.oneOfGetter($oneOfFields = ["healthyThreshold"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_http2HealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["http2HealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_httpHealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["httpHealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_httpsHealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["httpsHealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_logConfig", { + get: $util.oneOfGetter($oneOfFields = ["logConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_sslHealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["sslHealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_tcpHealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["tcpHealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_timeoutSec", { + get: $util.oneOfGetter($oneOfFields = ["timeoutSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheck.prototype, "_unhealthyThreshold", { + get: $util.oneOfGetter($oneOfFields = ["unhealthyThreshold"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthCheck instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {google.cloud.compute.v1.IHealthCheck=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthCheck} HealthCheck instance + */ + HealthCheck.create = function create(properties) { + return new HealthCheck(properties); + }; + + /** + * Encodes the specified HealthCheck message. Does not implicitly {@link google.cloud.compute.v1.HealthCheck.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {google.cloud.compute.v1.IHealthCheck} message HealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheck.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.http2HealthCheck != null && Object.hasOwnProperty.call(message, "http2HealthCheck")) + $root.google.cloud.compute.v1.HTTP2HealthCheck.encode(message.http2HealthCheck, writer.uint32(/* id 11360986, wireType 2 =*/90887890).fork()).ldelim(); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.timeoutSec != null && Object.hasOwnProperty.call(message, "timeoutSec")) + writer.uint32(/* id 79994995, wireType 0 =*/639959960).int32(message.timeoutSec); + if (message.grpcHealthCheck != null && Object.hasOwnProperty.call(message, "grpcHealthCheck")) + $root.google.cloud.compute.v1.GRPCHealthCheck.encode(message.grpcHealthCheck, writer.uint32(/* id 85529574, wireType 2 =*/684236594).fork()).ldelim(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.unhealthyThreshold != null && Object.hasOwnProperty.call(message, "unhealthyThreshold")) + writer.uint32(/* id 227958480, wireType 0 =*/1823667840).int32(message.unhealthyThreshold); + if (message.grpcTlsHealthCheck != null && Object.hasOwnProperty.call(message, "grpcTlsHealthCheck")) + $root.google.cloud.compute.v1.GRPCTLSHealthCheck.encode(message.grpcTlsHealthCheck, writer.uint32(/* id 267273258, wireType 2 =*/2138186066).fork()).ldelim(); + if (message.sslHealthCheck != null && Object.hasOwnProperty.call(message, "sslHealthCheck")) + $root.google.cloud.compute.v1.SSLHealthCheck.encode(message.sslHealthCheck, writer.uint32(/* id 280032440, wireType 2 =*/2240259522).fork()).ldelim(); + if (message.checkIntervalSec != null && Object.hasOwnProperty.call(message, "checkIntervalSec")) + writer.uint32(/* id 345561006, wireType 0 =*/2764488048).int32(message.checkIntervalSec); + if (message.logConfig != null && Object.hasOwnProperty.call(message, "logConfig")) + $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")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.httpsHealthCheck != null && Object.hasOwnProperty.call(message, "httpsHealthCheck")) + $root.google.cloud.compute.v1.HTTPSHealthCheck.encode(message.httpsHealthCheck, writer.uint32(/* id 436046905, wireType 2 =*/3488375242).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.tcpHealthCheck != null && Object.hasOwnProperty.call(message, "tcpHealthCheck")) + $root.google.cloud.compute.v1.TCPHealthCheck.encode(message.tcpHealthCheck, writer.uint32(/* id 469980419, wireType 2 =*/3759843354).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheck.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {google.cloud.compute.v1.IHealthCheck} message HealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheck.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthCheck message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthCheck + * @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.HealthCheck} HealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheck.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthCheck(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 345561006: { + message.checkIntervalSec = reader.int32(); + break; + } + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 85529574: { + message.grpcHealthCheck = $root.google.cloud.compute.v1.GRPCHealthCheck.decode(reader, reader.uint32()); + break; + } + case 267273258: { + message.grpcTlsHealthCheck = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.decode(reader, reader.uint32()); + break; + } + case 403212361: { + message.healthyThreshold = reader.int32(); + break; + } + case 11360986: { + message.http2HealthCheck = $root.google.cloud.compute.v1.HTTP2HealthCheck.decode(reader, reader.uint32()); + break; + } + case 412586940: { + message.httpHealthCheck = $root.google.cloud.compute.v1.HTTPHealthCheck.decode(reader, reader.uint32()); + break; + } + case 436046905: { + message.httpsHealthCheck = $root.google.cloud.compute.v1.HTTPSHealthCheck.decode(reader, reader.uint32()); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 351299741: { + message.logConfig = $root.google.cloud.compute.v1.HealthCheckLogConfig.decode(reader, reader.uint32()); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 456214797: { + 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; + } + case 469980419: { + message.tcpHealthCheck = $root.google.cloud.compute.v1.TCPHealthCheck.decode(reader, reader.uint32()); + break; + } + case 79994995: { + message.timeoutSec = reader.int32(); + break; + } + case 3575610: { + message.type = reader.string(); + break; + } + case 227958480: { + message.unhealthyThreshold = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthCheck message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthCheck} HealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheck.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthCheck message. + * @function verify + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthCheck.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.checkIntervalSec != null && message.hasOwnProperty("checkIntervalSec")) { + properties._checkIntervalSec = 1; + if (!$util.isInteger(message.checkIntervalSec)) + return "checkIntervalSec: integer expected"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.grpcHealthCheck != null && message.hasOwnProperty("grpcHealthCheck")) { + properties._grpcHealthCheck = 1; + { + var error = $root.google.cloud.compute.v1.GRPCHealthCheck.verify(message.grpcHealthCheck); + if (error) + return "grpcHealthCheck." + error; + } + } + if (message.grpcTlsHealthCheck != null && message.hasOwnProperty("grpcTlsHealthCheck")) { + properties._grpcTlsHealthCheck = 1; + { + var error = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.verify(message.grpcTlsHealthCheck); + if (error) + return "grpcTlsHealthCheck." + error; + } + } + if (message.healthyThreshold != null && message.hasOwnProperty("healthyThreshold")) { + properties._healthyThreshold = 1; + if (!$util.isInteger(message.healthyThreshold)) + return "healthyThreshold: integer expected"; + } + if (message.http2HealthCheck != null && message.hasOwnProperty("http2HealthCheck")) { + properties._http2HealthCheck = 1; + { + var error = $root.google.cloud.compute.v1.HTTP2HealthCheck.verify(message.http2HealthCheck); + if (error) + return "http2HealthCheck." + error; + } + } + if (message.httpHealthCheck != null && message.hasOwnProperty("httpHealthCheck")) { + properties._httpHealthCheck = 1; + { + var error = $root.google.cloud.compute.v1.HTTPHealthCheck.verify(message.httpHealthCheck); + if (error) + return "httpHealthCheck." + error; + } + } + if (message.httpsHealthCheck != null && message.hasOwnProperty("httpsHealthCheck")) { + properties._httpsHealthCheck = 1; + { + var error = $root.google.cloud.compute.v1.HTTPSHealthCheck.verify(message.httpsHealthCheck); + if (error) + return "httpsHealthCheck." + error; + } + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.logConfig != null && message.hasOwnProperty("logConfig")) { + properties._logConfig = 1; + { + var error = $root.google.cloud.compute.v1.HealthCheckLogConfig.verify(message.logConfig); + if (error) + return "logConfig." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + 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; + { + var error = $root.google.cloud.compute.v1.SSLHealthCheck.verify(message.sslHealthCheck); + if (error) + return "sslHealthCheck." + error; + } + } + if (message.tcpHealthCheck != null && message.hasOwnProperty("tcpHealthCheck")) { + properties._tcpHealthCheck = 1; + { + var error = $root.google.cloud.compute.v1.TCPHealthCheck.verify(message.tcpHealthCheck); + if (error) + return "tcpHealthCheck." + error; + } + } + if (message.timeoutSec != null && message.hasOwnProperty("timeoutSec")) { + properties._timeoutSec = 1; + if (!$util.isInteger(message.timeoutSec)) + return "timeoutSec: integer expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + if (message.unhealthyThreshold != null && message.hasOwnProperty("unhealthyThreshold")) { + properties._unhealthyThreshold = 1; + if (!$util.isInteger(message.unhealthyThreshold)) + return "unhealthyThreshold: integer expected"; + } + return null; + }; + + /** + * Creates a HealthCheck message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthCheck} HealthCheck + */ + HealthCheck.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthCheck) + return object; + var message = new $root.google.cloud.compute.v1.HealthCheck(); + if (object.checkIntervalSec != null) + message.checkIntervalSec = object.checkIntervalSec | 0; + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.grpcHealthCheck != null) { + if (typeof object.grpcHealthCheck !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheck.grpcHealthCheck: object expected"); + message.grpcHealthCheck = $root.google.cloud.compute.v1.GRPCHealthCheck.fromObject(object.grpcHealthCheck); + } + if (object.grpcTlsHealthCheck != null) { + if (typeof object.grpcTlsHealthCheck !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheck.grpcTlsHealthCheck: object expected"); + message.grpcTlsHealthCheck = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.fromObject(object.grpcTlsHealthCheck); + } + if (object.healthyThreshold != null) + message.healthyThreshold = object.healthyThreshold | 0; + if (object.http2HealthCheck != null) { + if (typeof object.http2HealthCheck !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheck.http2HealthCheck: object expected"); + message.http2HealthCheck = $root.google.cloud.compute.v1.HTTP2HealthCheck.fromObject(object.http2HealthCheck); + } + if (object.httpHealthCheck != null) { + if (typeof object.httpHealthCheck !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheck.httpHealthCheck: object expected"); + message.httpHealthCheck = $root.google.cloud.compute.v1.HTTPHealthCheck.fromObject(object.httpHealthCheck); + } + if (object.httpsHealthCheck != null) { + if (typeof object.httpsHealthCheck !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheck.httpsHealthCheck: object expected"); + message.httpsHealthCheck = $root.google.cloud.compute.v1.HTTPSHealthCheck.fromObject(object.httpsHealthCheck); + } + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + 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.kind != null) + message.kind = String(object.kind); + if (object.logConfig != null) { + if (typeof object.logConfig !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheck.logConfig: object expected"); + message.logConfig = $root.google.cloud.compute.v1.HealthCheckLogConfig.fromObject(object.logConfig); + } + if (object.name != null) + message.name = String(object.name); + if (object.region != null) + 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"); + message.sslHealthCheck = $root.google.cloud.compute.v1.SSLHealthCheck.fromObject(object.sslHealthCheck); + } + if (object.tcpHealthCheck != null) { + if (typeof object.tcpHealthCheck !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheck.tcpHealthCheck: object expected"); + message.tcpHealthCheck = $root.google.cloud.compute.v1.TCPHealthCheck.fromObject(object.tcpHealthCheck); + } + if (object.timeoutSec != null) + message.timeoutSec = object.timeoutSec | 0; + if (object.type != null) + message.type = String(object.type); + if (object.unhealthyThreshold != null) + message.unhealthyThreshold = object.unhealthyThreshold | 0; + return message; + }; + + /** + * Creates a plain object from a HealthCheck message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {google.cloud.compute.v1.HealthCheck} message HealthCheck + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthCheck.toObject = function toObject(message, options) { + 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; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.http2HealthCheck != null && message.hasOwnProperty("http2HealthCheck")) { + object.http2HealthCheck = $root.google.cloud.compute.v1.HTTP2HealthCheck.toObject(message.http2HealthCheck, options); + if (options.oneofs) + object._http2HealthCheck = "http2HealthCheck"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.timeoutSec != null && message.hasOwnProperty("timeoutSec")) { + object.timeoutSec = message.timeoutSec; + if (options.oneofs) + object._timeoutSec = "timeoutSec"; + } + if (message.grpcHealthCheck != null && message.hasOwnProperty("grpcHealthCheck")) { + object.grpcHealthCheck = $root.google.cloud.compute.v1.GRPCHealthCheck.toObject(message.grpcHealthCheck, options); + if (options.oneofs) + object._grpcHealthCheck = "grpcHealthCheck"; + } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.unhealthyThreshold != null && message.hasOwnProperty("unhealthyThreshold")) { + object.unhealthyThreshold = message.unhealthyThreshold; + if (options.oneofs) + object._unhealthyThreshold = "unhealthyThreshold"; + } + if (message.grpcTlsHealthCheck != null && message.hasOwnProperty("grpcTlsHealthCheck")) { + object.grpcTlsHealthCheck = $root.google.cloud.compute.v1.GRPCTLSHealthCheck.toObject(message.grpcTlsHealthCheck, options); + if (options.oneofs) + object._grpcTlsHealthCheck = "grpcTlsHealthCheck"; + } + if (message.sslHealthCheck != null && message.hasOwnProperty("sslHealthCheck")) { + object.sslHealthCheck = $root.google.cloud.compute.v1.SSLHealthCheck.toObject(message.sslHealthCheck, options); + if (options.oneofs) + object._sslHealthCheck = "sslHealthCheck"; + } + if (message.checkIntervalSec != null && message.hasOwnProperty("checkIntervalSec")) { + object.checkIntervalSec = message.checkIntervalSec; + if (options.oneofs) + object._checkIntervalSec = "checkIntervalSec"; + } + if (message.logConfig != null && message.hasOwnProperty("logConfig")) { + object.logConfig = $root.google.cloud.compute.v1.HealthCheckLogConfig.toObject(message.logConfig, options); + if (options.oneofs) + object._logConfig = "logConfig"; + } + if (message.healthyThreshold != null && message.hasOwnProperty("healthyThreshold")) { + object.healthyThreshold = message.healthyThreshold; + 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) + object._httpHealthCheck = "httpHealthCheck"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.httpsHealthCheck != null && message.hasOwnProperty("httpsHealthCheck")) { + object.httpsHealthCheck = $root.google.cloud.compute.v1.HTTPSHealthCheck.toObject(message.httpsHealthCheck, options); + if (options.oneofs) + object._httpsHealthCheck = "httpsHealthCheck"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + if (message.tcpHealthCheck != null && message.hasOwnProperty("tcpHealthCheck")) { + object.tcpHealthCheck = $root.google.cloud.compute.v1.TCPHealthCheck.toObject(message.tcpHealthCheck, options); + if (options.oneofs) + object._tcpHealthCheck = "tcpHealthCheck"; + } + return object; + }; + + /** + * Converts this HealthCheck to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthCheck + * @instance + * @returns {Object.} JSON object + */ + HealthCheck.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthCheck + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthCheck + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthCheck"; + }; + + /** + * Type enum. + * @name google.cloud.compute.v1.HealthCheck.Type + * @enum {number} + * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value + * @property {number} GRPC=2196510 GRPC value + * @property {number} GRPC_WITH_TLS=268089571 GRPC_WITH_TLS value + * @property {number} HTTP=2228360 HTTP value + * @property {number} HTTP2=69079210 HTTP2 value + * @property {number} HTTPS=69079243 HTTPS value + * @property {number} INVALID=530283991 INVALID value + * @property {number} SSL=82412 SSL value + * @property {number} TCP=82881 TCP value + */ + HealthCheck.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TYPE"] = 0; + values[valuesById[2196510] = "GRPC"] = 2196510; + values[valuesById[268089571] = "GRPC_WITH_TLS"] = 268089571; + values[valuesById[2228360] = "HTTP"] = 2228360; + values[valuesById[69079210] = "HTTP2"] = 69079210; + values[valuesById[69079243] = "HTTPS"] = 69079243; + values[valuesById[530283991] = "INVALID"] = 530283991; + values[valuesById[82412] = "SSL"] = 82412; + values[valuesById[82881] = "TCP"] = 82881; + return values; + })(); + + return HealthCheck; + })(); + + v1.HealthCheckList = (function() { + + /** + * Properties of a HealthCheckList. + * @memberof google.cloud.compute.v1 + * @interface IHealthCheckList + * @property {string|null} [id] HealthCheckList id + * @property {Array.|null} [items] HealthCheckList items + * @property {string|null} [kind] HealthCheckList kind + * @property {string|null} [nextPageToken] HealthCheckList nextPageToken + * @property {string|null} [selfLink] HealthCheckList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthCheckList warning + */ + + /** + * Constructs a new HealthCheckList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthCheckList. + * @implements IHealthCheckList + * @constructor + * @param {google.cloud.compute.v1.IHealthCheckList=} [properties] Properties to set + */ + function HealthCheckList(properties) { + this.items = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthCheckList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.HealthCheckList + * @instance + */ + HealthCheckList.prototype.id = null; + + /** + * HealthCheckList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.HealthCheckList + * @instance + */ + HealthCheckList.prototype.items = $util.emptyArray; + + /** + * HealthCheckList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthCheckList + * @instance + */ + HealthCheckList.prototype.kind = null; + + /** + * HealthCheckList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.HealthCheckList + * @instance + */ + HealthCheckList.prototype.nextPageToken = null; + + /** + * HealthCheckList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthCheckList + * @instance + */ + HealthCheckList.prototype.selfLink = null; + + /** + * HealthCheckList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthCheckList + * @instance + */ + HealthCheckList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthCheckList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthCheckList + * @static + * @param {google.cloud.compute.v1.IHealthCheckList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthCheckList} HealthCheckList instance + */ + HealthCheckList.create = function create(properties) { + return new HealthCheckList(properties); + }; + + /** + * Encodes the specified HealthCheckList message. Does not implicitly {@link google.cloud.compute.v1.HealthCheckList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthCheckList + * @static + * @param {google.cloud.compute.v1.IHealthCheckList} message HealthCheckList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1.HealthCheck.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified HealthCheckList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheckList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthCheckList + * @static + * @param {google.cloud.compute.v1.IHealthCheckList} message HealthCheckList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthCheckList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthCheckList + * @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.HealthCheckList} HealthCheckList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckList.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthCheckList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1.HealthCheck.decode(reader, reader.uint32())); break; } case 3292052: { @@ -215488,6 +219539,300 @@ return InsertRegionDiskRequest; })(); + v1.InsertRegionHealthAggregationPolicyRequest = (function() { + + /** + * Properties of an InsertRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionHealthAggregationPolicyRequest + * @property {google.cloud.compute.v1.IHealthAggregationPolicy|null} [healthAggregationPolicyResource] InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource + * @property {string|null} [project] InsertRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] InsertRegionHealthAggregationPolicyRequest region + * @property {string|null} [requestId] InsertRegionHealthAggregationPolicyRequest requestId + */ + + /** + * Constructs a new InsertRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionHealthAggregationPolicyRequest. + * @implements IInsertRegionHealthAggregationPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest=} [properties] Properties to set + */ + function InsertRegionHealthAggregationPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. + * @member {google.cloud.compute.v1.IHealthAggregationPolicy|null|undefined} healthAggregationPolicyResource + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicyResource = null; + + /** + * InsertRegionHealthAggregationPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.project = ""; + + /** + * InsertRegionHealthAggregationPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.region = ""; + + /** + * InsertRegionHealthAggregationPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @instance + */ + InsertRegionHealthAggregationPolicyRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionHealthAggregationPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionHealthAggregationPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest instance + */ + InsertRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new InsertRegionHealthAggregationPolicyRequest(properties); + }; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest} message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthAggregationPolicyResource != null && Object.hasOwnProperty.call(message, "healthAggregationPolicyResource")) + $root.google.cloud.compute.v1.HealthAggregationPolicy.encode(message.healthAggregationPolicyResource, writer.uint32(/* id 293526971, wireType 2 =*/2348215770).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest} message InsertRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @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.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 293526971: { + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1.HealthAggregationPolicy.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) { + var error = $root.google.cloud.compute.v1.HealthAggregationPolicy.verify(message.healthAggregationPolicyResource); + if (error) + return "healthAggregationPolicyResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an InsertRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest} InsertRegionHealthAggregationPolicyRequest + */ + InsertRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicyResource != null) { + if (typeof object.healthAggregationPolicyResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest.healthAggregationPolicyResource: object expected"); + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1.HealthAggregationPolicy.fromObject(object.healthAggregationPolicyResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an InsertRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest} message InsertRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicyResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) + object.healthAggregationPolicyResource = $root.google.cloud.compute.v1.HealthAggregationPolicy.toObject(message.healthAggregationPolicyResource, options); + return object; + }; + + /** + * Converts this InsertRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest"; + }; + + return InsertRegionHealthAggregationPolicyRequest; + })(); + v1.InsertRegionHealthCheckRequest = (function() { /** @@ -226557,6 +230902,7 @@ * @property {string|null} [status] Instance status * @property {string|null} [statusMessage] Instance statusMessage * @property {google.cloud.compute.v1.ITags|null} [tags] Instance tags + * @property {google.cloud.compute.v1.IWorkloadIdentityConfig|null} [workloadIdentityConfig] Instance workloadIdentityConfig * @property {string|null} [zone] Instance zone */ @@ -226941,6 +231287,14 @@ */ Instance.prototype.tags = null; + /** + * Instance workloadIdentityConfig. + * @member {google.cloud.compute.v1.IWorkloadIdentityConfig|null|undefined} workloadIdentityConfig + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Instance.prototype.workloadIdentityConfig = null; + /** * Instance zone. * @member {string|null|undefined} zone @@ -227186,6 +231540,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Instance.prototype, "_workloadIdentityConfig", { + get: $util.oneOfGetter($oneOfFields = ["workloadIdentityConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Instance.prototype, "_zone", { get: $util.oneOfGetter($oneOfFields = ["zone"]), @@ -227280,6 +231640,8 @@ $root.google.cloud.compute.v1.ServiceAccount.encode(message.serviceAccounts[i], writer.uint32(/* id 277537328, wireType 2 =*/2220298626).fork()).ldelim(); if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 297428154, wireType 2 =*/2379425234).string(message.statusMessage); + if (message.workloadIdentityConfig != null && Object.hasOwnProperty.call(message, "workloadIdentityConfig")) + $root.google.cloud.compute.v1.WorkloadIdentityConfig.encode(message.workloadIdentityConfig, writer.uint32(/* id 338198811, wireType 2 =*/2705590490).fork()).ldelim(); if (message.lastSuspendedTimestamp != null && Object.hasOwnProperty.call(message, "lastSuspendedTimestamp")) writer.uint32(/* id 356275337, wireType 2 =*/2850202698).string(message.lastSuspendedTimestamp); if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) @@ -227559,6 +231921,10 @@ message.tags = $root.google.cloud.compute.v1.Tags.decode(reader, reader.uint32()); break; } + case 338198811: { + message.workloadIdentityConfig = $root.google.cloud.compute.v1.WorkloadIdentityConfig.decode(reader, reader.uint32()); + break; + } case 3744684: { message.zone = reader.string(); break; @@ -227887,6 +232253,14 @@ return "tags." + error; } } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + properties._workloadIdentityConfig = 1; + { + var error = $root.google.cloud.compute.v1.WorkloadIdentityConfig.verify(message.workloadIdentityConfig); + if (error) + return "workloadIdentityConfig." + error; + } + } if (message.zone != null && message.hasOwnProperty("zone")) { properties._zone = 1; if (!$util.isString(message.zone)) @@ -228088,6 +232462,11 @@ throw TypeError(".google.cloud.compute.v1.Instance.tags: object expected"); message.tags = $root.google.cloud.compute.v1.Tags.fromObject(object.tags); } + if (object.workloadIdentityConfig != null) { + if (typeof object.workloadIdentityConfig !== "object") + throw TypeError(".google.cloud.compute.v1.Instance.workloadIdentityConfig: object expected"); + message.workloadIdentityConfig = $root.google.cloud.compute.v1.WorkloadIdentityConfig.fromObject(object.workloadIdentityConfig); + } if (object.zone != null) message.zone = String(object.zone); return message; @@ -228268,6 +232647,11 @@ if (options.oneofs) object._statusMessage = "statusMessage"; } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + object.workloadIdentityConfig = $root.google.cloud.compute.v1.WorkloadIdentityConfig.toObject(message.workloadIdentityConfig, options); + if (options.oneofs) + object._workloadIdentityConfig = "workloadIdentityConfig"; + } if (message.lastSuspendedTimestamp != null && message.hasOwnProperty("lastSuspendedTimestamp")) { object.lastSuspendedTimestamp = message.lastSuspendedTimestamp; if (options.oneofs) @@ -234978,6 +239362,7 @@ * @interface IInstanceGroupManagerInstanceLifecyclePolicy * @property {string|null} [defaultActionOnFailure] InstanceGroupManagerInstanceLifecyclePolicy defaultActionOnFailure * @property {string|null} [forceUpdateOnRepair] InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair + * @property {string|null} [onFailedHealthCheck] InstanceGroupManagerInstanceLifecyclePolicy onFailedHealthCheck */ /** @@ -235011,6 +239396,14 @@ */ InstanceGroupManagerInstanceLifecyclePolicy.prototype.forceUpdateOnRepair = null; + /** + * InstanceGroupManagerInstanceLifecyclePolicy onFailedHealthCheck. + * @member {string|null|undefined} onFailedHealthCheck + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @instance + */ + InstanceGroupManagerInstanceLifecyclePolicy.prototype.onFailedHealthCheck = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -235026,6 +239419,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerInstanceLifecyclePolicy.prototype, "_onFailedHealthCheck", { + get: $util.oneOfGetter($oneOfFields = ["onFailedHealthCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new InstanceGroupManagerInstanceLifecyclePolicy instance using the specified properties. * @function create @@ -235050,6 +239449,8 @@ InstanceGroupManagerInstanceLifecyclePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.onFailedHealthCheck != null && Object.hasOwnProperty.call(message, "onFailedHealthCheck")) + writer.uint32(/* id 39807943, wireType 2 =*/318463546).string(message.onFailedHealthCheck); if (message.defaultActionOnFailure != null && Object.hasOwnProperty.call(message, "defaultActionOnFailure")) writer.uint32(/* id 61383253, wireType 2 =*/491066026).string(message.defaultActionOnFailure); if (message.forceUpdateOnRepair != null && Object.hasOwnProperty.call(message, "forceUpdateOnRepair")) @@ -235098,6 +239499,10 @@ message.forceUpdateOnRepair = reader.string(); break; } + case 39807943: { + message.onFailedHealthCheck = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -235144,6 +239549,11 @@ if (!$util.isString(message.forceUpdateOnRepair)) return "forceUpdateOnRepair: string expected"; } + if (message.onFailedHealthCheck != null && message.hasOwnProperty("onFailedHealthCheck")) { + properties._onFailedHealthCheck = 1; + if (!$util.isString(message.onFailedHealthCheck)) + return "onFailedHealthCheck: string expected"; + } return null; }; @@ -235163,6 +239573,8 @@ message.defaultActionOnFailure = String(object.defaultActionOnFailure); if (object.forceUpdateOnRepair != null) message.forceUpdateOnRepair = String(object.forceUpdateOnRepair); + if (object.onFailedHealthCheck != null) + message.onFailedHealthCheck = String(object.onFailedHealthCheck); return message; }; @@ -235179,6 +239591,11 @@ if (!options) options = {}; var object = {}; + if (message.onFailedHealthCheck != null && message.hasOwnProperty("onFailedHealthCheck")) { + object.onFailedHealthCheck = message.onFailedHealthCheck; + if (options.oneofs) + object._onFailedHealthCheck = "onFailedHealthCheck"; + } if (message.defaultActionOnFailure != null && message.hasOwnProperty("defaultActionOnFailure")) { object.defaultActionOnFailure = message.defaultActionOnFailure; if (options.oneofs) @@ -235250,6 +239667,20 @@ return values; })(); + /** + * OnFailedHealthCheck enum. + * @name google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.OnFailedHealthCheck + * @enum {number} + * @property {number} UNDEFINED_ON_FAILED_HEALTH_CHECK=0 UNDEFINED_ON_FAILED_HEALTH_CHECK value + * @property {number} DEFAULT_ACTION=463967764 DEFAULT_ACTION value + */ + InstanceGroupManagerInstanceLifecyclePolicy.OnFailedHealthCheck = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ON_FAILED_HEALTH_CHECK"] = 0; + values[valuesById[463967764] = "DEFAULT_ACTION"] = 463967764; + return values; + })(); + return InstanceGroupManagerInstanceLifecyclePolicy; })(); @@ -248085,6 +252516,7 @@ * @property {Array.|null} [serviceAccounts] InstanceProperties serviceAccounts * @property {google.cloud.compute.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] InstanceProperties shieldedInstanceConfig * @property {google.cloud.compute.v1.ITags|null} [tags] InstanceProperties tags + * @property {google.cloud.compute.v1.IWorkloadIdentityConfig|null} [workloadIdentityConfig] InstanceProperties workloadIdentityConfig */ /** @@ -248277,6 +252709,14 @@ */ InstanceProperties.prototype.tags = null; + /** + * InstanceProperties workloadIdentityConfig. + * @member {google.cloud.compute.v1.IWorkloadIdentityConfig|null|undefined} workloadIdentityConfig + * @memberof google.cloud.compute.v1.InstanceProperties + * @instance + */ + InstanceProperties.prototype.workloadIdentityConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -248364,6 +252804,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceProperties.prototype, "_workloadIdentityConfig", { + get: $util.oneOfGetter($oneOfFields = ["workloadIdentityConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new InstanceProperties instance using the specified properties. * @function create @@ -248416,6 +252862,8 @@ if (message.serviceAccounts != null && message.serviceAccounts.length) for (var i = 0; i < message.serviceAccounts.length; ++i) $root.google.cloud.compute.v1.ServiceAccount.encode(message.serviceAccounts[i], writer.uint32(/* id 277537328, wireType 2 =*/2220298626).fork()).ldelim(); + if (message.workloadIdentityConfig != null && Object.hasOwnProperty.call(message, "workloadIdentityConfig")) + $root.google.cloud.compute.v1.WorkloadIdentityConfig.encode(message.workloadIdentityConfig, writer.uint32(/* id 338198811, wireType 2 =*/2705590490).fork()).ldelim(); if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); @@ -248605,6 +253053,10 @@ message.tags = $root.google.cloud.compute.v1.Tags.decode(reader, reader.uint32()); break; } + case 338198811: { + message.workloadIdentityConfig = $root.google.cloud.compute.v1.WorkloadIdentityConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -248794,6 +253246,14 @@ return "tags." + error; } } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + properties._workloadIdentityConfig = 1; + { + var error = $root.google.cloud.compute.v1.WorkloadIdentityConfig.verify(message.workloadIdentityConfig); + if (error) + return "workloadIdentityConfig." + error; + } + } return null; }; @@ -248922,6 +253382,11 @@ throw TypeError(".google.cloud.compute.v1.InstanceProperties.tags: object expected"); message.tags = $root.google.cloud.compute.v1.Tags.fromObject(object.tags); } + if (object.workloadIdentityConfig != null) { + if (typeof object.workloadIdentityConfig !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceProperties.workloadIdentityConfig: object expected"); + message.workloadIdentityConfig = $root.google.cloud.compute.v1.WorkloadIdentityConfig.fromObject(object.workloadIdentityConfig); + } return message; }; @@ -249009,6 +253474,11 @@ for (var j = 0; j < message.serviceAccounts.length; ++j) object.serviceAccounts[j] = $root.google.cloud.compute.v1.ServiceAccount.toObject(message.serviceAccounts[j], options); } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + object.workloadIdentityConfig = $root.google.cloud.compute.v1.WorkloadIdentityConfig.toObject(message.workloadIdentityConfig, options); + if (options.oneofs) + object._workloadIdentityConfig = "workloadIdentityConfig"; + } var keys2; if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { object.resourceManagerTags = {}; @@ -254157,6 +258627,7 @@ * @enum {number} * @property {number} UNDEFINED_BEHAVIOR=0 UNDEFINED_BEHAVIOR value * @property {number} BEHAVIOR_UNSPECIFIED=85734570 BEHAVIOR_UNSPECIFIED value + * @property {number} CHIP_ERROR=263151669 CHIP_ERROR value * @property {number} PERFORMANCE=135701520 PERFORMANCE value * @property {number} SILENT_DATA_CORRUPTION=111360678 SILENT_DATA_CORRUPTION value * @property {number} UNRECOVERABLE_GPU_ERROR=363710747 UNRECOVERABLE_GPU_ERROR value @@ -254165,6 +258636,7 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_BEHAVIOR"] = 0; values[valuesById[85734570] = "BEHAVIOR_UNSPECIFIED"] = 85734570; + values[valuesById[263151669] = "CHIP_ERROR"] = 263151669; values[valuesById[135701520] = "PERFORMANCE"] = 135701520; values[valuesById[111360678] = "SILENT_DATA_CORRUPTION"] = 111360678; values[valuesById[363710747] = "UNRECOVERABLE_GPU_ERROR"] = 363710747; @@ -256390,6 +260862,7 @@ * @property {string|null} [labelFingerprint] InstantSnapshot labelFingerprint * @property {Object.|null} [labels] InstantSnapshot labels * @property {string|null} [name] InstantSnapshot name + * @property {google.cloud.compute.v1.IInstantSnapshotParams|null} [params] InstantSnapshot params * @property {string|null} [region] InstantSnapshot region * @property {google.cloud.compute.v1.IInstantSnapshotResourceStatus|null} [resourceStatus] InstantSnapshot resourceStatus * @property {boolean|null} [satisfiesPzi] InstantSnapshot satisfiesPzi @@ -256490,6 +260963,14 @@ */ InstantSnapshot.prototype.name = null; + /** + * InstantSnapshot params. + * @member {google.cloud.compute.v1.IInstantSnapshotParams|null|undefined} params + * @memberof google.cloud.compute.v1.InstantSnapshot + * @instance + */ + InstantSnapshot.prototype.params = null; + /** * InstantSnapshot region. * @member {string|null|undefined} region @@ -256621,6 +261102,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstantSnapshot.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstantSnapshot.prototype, "_region", { get: $util.oneOfGetter($oneOfFields = ["region"]), @@ -256717,6 +261204,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.InstantSnapshotParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) @@ -256835,6 +261324,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.InstantSnapshotParams.decode(reader, reader.uint32()); + break; + } case 138946292: { message.region = reader.string(); break; @@ -256959,6 +261452,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.InstantSnapshotParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -257064,6 +261565,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshot.params: object expected"); + message.params = $root.google.cloud.compute.v1.InstantSnapshotParams.fromObject(object.params); + } if (object.region != null) message.region = String(object.region); if (object.resourceStatus != null) { @@ -257138,6 +261644,11 @@ if (options.oneofs) object._selfLinkWithId = "selfLinkWithId"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.InstantSnapshotParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.region != null && message.hasOwnProperty("region")) { object.region = message.region; if (options.oneofs) @@ -258142,6 +262653,246 @@ return InstantSnapshotList; })(); + v1.InstantSnapshotParams = (function() { + + /** + * Properties of an InstantSnapshotParams. + * @memberof google.cloud.compute.v1 + * @interface IInstantSnapshotParams + * @property {Object.|null} [resourceManagerTags] InstantSnapshotParams resourceManagerTags + */ + + /** + * Constructs a new InstantSnapshotParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstantSnapshotParams. + * @implements IInstantSnapshotParams + * @constructor + * @param {google.cloud.compute.v1.IInstantSnapshotParams=} [properties] Properties to set + */ + function InstantSnapshotParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstantSnapshotParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @instance + */ + InstantSnapshotParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new InstantSnapshotParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstantSnapshotParams} InstantSnapshotParams instance + */ + InstantSnapshotParams.create = function create(properties) { + return new InstantSnapshotParams(properties); + }; + + /** + * Encodes the specified InstantSnapshotParams message. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotParams} message InstantSnapshotParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstantSnapshotParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstantSnapshotParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1.IInstantSnapshotParams} message InstantSnapshotParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstantSnapshotParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @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.InstantSnapshotParams} InstantSnapshotParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstantSnapshotParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstantSnapshotParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstantSnapshotParams} InstantSnapshotParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstantSnapshotParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstantSnapshotParams message. + * @function verify + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstantSnapshotParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an InstantSnapshotParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstantSnapshotParams} InstantSnapshotParams + */ + InstantSnapshotParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstantSnapshotParams) + return object; + var message = new $root.google.cloud.compute.v1.InstantSnapshotParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.InstantSnapshotParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an InstantSnapshotParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {google.cloud.compute.v1.InstantSnapshotParams} message InstantSnapshotParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstantSnapshotParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this InstantSnapshotParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @instance + * @returns {Object.} JSON object + */ + InstantSnapshotParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstantSnapshotParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstantSnapshotParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstantSnapshotParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstantSnapshotParams"; + }; + + return InstantSnapshotParams; + })(); + v1.InstantSnapshotResourceStatus = (function() { /** @@ -290926,6 +295677,7 @@ * Properties of a ListAssociationsFirewallPolicyRequest. * @memberof google.cloud.compute.v1 * @interface IListAssociationsFirewallPolicyRequest + * @property {boolean|null} [includeInheritedPolicies] ListAssociationsFirewallPolicyRequest includeInheritedPolicies * @property {string|null} [targetResource] ListAssociationsFirewallPolicyRequest targetResource */ @@ -290944,6 +295696,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ListAssociationsFirewallPolicyRequest includeInheritedPolicies. + * @member {boolean|null|undefined} includeInheritedPolicies + * @memberof google.cloud.compute.v1.ListAssociationsFirewallPolicyRequest + * @instance + */ + ListAssociationsFirewallPolicyRequest.prototype.includeInheritedPolicies = null; + /** * ListAssociationsFirewallPolicyRequest targetResource. * @member {string|null|undefined} targetResource @@ -290955,6 +295715,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListAssociationsFirewallPolicyRequest.prototype, "_includeInheritedPolicies", { + get: $util.oneOfGetter($oneOfFields = ["includeInheritedPolicies"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ListAssociationsFirewallPolicyRequest.prototype, "_targetResource", { get: $util.oneOfGetter($oneOfFields = ["targetResource"]), @@ -290985,6 +295751,8 @@ ListAssociationsFirewallPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.includeInheritedPolicies != null && Object.hasOwnProperty.call(message, "includeInheritedPolicies")) + writer.uint32(/* id 32280076, wireType 0 =*/258240608).bool(message.includeInheritedPolicies); if (message.targetResource != null && Object.hasOwnProperty.call(message, "targetResource")) writer.uint32(/* id 467318524, wireType 2 =*/3738548194).string(message.targetResource); return writer; @@ -291023,6 +295791,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 32280076: { + message.includeInheritedPolicies = reader.bool(); + break; + } case 467318524: { message.targetResource = reader.string(); break; @@ -291063,6 +295835,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.includeInheritedPolicies != null && message.hasOwnProperty("includeInheritedPolicies")) { + properties._includeInheritedPolicies = 1; + if (typeof message.includeInheritedPolicies !== "boolean") + return "includeInheritedPolicies: boolean expected"; + } if (message.targetResource != null && message.hasOwnProperty("targetResource")) { properties._targetResource = 1; if (!$util.isString(message.targetResource)) @@ -291083,6 +295860,8 @@ if (object instanceof $root.google.cloud.compute.v1.ListAssociationsFirewallPolicyRequest) return object; var message = new $root.google.cloud.compute.v1.ListAssociationsFirewallPolicyRequest(); + if (object.includeInheritedPolicies != null) + message.includeInheritedPolicies = Boolean(object.includeInheritedPolicies); if (object.targetResource != null) message.targetResource = String(object.targetResource); return message; @@ -291101,6 +295880,11 @@ if (!options) options = {}; var object = {}; + if (message.includeInheritedPolicies != null && message.hasOwnProperty("includeInheritedPolicies")) { + object.includeInheritedPolicies = message.includeInheritedPolicies; + if (options.oneofs) + object._includeInheritedPolicies = "includeInheritedPolicies"; + } if (message.targetResource != null && message.hasOwnProperty("targetResource")) { object.targetResource = message.targetResource; if (options.oneofs) @@ -320049,30 +324833,30 @@ return ListRegionDisksRequest; })(); - v1.ListRegionHealthCheckServicesRequest = (function() { + v1.ListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of a ListRegionHealthCheckServicesRequest. + * Properties of a ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionHealthCheckServicesRequest - * @property {string|null} [filter] ListRegionHealthCheckServicesRequest filter - * @property {number|null} [maxResults] ListRegionHealthCheckServicesRequest maxResults - * @property {string|null} [orderBy] ListRegionHealthCheckServicesRequest orderBy - * @property {string|null} [pageToken] ListRegionHealthCheckServicesRequest pageToken - * @property {string|null} [project] ListRegionHealthCheckServicesRequest project - * @property {string|null} [region] ListRegionHealthCheckServicesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionHealthCheckServicesRequest returnPartialSuccess + * @interface IListRegionHealthAggregationPoliciesRequest + * @property {string|null} [filter] ListRegionHealthAggregationPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionHealthAggregationPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthAggregationPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthAggregationPoliciesRequest pageToken + * @property {string|null} [project] ListRegionHealthAggregationPoliciesRequest project + * @property {string|null} [region] ListRegionHealthAggregationPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthAggregationPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionHealthCheckServicesRequest. + * Constructs a new ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthCheckServicesRequest. - * @implements IListRegionHealthCheckServicesRequest + * @classdesc Represents a ListRegionHealthAggregationPoliciesRequest. + * @implements IListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function ListRegionHealthCheckServicesRequest(properties) { + function ListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -320080,116 +324864,116 @@ } /** - * ListRegionHealthCheckServicesRequest filter. + * ListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.filter = null; + ListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * ListRegionHealthCheckServicesRequest maxResults. + * ListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.maxResults = null; + ListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * ListRegionHealthCheckServicesRequest orderBy. + * ListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.orderBy = null; + ListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * ListRegionHealthCheckServicesRequest pageToken. + * ListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.pageToken = null; + ListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * ListRegionHealthCheckServicesRequest project. + * ListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.project = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * ListRegionHealthCheckServicesRequest region. + * ListRegionHealthAggregationPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.region = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.region = ""; /** - * ListRegionHealthCheckServicesRequest returnPartialSuccess. + * ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; + ListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. + * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest instance */ - ListRegionHealthCheckServicesRequest.create = function create(properties) { - return new ListRegionHealthCheckServicesRequest(properties); + ListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new ListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthCheckServicesRequest.encode = function encode(message, writer) { + ListRegionHealthAggregationPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -320210,33 +324994,33 @@ }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @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.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthCheckServicesRequest.decode = function decode(reader, length, error) { + ListRegionHealthAggregationPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -320279,30 +325063,30 @@ }; /** - * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthAggregationPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionHealthCheckServicesRequest message. + * Verifies a ListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthCheckServicesRequest.verify = function verify(message) { + ListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -320341,17 +325125,17 @@ }; /** - * Creates a ListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest */ - ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) + ListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -320370,15 +325154,15 @@ }; /** - * Creates a plain object from a ListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest + * @param {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { + ListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -320419,58 +325203,58 @@ }; /** - * Converts this ListRegionHealthCheckServicesRequest to JSON. + * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { + ListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthCheckServicesRequest + * Gets the default type url for ListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest"; }; - return ListRegionHealthCheckServicesRequest; + return ListRegionHealthAggregationPoliciesRequest; })(); - v1.ListRegionHealthChecksRequest = (function() { + v1.ListRegionHealthCheckServicesRequest = (function() { /** - * Properties of a ListRegionHealthChecksRequest. + * Properties of a ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionHealthChecksRequest - * @property {string|null} [filter] ListRegionHealthChecksRequest filter - * @property {number|null} [maxResults] ListRegionHealthChecksRequest maxResults - * @property {string|null} [orderBy] ListRegionHealthChecksRequest orderBy - * @property {string|null} [pageToken] ListRegionHealthChecksRequest pageToken - * @property {string|null} [project] ListRegionHealthChecksRequest project - * @property {string|null} [region] ListRegionHealthChecksRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionHealthChecksRequest returnPartialSuccess + * @interface IListRegionHealthCheckServicesRequest + * @property {string|null} [filter] ListRegionHealthCheckServicesRequest filter + * @property {number|null} [maxResults] ListRegionHealthCheckServicesRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthCheckServicesRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthCheckServicesRequest pageToken + * @property {string|null} [project] ListRegionHealthCheckServicesRequest project + * @property {string|null} [region] ListRegionHealthCheckServicesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthCheckServicesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionHealthChecksRequest. + * Constructs a new ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthChecksRequest. - * @implements IListRegionHealthChecksRequest + * @classdesc Represents a ListRegionHealthCheckServicesRequest. + * @implements IListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function ListRegionHealthChecksRequest(properties) { + function ListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -320478,116 +325262,116 @@ } /** - * ListRegionHealthChecksRequest filter. + * ListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.filter = null; + ListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * ListRegionHealthChecksRequest maxResults. + * ListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.maxResults = null; + ListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * ListRegionHealthChecksRequest orderBy. + * ListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.orderBy = null; + ListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * ListRegionHealthChecksRequest pageToken. + * ListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.pageToken = null; + ListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * ListRegionHealthChecksRequest project. + * ListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.project = ""; + ListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * ListRegionHealthChecksRequest region. + * ListRegionHealthCheckServicesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.region = ""; + ListRegionHealthCheckServicesRequest.prototype.region = ""; /** - * ListRegionHealthChecksRequest returnPartialSuccess. + * ListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; + ListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthChecksRequest instance using the specified properties. + * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance */ - ListRegionHealthChecksRequest.create = function create(properties) { - return new ListRegionHealthChecksRequest(properties); + ListRegionHealthCheckServicesRequest.create = function create(properties) { + return new ListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encode = function encode(message, writer) { + ListRegionHealthCheckServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -320608,33 +325392,33 @@ }; /** - * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @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.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthChecksRequest.decode = function decode(reader, length, error) { + ListRegionHealthCheckServicesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -320677,30 +325461,30 @@ }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionHealthChecksRequest message. + * Verifies a ListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthChecksRequest.verify = function verify(message) { + ListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -320739,17 +325523,17 @@ }; /** - * Creates a ListRegionHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest */ - ListRegionHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) + ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -320768,15 +325552,15 @@ }; /** - * Creates a plain object from a ListRegionHealthChecksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest + * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthChecksRequest.toObject = function toObject(message, options) { + ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -320817,58 +325601,58 @@ }; /** - * Converts this ListRegionHealthChecksRequest to JSON. + * Converts this ListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { + ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthChecksRequest + * Gets the default type url for ListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; }; - return ListRegionHealthChecksRequest; + return ListRegionHealthCheckServicesRequest; })(); - v1.ListRegionInstanceGroupManagersRequest = (function() { + v1.ListRegionHealthChecksRequest = (function() { /** - * Properties of a ListRegionInstanceGroupManagersRequest. + * Properties of a ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceGroupManagersRequest - * @property {string|null} [filter] ListRegionInstanceGroupManagersRequest filter - * @property {number|null} [maxResults] ListRegionInstanceGroupManagersRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceGroupManagersRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceGroupManagersRequest pageToken - * @property {string|null} [project] ListRegionInstanceGroupManagersRequest project - * @property {string|null} [region] ListRegionInstanceGroupManagersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupManagersRequest returnPartialSuccess + * @interface IListRegionHealthChecksRequest + * @property {string|null} [filter] ListRegionHealthChecksRequest filter + * @property {number|null} [maxResults] ListRegionHealthChecksRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthChecksRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthChecksRequest pageToken + * @property {string|null} [project] ListRegionHealthChecksRequest project + * @property {string|null} [region] ListRegionHealthChecksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthChecksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceGroupManagersRequest. + * Constructs a new ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupManagersRequest. - * @implements IListRegionInstanceGroupManagersRequest + * @classdesc Represents a ListRegionHealthChecksRequest. + * @implements IListRegionHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupManagersRequest(properties) { + function ListRegionHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -320876,116 +325660,116 @@ } /** - * ListRegionInstanceGroupManagersRequest filter. + * ListRegionHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.filter = null; + ListRegionHealthChecksRequest.prototype.filter = null; /** - * ListRegionInstanceGroupManagersRequest maxResults. + * ListRegionHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; + ListRegionHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupManagersRequest orderBy. + * ListRegionHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; + ListRegionHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupManagersRequest pageToken. + * ListRegionHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; + ListRegionHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupManagersRequest project. + * ListRegionHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.project = ""; + ListRegionHealthChecksRequest.prototype.project = ""; /** - * ListRegionInstanceGroupManagersRequest region. + * ListRegionHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.region = ""; + ListRegionHealthChecksRequest.prototype.region = ""; /** - * ListRegionInstanceGroupManagersRequest returnPartialSuccess. + * ListRegionHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; + ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. + * Creates a new ListRegionHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance */ - ListRegionInstanceGroupManagersRequest.create = function create(properties) { - return new ListRegionInstanceGroupManagersRequest(properties); + ListRegionHealthChecksRequest.create = function create(properties) { + return new ListRegionHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupManagersRequest.encode = function encode(message, writer) { + ListRegionHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -321006,33 +325790,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @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.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupManagersRequest.decode = function decode(reader, length, error) { + ListRegionHealthChecksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -321075,30 +325859,30 @@ }; /** - * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceGroupManagersRequest message. + * Verifies a ListRegionHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceGroupManagersRequest.verify = function verify(message) { + ListRegionHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -321137,17 +325921,17 @@ }; /** - * Creates a ListRegionInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest */ - ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) + ListRegionHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -321166,15 +325950,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupManagersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest + * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { + ListRegionHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -321215,58 +325999,58 @@ }; /** - * Converts this ListRegionInstanceGroupManagersRequest to JSON. + * Converts this ListRegionHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { + ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceGroupManagersRequest + * Gets the default type url for ListRegionHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; }; - return ListRegionInstanceGroupManagersRequest; + return ListRegionHealthChecksRequest; })(); - v1.ListRegionInstanceGroupsRequest = (function() { + v1.ListRegionInstanceGroupManagersRequest = (function() { /** - * Properties of a ListRegionInstanceGroupsRequest. + * Properties of a ListRegionInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceGroupsRequest - * @property {string|null} [filter] ListRegionInstanceGroupsRequest filter - * @property {number|null} [maxResults] ListRegionInstanceGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceGroupsRequest pageToken - * @property {string|null} [project] ListRegionInstanceGroupsRequest project - * @property {string|null} [region] ListRegionInstanceGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupsRequest returnPartialSuccess + * @interface IListRegionInstanceGroupManagersRequest + * @property {string|null} [filter] ListRegionInstanceGroupManagersRequest filter + * @property {number|null} [maxResults] ListRegionInstanceGroupManagersRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceGroupManagersRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceGroupManagersRequest pageToken + * @property {string|null} [project] ListRegionInstanceGroupManagersRequest project + * @property {string|null} [region] ListRegionInstanceGroupManagersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupManagersRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceGroupsRequest. + * Constructs a new ListRegionInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupsRequest. - * @implements IListRegionInstanceGroupsRequest + * @classdesc Represents a ListRegionInstanceGroupManagersRequest. + * @implements IListRegionInstanceGroupManagersRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupsRequest(properties) { + function ListRegionInstanceGroupManagersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -321274,116 +326058,116 @@ } /** - * ListRegionInstanceGroupsRequest filter. + * ListRegionInstanceGroupManagersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.filter = null; + ListRegionInstanceGroupManagersRequest.prototype.filter = null; /** - * ListRegionInstanceGroupsRequest maxResults. + * ListRegionInstanceGroupManagersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.maxResults = null; + ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupsRequest orderBy. + * ListRegionInstanceGroupManagersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.orderBy = null; + ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupsRequest pageToken. + * ListRegionInstanceGroupManagersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.pageToken = null; + ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupsRequest project. + * ListRegionInstanceGroupManagersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.project = ""; + ListRegionInstanceGroupManagersRequest.prototype.project = ""; /** - * ListRegionInstanceGroupsRequest region. + * ListRegionInstanceGroupManagersRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.region = ""; + ListRegionInstanceGroupManagersRequest.prototype.region = ""; /** - * ListRegionInstanceGroupsRequest returnPartialSuccess. + * ListRegionInstanceGroupManagersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance */ - ListRegionInstanceGroupsRequest.create = function create(properties) { - return new ListRegionInstanceGroupsRequest(properties); + ListRegionInstanceGroupManagersRequest.create = function create(properties) { + return new ListRegionInstanceGroupManagersRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupsRequest.encode = function encode(message, writer) { + ListRegionInstanceGroupManagersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -321404,33 +326188,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @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.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupsRequest.decode = function decode(reader, length, error) { + ListRegionInstanceGroupManagersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -321473,30 +326257,30 @@ }; /** - * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceGroupsRequest message. + * Verifies a ListRegionInstanceGroupManagersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceGroupsRequest.verify = function verify(message) { + ListRegionInstanceGroupManagersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -321535,17 +326319,17 @@ }; /** - * Creates a ListRegionInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest */ - ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) + ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -321564,15 +326348,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceGroupManagersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -321613,58 +326397,58 @@ }; /** - * Converts this ListRegionInstanceGroupsRequest to JSON. + * Converts this ListRegionInstanceGroupManagersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceGroupsRequest + * Gets the default type url for ListRegionInstanceGroupManagersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; }; - return ListRegionInstanceGroupsRequest; + return ListRegionInstanceGroupManagersRequest; })(); - v1.ListRegionInstanceTemplatesRequest = (function() { + v1.ListRegionInstanceGroupsRequest = (function() { /** - * Properties of a ListRegionInstanceTemplatesRequest. + * Properties of a ListRegionInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceTemplatesRequest - * @property {string|null} [filter] ListRegionInstanceTemplatesRequest filter - * @property {number|null} [maxResults] ListRegionInstanceTemplatesRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceTemplatesRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceTemplatesRequest pageToken - * @property {string|null} [project] ListRegionInstanceTemplatesRequest project - * @property {string|null} [region] ListRegionInstanceTemplatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceTemplatesRequest returnPartialSuccess + * @interface IListRegionInstanceGroupsRequest + * @property {string|null} [filter] ListRegionInstanceGroupsRequest filter + * @property {number|null} [maxResults] ListRegionInstanceGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceGroupsRequest pageToken + * @property {string|null} [project] ListRegionInstanceGroupsRequest project + * @property {string|null} [region] ListRegionInstanceGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceTemplatesRequest. + * Constructs a new ListRegionInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceTemplatesRequest. - * @implements IListRegionInstanceTemplatesRequest + * @classdesc Represents a ListRegionInstanceGroupsRequest. + * @implements IListRegionInstanceGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set */ - function ListRegionInstanceTemplatesRequest(properties) { + function ListRegionInstanceGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -321672,116 +326456,116 @@ } /** - * ListRegionInstanceTemplatesRequest filter. + * ListRegionInstanceGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.filter = null; + ListRegionInstanceGroupsRequest.prototype.filter = null; /** - * ListRegionInstanceTemplatesRequest maxResults. + * ListRegionInstanceGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.maxResults = null; + ListRegionInstanceGroupsRequest.prototype.maxResults = null; /** - * ListRegionInstanceTemplatesRequest orderBy. + * ListRegionInstanceGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.orderBy = null; + ListRegionInstanceGroupsRequest.prototype.orderBy = null; /** - * ListRegionInstanceTemplatesRequest pageToken. + * ListRegionInstanceGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.pageToken = null; + ListRegionInstanceGroupsRequest.prototype.pageToken = null; /** - * ListRegionInstanceTemplatesRequest project. + * ListRegionInstanceGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.project = ""; + ListRegionInstanceGroupsRequest.prototype.project = ""; /** - * ListRegionInstanceTemplatesRequest region. + * ListRegionInstanceGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.region = ""; + ListRegionInstanceGroupsRequest.prototype.region = ""; /** - * ListRegionInstanceTemplatesRequest returnPartialSuccess. + * ListRegionInstanceGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance */ - ListRegionInstanceTemplatesRequest.create = function create(properties) { - return new ListRegionInstanceTemplatesRequest(properties); + ListRegionInstanceGroupsRequest.create = function create(properties) { + return new ListRegionInstanceGroupsRequest(properties); }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceTemplatesRequest.encode = function encode(message, writer) { + ListRegionInstanceGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -321802,33 +326586,33 @@ }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @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.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceTemplatesRequest.decode = function decode(reader, length, error) { + ListRegionInstanceGroupsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -321871,30 +326655,30 @@ }; /** - * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceTemplatesRequest message. + * Verifies a ListRegionInstanceGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceTemplatesRequest.verify = function verify(message) { + ListRegionInstanceGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -321933,17 +326717,17 @@ }; /** - * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest */ - ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) + ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -321962,15 +326746,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -322011,58 +326795,58 @@ }; /** - * Converts this ListRegionInstanceTemplatesRequest to JSON. + * Converts this ListRegionInstanceGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceTemplatesRequest + * Gets the default type url for ListRegionInstanceGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; }; - return ListRegionInstanceTemplatesRequest; + return ListRegionInstanceGroupsRequest; })(); - v1.ListRegionInstantSnapshotsRequest = (function() { + v1.ListRegionInstanceTemplatesRequest = (function() { /** - * Properties of a ListRegionInstantSnapshotsRequest. + * Properties of a ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstantSnapshotsRequest - * @property {string|null} [filter] ListRegionInstantSnapshotsRequest filter - * @property {number|null} [maxResults] ListRegionInstantSnapshotsRequest maxResults - * @property {string|null} [orderBy] ListRegionInstantSnapshotsRequest orderBy - * @property {string|null} [pageToken] ListRegionInstantSnapshotsRequest pageToken - * @property {string|null} [project] ListRegionInstantSnapshotsRequest project - * @property {string|null} [region] ListRegionInstantSnapshotsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotsRequest returnPartialSuccess + * @interface IListRegionInstanceTemplatesRequest + * @property {string|null} [filter] ListRegionInstanceTemplatesRequest filter + * @property {number|null} [maxResults] ListRegionInstanceTemplatesRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceTemplatesRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceTemplatesRequest pageToken + * @property {string|null} [project] ListRegionInstanceTemplatesRequest project + * @property {string|null} [region] ListRegionInstanceTemplatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceTemplatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstantSnapshotsRequest. + * Constructs a new ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstantSnapshotsRequest. - * @implements IListRegionInstantSnapshotsRequest + * @classdesc Represents a ListRegionInstanceTemplatesRequest. + * @implements IListRegionInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set */ - function ListRegionInstantSnapshotsRequest(properties) { + function ListRegionInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -322070,116 +326854,116 @@ } /** - * ListRegionInstantSnapshotsRequest filter. + * ListRegionInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.filter = null; + ListRegionInstanceTemplatesRequest.prototype.filter = null; /** - * ListRegionInstantSnapshotsRequest maxResults. + * ListRegionInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.maxResults = null; + ListRegionInstanceTemplatesRequest.prototype.maxResults = null; /** - * ListRegionInstantSnapshotsRequest orderBy. + * ListRegionInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.orderBy = null; + ListRegionInstanceTemplatesRequest.prototype.orderBy = null; /** - * ListRegionInstantSnapshotsRequest pageToken. + * ListRegionInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.pageToken = null; + ListRegionInstanceTemplatesRequest.prototype.pageToken = null; /** - * ListRegionInstantSnapshotsRequest project. + * ListRegionInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.project = ""; + ListRegionInstanceTemplatesRequest.prototype.project = ""; /** - * ListRegionInstantSnapshotsRequest region. + * ListRegionInstanceTemplatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.region = ""; + ListRegionInstanceTemplatesRequest.prototype.region = ""; /** - * ListRegionInstantSnapshotsRequest returnPartialSuccess. + * ListRegionInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstantSnapshotsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. + * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance */ - ListRegionInstantSnapshotsRequest.create = function create(properties) { - return new ListRegionInstantSnapshotsRequest(properties); + ListRegionInstanceTemplatesRequest.create = function create(properties) { + return new ListRegionInstanceTemplatesRequest(properties); }; /** - * Encodes the specified ListRegionInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstantSnapshotsRequest.encode = function encode(message, writer) { + ListRegionInstanceTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -322200,33 +326984,33 @@ }; /** - * Encodes the specified ListRegionInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstantSnapshotsRequest.decode = function decode(reader, length, error) { + ListRegionInstanceTemplatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -322269,30 +327053,30 @@ }; /** - * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstantSnapshotsRequest message. + * Verifies a ListRegionInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstantSnapshotsRequest.verify = function verify(message) { + ListRegionInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -322331,17 +327115,17 @@ }; /** - * Creates a ListRegionInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest */ - ListRegionInstantSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest) + ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -322360,15 +327144,15 @@ }; /** - * Creates a plain object from a ListRegionInstantSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstantSnapshotsRequest.toObject = function toObject(message, options) { + ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -322409,58 +327193,58 @@ }; /** - * Converts this ListRegionInstantSnapshotsRequest to JSON. + * Converts this ListRegionInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstantSnapshotsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstantSnapshotsRequest + * Gets the default type url for ListRegionInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstantSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; }; - return ListRegionInstantSnapshotsRequest; + return ListRegionInstanceTemplatesRequest; })(); - v1.ListRegionNetworkEndpointGroupsRequest = (function() { + v1.ListRegionInstantSnapshotsRequest = (function() { /** - * Properties of a ListRegionNetworkEndpointGroupsRequest. + * Properties of a ListRegionInstantSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkEndpointGroupsRequest - * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter - * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project - * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess + * @interface IListRegionInstantSnapshotsRequest + * @property {string|null} [filter] ListRegionInstantSnapshotsRequest filter + * @property {number|null} [maxResults] ListRegionInstantSnapshotsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstantSnapshotsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstantSnapshotsRequest pageToken + * @property {string|null} [project] ListRegionInstantSnapshotsRequest project + * @property {string|null} [region] ListRegionInstantSnapshotsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstantSnapshotsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkEndpointGroupsRequest. + * Constructs a new ListRegionInstantSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. - * @implements IListRegionNetworkEndpointGroupsRequest + * @classdesc Represents a ListRegionInstantSnapshotsRequest. + * @implements IListRegionInstantSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set */ - function ListRegionNetworkEndpointGroupsRequest(properties) { + function ListRegionInstantSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -322468,116 +327252,116 @@ } /** - * ListRegionNetworkEndpointGroupsRequest filter. + * ListRegionInstantSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; + ListRegionInstantSnapshotsRequest.prototype.filter = null; /** - * ListRegionNetworkEndpointGroupsRequest maxResults. + * ListRegionInstantSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; + ListRegionInstantSnapshotsRequest.prototype.maxResults = null; /** - * ListRegionNetworkEndpointGroupsRequest orderBy. + * ListRegionInstantSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; + ListRegionInstantSnapshotsRequest.prototype.orderBy = null; /** - * ListRegionNetworkEndpointGroupsRequest pageToken. + * ListRegionInstantSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; + ListRegionInstantSnapshotsRequest.prototype.pageToken = null; /** - * ListRegionNetworkEndpointGroupsRequest project. + * ListRegionInstantSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; + ListRegionInstantSnapshotsRequest.prototype.project = ""; /** - * ListRegionNetworkEndpointGroupsRequest region. + * ListRegionInstantSnapshotsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; + ListRegionInstantSnapshotsRequest.prototype.region = ""; /** - * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. + * ListRegionInstantSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionInstantSnapshotsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new ListRegionInstantSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest instance */ - ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { - return new ListRegionNetworkEndpointGroupsRequest(properties); + ListRegionInstantSnapshotsRequest.create = function create(properties) { + return new ListRegionInstantSnapshotsRequest(properties); }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + ListRegionInstantSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -322598,33 +327382,33 @@ }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstantSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { + ListRegionInstantSnapshotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -322667,30 +327451,30 @@ }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstantSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkEndpointGroupsRequest message. + * Verifies a ListRegionInstantSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { + ListRegionInstantSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -322729,17 +327513,17 @@ }; /** - * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} ListRegionInstantSnapshotsRequest */ - ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) + ListRegionInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstantSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -322758,15 +327542,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstantSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1.ListRegionInstantSnapshotsRequest} message ListRegionInstantSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + ListRegionInstantSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -322807,58 +327591,58 @@ }; /** - * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. + * Converts this ListRegionInstantSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionInstantSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkEndpointGroupsRequest + * Gets the default type url for ListRegionInstantSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstantSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstantSnapshotsRequest"; }; - return ListRegionNetworkEndpointGroupsRequest; + return ListRegionInstantSnapshotsRequest; })(); - v1.ListRegionNetworkFirewallPoliciesRequest = (function() { + v1.ListRegionNetworkEndpointGroupsRequest = (function() { /** - * Properties of a ListRegionNetworkFirewallPoliciesRequest. + * Properties of a ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkFirewallPoliciesRequest - * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken - * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project - * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess + * @interface IListRegionNetworkEndpointGroupsRequest + * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter + * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project + * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkFirewallPoliciesRequest. + * Constructs a new ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. - * @implements IListRegionNetworkFirewallPoliciesRequest + * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. + * @implements IListRegionNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function ListRegionNetworkFirewallPoliciesRequest(properties) { + function ListRegionNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -322866,116 +327650,116 @@ } /** - * ListRegionNetworkFirewallPoliciesRequest filter. + * ListRegionNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; + ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; /** - * ListRegionNetworkFirewallPoliciesRequest maxResults. + * ListRegionNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; + ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * ListRegionNetworkFirewallPoliciesRequest orderBy. + * ListRegionNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; + ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * ListRegionNetworkFirewallPoliciesRequest pageToken. + * ListRegionNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; + ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * ListRegionNetworkFirewallPoliciesRequest project. + * ListRegionNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; /** - * ListRegionNetworkFirewallPoliciesRequest region. + * ListRegionNetworkEndpointGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; /** - * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. + * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance */ - ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { - return new ListRegionNetworkFirewallPoliciesRequest(properties); + ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { + return new ListRegionNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -322996,33 +327780,33 @@ }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -323065,30 +327849,30 @@ }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkFirewallPoliciesRequest message. + * Verifies a ListRegionNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { + ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -323127,17 +327911,17 @@ }; /** - * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest */ - ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) + ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -323156,15 +327940,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -323205,58 +327989,58 @@ }; /** - * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. + * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest + * Gets the default type url for ListRegionNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; }; - return ListRegionNetworkFirewallPoliciesRequest; + return ListRegionNetworkEndpointGroupsRequest; })(); - v1.ListRegionNotificationEndpointsRequest = (function() { + v1.ListRegionNetworkFirewallPoliciesRequest = (function() { /** - * Properties of a ListRegionNotificationEndpointsRequest. + * Properties of a ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNotificationEndpointsRequest - * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter - * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults - * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy - * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken - * @property {string|null} [project] ListRegionNotificationEndpointsRequest project - * @property {string|null} [region] ListRegionNotificationEndpointsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess + * @interface IListRegionNetworkFirewallPoliciesRequest + * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken + * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project + * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNotificationEndpointsRequest. + * Constructs a new ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNotificationEndpointsRequest. - * @implements IListRegionNotificationEndpointsRequest + * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. + * @implements IListRegionNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function ListRegionNotificationEndpointsRequest(properties) { + function ListRegionNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -323264,116 +328048,116 @@ } /** - * ListRegionNotificationEndpointsRequest filter. + * ListRegionNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.filter = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * ListRegionNotificationEndpointsRequest maxResults. + * ListRegionNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.maxResults = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * ListRegionNotificationEndpointsRequest orderBy. + * ListRegionNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.orderBy = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * ListRegionNotificationEndpointsRequest pageToken. + * ListRegionNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.pageToken = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * ListRegionNotificationEndpointsRequest project. + * ListRegionNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.project = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * ListRegionNotificationEndpointsRequest region. + * ListRegionNetworkFirewallPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.region = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; /** - * ListRegionNotificationEndpointsRequest returnPartialSuccess. + * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. + * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance */ - ListRegionNotificationEndpointsRequest.create = function create(properties) { - return new ListRegionNotificationEndpointsRequest(properties); + ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { + return new ListRegionNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -323394,33 +328178,33 @@ }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decode = function decode(reader, length, error) { + ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -323463,30 +328247,30 @@ }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNotificationEndpointsRequest message. + * Verifies a ListRegionNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNotificationEndpointsRequest.verify = function verify(message) { + ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -323525,17 +328309,17 @@ }; /** - * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest */ - ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) + ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -323554,15 +328338,15 @@ }; /** - * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest + * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { + ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -323603,58 +328387,58 @@ }; /** - * Converts this ListRegionNotificationEndpointsRequest to JSON. + * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNotificationEndpointsRequest + * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; }; - return ListRegionNotificationEndpointsRequest; + return ListRegionNetworkFirewallPoliciesRequest; })(); - v1.ListRegionOperationsRequest = (function() { + v1.ListRegionNotificationEndpointsRequest = (function() { /** - * Properties of a ListRegionOperationsRequest. + * Properties of a ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionOperationsRequest - * @property {string|null} [filter] ListRegionOperationsRequest filter - * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults - * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy - * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken - * @property {string|null} [project] ListRegionOperationsRequest project - * @property {string|null} [region] ListRegionOperationsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess + * @interface IListRegionNotificationEndpointsRequest + * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter + * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] ListRegionNotificationEndpointsRequest project + * @property {string|null} [region] ListRegionNotificationEndpointsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionOperationsRequest. + * Constructs a new ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionOperationsRequest. - * @implements IListRegionOperationsRequest + * @classdesc Represents a ListRegionNotificationEndpointsRequest. + * @implements IListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function ListRegionOperationsRequest(properties) { + function ListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -323662,116 +328446,116 @@ } /** - * ListRegionOperationsRequest filter. + * ListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.filter = null; + ListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * ListRegionOperationsRequest maxResults. + * ListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.maxResults = null; + ListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * ListRegionOperationsRequest orderBy. + * ListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.orderBy = null; + ListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * ListRegionOperationsRequest pageToken. + * ListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.pageToken = null; + ListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * ListRegionOperationsRequest project. + * ListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.project = ""; + ListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * ListRegionOperationsRequest region. + * ListRegionNotificationEndpointsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.region = ""; + ListRegionNotificationEndpointsRequest.prototype.region = ""; /** - * ListRegionOperationsRequest returnPartialSuccess. + * ListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionOperationsRequest.prototype.returnPartialSuccess = null; + ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionOperationsRequest instance using the specified properties. + * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance */ - ListRegionOperationsRequest.create = function create(properties) { - return new ListRegionOperationsRequest(properties); + ListRegionNotificationEndpointsRequest.create = function create(properties) { + return new ListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encode = function encode(message, writer) { + ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -323792,33 +328576,33 @@ }; /** - * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decode = function decode(reader, length, error) { + ListRegionNotificationEndpointsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -323861,30 +328645,30 @@ }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionOperationsRequest message. + * Verifies a ListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionOperationsRequest.verify = function verify(message) { + ListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -323923,17 +328707,17 @@ }; /** - * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest */ - ListRegionOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) + ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -323952,15 +328736,15 @@ }; /** - * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest + * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionOperationsRequest.toObject = function toObject(message, options) { + ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -324001,58 +328785,58 @@ }; /** - * Converts this ListRegionOperationsRequest to JSON. + * Converts this ListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - ListRegionOperationsRequest.prototype.toJSON = function toJSON() { + ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionOperationsRequest + * Gets the default type url for ListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; }; - return ListRegionOperationsRequest; + return ListRegionNotificationEndpointsRequest; })(); - v1.ListRegionSecurityPoliciesRequest = (function() { + v1.ListRegionOperationsRequest = (function() { /** - * Properties of a ListRegionSecurityPoliciesRequest. + * Properties of a ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSecurityPoliciesRequest - * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSecurityPoliciesRequest project - * @property {string|null} [region] ListRegionSecurityPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess + * @interface IListRegionOperationsRequest + * @property {string|null} [filter] ListRegionOperationsRequest filter + * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults + * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy + * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken + * @property {string|null} [project] ListRegionOperationsRequest project + * @property {string|null} [region] ListRegionOperationsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSecurityPoliciesRequest. + * Constructs a new ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSecurityPoliciesRequest. - * @implements IListRegionSecurityPoliciesRequest + * @classdesc Represents a ListRegionOperationsRequest. + * @implements IListRegionOperationsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set */ - function ListRegionSecurityPoliciesRequest(properties) { + function ListRegionOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -324060,116 +328844,116 @@ } /** - * ListRegionSecurityPoliciesRequest filter. + * ListRegionOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.filter = null; + ListRegionOperationsRequest.prototype.filter = null; /** - * ListRegionSecurityPoliciesRequest maxResults. + * ListRegionOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.maxResults = null; + ListRegionOperationsRequest.prototype.maxResults = null; /** - * ListRegionSecurityPoliciesRequest orderBy. + * ListRegionOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.orderBy = null; + ListRegionOperationsRequest.prototype.orderBy = null; /** - * ListRegionSecurityPoliciesRequest pageToken. + * ListRegionOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.pageToken = null; + ListRegionOperationsRequest.prototype.pageToken = null; /** - * ListRegionSecurityPoliciesRequest project. + * ListRegionOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.project = ""; + ListRegionOperationsRequest.prototype.project = ""; /** - * ListRegionSecurityPoliciesRequest region. + * ListRegionOperationsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.region = ""; + ListRegionOperationsRequest.prototype.region = ""; /** - * ListRegionSecurityPoliciesRequest returnPartialSuccess. + * ListRegionOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionOperationsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. + * Creates a new ListRegionOperationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance */ - ListRegionSecurityPoliciesRequest.create = function create(properties) { - return new ListRegionSecurityPoliciesRequest(properties); + ListRegionOperationsRequest.create = function create(properties) { + return new ListRegionOperationsRequest(properties); }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { + ListRegionOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -324190,33 +328974,33 @@ }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionOperationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -324259,30 +329043,30 @@ }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSecurityPoliciesRequest message. + * Verifies a ListRegionOperationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSecurityPoliciesRequest.verify = function verify(message) { + ListRegionOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -324321,17 +329105,17 @@ }; /** - * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest */ - ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) + ListRegionOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -324350,15 +329134,15 @@ }; /** - * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { + ListRegionOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -324399,58 +329183,58 @@ }; /** - * Converts this ListRegionSecurityPoliciesRequest to JSON. + * Converts this ListRegionOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance * @returns {Object.} JSON object */ - ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSecurityPoliciesRequest + * Gets the default type url for ListRegionOperationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; }; - return ListRegionSecurityPoliciesRequest; + return ListRegionOperationsRequest; })(); - v1.ListRegionSslCertificatesRequest = (function() { + v1.ListRegionSecurityPoliciesRequest = (function() { /** - * Properties of a ListRegionSslCertificatesRequest. + * Properties of a ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslCertificatesRequest - * @property {string|null} [filter] ListRegionSslCertificatesRequest filter - * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken - * @property {string|null} [project] ListRegionSslCertificatesRequest project - * @property {string|null} [region] ListRegionSslCertificatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess + * @interface IListRegionSecurityPoliciesRequest + * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSecurityPoliciesRequest project + * @property {string|null} [region] ListRegionSecurityPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslCertificatesRequest. + * Constructs a new ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslCertificatesRequest. - * @implements IListRegionSslCertificatesRequest + * @classdesc Represents a ListRegionSecurityPoliciesRequest. + * @implements IListRegionSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set */ - function ListRegionSslCertificatesRequest(properties) { + function ListRegionSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -324458,116 +329242,116 @@ } /** - * ListRegionSslCertificatesRequest filter. + * ListRegionSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.filter = null; + ListRegionSecurityPoliciesRequest.prototype.filter = null; /** - * ListRegionSslCertificatesRequest maxResults. + * ListRegionSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.maxResults = null; + ListRegionSecurityPoliciesRequest.prototype.maxResults = null; /** - * ListRegionSslCertificatesRequest orderBy. + * ListRegionSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.orderBy = null; + ListRegionSecurityPoliciesRequest.prototype.orderBy = null; /** - * ListRegionSslCertificatesRequest pageToken. + * ListRegionSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.pageToken = null; + ListRegionSecurityPoliciesRequest.prototype.pageToken = null; /** - * ListRegionSslCertificatesRequest project. + * ListRegionSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.project = ""; + ListRegionSecurityPoliciesRequest.prototype.project = ""; /** - * ListRegionSslCertificatesRequest region. + * ListRegionSecurityPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.region = ""; + ListRegionSecurityPoliciesRequest.prototype.region = ""; /** - * ListRegionSslCertificatesRequest returnPartialSuccess. + * ListRegionSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; + ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. + * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance */ - ListRegionSslCertificatesRequest.create = function create(properties) { - return new ListRegionSslCertificatesRequest(properties); + ListRegionSecurityPoliciesRequest.create = function create(properties) { + return new ListRegionSecurityPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encode = function encode(message, writer) { + ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -324588,33 +329372,33 @@ }; /** - * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decode = function decode(reader, length, error) { + ListRegionSecurityPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -324657,30 +329441,30 @@ }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslCertificatesRequest message. + * Verifies a ListRegionSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslCertificatesRequest.verify = function verify(message) { + ListRegionSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -324719,17 +329503,17 @@ }; /** - * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest */ - ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) + ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -324748,15 +329532,15 @@ }; /** - * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest + * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { + ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -324797,58 +329581,58 @@ }; /** - * Converts this ListRegionSslCertificatesRequest to JSON. + * Converts this ListRegionSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { + ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslCertificatesRequest + * Gets the default type url for ListRegionSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; }; - return ListRegionSslCertificatesRequest; + return ListRegionSecurityPoliciesRequest; })(); - v1.ListRegionSslPoliciesRequest = (function() { + v1.ListRegionSslCertificatesRequest = (function() { /** - * Properties of a ListRegionSslPoliciesRequest. + * Properties of a ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslPoliciesRequest - * @property {string|null} [filter] ListRegionSslPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSslPoliciesRequest project - * @property {string|null} [region] ListRegionSslPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess + * @interface IListRegionSslCertificatesRequest + * @property {string|null} [filter] ListRegionSslCertificatesRequest filter + * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken + * @property {string|null} [project] ListRegionSslCertificatesRequest project + * @property {string|null} [region] ListRegionSslCertificatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslPoliciesRequest. + * Constructs a new ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslPoliciesRequest. - * @implements IListRegionSslPoliciesRequest + * @classdesc Represents a ListRegionSslCertificatesRequest. + * @implements IListRegionSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set */ - function ListRegionSslPoliciesRequest(properties) { + function ListRegionSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -324856,116 +329640,116 @@ } /** - * ListRegionSslPoliciesRequest filter. + * ListRegionSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.filter = null; + ListRegionSslCertificatesRequest.prototype.filter = null; /** - * ListRegionSslPoliciesRequest maxResults. + * ListRegionSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.maxResults = null; + ListRegionSslCertificatesRequest.prototype.maxResults = null; /** - * ListRegionSslPoliciesRequest orderBy. + * ListRegionSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.orderBy = null; + ListRegionSslCertificatesRequest.prototype.orderBy = null; /** - * ListRegionSslPoliciesRequest pageToken. + * ListRegionSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.pageToken = null; + ListRegionSslCertificatesRequest.prototype.pageToken = null; /** - * ListRegionSslPoliciesRequest project. + * ListRegionSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.project = ""; + ListRegionSslCertificatesRequest.prototype.project = ""; /** - * ListRegionSslPoliciesRequest region. + * ListRegionSslCertificatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.region = ""; + ListRegionSslCertificatesRequest.prototype.region = ""; /** - * ListRegionSslPoliciesRequest returnPartialSuccess. + * ListRegionSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. + * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance */ - ListRegionSslPoliciesRequest.create = function create(properties) { - return new ListRegionSslPoliciesRequest(properties); + ListRegionSslCertificatesRequest.create = function create(properties) { + return new ListRegionSslCertificatesRequest(properties); }; /** - * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encode = function encode(message, writer) { + ListRegionSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -324986,33 +329770,33 @@ }; /** - * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decode = function decode(reader, length, error) { + ListRegionSslCertificatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -325055,30 +329839,30 @@ }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslPoliciesRequest message. + * Verifies a ListRegionSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslPoliciesRequest.verify = function verify(message) { + ListRegionSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -325117,17 +329901,17 @@ }; /** - * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest */ - ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) + ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -325146,15 +329930,15 @@ }; /** - * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { + ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -325195,58 +329979,58 @@ }; /** - * Converts this ListRegionSslPoliciesRequest to JSON. + * Converts this ListRegionSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslPoliciesRequest + * Gets the default type url for ListRegionSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; }; - return ListRegionSslPoliciesRequest; + return ListRegionSslCertificatesRequest; })(); - v1.ListRegionTargetHttpProxiesRequest = (function() { + v1.ListRegionSslPoliciesRequest = (function() { /** - * Properties of a ListRegionTargetHttpProxiesRequest. + * Properties of a ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess + * @interface IListRegionSslPoliciesRequest + * @property {string|null} [filter] ListRegionSslPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSslPoliciesRequest project + * @property {string|null} [region] ListRegionSslPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpProxiesRequest. + * Constructs a new ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpProxiesRequest. - * @implements IListRegionTargetHttpProxiesRequest + * @classdesc Represents a ListRegionSslPoliciesRequest. + * @implements IListRegionSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpProxiesRequest(properties) { + function ListRegionSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -325254,116 +330038,116 @@ } /** - * ListRegionTargetHttpProxiesRequest filter. + * ListRegionSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.filter = null; + ListRegionSslPoliciesRequest.prototype.filter = null; /** - * ListRegionTargetHttpProxiesRequest maxResults. + * ListRegionSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; + ListRegionSslPoliciesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpProxiesRequest orderBy. + * ListRegionSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; + ListRegionSslPoliciesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpProxiesRequest pageToken. + * ListRegionSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; + ListRegionSslPoliciesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpProxiesRequest project. + * ListRegionSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.project = ""; + ListRegionSslPoliciesRequest.prototype.project = ""; /** - * ListRegionTargetHttpProxiesRequest region. + * ListRegionSslPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.region = ""; + ListRegionSslPoliciesRequest.prototype.region = ""; /** - * ListRegionTargetHttpProxiesRequest returnPartialSuccess. + * ListRegionSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. + * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance */ - ListRegionTargetHttpProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpProxiesRequest(properties); + ListRegionSslPoliciesRequest.create = function create(properties) { + return new ListRegionSslPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { + ListRegionSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -325384,33 +330168,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length, error) { + ListRegionSslPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -325453,30 +330237,30 @@ }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpProxiesRequest message. + * Verifies a ListRegionSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpProxiesRequest.verify = function verify(message) { + ListRegionSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -325515,17 +330299,17 @@ }; /** - * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest */ - ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) + ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -325544,15 +330328,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { + ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -325593,58 +330377,58 @@ }; /** - * Converts this ListRegionTargetHttpProxiesRequest to JSON. + * Converts this ListRegionSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpProxiesRequest + * Gets the default type url for ListRegionSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; }; - return ListRegionTargetHttpProxiesRequest; + return ListRegionSslPoliciesRequest; })(); - v1.ListRegionTargetHttpsProxiesRequest = (function() { + v1.ListRegionTargetHttpProxiesRequest = (function() { /** - * Properties of a ListRegionTargetHttpsProxiesRequest. + * Properties of a ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpsProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess + * @interface IListRegionTargetHttpProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpsProxiesRequest. + * Constructs a new ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. - * @implements IListRegionTargetHttpsProxiesRequest + * @classdesc Represents a ListRegionTargetHttpProxiesRequest. + * @implements IListRegionTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpsProxiesRequest(properties) { + function ListRegionTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -325652,116 +330436,116 @@ } /** - * ListRegionTargetHttpsProxiesRequest filter. + * ListRegionTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.filter = null; + ListRegionTargetHttpProxiesRequest.prototype.filter = null; /** - * ListRegionTargetHttpsProxiesRequest maxResults. + * ListRegionTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; + ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpsProxiesRequest orderBy. + * ListRegionTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; + ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpsProxiesRequest pageToken. + * ListRegionTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; + ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpsProxiesRequest project. + * ListRegionTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.project = ""; + ListRegionTargetHttpProxiesRequest.prototype.project = ""; /** - * ListRegionTargetHttpsProxiesRequest region. + * ListRegionTargetHttpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.region = ""; + ListRegionTargetHttpProxiesRequest.prototype.region = ""; /** - * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. + * ListRegionTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance */ - ListRegionTargetHttpsProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpsProxiesRequest(properties); + ListRegionTargetHttpProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -325782,33 +330566,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { + ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -325851,30 +330635,30 @@ }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpsProxiesRequest message. + * Verifies a ListRegionTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { + ListRegionTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -325913,17 +330697,17 @@ }; /** - * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest */ - ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) + ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -325942,15 +330726,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -325991,58 +330775,58 @@ }; /** - * Converts this ListRegionTargetHttpsProxiesRequest to JSON. + * Converts this ListRegionTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpsProxiesRequest + * Gets the default type url for ListRegionTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; }; - return ListRegionTargetHttpsProxiesRequest; + return ListRegionTargetHttpProxiesRequest; })(); - v1.ListRegionTargetTcpProxiesRequest = (function() { + v1.ListRegionTargetHttpsProxiesRequest = (function() { /** - * Properties of a ListRegionTargetTcpProxiesRequest. + * Properties of a ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetTcpProxiesRequest - * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project - * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess + * @interface IListRegionTargetHttpsProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetTcpProxiesRequest. + * Constructs a new ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetTcpProxiesRequest. - * @implements IListRegionTargetTcpProxiesRequest + * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. + * @implements IListRegionTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetTcpProxiesRequest(properties) { + function ListRegionTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -326050,116 +330834,116 @@ } /** - * ListRegionTargetTcpProxiesRequest filter. + * ListRegionTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.filter = null; + ListRegionTargetHttpsProxiesRequest.prototype.filter = null; /** - * ListRegionTargetTcpProxiesRequest maxResults. + * ListRegionTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; + ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetTcpProxiesRequest orderBy. + * ListRegionTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; + ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetTcpProxiesRequest pageToken. + * ListRegionTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; + ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetTcpProxiesRequest project. + * ListRegionTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.project = ""; + ListRegionTargetHttpsProxiesRequest.prototype.project = ""; /** - * ListRegionTargetTcpProxiesRequest region. + * ListRegionTargetHttpsProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.region = ""; + ListRegionTargetHttpsProxiesRequest.prototype.region = ""; /** - * ListRegionTargetTcpProxiesRequest returnPartialSuccess. + * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance */ - ListRegionTargetTcpProxiesRequest.create = function create(properties) { - return new ListRegionTargetTcpProxiesRequest(properties); + ListRegionTargetHttpsProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -326180,33 +330964,33 @@ }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length, error) { + ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -326249,30 +331033,30 @@ }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetTcpProxiesRequest message. + * Verifies a ListRegionTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetTcpProxiesRequest.verify = function verify(message) { + ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -326311,17 +331095,17 @@ }; /** - * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest */ - ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) + ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -326340,15 +331124,15 @@ }; /** - * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -326389,58 +331173,58 @@ }; /** - * Converts this ListRegionTargetTcpProxiesRequest to JSON. + * Converts this ListRegionTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetTcpProxiesRequest + * Gets the default type url for ListRegionTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; }; - return ListRegionTargetTcpProxiesRequest; + return ListRegionTargetHttpsProxiesRequest; })(); - v1.ListRegionUrlMapsRequest = (function() { + v1.ListRegionTargetTcpProxiesRequest = (function() { /** - * Properties of a ListRegionUrlMapsRequest. + * Properties of a ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionUrlMapsRequest - * @property {string|null} [filter] ListRegionUrlMapsRequest filter - * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults - * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy - * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken - * @property {string|null} [project] ListRegionUrlMapsRequest project - * @property {string|null} [region] ListRegionUrlMapsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess + * @interface IListRegionTargetTcpProxiesRequest + * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project + * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionUrlMapsRequest. + * Constructs a new ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionUrlMapsRequest. - * @implements IListRegionUrlMapsRequest + * @classdesc Represents a ListRegionTargetTcpProxiesRequest. + * @implements IListRegionTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set */ - function ListRegionUrlMapsRequest(properties) { + function ListRegionTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -326448,116 +331232,116 @@ } /** - * ListRegionUrlMapsRequest filter. + * ListRegionTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.filter = null; + ListRegionTargetTcpProxiesRequest.prototype.filter = null; /** - * ListRegionUrlMapsRequest maxResults. + * ListRegionTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.maxResults = null; + ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; /** - * ListRegionUrlMapsRequest orderBy. + * ListRegionTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.orderBy = null; + ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; /** - * ListRegionUrlMapsRequest pageToken. + * ListRegionTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.pageToken = null; + ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; /** - * ListRegionUrlMapsRequest project. + * ListRegionTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.project = ""; + ListRegionTargetTcpProxiesRequest.prototype.project = ""; /** - * ListRegionUrlMapsRequest region. + * ListRegionTargetTcpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.region = ""; + ListRegionTargetTcpProxiesRequest.prototype.region = ""; /** - * ListRegionUrlMapsRequest returnPartialSuccess. + * ListRegionTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; + ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionUrlMapsRequest instance using the specified properties. + * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance */ - ListRegionUrlMapsRequest.create = function create(properties) { - return new ListRegionUrlMapsRequest(properties); + ListRegionTargetTcpProxiesRequest.create = function create(properties) { + return new ListRegionTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encode = function encode(message, writer) { + ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -326578,33 +331362,33 @@ }; /** - * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decode = function decode(reader, length, error) { + ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -326647,30 +331431,30 @@ }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionUrlMapsRequest message. + * Verifies a ListRegionTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionUrlMapsRequest.verify = function verify(message) { + ListRegionTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -326709,17 +331493,17 @@ }; /** - * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest */ - ListRegionUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) + ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -326738,15 +331522,15 @@ }; /** - * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest + * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionUrlMapsRequest.toObject = function toObject(message, options) { + ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -326787,58 +331571,58 @@ }; /** - * Converts this ListRegionUrlMapsRequest to JSON. + * Converts this ListRegionTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { + ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionUrlMapsRequest + * Gets the default type url for ListRegionTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; }; - return ListRegionUrlMapsRequest; + return ListRegionTargetTcpProxiesRequest; })(); - v1.ListRegionZonesRequest = (function() { + v1.ListRegionUrlMapsRequest = (function() { /** - * Properties of a ListRegionZonesRequest. + * Properties of a ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionZonesRequest - * @property {string|null} [filter] ListRegionZonesRequest filter - * @property {number|null} [maxResults] ListRegionZonesRequest maxResults - * @property {string|null} [orderBy] ListRegionZonesRequest orderBy - * @property {string|null} [pageToken] ListRegionZonesRequest pageToken - * @property {string|null} [project] ListRegionZonesRequest project - * @property {string|null} [region] ListRegionZonesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionZonesRequest returnPartialSuccess + * @interface IListRegionUrlMapsRequest + * @property {string|null} [filter] ListRegionUrlMapsRequest filter + * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults + * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy + * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken + * @property {string|null} [project] ListRegionUrlMapsRequest project + * @property {string|null} [region] ListRegionUrlMapsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionZonesRequest. + * Constructs a new ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionZonesRequest. - * @implements IListRegionZonesRequest + * @classdesc Represents a ListRegionUrlMapsRequest. + * @implements IListRegionUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set */ - function ListRegionZonesRequest(properties) { + function ListRegionUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -326846,116 +331630,116 @@ } /** - * ListRegionZonesRequest filter. + * ListRegionUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.filter = null; + ListRegionUrlMapsRequest.prototype.filter = null; /** - * ListRegionZonesRequest maxResults. + * ListRegionUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.maxResults = null; + ListRegionUrlMapsRequest.prototype.maxResults = null; /** - * ListRegionZonesRequest orderBy. + * ListRegionUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.orderBy = null; + ListRegionUrlMapsRequest.prototype.orderBy = null; /** - * ListRegionZonesRequest pageToken. + * ListRegionUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.pageToken = null; + ListRegionUrlMapsRequest.prototype.pageToken = null; /** - * ListRegionZonesRequest project. + * ListRegionUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.project = ""; + ListRegionUrlMapsRequest.prototype.project = ""; /** - * ListRegionZonesRequest region. + * ListRegionUrlMapsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.region = ""; + ListRegionUrlMapsRequest.prototype.region = ""; /** - * ListRegionZonesRequest returnPartialSuccess. + * ListRegionUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionZonesRequest.prototype.returnPartialSuccess = null; + ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionZonesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionZonesRequest instance using the specified properties. + * Creates a new ListRegionUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest instance + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance */ - ListRegionZonesRequest.create = function create(properties) { - return new ListRegionZonesRequest(properties); + ListRegionUrlMapsRequest.create = function create(properties) { + return new ListRegionUrlMapsRequest(properties); }; /** - * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionZonesRequest.encode = function encode(message, writer) { + ListRegionUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -326976,33 +331760,33 @@ }; /** - * Encodes the specified ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionZonesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionZonesRequest message from the specified reader or buffer. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionZonesRequest.decode = function decode(reader, length, error) { + ListRegionUrlMapsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -327045,30 +331829,30 @@ }; /** - * Decodes a ListRegionZonesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionZonesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionZonesRequest message. + * Verifies a ListRegionUrlMapsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionZonesRequest.verify = function verify(message) { + ListRegionUrlMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -327107,17 +331891,17 @@ }; /** - * Creates a ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest */ - ListRegionZonesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionZonesRequest) + ListRegionUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -327136,15 +331920,15 @@ }; /** - * Creates a plain object from a ListRegionZonesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.ListRegionZonesRequest} message ListRegionZonesRequest + * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionZonesRequest.toObject = function toObject(message, options) { + ListRegionUrlMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -327185,57 +331969,58 @@ }; /** - * Converts this ListRegionZonesRequest to JSON. + * Converts this ListRegionUrlMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance * @returns {Object.} JSON object */ - ListRegionZonesRequest.prototype.toJSON = function toJSON() { + ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionZonesRequest + * Gets the default type url for ListRegionUrlMapsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionZonesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionZonesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; }; - return ListRegionZonesRequest; + return ListRegionUrlMapsRequest; })(); - v1.ListRegionsRequest = (function() { + v1.ListRegionZonesRequest = (function() { /** - * Properties of a ListRegionsRequest. + * Properties of a ListRegionZonesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionsRequest - * @property {string|null} [filter] ListRegionsRequest filter - * @property {number|null} [maxResults] ListRegionsRequest maxResults - * @property {string|null} [orderBy] ListRegionsRequest orderBy - * @property {string|null} [pageToken] ListRegionsRequest pageToken - * @property {string|null} [project] ListRegionsRequest project - * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess + * @interface IListRegionZonesRequest + * @property {string|null} [filter] ListRegionZonesRequest filter + * @property {number|null} [maxResults] ListRegionZonesRequest maxResults + * @property {string|null} [orderBy] ListRegionZonesRequest orderBy + * @property {string|null} [pageToken] ListRegionZonesRequest pageToken + * @property {string|null} [project] ListRegionZonesRequest project + * @property {string|null} [region] ListRegionZonesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionZonesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionsRequest. + * Constructs a new ListRegionZonesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionsRequest. - * @implements IListRegionsRequest + * @classdesc Represents a ListRegionZonesRequest. + * @implements IListRegionZonesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set */ - function ListRegionsRequest(properties) { + function ListRegionZonesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -327243,114 +332028,124 @@ } /** - * ListRegionsRequest filter. + * ListRegionZonesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.filter = null; + ListRegionZonesRequest.prototype.filter = null; /** - * ListRegionsRequest maxResults. + * ListRegionZonesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.maxResults = null; + ListRegionZonesRequest.prototype.maxResults = null; /** - * ListRegionsRequest orderBy. + * ListRegionZonesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.orderBy = null; + ListRegionZonesRequest.prototype.orderBy = null; /** - * ListRegionsRequest pageToken. + * ListRegionZonesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.pageToken = null; + ListRegionZonesRequest.prototype.pageToken = null; /** - * ListRegionsRequest project. + * ListRegionZonesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.project = ""; + ListRegionZonesRequest.prototype.project = ""; /** - * ListRegionsRequest returnPartialSuccess. + * ListRegionZonesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionZonesRequest + * @instance + */ + ListRegionZonesRequest.prototype.region = ""; + + /** + * ListRegionZonesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionsRequest.prototype.returnPartialSuccess = null; + ListRegionZonesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionsRequest instance using the specified properties. + * Creates a new ListRegionZonesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest instance + * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest instance */ - ListRegionsRequest.create = function create(properties) { - return new ListRegionsRequest(properties); + ListRegionZonesRequest.create = function create(properties) { + return new ListRegionZonesRequest(properties); }; /** - * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encode = function encode(message, writer) { + ListRegionZonesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -327363,33 +332158,33 @@ }; /** - * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. + * Encodes the specified ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionZonesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer. + * Decodes a ListRegionZonesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decode = function decode(reader, length, error) { + ListRegionZonesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -327415,6 +332210,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -327428,30 +332227,30 @@ }; /** - * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionZonesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionZonesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionsRequest message. + * Verifies a ListRegionZonesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionsRequest.verify = function verify(message) { + ListRegionZonesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -327478,6 +332277,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -327487,17 +332289,17 @@ }; /** - * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest */ - ListRegionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionsRequest) + ListRegionZonesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionZonesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -327508,26 +332310,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListRegionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionZonesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.ListRegionsRequest} message ListRegionsRequest + * @param {google.cloud.compute.v1.ListRegionZonesRequest} message ListRegionZonesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionsRequest.toObject = function toObject(message, options) { + ListRegionZonesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -327538,6 +332344,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -327559,59 +332367,57 @@ }; /** - * Converts this ListRegionsRequest to JSON. + * Converts this ListRegionZonesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance * @returns {Object.} JSON object */ - ListRegionsRequest.prototype.toJSON = function toJSON() { + ListRegionZonesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionsRequest + * Gets the default type url for ListRegionZonesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionZonesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionZonesRequest"; }; - return ListRegionsRequest; + return ListRegionZonesRequest; })(); - v1.ListReservationBlocksRequest = (function() { + v1.ListRegionsRequest = (function() { /** - * Properties of a ListReservationBlocksRequest. + * Properties of a ListRegionsRequest. * @memberof google.cloud.compute.v1 - * @interface IListReservationBlocksRequest - * @property {string|null} [filter] ListReservationBlocksRequest filter - * @property {number|null} [maxResults] ListReservationBlocksRequest maxResults - * @property {string|null} [orderBy] ListReservationBlocksRequest orderBy - * @property {string|null} [pageToken] ListReservationBlocksRequest pageToken - * @property {string|null} [project] ListReservationBlocksRequest project - * @property {string|null} [reservation] ListReservationBlocksRequest reservation - * @property {boolean|null} [returnPartialSuccess] ListReservationBlocksRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationBlocksRequest zone + * @interface IListRegionsRequest + * @property {string|null} [filter] ListRegionsRequest filter + * @property {number|null} [maxResults] ListRegionsRequest maxResults + * @property {string|null} [orderBy] ListRegionsRequest orderBy + * @property {string|null} [pageToken] ListRegionsRequest pageToken + * @property {string|null} [project] ListRegionsRequest project + * @property {boolean|null} [returnPartialSuccess] ListRegionsRequest returnPartialSuccess */ /** - * Constructs a new ListReservationBlocksRequest. + * Constructs a new ListRegionsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListReservationBlocksRequest. - * @implements IListReservationBlocksRequest + * @classdesc Represents a ListRegionsRequest. + * @implements IListRegionsRequest * @constructor - * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set */ - function ListReservationBlocksRequest(properties) { + function ListRegionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -327619,132 +332425,112 @@ } /** - * ListReservationBlocksRequest filter. + * ListRegionsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.filter = null; + ListRegionsRequest.prototype.filter = null; /** - * ListReservationBlocksRequest maxResults. + * ListRegionsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.maxResults = null; + ListRegionsRequest.prototype.maxResults = null; /** - * ListReservationBlocksRequest orderBy. + * ListRegionsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.orderBy = null; + ListRegionsRequest.prototype.orderBy = null; /** - * ListReservationBlocksRequest pageToken. + * ListRegionsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.pageToken = null; + ListRegionsRequest.prototype.pageToken = null; /** - * ListReservationBlocksRequest project. + * ListRegionsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest - * @instance - */ - ListReservationBlocksRequest.prototype.project = ""; - - /** - * ListReservationBlocksRequest reservation. - * @member {string} reservation - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.reservation = ""; + ListRegionsRequest.prototype.project = ""; /** - * ListReservationBlocksRequest returnPartialSuccess. + * ListRegionsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest - * @instance - */ - ListReservationBlocksRequest.prototype.returnPartialSuccess = null; - - /** - * ListReservationBlocksRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance */ - ListReservationBlocksRequest.prototype.zone = ""; + ListRegionsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationBlocksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationBlocksRequest instance using the specified properties. + * Creates a new ListRegionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest instance + * @param {google.cloud.compute.v1.IListRegionsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest instance */ - ListReservationBlocksRequest.create = function create(properties) { - return new ListReservationBlocksRequest(properties); + ListRegionsRequest.create = function create(properties) { + return new ListRegionsRequest(properties); }; /** - * Encodes the specified ListReservationBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. + * Encodes the specified ListRegionsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationBlocksRequest.encode = function encode(message, writer) { + ListRegionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); - if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation")) - writer.uint32(/* id 47530956, wireType 2 =*/380247650).string(message.reservation); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) @@ -327759,33 +332545,33 @@ }; /** - * Encodes the specified ListReservationBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. + * Encodes the specified ListRegionsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionsRequest} message ListRegionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationBlocksRequest message from the specified reader or buffer. + * Decodes a ListRegionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationBlocksRequest.decode = function decode(reader, length, error) { + ListRegionsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationBlocksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -327811,18 +332597,10 @@ message.project = reader.string(); break; } - case 47530956: { - message.reservation = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } - case 3744684: { - message.zone = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -327832,30 +332610,30 @@ }; /** - * Decodes a ListReservationBlocksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationBlocksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationBlocksRequest message. + * Verifies a ListRegionsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationBlocksRequest.verify = function verify(message) { + ListRegionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -327882,32 +332660,26 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.reservation != null && message.hasOwnProperty("reservation")) - if (!$util.isString(message.reservation)) - return "reservation: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a ListReservationBlocksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest + * @returns {google.cloud.compute.v1.ListRegionsRequest} ListRegionsRequest */ - ListReservationBlocksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListReservationBlocksRequest) + ListRegionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListReservationBlocksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -327918,42 +332690,31 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.reservation != null) - message.reservation = String(object.reservation); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); - if (object.zone != null) - message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListReservationBlocksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static - * @param {google.cloud.compute.v1.ListReservationBlocksRequest} message ListReservationBlocksRequest + * @param {google.cloud.compute.v1.ListRegionsRequest} message ListRegionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationBlocksRequest.toObject = function toObject(message, options) { + ListRegionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.zone = ""; - object.reservation = ""; + if (options.defaults) object.project = ""; - } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) object._pageToken = "pageToken"; } - if (message.reservation != null && message.hasOwnProperty("reservation")) - object.reservation = message.reservation; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { object.maxResults = message.maxResults; if (options.oneofs) @@ -327980,59 +332741,59 @@ }; /** - * Converts this ListReservationBlocksRequest to JSON. + * Converts this ListRegionsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @instance * @returns {Object.} JSON object */ - ListReservationBlocksRequest.prototype.toJSON = function toJSON() { + ListRegionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReservationBlocksRequest + * Gets the default type url for ListRegionsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListReservationBlocksRequest + * @memberof google.cloud.compute.v1.ListRegionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReservationBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationBlocksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionsRequest"; }; - return ListReservationBlocksRequest; + return ListRegionsRequest; })(); - v1.ListReservationSubBlocksRequest = (function() { + v1.ListReservationBlocksRequest = (function() { /** - * Properties of a ListReservationSubBlocksRequest. + * Properties of a ListReservationBlocksRequest. * @memberof google.cloud.compute.v1 - * @interface IListReservationSubBlocksRequest - * @property {string|null} [filter] ListReservationSubBlocksRequest filter - * @property {number|null} [maxResults] ListReservationSubBlocksRequest maxResults - * @property {string|null} [orderBy] ListReservationSubBlocksRequest orderBy - * @property {string|null} [pageToken] ListReservationSubBlocksRequest pageToken - * @property {string|null} [parentName] ListReservationSubBlocksRequest parentName - * @property {string|null} [project] ListReservationSubBlocksRequest project - * @property {boolean|null} [returnPartialSuccess] ListReservationSubBlocksRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationSubBlocksRequest zone + * @interface IListReservationBlocksRequest + * @property {string|null} [filter] ListReservationBlocksRequest filter + * @property {number|null} [maxResults] ListReservationBlocksRequest maxResults + * @property {string|null} [orderBy] ListReservationBlocksRequest orderBy + * @property {string|null} [pageToken] ListReservationBlocksRequest pageToken + * @property {string|null} [project] ListReservationBlocksRequest project + * @property {string|null} [reservation] ListReservationBlocksRequest reservation + * @property {boolean|null} [returnPartialSuccess] ListReservationBlocksRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationBlocksRequest zone */ /** - * Constructs a new ListReservationSubBlocksRequest. + * Constructs a new ListReservationBlocksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListReservationSubBlocksRequest. - * @implements IListReservationSubBlocksRequest + * @classdesc Represents a ListReservationBlocksRequest. + * @implements IListReservationBlocksRequest * @constructor - * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set */ - function ListReservationSubBlocksRequest(properties) { + function ListReservationBlocksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -328040,130 +332801,132 @@ } /** - * ListReservationSubBlocksRequest filter. + * ListReservationBlocksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.filter = null; + ListReservationBlocksRequest.prototype.filter = null; /** - * ListReservationSubBlocksRequest maxResults. + * ListReservationBlocksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.maxResults = null; + ListReservationBlocksRequest.prototype.maxResults = null; /** - * ListReservationSubBlocksRequest orderBy. + * ListReservationBlocksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.orderBy = null; + ListReservationBlocksRequest.prototype.orderBy = null; /** - * ListReservationSubBlocksRequest pageToken. + * ListReservationBlocksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.pageToken = null; + ListReservationBlocksRequest.prototype.pageToken = null; /** - * ListReservationSubBlocksRequest parentName. - * @member {string} parentName - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * ListReservationBlocksRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.parentName = ""; + ListReservationBlocksRequest.prototype.project = ""; /** - * ListReservationSubBlocksRequest project. - * @member {string} project - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * ListReservationBlocksRequest reservation. + * @member {string} reservation + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.project = ""; + ListReservationBlocksRequest.prototype.reservation = ""; /** - * ListReservationSubBlocksRequest returnPartialSuccess. + * ListReservationBlocksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.returnPartialSuccess = null; + ListReservationBlocksRequest.prototype.returnPartialSuccess = null; /** - * ListReservationSubBlocksRequest zone. + * ListReservationBlocksRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance */ - ListReservationSubBlocksRequest.prototype.zone = ""; + ListReservationBlocksRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_filter", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationBlocksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationSubBlocksRequest instance using the specified properties. + * Creates a new ListReservationBlocksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest instance + * @param {google.cloud.compute.v1.IListReservationBlocksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest instance */ - ListReservationSubBlocksRequest.create = function create(properties) { - return new ListReservationSubBlocksRequest(properties); + ListReservationBlocksRequest.create = function create(properties) { + return new ListReservationBlocksRequest(properties); }; /** - * Encodes the specified ListReservationSubBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationSubBlocksRequest.verify|verify} messages. + * Encodes the specified ListReservationBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationSubBlocksRequest.encode = function encode(message, writer) { + ListReservationBlocksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation")) + writer.uint32(/* id 47530956, wireType 2 =*/380247650).string(message.reservation); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) @@ -328172,41 +332935,39 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); - if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) - writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListReservationSubBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationSubBlocksRequest.verify|verify} messages. + * Encodes the specified ListReservationBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationBlocksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationBlocksRequest} message ListReservationBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationSubBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer. + * Decodes a ListReservationBlocksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @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.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationSubBlocksRequest.decode = function decode(reader, length, error) { + ListReservationBlocksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationSubBlocksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationBlocksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -328228,14 +332989,14 @@ message.pageToken = reader.string(); break; } - case 478151936: { - message.parentName = reader.string(); - break; - } case 227560217: { message.project = reader.string(); break; } + case 47530956: { + message.reservation = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -328253,30 +333014,30 @@ }; /** - * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationBlocksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationSubBlocksRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationBlocksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationSubBlocksRequest message. + * Verifies a ListReservationBlocksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationSubBlocksRequest.verify = function verify(message) { + ListReservationBlocksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -328300,12 +333061,12 @@ if (!$util.isString(message.pageToken)) return "pageToken: string expected"; } - if (message.parentName != null && message.hasOwnProperty("parentName")) - if (!$util.isString(message.parentName)) - return "parentName: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.reservation != null && message.hasOwnProperty("reservation")) + if (!$util.isString(message.reservation)) + return "reservation: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -328318,17 +333079,17 @@ }; /** - * Creates a ListReservationSubBlocksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationBlocksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest + * @returns {google.cloud.compute.v1.ListReservationBlocksRequest} ListReservationBlocksRequest */ - ListReservationSubBlocksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListReservationSubBlocksRequest) + ListReservationBlocksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListReservationBlocksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListReservationSubBlocksRequest(); + var message = new $root.google.cloud.compute.v1.ListReservationBlocksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -328337,10 +333098,10 @@ message.orderBy = String(object.orderBy); if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.parentName != null) - message.parentName = String(object.parentName); if (object.project != null) message.project = String(object.project); + if (object.reservation != null) + message.reservation = String(object.reservation); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); if (object.zone != null) @@ -328349,22 +333110,22 @@ }; /** - * Creates a plain object from a ListReservationSubBlocksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationBlocksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static - * @param {google.cloud.compute.v1.ListReservationSubBlocksRequest} message ListReservationSubBlocksRequest + * @param {google.cloud.compute.v1.ListReservationBlocksRequest} message ListReservationBlocksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationSubBlocksRequest.toObject = function toObject(message, options) { + ListReservationBlocksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.zone = ""; + object.reservation = ""; object.project = ""; - object.parentName = ""; } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; @@ -328373,6 +333134,8 @@ if (options.oneofs) object._pageToken = "pageToken"; } + if (message.reservation != null && message.hasOwnProperty("reservation")) + object.reservation = message.reservation; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { object.maxResults = message.maxResults; if (options.oneofs) @@ -328390,8 +333153,6 @@ if (options.oneofs) object._filter = "filter"; } - if (message.parentName != null && message.hasOwnProperty("parentName")) - object.parentName = message.parentName; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -328401,58 +333162,59 @@ }; /** - * Converts this ListReservationSubBlocksRequest to JSON. + * Converts this ListReservationBlocksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @instance * @returns {Object.} JSON object */ - ListReservationSubBlocksRequest.prototype.toJSON = function toJSON() { + ListReservationBlocksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReservationSubBlocksRequest + * Gets the default type url for ListReservationBlocksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @memberof google.cloud.compute.v1.ListReservationBlocksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReservationSubBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationSubBlocksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationBlocksRequest"; }; - return ListReservationSubBlocksRequest; + return ListReservationBlocksRequest; })(); - v1.ListReservationsRequest = (function() { + v1.ListReservationSlotsRequest = (function() { /** - * Properties of a ListReservationsRequest. + * Properties of a ListReservationSlotsRequest. * @memberof google.cloud.compute.v1 - * @interface IListReservationsRequest - * @property {string|null} [filter] ListReservationsRequest filter - * @property {number|null} [maxResults] ListReservationsRequest maxResults - * @property {string|null} [orderBy] ListReservationsRequest orderBy - * @property {string|null} [pageToken] ListReservationsRequest pageToken - * @property {string|null} [project] ListReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] ListReservationsRequest returnPartialSuccess - * @property {string|null} [zone] ListReservationsRequest zone + * @interface IListReservationSlotsRequest + * @property {string|null} [filter] ListReservationSlotsRequest filter + * @property {number|null} [maxResults] ListReservationSlotsRequest maxResults + * @property {string|null} [orderBy] ListReservationSlotsRequest orderBy + * @property {string|null} [pageToken] ListReservationSlotsRequest pageToken + * @property {string|null} [parentName] ListReservationSlotsRequest parentName + * @property {string|null} [project] ListReservationSlotsRequest project + * @property {boolean|null} [returnPartialSuccess] ListReservationSlotsRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationSlotsRequest zone */ /** - * Constructs a new ListReservationsRequest. + * Constructs a new ListReservationSlotsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListReservationsRequest. - * @implements IListReservationsRequest + * @classdesc Represents a ListReservationSlotsRequest. + * @implements IListReservationSlotsRequest * @constructor - * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListReservationSlotsRequest=} [properties] Properties to set */ - function ListReservationsRequest(properties) { + function ListReservationSlotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -328460,116 +333222,124 @@ } /** - * ListReservationsRequest filter. + * ListReservationSlotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.filter = null; + ListReservationSlotsRequest.prototype.filter = null; /** - * ListReservationsRequest maxResults. + * ListReservationSlotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.maxResults = null; + ListReservationSlotsRequest.prototype.maxResults = null; /** - * ListReservationsRequest orderBy. + * ListReservationSlotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.orderBy = null; + ListReservationSlotsRequest.prototype.orderBy = null; /** - * ListReservationsRequest pageToken. + * ListReservationSlotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.pageToken = null; + ListReservationSlotsRequest.prototype.pageToken = null; /** - * ListReservationsRequest project. + * ListReservationSlotsRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest + * @instance + */ + ListReservationSlotsRequest.prototype.parentName = ""; + + /** + * ListReservationSlotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.project = ""; + ListReservationSlotsRequest.prototype.project = ""; /** - * ListReservationsRequest returnPartialSuccess. + * ListReservationSlotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.returnPartialSuccess = null; + ListReservationSlotsRequest.prototype.returnPartialSuccess = null; /** - * ListReservationsRequest zone. + * ListReservationSlotsRequest zone. * @member {string} zone - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance */ - ListReservationsRequest.prototype.zone = ""; + ListReservationSlotsRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_filter", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationSlotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReservationsRequest instance using the specified properties. + * Creates a new ListReservationSlotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest instance + * @param {google.cloud.compute.v1.IListReservationSlotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListReservationSlotsRequest} ListReservationSlotsRequest instance */ - ListReservationsRequest.create = function create(properties) { - return new ListReservationsRequest(properties); + ListReservationSlotsRequest.create = function create(properties) { + return new ListReservationSlotsRequest(properties); }; /** - * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. + * Encodes the specified ListReservationSlotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationSlotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationSlotsRequest} message ListReservationSlotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationsRequest.encode = function encode(message, writer) { + ListReservationSlotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) @@ -328584,39 +333354,41 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. + * Encodes the specified ListReservationSlotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationSlotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationSlotsRequest} message ListReservationSlotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationSlotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReservationsRequest message from the specified reader or buffer. + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1.ListReservationSlotsRequest} ListReservationSlotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationsRequest.decode = function decode(reader, length, error) { + ListReservationSlotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationSlotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -328638,6 +333410,10 @@ message.pageToken = reader.string(); break; } + case 478151936: { + message.parentName = reader.string(); + break; + } case 227560217: { message.project = reader.string(); break; @@ -328659,30 +333435,30 @@ }; /** - * Decodes a ListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationSlotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1.ListReservationSlotsRequest} ListReservationSlotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationSlotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReservationsRequest message. + * Verifies a ListReservationSlotsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReservationsRequest.verify = function verify(message) { + ListReservationSlotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -328706,6 +333482,9 @@ if (!$util.isString(message.pageToken)) return "pageToken: string expected"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; @@ -328721,17 +333500,17 @@ }; /** - * Creates a ListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationSlotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest + * @returns {google.cloud.compute.v1.ListReservationSlotsRequest} ListReservationSlotsRequest */ - ListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListReservationsRequest) + ListReservationSlotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListReservationSlotsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListReservationsRequest(); + var message = new $root.google.cloud.compute.v1.ListReservationSlotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -328740,6 +333519,8 @@ message.orderBy = String(object.orderBy); if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.parentName != null) + message.parentName = String(object.parentName); if (object.project != null) message.project = String(object.project); if (object.returnPartialSuccess != null) @@ -328750,21 +333531,22 @@ }; /** - * Creates a plain object from a ListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationSlotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static - * @param {google.cloud.compute.v1.ListReservationsRequest} message ListReservationsRequest + * @param {google.cloud.compute.v1.ListReservationSlotsRequest} message ListReservationSlotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReservationsRequest.toObject = function toObject(message, options) { + ListReservationSlotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.zone = ""; object.project = ""; + object.parentName = ""; } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; @@ -328790,6 +333572,8 @@ if (options.oneofs) object._filter = "filter"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -328799,58 +333583,59 @@ }; /** - * Converts this ListReservationsRequest to JSON. + * Converts this ListReservationSlotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @instance * @returns {Object.} JSON object */ - ListReservationsRequest.prototype.toJSON = function toJSON() { + ListReservationSlotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReservationsRequest + * Gets the default type url for ListReservationSlotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListReservationsRequest + * @memberof google.cloud.compute.v1.ListReservationSlotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationSlotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationSlotsRequest"; }; - return ListReservationsRequest; + return ListReservationSlotsRequest; })(); - v1.ListResourcePoliciesRequest = (function() { + v1.ListReservationSubBlocksRequest = (function() { /** - * Properties of a ListResourcePoliciesRequest. + * Properties of a ListReservationSubBlocksRequest. * @memberof google.cloud.compute.v1 - * @interface IListResourcePoliciesRequest - * @property {string|null} [filter] ListResourcePoliciesRequest filter - * @property {number|null} [maxResults] ListResourcePoliciesRequest maxResults - * @property {string|null} [orderBy] ListResourcePoliciesRequest orderBy - * @property {string|null} [pageToken] ListResourcePoliciesRequest pageToken - * @property {string|null} [project] ListResourcePoliciesRequest project - * @property {string|null} [region] ListResourcePoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListResourcePoliciesRequest returnPartialSuccess + * @interface IListReservationSubBlocksRequest + * @property {string|null} [filter] ListReservationSubBlocksRequest filter + * @property {number|null} [maxResults] ListReservationSubBlocksRequest maxResults + * @property {string|null} [orderBy] ListReservationSubBlocksRequest orderBy + * @property {string|null} [pageToken] ListReservationSubBlocksRequest pageToken + * @property {string|null} [parentName] ListReservationSubBlocksRequest parentName + * @property {string|null} [project] ListReservationSubBlocksRequest project + * @property {boolean|null} [returnPartialSuccess] ListReservationSubBlocksRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationSubBlocksRequest zone */ /** - * Constructs a new ListResourcePoliciesRequest. + * Constructs a new ListReservationSubBlocksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListResourcePoliciesRequest. - * @implements IListResourcePoliciesRequest + * @classdesc Represents a ListReservationSubBlocksRequest. + * @implements IListReservationSubBlocksRequest * @constructor - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest=} [properties] Properties to set */ - function ListResourcePoliciesRequest(properties) { + function ListReservationSubBlocksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -328858,163 +333643,173 @@ } /** - * ListResourcePoliciesRequest filter. + * ListReservationSubBlocksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.filter = null; + ListReservationSubBlocksRequest.prototype.filter = null; /** - * ListResourcePoliciesRequest maxResults. + * ListReservationSubBlocksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.maxResults = null; + ListReservationSubBlocksRequest.prototype.maxResults = null; /** - * ListResourcePoliciesRequest orderBy. + * ListReservationSubBlocksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.orderBy = null; + ListReservationSubBlocksRequest.prototype.orderBy = null; /** - * ListResourcePoliciesRequest pageToken. + * ListReservationSubBlocksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.pageToken = null; + ListReservationSubBlocksRequest.prototype.pageToken = null; /** - * ListResourcePoliciesRequest project. - * @member {string} project - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * ListReservationSubBlocksRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.project = ""; + ListReservationSubBlocksRequest.prototype.parentName = ""; /** - * ListResourcePoliciesRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * ListReservationSubBlocksRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.region = ""; + ListReservationSubBlocksRequest.prototype.project = ""; /** - * ListResourcePoliciesRequest returnPartialSuccess. + * ListReservationSubBlocksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance */ - ListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + ListReservationSubBlocksRequest.prototype.returnPartialSuccess = null; + + /** + * ListReservationSubBlocksRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest + * @instance + */ + ListReservationSubBlocksRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationSubBlocksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListResourcePoliciesRequest instance using the specified properties. + * Creates a new ListReservationSubBlocksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest instance */ - ListResourcePoliciesRequest.create = function create(properties) { - return new ListResourcePoliciesRequest(properties); + ListReservationSubBlocksRequest.create = function create(properties) { + return new ListReservationSubBlocksRequest(properties); }; /** - * Encodes the specified ListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified ListReservationSubBlocksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationSubBlocksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListResourcePoliciesRequest.encode = function encode(message, writer) { + ListReservationSubBlocksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); return writer; }; /** - * Encodes the specified ListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified ListReservationSubBlocksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationSubBlocksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationSubBlocksRequest} message ListReservationSubBlocksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationSubBlocksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListResourcePoliciesRequest.decode = function decode(reader, length, error) { + ListReservationSubBlocksRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationSubBlocksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -329036,18 +333831,22 @@ message.pageToken = reader.string(); break; } - case 227560217: { - message.project = reader.string(); + case 478151936: { + message.parentName = reader.string(); break; } - case 138946292: { - message.region = reader.string(); + case 227560217: { + message.project = reader.string(); break; } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } + case 3744684: { + message.zone = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -329057,30 +333856,30 @@ }; /** - * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationSubBlocksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationSubBlocksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListResourcePoliciesRequest message. + * Verifies a ListReservationSubBlocksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListResourcePoliciesRequest.verify = function verify(message) { + ListReservationSubBlocksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -329104,32 +333903,35 @@ if (!$util.isString(message.pageToken)) return "pageToken: string expected"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a ListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationSubBlocksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.ListReservationSubBlocksRequest} ListReservationSubBlocksRequest */ - ListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListResourcePoliciesRequest) + ListReservationSubBlocksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListReservationSubBlocksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListReservationSubBlocksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -329138,32 +333940,37 @@ message.orderBy = String(object.orderBy); if (object.pageToken != null) message.pageToken = String(object.pageToken); + if (object.parentName != null) + message.parentName = String(object.parentName); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationSubBlocksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static - * @param {google.cloud.compute.v1.ListResourcePoliciesRequest} message ListResourcePoliciesRequest + * @param {google.cloud.compute.v1.ListReservationSubBlocksRequest} message ListReservationSubBlocksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListResourcePoliciesRequest.toObject = function toObject(message, options) { + ListReservationSubBlocksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.region = ""; + object.zone = ""; object.project = ""; + object.parentName = ""; } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -329174,8 +333981,6 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -329188,6 +333993,8 @@ if (options.oneofs) object._filter = "filter"; } + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { object.returnPartialSuccess = message.returnPartialSuccess; if (options.oneofs) @@ -329197,59 +334004,58 @@ }; /** - * Converts this ListResourcePoliciesRequest to JSON. + * Converts this ListReservationSubBlocksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @instance * @returns {Object.} JSON object */ - ListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + ListReservationSubBlocksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListResourcePoliciesRequest + * Gets the default type url for ListReservationSubBlocksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.ListReservationSubBlocksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationSubBlocksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationSubBlocksRequest"; }; - return ListResourcePoliciesRequest; + return ListReservationSubBlocksRequest; })(); - v1.ListRoutePoliciesRoutersRequest = (function() { + v1.ListReservationsRequest = (function() { /** - * Properties of a ListRoutePoliciesRoutersRequest. + * Properties of a ListReservationsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRoutePoliciesRoutersRequest - * @property {string|null} [filter] ListRoutePoliciesRoutersRequest filter - * @property {number|null} [maxResults] ListRoutePoliciesRoutersRequest maxResults - * @property {string|null} [orderBy] ListRoutePoliciesRoutersRequest orderBy - * @property {string|null} [pageToken] ListRoutePoliciesRoutersRequest pageToken - * @property {string|null} [project] ListRoutePoliciesRoutersRequest project - * @property {string|null} [region] ListRoutePoliciesRoutersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRoutePoliciesRoutersRequest returnPartialSuccess - * @property {string|null} [router] ListRoutePoliciesRoutersRequest router + * @interface IListReservationsRequest + * @property {string|null} [filter] ListReservationsRequest filter + * @property {number|null} [maxResults] ListReservationsRequest maxResults + * @property {string|null} [orderBy] ListReservationsRequest orderBy + * @property {string|null} [pageToken] ListReservationsRequest pageToken + * @property {string|null} [project] ListReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] ListReservationsRequest returnPartialSuccess + * @property {string|null} [zone] ListReservationsRequest zone */ /** - * Constructs a new ListRoutePoliciesRoutersRequest. + * Constructs a new ListReservationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRoutePoliciesRoutersRequest. - * @implements IListRoutePoliciesRoutersRequest + * @classdesc Represents a ListReservationsRequest. + * @implements IListReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set */ - function ListRoutePoliciesRoutersRequest(properties) { + function ListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -329257,134 +334063,124 @@ } /** - * ListRoutePoliciesRoutersRequest filter. + * ListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.filter = null; + ListReservationsRequest.prototype.filter = null; /** - * ListRoutePoliciesRoutersRequest maxResults. + * ListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.maxResults = null; + ListReservationsRequest.prototype.maxResults = null; /** - * ListRoutePoliciesRoutersRequest orderBy. + * ListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.orderBy = null; + ListReservationsRequest.prototype.orderBy = null; /** - * ListRoutePoliciesRoutersRequest pageToken. + * ListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.pageToken = null; + ListReservationsRequest.prototype.pageToken = null; /** - * ListRoutePoliciesRoutersRequest project. + * ListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest - * @instance - */ - ListRoutePoliciesRoutersRequest.prototype.project = ""; - - /** - * ListRoutePoliciesRoutersRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.region = ""; + ListReservationsRequest.prototype.project = ""; /** - * ListRoutePoliciesRoutersRequest returnPartialSuccess. + * ListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.returnPartialSuccess = null; + ListReservationsRequest.prototype.returnPartialSuccess = null; /** - * ListRoutePoliciesRoutersRequest router. - * @member {string} router - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * ListReservationsRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance */ - ListRoutePoliciesRoutersRequest.prototype.router = ""; + ListReservationsRequest.prototype.zone = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_filter", { + Object.defineProperty(ListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(ListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(ListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(ListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRoutePoliciesRoutersRequest instance using the specified properties. + * Creates a new ListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest instance + * @param {google.cloud.compute.v1.IListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest instance */ - ListRoutePoliciesRoutersRequest.create = function create(properties) { - return new ListRoutePoliciesRoutersRequest(properties); + ListReservationsRequest.create = function create(properties) { + return new ListReservationsRequest(properties); }; /** - * Encodes the specified ListRoutePoliciesRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutePoliciesRoutersRequest.verify|verify} messages. + * Encodes the specified ListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutePoliciesRoutersRequest.encode = function encode(message, writer) { + ListReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); - if (message.router != null && Object.hasOwnProperty.call(message, "router")) - writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -329397,33 +334193,33 @@ }; /** - * Encodes the specified ListRoutePoliciesRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutePoliciesRoutersRequest.verify|verify} messages. + * Encodes the specified ListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListReservationsRequest} message ListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutePoliciesRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer. + * Decodes a ListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutePoliciesRoutersRequest.decode = function decode(reader, length, error) { + ListReservationsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutePoliciesRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -329449,16 +334245,12 @@ message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } - case 148608841: { - message.router = reader.string(); + case 3744684: { + message.zone = reader.string(); break; } default: @@ -329470,30 +334262,30 @@ }; /** - * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutePoliciesRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + ListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutePoliciesRoutersRequest message. + * Verifies a ListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutePoliciesRoutersRequest.verify = function verify(message) { + ListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -329520,32 +334312,29 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } - if (message.router != null && message.hasOwnProperty("router")) - if (!$util.isString(message.router)) - return "router: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; return null; }; /** - * Creates a ListRoutePoliciesRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest + * @returns {google.cloud.compute.v1.ListReservationsRequest} ListReservationsRequest */ - ListRoutePoliciesRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRoutePoliciesRoutersRequest) + ListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRoutePoliciesRoutersRequest(); + var message = new $root.google.cloud.compute.v1.ListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -329556,33 +334345,32 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); - if (object.router != null) - message.router = String(object.router); + if (object.zone != null) + message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListRoutePoliciesRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static - * @param {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest + * @param {google.cloud.compute.v1.ListReservationsRequest} message ListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRoutePoliciesRoutersRequest.toObject = function toObject(message, options) { + ListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.region = ""; - object.router = ""; + object.zone = ""; object.project = ""; } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -329593,10 +334381,6 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; - if (message.router != null && message.hasOwnProperty("router")) - object.router = message.router; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -329618,58 +334402,58 @@ }; /** - * Converts this ListRoutePoliciesRoutersRequest to JSON. + * Converts this ListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @instance * @returns {Object.} JSON object */ - ListRoutePoliciesRoutersRequest.prototype.toJSON = function toJSON() { + ListReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRoutePoliciesRoutersRequest + * Gets the default type url for ListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @memberof google.cloud.compute.v1.ListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRoutePoliciesRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutePoliciesRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListReservationsRequest"; }; - return ListRoutePoliciesRoutersRequest; + return ListReservationsRequest; })(); - v1.ListRoutersRequest = (function() { + v1.ListResourcePoliciesRequest = (function() { /** - * Properties of a ListRoutersRequest. + * Properties of a ListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRoutersRequest - * @property {string|null} [filter] ListRoutersRequest filter - * @property {number|null} [maxResults] ListRoutersRequest maxResults - * @property {string|null} [orderBy] ListRoutersRequest orderBy - * @property {string|null} [pageToken] ListRoutersRequest pageToken - * @property {string|null} [project] ListRoutersRequest project - * @property {string|null} [region] ListRoutersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRoutersRequest returnPartialSuccess + * @interface IListResourcePoliciesRequest + * @property {string|null} [filter] ListResourcePoliciesRequest filter + * @property {number|null} [maxResults] ListResourcePoliciesRequest maxResults + * @property {string|null} [orderBy] ListResourcePoliciesRequest orderBy + * @property {string|null} [pageToken] ListResourcePoliciesRequest pageToken + * @property {string|null} [project] ListResourcePoliciesRequest project + * @property {string|null} [region] ListResourcePoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListResourcePoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRoutersRequest. + * Constructs a new ListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRoutersRequest. - * @implements IListRoutersRequest + * @classdesc Represents a ListResourcePoliciesRequest. + * @implements IListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set */ - function ListRoutersRequest(properties) { + function ListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -329677,116 +334461,116 @@ } /** - * ListRoutersRequest filter. + * ListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.filter = null; + ListResourcePoliciesRequest.prototype.filter = null; /** - * ListRoutersRequest maxResults. + * ListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.maxResults = null; + ListResourcePoliciesRequest.prototype.maxResults = null; /** - * ListRoutersRequest orderBy. + * ListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.orderBy = null; + ListResourcePoliciesRequest.prototype.orderBy = null; /** - * ListRoutersRequest pageToken. + * ListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.pageToken = null; + ListResourcePoliciesRequest.prototype.pageToken = null; /** - * ListRoutersRequest project. + * ListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.project = ""; + ListResourcePoliciesRequest.prototype.project = ""; /** - * ListRoutersRequest region. + * ListResourcePoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.region = ""; + ListResourcePoliciesRequest.prototype.region = ""; /** - * ListRoutersRequest returnPartialSuccess. + * ListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance */ - ListRoutersRequest.prototype.returnPartialSuccess = null; + ListResourcePoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutersRequest.prototype, "_filter", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRoutersRequest instance using the specified properties. + * Creates a new ListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest instance + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest instance */ - ListRoutersRequest.create = function create(properties) { - return new ListRoutersRequest(properties); + ListResourcePoliciesRequest.create = function create(properties) { + return new ListResourcePoliciesRequest(properties); }; /** - * Encodes the specified ListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. + * Encodes the specified ListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutersRequest.encode = function encode(message, writer) { + ListResourcePoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -329807,33 +334591,33 @@ }; /** - * Encodes the specified ListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. + * Encodes the specified ListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListResourcePoliciesRequest} message ListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutersRequest message from the specified reader or buffer. + * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutersRequest.decode = function decode(reader, length, error) { + ListResourcePoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -329876,30 +334660,30 @@ }; /** - * Decodes a ListRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListResourcePoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + ListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutersRequest message. + * Verifies a ListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutersRequest.verify = function verify(message) { + ListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -329938,17 +334722,17 @@ }; /** - * Creates a ListRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest + * @returns {google.cloud.compute.v1.ListResourcePoliciesRequest} ListResourcePoliciesRequest */ - ListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRoutersRequest) + ListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRoutersRequest(); + var message = new $root.google.cloud.compute.v1.ListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -329967,15 +334751,15 @@ }; /** - * Creates a plain object from a ListRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListResourcePoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRoutersRequest} message ListRoutersRequest + * @param {google.cloud.compute.v1.ListResourcePoliciesRequest} message ListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRoutersRequest.toObject = function toObject(message, options) { + ListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -330016,57 +334800,59 @@ }; /** - * Converts this ListRoutersRequest to JSON. + * Converts this ListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRoutersRequest.prototype.toJSON = function toJSON() { + ListResourcePoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRoutersRequest + * Gets the default type url for ListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRoutersRequest + * @memberof google.cloud.compute.v1.ListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListResourcePoliciesRequest"; }; - return ListRoutersRequest; + return ListResourcePoliciesRequest; })(); - v1.ListRoutesRequest = (function() { + v1.ListRoutePoliciesRoutersRequest = (function() { /** - * Properties of a ListRoutesRequest. + * Properties of a ListRoutePoliciesRoutersRequest. * @memberof google.cloud.compute.v1 - * @interface IListRoutesRequest - * @property {string|null} [filter] ListRoutesRequest filter - * @property {number|null} [maxResults] ListRoutesRequest maxResults - * @property {string|null} [orderBy] ListRoutesRequest orderBy - * @property {string|null} [pageToken] ListRoutesRequest pageToken - * @property {string|null} [project] ListRoutesRequest project - * @property {boolean|null} [returnPartialSuccess] ListRoutesRequest returnPartialSuccess + * @interface IListRoutePoliciesRoutersRequest + * @property {string|null} [filter] ListRoutePoliciesRoutersRequest filter + * @property {number|null} [maxResults] ListRoutePoliciesRoutersRequest maxResults + * @property {string|null} [orderBy] ListRoutePoliciesRoutersRequest orderBy + * @property {string|null} [pageToken] ListRoutePoliciesRoutersRequest pageToken + * @property {string|null} [project] ListRoutePoliciesRoutersRequest project + * @property {string|null} [region] ListRoutePoliciesRoutersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRoutePoliciesRoutersRequest returnPartialSuccess + * @property {string|null} [router] ListRoutePoliciesRoutersRequest router */ /** - * Constructs a new ListRoutesRequest. + * Constructs a new ListRoutePoliciesRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRoutesRequest. - * @implements IListRoutesRequest + * @classdesc Represents a ListRoutePoliciesRoutersRequest. + * @implements IListRoutePoliciesRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest=} [properties] Properties to set */ - function ListRoutesRequest(properties) { + function ListRoutePoliciesRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -330074,114 +334860,134 @@ } /** - * ListRoutesRequest filter. + * ListRoutePoliciesRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @instance */ - ListRoutesRequest.prototype.filter = null; + ListRoutePoliciesRoutersRequest.prototype.filter = null; /** - * ListRoutesRequest maxResults. + * ListRoutePoliciesRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @instance */ - ListRoutesRequest.prototype.maxResults = null; + ListRoutePoliciesRoutersRequest.prototype.maxResults = null; /** - * ListRoutesRequest orderBy. + * ListRoutePoliciesRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @instance */ - ListRoutesRequest.prototype.orderBy = null; + ListRoutePoliciesRoutersRequest.prototype.orderBy = null; /** - * ListRoutesRequest pageToken. + * ListRoutePoliciesRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @instance */ - ListRoutesRequest.prototype.pageToken = null; + ListRoutePoliciesRoutersRequest.prototype.pageToken = null; /** - * ListRoutesRequest project. + * ListRoutePoliciesRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @instance */ - ListRoutesRequest.prototype.project = ""; + ListRoutePoliciesRoutersRequest.prototype.project = ""; /** - * ListRoutesRequest returnPartialSuccess. + * ListRoutePoliciesRoutersRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.region = ""; + + /** + * ListRoutePoliciesRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @instance */ - ListRoutesRequest.prototype.returnPartialSuccess = null; + ListRoutePoliciesRoutersRequest.prototype.returnPartialSuccess = null; + + /** + * ListRoutePoliciesRoutersRequest router. + * @member {string} router + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest + * @instance + */ + ListRoutePoliciesRoutersRequest.prototype.router = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutesRequest.prototype, "_filter", { + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRoutesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRoutePoliciesRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRoutesRequest instance using the specified properties. + * Creates a new ListRoutePoliciesRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static - * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest instance + * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest instance */ - ListRoutesRequest.create = function create(properties) { - return new ListRoutesRequest(properties); + ListRoutePoliciesRoutersRequest.create = function create(properties) { + return new ListRoutePoliciesRoutersRequest(properties); }; /** - * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. + * Encodes the specified ListRoutePoliciesRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutePoliciesRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static - * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesRequest.encode = function encode(message, writer) { + ListRoutePoliciesRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.router != null && Object.hasOwnProperty.call(message, "router")) + writer.uint32(/* id 148608841, wireType 2 =*/1188870730).string(message.router); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -330194,33 +335000,33 @@ }; /** - * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. + * Encodes the specified ListRoutePoliciesRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutePoliciesRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static - * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRoutePoliciesRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer. + * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesRequest.decode = function decode(reader, length, error) { + ListRoutePoliciesRoutersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutePoliciesRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -330246,10 +335052,18 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; } + case 148608841: { + message.router = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -330259,30 +335073,30 @@ }; /** - * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRoutePoliciesRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRoutesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRoutePoliciesRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRoutesRequest message. + * Verifies a ListRoutePoliciesRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRoutesRequest.verify = function verify(message) { + ListRoutePoliciesRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -330309,26 +335123,32 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") return "returnPartialSuccess: boolean expected"; } + if (message.router != null && message.hasOwnProperty("router")) + if (!$util.isString(message.router)) + return "router: string expected"; return null; }; /** - * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRoutePoliciesRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest + * @returns {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} ListRoutePoliciesRoutersRequest */ - ListRoutesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRoutesRequest) + ListRoutePoliciesRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRoutePoliciesRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRoutesRequest(); + var message = new $root.google.cloud.compute.v1.ListRoutePoliciesRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -330339,26 +335159,33 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + if (object.router != null) + message.router = String(object.router); return message; }; /** - * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRoutePoliciesRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static - * @param {google.cloud.compute.v1.ListRoutesRequest} message ListRoutesRequest + * @param {google.cloud.compute.v1.ListRoutePoliciesRoutersRequest} message ListRoutePoliciesRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRoutesRequest.toObject = function toObject(message, options) { + ListRoutePoliciesRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; + object.router = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -330369,6 +335196,10 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.router != null && message.hasOwnProperty("router")) + object.router = message.router; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -330390,57 +335221,58 @@ }; /** - * Converts this ListRoutesRequest to JSON. + * Converts this ListRoutePoliciesRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @instance * @returns {Object.} JSON object */ - ListRoutesRequest.prototype.toJSON = function toJSON() { + ListRoutePoliciesRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRoutesRequest + * Gets the default type url for ListRoutePoliciesRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRoutesRequest + * @memberof google.cloud.compute.v1.ListRoutePoliciesRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRoutePoliciesRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutePoliciesRoutersRequest"; }; - return ListRoutesRequest; + return ListRoutePoliciesRoutersRequest; })(); - v1.ListSecurityPoliciesRequest = (function() { + v1.ListRoutersRequest = (function() { /** - * Properties of a ListSecurityPoliciesRequest. + * Properties of a ListRoutersRequest. * @memberof google.cloud.compute.v1 - * @interface IListSecurityPoliciesRequest - * @property {string|null} [filter] ListSecurityPoliciesRequest filter - * @property {number|null} [maxResults] ListSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] ListSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] ListSecurityPoliciesRequest pageToken - * @property {string|null} [project] ListSecurityPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] ListSecurityPoliciesRequest returnPartialSuccess + * @interface IListRoutersRequest + * @property {string|null} [filter] ListRoutersRequest filter + * @property {number|null} [maxResults] ListRoutersRequest maxResults + * @property {string|null} [orderBy] ListRoutersRequest orderBy + * @property {string|null} [pageToken] ListRoutersRequest pageToken + * @property {string|null} [project] ListRoutersRequest project + * @property {string|null} [region] ListRoutersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRoutersRequest returnPartialSuccess */ /** - * Constructs a new ListSecurityPoliciesRequest. + * Constructs a new ListRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListSecurityPoliciesRequest. - * @implements IListSecurityPoliciesRequest + * @classdesc Represents a ListRoutersRequest. + * @implements IListRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set */ - function ListSecurityPoliciesRequest(properties) { + function ListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -330448,114 +335280,124 @@ } /** - * ListSecurityPoliciesRequest filter. + * ListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListSecurityPoliciesRequest.prototype.filter = null; + ListRoutersRequest.prototype.filter = null; /** - * ListSecurityPoliciesRequest maxResults. + * ListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListSecurityPoliciesRequest.prototype.maxResults = null; + ListRoutersRequest.prototype.maxResults = null; /** - * ListSecurityPoliciesRequest orderBy. + * ListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListSecurityPoliciesRequest.prototype.orderBy = null; + ListRoutersRequest.prototype.orderBy = null; /** - * ListSecurityPoliciesRequest pageToken. + * ListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListSecurityPoliciesRequest.prototype.pageToken = null; + ListRoutersRequest.prototype.pageToken = null; /** - * ListSecurityPoliciesRequest project. + * ListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListSecurityPoliciesRequest.prototype.project = ""; + ListRoutersRequest.prototype.project = ""; /** - * ListSecurityPoliciesRequest returnPartialSuccess. + * ListRoutersRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRoutersRequest + * @instance + */ + ListRoutersRequest.prototype.region = ""; + + /** + * ListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance */ - ListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + ListRoutersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListSecurityPoliciesRequest instance using the specified properties. + * Creates a new ListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest instance */ - ListSecurityPoliciesRequest.create = function create(properties) { - return new ListSecurityPoliciesRequest(properties); + ListRoutersRequest.create = function create(properties) { + return new ListRoutersRequest(properties); }; /** - * Encodes the specified ListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecurityPoliciesRequest.encode = function encode(message, writer) { + ListRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -330568,33 +335410,33 @@ }; /** - * Encodes the specified ListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutersRequest} message ListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecurityPoliciesRequest.decode = function decode(reader, length, error) { + ListRoutersRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -330620,6 +335462,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -330633,30 +335479,30 @@ }; /** - * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecurityPoliciesRequest message. + * Verifies a ListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSecurityPoliciesRequest.verify = function verify(message) { + ListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -330683,6 +335529,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -330692,17 +335541,17 @@ }; /** - * Creates a ListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRoutersRequest} ListRoutersRequest */ - ListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListSecurityPoliciesRequest) + ListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -330713,26 +335562,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static - * @param {google.cloud.compute.v1.ListSecurityPoliciesRequest} message ListSecurityPoliciesRequest + * @param {google.cloud.compute.v1.ListRoutersRequest} message ListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecurityPoliciesRequest.toObject = function toObject(message, options) { + ListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -330743,6 +335596,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -330764,58 +335619,57 @@ }; /** - * Converts this ListSecurityPoliciesRequest to JSON. + * Converts this ListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @instance * @returns {Object.} JSON object */ - ListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + ListRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSecurityPoliciesRequest + * Gets the default type url for ListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutersRequest"; }; - return ListSecurityPoliciesRequest; + return ListRoutersRequest; })(); - v1.ListServiceAttachmentsRequest = (function() { + v1.ListRoutesRequest = (function() { /** - * Properties of a ListServiceAttachmentsRequest. + * Properties of a ListRoutesRequest. * @memberof google.cloud.compute.v1 - * @interface IListServiceAttachmentsRequest - * @property {string|null} [filter] ListServiceAttachmentsRequest filter - * @property {number|null} [maxResults] ListServiceAttachmentsRequest maxResults - * @property {string|null} [orderBy] ListServiceAttachmentsRequest orderBy - * @property {string|null} [pageToken] ListServiceAttachmentsRequest pageToken - * @property {string|null} [project] ListServiceAttachmentsRequest project - * @property {string|null} [region] ListServiceAttachmentsRequest region - * @property {boolean|null} [returnPartialSuccess] ListServiceAttachmentsRequest returnPartialSuccess + * @interface IListRoutesRequest + * @property {string|null} [filter] ListRoutesRequest filter + * @property {number|null} [maxResults] ListRoutesRequest maxResults + * @property {string|null} [orderBy] ListRoutesRequest orderBy + * @property {string|null} [pageToken] ListRoutesRequest pageToken + * @property {string|null} [project] ListRoutesRequest project + * @property {boolean|null} [returnPartialSuccess] ListRoutesRequest returnPartialSuccess */ /** - * Constructs a new ListServiceAttachmentsRequest. + * Constructs a new ListRoutesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListServiceAttachmentsRequest. - * @implements IListServiceAttachmentsRequest + * @classdesc Represents a ListRoutesRequest. + * @implements IListRoutesRequest * @constructor - * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set */ - function ListServiceAttachmentsRequest(properties) { + function ListRoutesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -330823,124 +335677,114 @@ } /** - * ListServiceAttachmentsRequest filter. + * ListRoutesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListServiceAttachmentsRequest.prototype.filter = null; + ListRoutesRequest.prototype.filter = null; /** - * ListServiceAttachmentsRequest maxResults. + * ListRoutesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListServiceAttachmentsRequest.prototype.maxResults = null; + ListRoutesRequest.prototype.maxResults = null; /** - * ListServiceAttachmentsRequest orderBy. + * ListRoutesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListServiceAttachmentsRequest.prototype.orderBy = null; + ListRoutesRequest.prototype.orderBy = null; /** - * ListServiceAttachmentsRequest pageToken. + * ListRoutesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListServiceAttachmentsRequest.prototype.pageToken = null; + ListRoutesRequest.prototype.pageToken = null; /** - * ListServiceAttachmentsRequest project. + * ListRoutesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest - * @instance - */ - ListServiceAttachmentsRequest.prototype.project = ""; - - /** - * ListServiceAttachmentsRequest region. - * @member {string} region - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListServiceAttachmentsRequest.prototype.region = ""; + ListRoutesRequest.prototype.project = ""; /** - * ListServiceAttachmentsRequest returnPartialSuccess. + * ListRoutesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance */ - ListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; + ListRoutesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(ListRoutesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRoutesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRoutesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRoutesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRoutesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListServiceAttachmentsRequest instance using the specified properties. + * Creates a new ListRoutesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest instance + * @param {google.cloud.compute.v1.IListRoutesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest instance */ - ListServiceAttachmentsRequest.create = function create(properties) { - return new ListServiceAttachmentsRequest(properties); + ListRoutesRequest.create = function create(properties) { + return new ListRoutesRequest(properties); }; /** - * Encodes the specified ListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified ListRoutesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest} message ListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListServiceAttachmentsRequest.encode = function encode(message, writer) { + ListRoutesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -330953,33 +335797,33 @@ }; /** - * Encodes the specified ListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified ListRoutesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRoutesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest} message ListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRoutesRequest} message ListRoutesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRoutesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListServiceAttachmentsRequest message from the specified reader or buffer. + * Decodes a ListRoutesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListServiceAttachmentsRequest.decode = function decode(reader, length, error) { + ListRoutesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListServiceAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRoutesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -331005,10 +335849,6 @@ message.project = reader.string(); break; } - case 138946292: { - message.region = reader.string(); - break; - } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -331022,30 +335862,30 @@ }; /** - * Decodes a ListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRoutesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRoutesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListServiceAttachmentsRequest message. + * Verifies a ListRoutesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListServiceAttachmentsRequest.verify = function verify(message) { + ListRoutesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -331072,9 +335912,6 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -331084,17 +335921,17 @@ }; /** - * Creates a ListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRoutesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.ListRoutesRequest} ListRoutesRequest */ - ListServiceAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListServiceAttachmentsRequest) + ListRoutesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRoutesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListServiceAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.ListRoutesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -331105,30 +335942,26 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); - if (object.region != null) - message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListServiceAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRoutesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static - * @param {google.cloud.compute.v1.ListServiceAttachmentsRequest} message ListServiceAttachmentsRequest + * @param {google.cloud.compute.v1.ListRoutesRequest} message ListRoutesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListServiceAttachmentsRequest.toObject = function toObject(message, options) { + ListRoutesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.region = ""; + if (options.defaults) object.project = ""; - } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -331139,8 +335972,6 @@ if (options.oneofs) object._maxResults = "maxResults"; } - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -331162,57 +335993,57 @@ }; /** - * Converts this ListServiceAttachmentsRequest to JSON. + * Converts this ListRoutesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @instance * @returns {Object.} JSON object */ - ListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { + ListRoutesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListServiceAttachmentsRequest + * Gets the default type url for ListRoutesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.ListRoutesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRoutesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListServiceAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRoutesRequest"; }; - return ListServiceAttachmentsRequest; + return ListRoutesRequest; })(); - v1.ListSnapshotsRequest = (function() { + v1.ListSecurityPoliciesRequest = (function() { /** - * Properties of a ListSnapshotsRequest. + * Properties of a ListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListSnapshotsRequest - * @property {string|null} [filter] ListSnapshotsRequest filter - * @property {number|null} [maxResults] ListSnapshotsRequest maxResults - * @property {string|null} [orderBy] ListSnapshotsRequest orderBy - * @property {string|null} [pageToken] ListSnapshotsRequest pageToken - * @property {string|null} [project] ListSnapshotsRequest project - * @property {boolean|null} [returnPartialSuccess] ListSnapshotsRequest returnPartialSuccess + * @interface IListSecurityPoliciesRequest + * @property {string|null} [filter] ListSecurityPoliciesRequest filter + * @property {number|null} [maxResults] ListSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] ListSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] ListSecurityPoliciesRequest pageToken + * @property {string|null} [project] ListSecurityPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] ListSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListSnapshotsRequest. + * Constructs a new ListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListSnapshotsRequest. - * @implements IListSnapshotsRequest + * @classdesc Represents a ListSecurityPoliciesRequest. + * @implements IListSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set */ - function ListSnapshotsRequest(properties) { + function ListSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -331220,108 +336051,108 @@ } /** - * ListSnapshotsRequest filter. + * ListSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @instance */ - ListSnapshotsRequest.prototype.filter = null; + ListSecurityPoliciesRequest.prototype.filter = null; /** - * ListSnapshotsRequest maxResults. + * ListSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @instance */ - ListSnapshotsRequest.prototype.maxResults = null; + ListSecurityPoliciesRequest.prototype.maxResults = null; /** - * ListSnapshotsRequest orderBy. + * ListSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @instance */ - ListSnapshotsRequest.prototype.orderBy = null; + ListSecurityPoliciesRequest.prototype.orderBy = null; /** - * ListSnapshotsRequest pageToken. + * ListSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @instance */ - ListSnapshotsRequest.prototype.pageToken = null; + ListSecurityPoliciesRequest.prototype.pageToken = null; /** - * ListSnapshotsRequest project. + * ListSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @instance */ - ListSnapshotsRequest.prototype.project = ""; + ListSecurityPoliciesRequest.prototype.project = ""; /** - * ListSnapshotsRequest returnPartialSuccess. + * ListSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @instance */ - ListSnapshotsRequest.prototype.returnPartialSuccess = null; + ListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListSnapshotsRequest instance using the specified properties. + * Creates a new ListSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest instance + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest instance */ - ListSnapshotsRequest.create = function create(properties) { - return new ListSnapshotsRequest(properties); + ListSecurityPoliciesRequest.create = function create(properties) { + return new ListSecurityPoliciesRequest(properties); }; /** - * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSnapshotsRequest.encode = function encode(message, writer) { + ListSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -331340,33 +336171,33 @@ }; /** - * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSnapshotsRequest.verify|verify} messages. + * Encodes the specified ListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListSecurityPoliciesRequest} message ListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSnapshotsRequest message from the specified reader or buffer. + * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSnapshotsRequest.decode = function decode(reader, length, error) { + ListSecurityPoliciesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -331405,30 +336236,30 @@ }; /** - * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + ListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSnapshotsRequest message. + * Verifies a ListSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSnapshotsRequest.verify = function verify(message) { + ListSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -331464,17 +336295,17 @@ }; /** - * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest + * @returns {google.cloud.compute.v1.ListSecurityPoliciesRequest} ListSecurityPoliciesRequest */ - ListSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListSnapshotsRequest) + ListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1.ListSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -331491,15 +336322,15 @@ }; /** - * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListSnapshotsRequest} message ListSnapshotsRequest + * @param {google.cloud.compute.v1.ListSecurityPoliciesRequest} message ListSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSnapshotsRequest.toObject = function toObject(message, options) { + ListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -331536,57 +336367,58 @@ }; /** - * Converts this ListSnapshotsRequest to JSON. + * Converts this ListSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListSnapshotsRequest.prototype.toJSON = function toJSON() { + ListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSnapshotsRequest + * Gets the default type url for ListSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListSnapshotsRequest + * @memberof google.cloud.compute.v1.ListSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListSecurityPoliciesRequest"; }; - return ListSnapshotsRequest; + return ListSecurityPoliciesRequest; })(); - v1.ListSslCertificatesRequest = (function() { + v1.ListServiceAttachmentsRequest = (function() { /** - * Properties of a ListSslCertificatesRequest. + * Properties of a ListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IListSslCertificatesRequest - * @property {string|null} [filter] ListSslCertificatesRequest filter - * @property {number|null} [maxResults] ListSslCertificatesRequest maxResults - * @property {string|null} [orderBy] ListSslCertificatesRequest orderBy - * @property {string|null} [pageToken] ListSslCertificatesRequest pageToken - * @property {string|null} [project] ListSslCertificatesRequest project - * @property {boolean|null} [returnPartialSuccess] ListSslCertificatesRequest returnPartialSuccess + * @interface IListServiceAttachmentsRequest + * @property {string|null} [filter] ListServiceAttachmentsRequest filter + * @property {number|null} [maxResults] ListServiceAttachmentsRequest maxResults + * @property {string|null} [orderBy] ListServiceAttachmentsRequest orderBy + * @property {string|null} [pageToken] ListServiceAttachmentsRequest pageToken + * @property {string|null} [project] ListServiceAttachmentsRequest project + * @property {string|null} [region] ListServiceAttachmentsRequest region + * @property {boolean|null} [returnPartialSuccess] ListServiceAttachmentsRequest returnPartialSuccess */ /** - * Constructs a new ListSslCertificatesRequest. + * Constructs a new ListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListSslCertificatesRequest. - * @implements IListSslCertificatesRequest + * @classdesc Represents a ListServiceAttachmentsRequest. + * @implements IListServiceAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IListSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest=} [properties] Properties to set */ - function ListSslCertificatesRequest(properties) { + function ListServiceAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -331594,114 +336426,124 @@ } /** - * ListSslCertificatesRequest filter. + * ListServiceAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @instance */ - ListSslCertificatesRequest.prototype.filter = null; + ListServiceAttachmentsRequest.prototype.filter = null; /** - * ListSslCertificatesRequest maxResults. + * ListServiceAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @instance */ - ListSslCertificatesRequest.prototype.maxResults = null; + ListServiceAttachmentsRequest.prototype.maxResults = null; /** - * ListSslCertificatesRequest orderBy. + * ListServiceAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @instance */ - ListSslCertificatesRequest.prototype.orderBy = null; + ListServiceAttachmentsRequest.prototype.orderBy = null; /** - * ListSslCertificatesRequest pageToken. + * ListServiceAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @instance */ - ListSslCertificatesRequest.prototype.pageToken = null; + ListServiceAttachmentsRequest.prototype.pageToken = null; /** - * ListSslCertificatesRequest project. + * ListServiceAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @instance */ - ListSslCertificatesRequest.prototype.project = ""; + ListServiceAttachmentsRequest.prototype.project = ""; /** - * ListSslCertificatesRequest returnPartialSuccess. + * ListServiceAttachmentsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest + * @instance + */ + ListServiceAttachmentsRequest.prototype.region = ""; + + /** + * ListServiceAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @instance */ - ListSslCertificatesRequest.prototype.returnPartialSuccess = null; + ListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListSslCertificatesRequest instance using the specified properties. + * Creates a new ListServiceAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IListSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListSslCertificatesRequest} ListSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest instance */ - ListSslCertificatesRequest.create = function create(properties) { - return new ListSslCertificatesRequest(properties); + ListServiceAttachmentsRequest.create = function create(properties) { + return new ListServiceAttachmentsRequest(properties); }; /** - * Encodes the specified ListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListServiceAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IListSslCertificatesRequest} message ListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest} message ListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSslCertificatesRequest.encode = function encode(message, writer) { + ListServiceAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -331714,33 +336556,33 @@ }; /** - * Encodes the specified ListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListServiceAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IListSslCertificatesRequest} message ListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListServiceAttachmentsRequest} message ListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSslCertificatesRequest message from the specified reader or buffer. + * Decodes a ListServiceAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @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.ListSslCertificatesRequest} ListSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSslCertificatesRequest.decode = function decode(reader, length, error) { + ListServiceAttachmentsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListServiceAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -331766,6 +336608,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 517198390: { message.returnPartialSuccess = reader.bool(); break; @@ -331779,30 +336625,30 @@ }; /** - * Decodes a ListSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListSslCertificatesRequest} ListSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSslCertificatesRequest message. + * Verifies a ListServiceAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSslCertificatesRequest.verify = function verify(message) { + ListServiceAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -331829,6 +336675,9 @@ if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { properties._returnPartialSuccess = 1; if (typeof message.returnPartialSuccess !== "boolean") @@ -331838,17 +336687,17 @@ }; /** - * Creates a ListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListSslCertificatesRequest} ListSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListServiceAttachmentsRequest} ListServiceAttachmentsRequest */ - ListSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListSslCertificatesRequest) + ListServiceAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListServiceAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.ListServiceAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -331859,26 +336708,30 @@ message.pageToken = String(object.pageToken); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.returnPartialSuccess != null) message.returnPartialSuccess = Boolean(object.returnPartialSuccess); return message; }; /** - * Creates a plain object from a ListSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListServiceAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.ListSslCertificatesRequest} message ListSslCertificatesRequest + * @param {google.cloud.compute.v1.ListServiceAttachmentsRequest} message ListServiceAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSslCertificatesRequest.toObject = function toObject(message, options) { + ListServiceAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.region = ""; object.project = ""; + } if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -331889,6 +336742,8 @@ if (options.oneofs) object._maxResults = "maxResults"; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.orderBy != null && message.hasOwnProperty("orderBy")) { object.orderBy = message.orderBy; if (options.oneofs) @@ -331910,57 +336765,57 @@ }; /** - * Converts this ListSslCertificatesRequest to JSON. + * Converts this ListServiceAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @instance * @returns {Object.} JSON object */ - ListSslCertificatesRequest.prototype.toJSON = function toJSON() { + ListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSslCertificatesRequest + * Gets the default type url for ListServiceAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListServiceAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListServiceAttachmentsRequest"; }; - return ListSslCertificatesRequest; + return ListServiceAttachmentsRequest; })(); - v1.ListSslPoliciesRequest = (function() { + v1.ListSnapshotsRequest = (function() { /** - * Properties of a ListSslPoliciesRequest. + * Properties of a ListSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @interface IListSslPoliciesRequest - * @property {string|null} [filter] ListSslPoliciesRequest filter - * @property {number|null} [maxResults] ListSslPoliciesRequest maxResults - * @property {string|null} [orderBy] ListSslPoliciesRequest orderBy - * @property {string|null} [pageToken] ListSslPoliciesRequest pageToken - * @property {string|null} [project] ListSslPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] ListSslPoliciesRequest returnPartialSuccess + * @interface IListSnapshotsRequest + * @property {string|null} [filter] ListSnapshotsRequest filter + * @property {number|null} [maxResults] ListSnapshotsRequest maxResults + * @property {string|null} [orderBy] ListSnapshotsRequest orderBy + * @property {string|null} [pageToken] ListSnapshotsRequest pageToken + * @property {string|null} [project] ListSnapshotsRequest project + * @property {boolean|null} [returnPartialSuccess] ListSnapshotsRequest returnPartialSuccess */ /** - * Constructs a new ListSslPoliciesRequest. + * Constructs a new ListSnapshotsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListSslPoliciesRequest. - * @implements IListSslPoliciesRequest + * @classdesc Represents a ListSnapshotsRequest. + * @implements IListSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1.IListSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListSnapshotsRequest=} [properties] Properties to set */ - function ListSslPoliciesRequest(properties) { + function ListSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -331968,108 +336823,108 @@ } /** - * ListSslPoliciesRequest filter. + * ListSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @instance */ - ListSslPoliciesRequest.prototype.filter = null; + ListSnapshotsRequest.prototype.filter = null; /** - * ListSslPoliciesRequest maxResults. + * ListSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @instance */ - ListSslPoliciesRequest.prototype.maxResults = null; + ListSnapshotsRequest.prototype.maxResults = null; /** - * ListSslPoliciesRequest orderBy. + * ListSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @instance */ - ListSslPoliciesRequest.prototype.orderBy = null; + ListSnapshotsRequest.prototype.orderBy = null; /** - * ListSslPoliciesRequest pageToken. + * ListSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @instance */ - ListSslPoliciesRequest.prototype.pageToken = null; + ListSnapshotsRequest.prototype.pageToken = null; /** - * ListSslPoliciesRequest project. + * ListSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @instance */ - ListSslPoliciesRequest.prototype.project = ""; + ListSnapshotsRequest.prototype.project = ""; /** - * ListSslPoliciesRequest returnPartialSuccess. + * ListSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @instance */ - ListSslPoliciesRequest.prototype.returnPartialSuccess = null; + ListSnapshotsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListSslPoliciesRequest instance using the specified properties. + * Creates a new ListSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListSslPoliciesRequest} ListSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IListSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest instance */ - ListSslPoliciesRequest.create = function create(properties) { - return new ListSslPoliciesRequest(properties); + ListSnapshotsRequest.create = function create(properties) { + return new ListSnapshotsRequest(properties); }; /** - * Encodes the specified ListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListSslPoliciesRequest} message ListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSslPoliciesRequest.encode = function encode(message, writer) { + ListSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -332088,33 +336943,33 @@ }; /** - * Encodes the specified ListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static - * @param {google.cloud.compute.v1.IListSslPoliciesRequest} message ListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListSnapshotsRequest} message ListSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSslPoliciesRequest message from the specified reader or buffer. + * Decodes a ListSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @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.ListSslPoliciesRequest} ListSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSslPoliciesRequest.decode = function decode(reader, length, error) { + ListSnapshotsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -332153,30 +337008,30 @@ }; /** - * Decodes a ListSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListSslPoliciesRequest} ListSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSslPoliciesRequest message. + * Verifies a ListSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListSslPoliciesRequest.verify = function verify(message) { + ListSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -332212,17 +337067,17 @@ }; /** - * Creates a ListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListSslPoliciesRequest} ListSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListSnapshotsRequest} ListSnapshotsRequest */ - ListSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListSslPoliciesRequest) + ListSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -332239,15 +337094,15 @@ }; /** - * Creates a plain object from a ListSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static - * @param {google.cloud.compute.v1.ListSslPoliciesRequest} message ListSslPoliciesRequest + * @param {google.cloud.compute.v1.ListSnapshotsRequest} message ListSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSslPoliciesRequest.toObject = function toObject(message, options) { + ListSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -332284,58 +337139,57 @@ }; /** - * Converts this ListSslPoliciesRequest to JSON. + * Converts this ListSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @instance * @returns {Object.} JSON object */ - ListSslPoliciesRequest.prototype.toJSON = function toJSON() { + ListSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSslPoliciesRequest + * Gets the default type url for ListSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListSnapshotsRequest"; }; - return ListSslPoliciesRequest; + return ListSnapshotsRequest; })(); - v1.ListStoragePoolTypesRequest = (function() { + v1.ListSslCertificatesRequest = (function() { /** - * Properties of a ListStoragePoolTypesRequest. + * Properties of a ListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListStoragePoolTypesRequest - * @property {string|null} [filter] ListStoragePoolTypesRequest filter - * @property {number|null} [maxResults] ListStoragePoolTypesRequest maxResults - * @property {string|null} [orderBy] ListStoragePoolTypesRequest orderBy - * @property {string|null} [pageToken] ListStoragePoolTypesRequest pageToken - * @property {string|null} [project] ListStoragePoolTypesRequest project - * @property {boolean|null} [returnPartialSuccess] ListStoragePoolTypesRequest returnPartialSuccess - * @property {string|null} [zone] ListStoragePoolTypesRequest zone + * @interface IListSslCertificatesRequest + * @property {string|null} [filter] ListSslCertificatesRequest filter + * @property {number|null} [maxResults] ListSslCertificatesRequest maxResults + * @property {string|null} [orderBy] ListSslCertificatesRequest orderBy + * @property {string|null} [pageToken] ListSslCertificatesRequest pageToken + * @property {string|null} [project] ListSslCertificatesRequest project + * @property {boolean|null} [returnPartialSuccess] ListSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new ListStoragePoolTypesRequest. + * Constructs a new ListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListStoragePoolTypesRequest. - * @implements IListStoragePoolTypesRequest + * @classdesc Represents a ListSslCertificatesRequest. + * @implements IListSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListSslCertificatesRequest=} [properties] Properties to set */ - function ListStoragePoolTypesRequest(properties) { + function ListSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -332343,120 +337197,110 @@ } /** - * ListStoragePoolTypesRequest filter. + * ListSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @instance */ - ListStoragePoolTypesRequest.prototype.filter = null; + ListSslCertificatesRequest.prototype.filter = null; /** - * ListStoragePoolTypesRequest maxResults. + * ListSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @instance */ - ListStoragePoolTypesRequest.prototype.maxResults = null; + ListSslCertificatesRequest.prototype.maxResults = null; /** - * ListStoragePoolTypesRequest orderBy. + * ListSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @instance */ - ListStoragePoolTypesRequest.prototype.orderBy = null; + ListSslCertificatesRequest.prototype.orderBy = null; /** - * ListStoragePoolTypesRequest pageToken. + * ListSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @instance */ - ListStoragePoolTypesRequest.prototype.pageToken = null; + ListSslCertificatesRequest.prototype.pageToken = null; /** - * ListStoragePoolTypesRequest project. + * ListSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @instance */ - ListStoragePoolTypesRequest.prototype.project = ""; + ListSslCertificatesRequest.prototype.project = ""; /** - * ListStoragePoolTypesRequest returnPartialSuccess. + * ListSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest - * @instance - */ - ListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; - - /** - * ListStoragePoolTypesRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @instance */ - ListStoragePoolTypesRequest.prototype.zone = ""; + ListSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_filter", { + Object.defineProperty(ListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_maxResults", { + Object.defineProperty(ListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_orderBy", { + Object.defineProperty(ListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_pageToken", { + Object.defineProperty(ListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListStoragePoolTypesRequest instance using the specified properties. + * Creates a new ListSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListStoragePoolTypesRequest} ListStoragePoolTypesRequest instance + * @param {google.cloud.compute.v1.IListSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListSslCertificatesRequest} ListSslCertificatesRequest instance */ - ListStoragePoolTypesRequest.create = function create(properties) { - return new ListStoragePoolTypesRequest(properties); + ListSslCertificatesRequest.create = function create(properties) { + return new ListSslCertificatesRequest(properties); }; /** - * Encodes the specified ListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified ListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest} message ListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListSslCertificatesRequest} message ListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListStoragePoolTypesRequest.encode = function encode(message, writer) { + ListSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) @@ -332473,33 +337317,792 @@ }; /** - * Encodes the specified ListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListStoragePoolTypesRequest.verify|verify} messages. + * Encodes the specified ListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest} message ListStoragePoolTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListSslCertificatesRequest} message ListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListStoragePoolTypesRequest message from the specified reader or buffer. + * Decodes a ListSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest * @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.ListStoragePoolTypesRequest} ListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.ListSslCertificatesRequest} ListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListStoragePoolTypesRequest.decode = function decode(reader, length, error) { + ListSslCertificatesRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListStoragePoolTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSslCertificatesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSslCertificatesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListSslCertificatesRequest} ListSslCertificatesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSslCertificatesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSslCertificatesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListSslCertificatesRequest} ListSslCertificatesRequest + */ + ListSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListSslCertificatesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListSslCertificatesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListSslCertificatesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @static + * @param {google.cloud.compute.v1.ListSslCertificatesRequest} message ListSslCertificatesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSslCertificatesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListSslCertificatesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @instance + * @returns {Object.} JSON object + */ + ListSslCertificatesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListSslCertificatesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListSslCertificatesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListSslCertificatesRequest"; + }; + + return ListSslCertificatesRequest; + })(); + + v1.ListSslPoliciesRequest = (function() { + + /** + * Properties of a ListSslPoliciesRequest. + * @memberof google.cloud.compute.v1 + * @interface IListSslPoliciesRequest + * @property {string|null} [filter] ListSslPoliciesRequest filter + * @property {number|null} [maxResults] ListSslPoliciesRequest maxResults + * @property {string|null} [orderBy] ListSslPoliciesRequest orderBy + * @property {string|null} [pageToken] ListSslPoliciesRequest pageToken + * @property {string|null} [project] ListSslPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] ListSslPoliciesRequest returnPartialSuccess + */ + + /** + * Constructs a new ListSslPoliciesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListSslPoliciesRequest. + * @implements IListSslPoliciesRequest + * @constructor + * @param {google.cloud.compute.v1.IListSslPoliciesRequest=} [properties] Properties to set + */ + function ListSslPoliciesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListSslPoliciesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @instance + */ + ListSslPoliciesRequest.prototype.filter = null; + + /** + * ListSslPoliciesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @instance + */ + ListSslPoliciesRequest.prototype.maxResults = null; + + /** + * ListSslPoliciesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @instance + */ + ListSslPoliciesRequest.prototype.orderBy = null; + + /** + * ListSslPoliciesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @instance + */ + ListSslPoliciesRequest.prototype.pageToken = null; + + /** + * ListSslPoliciesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @instance + */ + ListSslPoliciesRequest.prototype.project = ""; + + /** + * ListSslPoliciesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @instance + */ + ListSslPoliciesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSslPoliciesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSslPoliciesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSslPoliciesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSslPoliciesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListSslPoliciesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {google.cloud.compute.v1.IListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListSslPoliciesRequest} ListSslPoliciesRequest instance + */ + ListSslPoliciesRequest.create = function create(properties) { + return new ListSslPoliciesRequest(properties); + }; + + /** + * Encodes the specified ListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListSslPoliciesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {google.cloud.compute.v1.IListSslPoliciesRequest} message ListSslPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSslPoliciesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListSslPoliciesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {google.cloud.compute.v1.IListSslPoliciesRequest} message ListSslPoliciesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSslPoliciesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @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.ListSslPoliciesRequest} ListSslPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSslPoliciesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListSslPoliciesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSslPoliciesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListSslPoliciesRequest} ListSslPoliciesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSslPoliciesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSslPoliciesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListSslPoliciesRequest} ListSslPoliciesRequest + */ + ListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListSslPoliciesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListSslPoliciesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListSslPoliciesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {google.cloud.compute.v1.ListSslPoliciesRequest} message ListSslPoliciesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSslPoliciesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListSslPoliciesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @instance + * @returns {Object.} JSON object + */ + ListSslPoliciesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListSslPoliciesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListSslPoliciesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListSslPoliciesRequest"; + }; + + return ListSslPoliciesRequest; + })(); + + v1.ListStoragePoolTypesRequest = (function() { + + /** + * Properties of a ListStoragePoolTypesRequest. + * @memberof google.cloud.compute.v1 + * @interface IListStoragePoolTypesRequest + * @property {string|null} [filter] ListStoragePoolTypesRequest filter + * @property {number|null} [maxResults] ListStoragePoolTypesRequest maxResults + * @property {string|null} [orderBy] ListStoragePoolTypesRequest orderBy + * @property {string|null} [pageToken] ListStoragePoolTypesRequest pageToken + * @property {string|null} [project] ListStoragePoolTypesRequest project + * @property {boolean|null} [returnPartialSuccess] ListStoragePoolTypesRequest returnPartialSuccess + * @property {string|null} [zone] ListStoragePoolTypesRequest zone + */ + + /** + * Constructs a new ListStoragePoolTypesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListStoragePoolTypesRequest. + * @implements IListStoragePoolTypesRequest + * @constructor + * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest=} [properties] Properties to set + */ + function ListStoragePoolTypesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListStoragePoolTypesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @instance + */ + ListStoragePoolTypesRequest.prototype.filter = null; + + /** + * ListStoragePoolTypesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @instance + */ + ListStoragePoolTypesRequest.prototype.maxResults = null; + + /** + * ListStoragePoolTypesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @instance + */ + ListStoragePoolTypesRequest.prototype.orderBy = null; + + /** + * ListStoragePoolTypesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @instance + */ + ListStoragePoolTypesRequest.prototype.pageToken = null; + + /** + * ListStoragePoolTypesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @instance + */ + ListStoragePoolTypesRequest.prototype.project = ""; + + /** + * ListStoragePoolTypesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @instance + */ + ListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; + + /** + * ListStoragePoolTypesRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @instance + */ + ListStoragePoolTypesRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListStoragePoolTypesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @static + * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListStoragePoolTypesRequest} ListStoragePoolTypesRequest instance + */ + ListStoragePoolTypesRequest.create = function create(properties) { + return new ListStoragePoolTypesRequest(properties); + }; + + /** + * Encodes the specified ListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListStoragePoolTypesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @static + * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest} message ListStoragePoolTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListStoragePoolTypesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListStoragePoolTypesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @static + * @param {google.cloud.compute.v1.IListStoragePoolTypesRequest} message ListStoragePoolTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListStoragePoolTypesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListStoragePoolTypesRequest + * @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.ListStoragePoolTypesRequest} ListStoragePoolTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListStoragePoolTypesRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListStoragePoolTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -341084,6 +346687,7 @@ * @interface ILocationPolicy * @property {Object.|null} [locations] LocationPolicy locations * @property {string|null} [targetShape] LocationPolicy targetShape + * @property {Array.|null} [zones] LocationPolicy zones */ /** @@ -341096,6 +346700,7 @@ */ function LocationPolicy(properties) { this.locations = {}; + this.zones = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341118,6 +346723,14 @@ */ LocationPolicy.prototype.targetShape = null; + /** + * LocationPolicy zones. + * @member {Array.} zones + * @memberof google.cloud.compute.v1.LocationPolicy + * @instance + */ + LocationPolicy.prototype.zones = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -341151,6 +346764,9 @@ LocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.zones != null && message.zones.length) + for (var i = 0; i < message.zones.length; ++i) + $root.google.cloud.compute.v1.LocationPolicyZoneConfiguration.encode(message.zones[i], writer.uint32(/* id 116085319, wireType 2 =*/928682554).fork()).ldelim(); if (message.targetShape != null && Object.hasOwnProperty.call(message, "targetShape")) writer.uint32(/* id 338621299, wireType 2 =*/2708970394).string(message.targetShape); if (message.locations != null && Object.hasOwnProperty.call(message, "locations")) @@ -341221,6 +346837,12 @@ message.targetShape = reader.string(); break; } + case 116085319: { + if (!(message.zones && message.zones.length)) + message.zones = []; + message.zones.push($root.google.cloud.compute.v1.LocationPolicyZoneConfiguration.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -341272,6 +346894,15 @@ if (!$util.isString(message.targetShape)) return "targetShape: string expected"; } + if (message.zones != null && message.hasOwnProperty("zones")) { + if (!Array.isArray(message.zones)) + return "zones: array expected"; + for (var i = 0; i < message.zones.length; ++i) { + var error = $root.google.cloud.compute.v1.LocationPolicyZoneConfiguration.verify(message.zones[i]); + if (error) + return "zones." + error; + } + } return null; }; @@ -341299,6 +346930,16 @@ } if (object.targetShape != null) message.targetShape = String(object.targetShape); + if (object.zones) { + if (!Array.isArray(object.zones)) + throw TypeError(".google.cloud.compute.v1.LocationPolicy.zones: array expected"); + message.zones = []; + for (var i = 0; i < object.zones.length; ++i) { + if (typeof object.zones[i] !== "object") + throw TypeError(".google.cloud.compute.v1.LocationPolicy.zones: object expected"); + message.zones[i] = $root.google.cloud.compute.v1.LocationPolicyZoneConfiguration.fromObject(object.zones[i]); + } + } return message; }; @@ -341315,8 +346956,15 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.zones = []; if (options.objects || options.defaults) object.locations = {}; + if (message.zones && message.zones.length) { + object.zones = []; + for (var j = 0; j < message.zones.length; ++j) + object.zones[j] = $root.google.cloud.compute.v1.LocationPolicyZoneConfiguration.toObject(message.zones[j], options); + } if (message.targetShape != null && message.hasOwnProperty("targetShape")) { object.targetShape = message.targetShape; if (options.oneofs) @@ -341871,6 +347519,224 @@ return LocationPolicyLocationConstraints; })(); + v1.LocationPolicyZoneConfiguration = (function() { + + /** + * Properties of a LocationPolicyZoneConfiguration. + * @memberof google.cloud.compute.v1 + * @interface ILocationPolicyZoneConfiguration + * @property {string|null} [zone] LocationPolicyZoneConfiguration zone + */ + + /** + * Constructs a new LocationPolicyZoneConfiguration. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a LocationPolicyZoneConfiguration. + * @implements ILocationPolicyZoneConfiguration + * @constructor + * @param {google.cloud.compute.v1.ILocationPolicyZoneConfiguration=} [properties] Properties to set + */ + function LocationPolicyZoneConfiguration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LocationPolicyZoneConfiguration zone. + * @member {string|null|undefined} zone + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @instance + */ + LocationPolicyZoneConfiguration.prototype.zone = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(LocationPolicyZoneConfiguration.prototype, "_zone", { + get: $util.oneOfGetter($oneOfFields = ["zone"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LocationPolicyZoneConfiguration instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1.ILocationPolicyZoneConfiguration=} [properties] Properties to set + * @returns {google.cloud.compute.v1.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration instance + */ + LocationPolicyZoneConfiguration.create = function create(properties) { + return new LocationPolicyZoneConfiguration(properties); + }; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyZoneConfiguration.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1.ILocationPolicyZoneConfiguration} message LocationPolicyZoneConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicyZoneConfiguration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + return writer; + }; + + /** + * Encodes the specified LocationPolicyZoneConfiguration message, length delimited. Does not implicitly {@link google.cloud.compute.v1.LocationPolicyZoneConfiguration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1.ILocationPolicyZoneConfiguration} message LocationPolicyZoneConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LocationPolicyZoneConfiguration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @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.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicyZoneConfiguration.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.LocationPolicyZoneConfiguration(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LocationPolicyZoneConfiguration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LocationPolicyZoneConfiguration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LocationPolicyZoneConfiguration message. + * @function verify + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LocationPolicyZoneConfiguration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.zone != null && message.hasOwnProperty("zone")) { + properties._zone = 1; + if (!$util.isString(message.zone)) + return "zone: string expected"; + } + return null; + }; + + /** + * Creates a LocationPolicyZoneConfiguration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.LocationPolicyZoneConfiguration} LocationPolicyZoneConfiguration + */ + LocationPolicyZoneConfiguration.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.LocationPolicyZoneConfiguration) + return object; + var message = new $root.google.cloud.compute.v1.LocationPolicyZoneConfiguration(); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a LocationPolicyZoneConfiguration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {google.cloud.compute.v1.LocationPolicyZoneConfiguration} message LocationPolicyZoneConfiguration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LocationPolicyZoneConfiguration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.zone != null && message.hasOwnProperty("zone")) { + object.zone = message.zone; + if (options.oneofs) + object._zone = "zone"; + } + return object; + }; + + /** + * Converts this LocationPolicyZoneConfiguration to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @instance + * @returns {Object.} JSON object + */ + LocationPolicyZoneConfiguration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LocationPolicyZoneConfiguration + * @function getTypeUrl + * @memberof google.cloud.compute.v1.LocationPolicyZoneConfiguration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LocationPolicyZoneConfiguration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.LocationPolicyZoneConfiguration"; + }; + + return LocationPolicyZoneConfiguration; + })(); + v1.MachineImage = (function() { /** @@ -341887,6 +347753,7 @@ * @property {Object.|null} [labels] MachineImage labels * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [machineImageEncryptionKey] MachineImage machineImageEncryptionKey * @property {string|null} [name] MachineImage name + * @property {google.cloud.compute.v1.IMachineImageParams|null} [params] MachineImage params * @property {boolean|null} [satisfiesPzi] MachineImage satisfiesPzi * @property {boolean|null} [satisfiesPzs] MachineImage satisfiesPzs * @property {Array.|null} [savedDisks] MachineImage savedDisks @@ -341998,6 +347865,14 @@ */ MachineImage.prototype.name = null; + /** + * MachineImage params. + * @member {google.cloud.compute.v1.IMachineImageParams|null|undefined} params + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.params = null; + /** * MachineImage satisfiesPzi. * @member {boolean|null|undefined} satisfiesPzi @@ -342135,6 +348010,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MachineImage.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(MachineImage.prototype, "_satisfiesPzi", { get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), @@ -342209,6 +348090,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.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.MachineImageParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.totalStorageBytes != null && Object.hasOwnProperty.call(message, "totalStorageBytes")) writer.uint32(/* id 81855468, wireType 0 =*/654843744).int64(message.totalStorageBytes); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) @@ -342340,6 +348223,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.MachineImageParams.decode(reader, reader.uint32()); + break; + } case 480964257: { message.satisfiesPzi = reader.bool(); break; @@ -342481,6 +348368,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.MachineImageParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { properties._satisfiesPzi = 1; if (typeof message.satisfiesPzi !== "boolean") @@ -342597,6 +348492,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImage.params: object expected"); + message.params = $root.google.cloud.compute.v1.MachineImageParams.fromObject(object.params); + } if (object.satisfiesPzi != null) message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) @@ -342694,6 +348594,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.MachineImageParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.totalStorageBytes != null && message.hasOwnProperty("totalStorageBytes")) { if (typeof message.totalStorageBytes === "number") object.totalStorageBytes = options.longs === String ? String(message.totalStorageBytes) : message.totalStorageBytes; @@ -343233,6 +349138,246 @@ return MachineImageList; })(); + v1.MachineImageParams = (function() { + + /** + * Properties of a MachineImageParams. + * @memberof google.cloud.compute.v1 + * @interface IMachineImageParams + * @property {Object.|null} [resourceManagerTags] MachineImageParams resourceManagerTags + */ + + /** + * Constructs a new MachineImageParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a MachineImageParams. + * @implements IMachineImageParams + * @constructor + * @param {google.cloud.compute.v1.IMachineImageParams=} [properties] Properties to set + */ + function MachineImageParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MachineImageParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.MachineImageParams + * @instance + */ + MachineImageParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new MachineImageParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {google.cloud.compute.v1.IMachineImageParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.MachineImageParams} MachineImageParams instance + */ + MachineImageParams.create = function create(properties) { + return new MachineImageParams(properties); + }; + + /** + * Encodes the specified MachineImageParams message. Does not implicitly {@link google.cloud.compute.v1.MachineImageParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {google.cloud.compute.v1.IMachineImageParams} message MachineImageParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImageParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified MachineImageParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.MachineImageParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {google.cloud.compute.v1.IMachineImageParams} message MachineImageParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImageParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.MachineImageParams + * @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.MachineImageParams} MachineImageParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImageParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.MachineImageParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MachineImageParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.MachineImageParams} MachineImageParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImageParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MachineImageParams message. + * @function verify + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MachineImageParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a MachineImageParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.MachineImageParams} MachineImageParams + */ + MachineImageParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.MachineImageParams) + return object; + var message = new $root.google.cloud.compute.v1.MachineImageParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImageParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a MachineImageParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {google.cloud.compute.v1.MachineImageParams} message MachineImageParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MachineImageParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this MachineImageParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.MachineImageParams + * @instance + * @returns {Object.} JSON object + */ + MachineImageParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MachineImageParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.MachineImageParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MachineImageParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.MachineImageParams"; + }; + + return MachineImageParams; + })(); + v1.MachineType = (function() { /** @@ -343241,6 +349386,7 @@ * @interface IMachineType * @property {Array.|null} [accelerators] MachineType accelerators * @property {string|null} [architecture] MachineType architecture + * @property {google.cloud.compute.v1.IBundledLocalSsds|null} [bundledLocalSsds] MachineType bundledLocalSsds * @property {string|null} [creationTimestamp] MachineType creationTimestamp * @property {google.cloud.compute.v1.IDeprecationStatus|null} [deprecated] MachineType deprecated * @property {string|null} [description] MachineType description @@ -343289,6 +349435,14 @@ */ MachineType.prototype.architecture = null; + /** + * MachineType bundledLocalSsds. + * @member {google.cloud.compute.v1.IBundledLocalSsds|null|undefined} bundledLocalSsds + * @memberof google.cloud.compute.v1.MachineType + * @instance + */ + MachineType.prototype.bundledLocalSsds = null; + /** * MachineType creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -343410,6 +349564,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(MachineType.prototype, "_bundledLocalSsds", { + get: $util.oneOfGetter($oneOfFields = ["bundledLocalSsds"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(MachineType.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), @@ -343539,6 +349699,8 @@ $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.bundledLocalSsds != null && Object.hasOwnProperty.call(message, "bundledLocalSsds")) + $root.google.cloud.compute.v1.BundledLocalSsds.encode(message.bundledLocalSsds, writer.uint32(/* id 387462016, wireType 2 =*/3099696130).fork()).ldelim(); 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")) @@ -343597,6 +349759,10 @@ message.architecture = reader.string(); break; } + case 387462016: { + message.bundledLocalSsds = $root.google.cloud.compute.v1.BundledLocalSsds.decode(reader, reader.uint32()); + break; + } case 30525366: { message.creationTimestamp = reader.string(); break; @@ -343703,6 +349869,14 @@ if (!$util.isString(message.architecture)) return "architecture: string expected"; } + if (message.bundledLocalSsds != null && message.hasOwnProperty("bundledLocalSsds")) { + properties._bundledLocalSsds = 1; + { + var error = $root.google.cloud.compute.v1.BundledLocalSsds.verify(message.bundledLocalSsds); + if (error) + return "bundledLocalSsds." + error; + } + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -343803,6 +349977,11 @@ } if (object.architecture != null) message.architecture = String(object.architecture); + if (object.bundledLocalSsds != null) { + if (typeof object.bundledLocalSsds !== "object") + throw TypeError(".google.cloud.compute.v1.MachineType.bundledLocalSsds: object expected"); + message.bundledLocalSsds = $root.google.cloud.compute.v1.BundledLocalSsds.fromObject(object.bundledLocalSsds); + } if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.deprecated != null) { @@ -343922,6 +350101,11 @@ if (options.oneofs) object._architecture = "architecture"; } + if (message.bundledLocalSsds != null && message.hasOwnProperty("bundledLocalSsds")) { + object.bundledLocalSsds = $root.google.cloud.compute.v1.BundledLocalSsds.toObject(message.bundledLocalSsds, options); + if (options.oneofs) + object._bundledLocalSsds = "bundledLocalSsds"; + } if (message.guestCpus != null && message.hasOwnProperty("guestCpus")) { object.guestCpus = message.guestCpus; if (options.oneofs) @@ -360478,6 +366662,7 @@ * @interface INetworkInterface * @property {Array.|null} [accessConfigs] NetworkInterface accessConfigs * @property {Array.|null} [aliasIpRanges] NetworkInterface aliasIpRanges + * @property {boolean|null} [enableVpcScopedDns] NetworkInterface enableVpcScopedDns * @property {string|null} [fingerprint] NetworkInterface fingerprint * @property {string|null} [igmpQuery] NetworkInterface igmpQuery * @property {number|null} [internalIpv6PrefixLength] NetworkInterface internalIpv6PrefixLength @@ -360531,6 +366716,14 @@ */ NetworkInterface.prototype.aliasIpRanges = $util.emptyArray; + /** + * NetworkInterface enableVpcScopedDns. + * @member {boolean|null|undefined} enableVpcScopedDns + * @memberof google.cloud.compute.v1.NetworkInterface + * @instance + */ + NetworkInterface.prototype.enableVpcScopedDns = null; + /** * NetworkInterface fingerprint. * @member {string|null|undefined} fingerprint @@ -360670,6 +366863,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(NetworkInterface.prototype, "_enableVpcScopedDns", { + get: $util.oneOfGetter($oneOfFields = ["enableVpcScopedDns"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(NetworkInterface.prototype, "_fingerprint", { get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), @@ -360816,6 +367015,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.enableVpcScopedDns != null && Object.hasOwnProperty.call(message, "enableVpcScopedDns")) + writer.uint32(/* id 283425868, wireType 0 =*/2267406944).bool(message.enableVpcScopedDns); if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) writer.uint32(/* id 307827694, wireType 2 =*/2462621554).string(message.subnetwork); if (message.ipv6Address != null && Object.hasOwnProperty.call(message, "ipv6Address")) @@ -360879,6 +367080,10 @@ message.aliasIpRanges.push($root.google.cloud.compute.v1.AliasIpRange.decode(reader, reader.uint32())); break; } + case 283425868: { + message.enableVpcScopedDns = reader.bool(); + break; + } case 234678500: { message.fingerprint = reader.string(); break; @@ -361003,6 +367208,11 @@ return "aliasIpRanges." + error; } } + if (message.enableVpcScopedDns != null && message.hasOwnProperty("enableVpcScopedDns")) { + properties._enableVpcScopedDns = 1; + if (typeof message.enableVpcScopedDns !== "boolean") + return "enableVpcScopedDns: boolean expected"; + } if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { properties._fingerprint = 1; if (!$util.isString(message.fingerprint)) @@ -361127,6 +367337,8 @@ message.aliasIpRanges[i] = $root.google.cloud.compute.v1.AliasIpRange.fromObject(object.aliasIpRanges[i]); } } + if (object.enableVpcScopedDns != null) + message.enableVpcScopedDns = Boolean(object.enableVpcScopedDns); if (object.fingerprint != null) message.fingerprint = String(object.fingerprint); if (object.igmpQuery != null) @@ -361250,6 +367462,11 @@ if (options.oneofs) object._fingerprint = "fingerprint"; } + if (message.enableVpcScopedDns != null && message.hasOwnProperty("enableVpcScopedDns")) { + object.enableVpcScopedDns = message.enableVpcScopedDns; + if (options.oneofs) + object._enableVpcScopedDns = "enableVpcScopedDns"; + } if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) { object.subnetwork = message.subnetwork; if (options.oneofs) @@ -396826,6 +403043,323 @@ return PatchRegionBackendServiceRequest; })(); + v1.PatchRegionHealthAggregationPolicyRequest = (function() { + + /** + * Properties of a PatchRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1 + * @interface IPatchRegionHealthAggregationPolicyRequest + * @property {string|null} [healthAggregationPolicy] PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy + * @property {google.cloud.compute.v1.IHealthAggregationPolicy|null} [healthAggregationPolicyResource] PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource + * @property {string|null} [project] PatchRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] PatchRegionHealthAggregationPolicyRequest region + * @property {string|null} [requestId] PatchRegionHealthAggregationPolicyRequest requestId + */ + + /** + * Constructs a new PatchRegionHealthAggregationPolicyRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a PatchRegionHealthAggregationPolicyRequest. + * @implements IPatchRegionHealthAggregationPolicyRequest + * @constructor + * @param {google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest=} [properties] Properties to set + */ + function PatchRegionHealthAggregationPolicyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PatchRegionHealthAggregationPolicyRequest healthAggregationPolicy. + * @member {string} healthAggregationPolicy + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicy = ""; + + /** + * PatchRegionHealthAggregationPolicyRequest healthAggregationPolicyResource. + * @member {google.cloud.compute.v1.IHealthAggregationPolicy|null|undefined} healthAggregationPolicyResource + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.healthAggregationPolicyResource = null; + + /** + * PatchRegionHealthAggregationPolicyRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.project = ""; + + /** + * PatchRegionHealthAggregationPolicyRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.region = ""; + + /** + * PatchRegionHealthAggregationPolicyRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @instance + */ + PatchRegionHealthAggregationPolicyRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionHealthAggregationPolicyRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchRegionHealthAggregationPolicyRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest instance + */ + PatchRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new PatchRegionHealthAggregationPolicyRequest(properties); + }; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest} message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.healthAggregationPolicy != null && Object.hasOwnProperty.call(message, "healthAggregationPolicy")) + writer.uint32(/* id 240314354, wireType 2 =*/1922514834).string(message.healthAggregationPolicy); + if (message.healthAggregationPolicyResource != null && Object.hasOwnProperty.call(message, "healthAggregationPolicyResource")) + $root.google.cloud.compute.v1.HealthAggregationPolicy.encode(message.healthAggregationPolicyResource, writer.uint32(/* id 293526971, wireType 2 =*/2348215770).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PatchRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest} message PatchRegionHealthAggregationPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @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.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 240314354: { + message.healthAggregationPolicy = reader.string(); + break; + } + case 293526971: { + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1.HealthAggregationPolicy.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PatchRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchRegionHealthAggregationPolicyRequest message. + * @function verify + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchRegionHealthAggregationPolicyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + if (!$util.isString(message.healthAggregationPolicy)) + return "healthAggregationPolicy: string expected"; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) { + var error = $root.google.cloud.compute.v1.HealthAggregationPolicy.verify(message.healthAggregationPolicyResource); + if (error) + return "healthAggregationPolicyResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a PatchRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest} PatchRegionHealthAggregationPolicyRequest + */ + PatchRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest) + return object; + var message = new $root.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest(); + if (object.healthAggregationPolicy != null) + message.healthAggregationPolicy = String(object.healthAggregationPolicy); + if (object.healthAggregationPolicyResource != null) { + if (typeof object.healthAggregationPolicyResource !== "object") + throw TypeError(".google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest.healthAggregationPolicyResource: object expected"); + message.healthAggregationPolicyResource = $root.google.cloud.compute.v1.HealthAggregationPolicy.fromObject(object.healthAggregationPolicyResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a PatchRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest} message PatchRegionHealthAggregationPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthAggregationPolicy = ""; + object.healthAggregationPolicyResource = null; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) + object.healthAggregationPolicy = message.healthAggregationPolicy; + if (message.healthAggregationPolicyResource != null && message.hasOwnProperty("healthAggregationPolicyResource")) + object.healthAggregationPolicyResource = $root.google.cloud.compute.v1.HealthAggregationPolicy.toObject(message.healthAggregationPolicyResource, options); + return object; + }; + + /** + * Converts this PatchRegionHealthAggregationPolicyRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + PatchRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchRegionHealthAggregationPolicyRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest"; + }; + + return PatchRegionHealthAggregationPolicyRequest; + })(); + v1.PatchRegionHealthCheckRequest = (function() { /** @@ -439341,11 +445875,13 @@ * @property {string|null} [deleteAtTime] Reservation deleteAtTime * @property {string|null} [deploymentType] Reservation deploymentType * @property {string|null} [description] Reservation description + * @property {string|null} [earlyAccessMaintenance] Reservation earlyAccessMaintenance * @property {boolean|null} [enableEmergentMaintenance] Reservation enableEmergentMaintenance * @property {number|Long|null} [id] Reservation id * @property {string|null} [kind] Reservation kind * @property {Array.|null} [linkedCommitments] Reservation linkedCommitments * @property {string|null} [name] Reservation name + * @property {google.cloud.compute.v1.IReservationParams|null} [params] Reservation params * @property {string|null} [protectionTier] Reservation protectionTier * @property {google.cloud.compute.v1.IAllocationReservationSharingPolicy|null} [reservationSharingPolicy] Reservation reservationSharingPolicy * @property {Object.|null} [resourcePolicies] Reservation resourcePolicies @@ -439441,6 +445977,14 @@ */ Reservation.prototype.description = null; + /** + * Reservation earlyAccessMaintenance. + * @member {string|null|undefined} earlyAccessMaintenance + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Reservation.prototype.earlyAccessMaintenance = null; + /** * Reservation enableEmergentMaintenance. * @member {boolean|null|undefined} enableEmergentMaintenance @@ -439481,6 +446025,14 @@ */ Reservation.prototype.name = null; + /** + * Reservation params. + * @member {google.cloud.compute.v1.IReservationParams|null|undefined} params + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Reservation.prototype.params = null; + /** * Reservation protectionTier. * @member {string|null|undefined} protectionTier @@ -439628,6 +446180,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Reservation.prototype, "_earlyAccessMaintenance", { + get: $util.oneOfGetter($oneOfFields = ["earlyAccessMaintenance"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Reservation.prototype, "_enableEmergentMaintenance", { get: $util.oneOfGetter($oneOfFields = ["enableEmergentMaintenance"]), @@ -439652,6 +446210,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Reservation.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Reservation.prototype, "_protectionTier", { get: $util.oneOfGetter($oneOfFields = ["protectionTier"]), @@ -439755,6 +446319,8 @@ writer.uint32(/* id 22220385, wireType 2 =*/177763082).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourcePolicies[keys[i]]).ldelim(); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.ReservationParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.deleteAtTime != null && Object.hasOwnProperty.call(message, "deleteAtTime")) writer.uint32(/* id 83294405, wireType 2 =*/666355242).string(message.deleteAtTime); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -439773,6 +446339,8 @@ $root.google.cloud.compute.v1.AllocationAggregateReservation.encode(message.aggregateReservation, writer.uint32(/* id 291567948, wireType 2 =*/2332543586).fork()).ldelim(); if (message.deleteAfterDuration != null && Object.hasOwnProperty.call(message, "deleteAfterDuration")) $root.google.cloud.compute.v1.Duration.encode(message.deleteAfterDuration, writer.uint32(/* id 323997099, wireType 2 =*/2591976794).fork()).ldelim(); + if (message.earlyAccessMaintenance != null && Object.hasOwnProperty.call(message, "earlyAccessMaintenance")) + writer.uint32(/* id 343918356, wireType 2 =*/2751346850).string(message.earlyAccessMaintenance); if (message.enableEmergentMaintenance != null && Object.hasOwnProperty.call(message, "enableEmergentMaintenance")) writer.uint32(/* id 353759497, wireType 0 =*/2830075976).bool(message.enableEmergentMaintenance); if (message.deploymentType != null && Object.hasOwnProperty.call(message, "deploymentType")) @@ -439862,6 +446430,10 @@ message.description = reader.string(); break; } + case 343918356: { + message.earlyAccessMaintenance = reader.string(); + break; + } case 353759497: { message.enableEmergentMaintenance = reader.bool(); break; @@ -439884,6 +446456,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.ReservationParams.decode(reader, reader.uint32()); + break; + } case 503959432: { message.protectionTier = reader.string(); break; @@ -440036,6 +446612,11 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.earlyAccessMaintenance != null && message.hasOwnProperty("earlyAccessMaintenance")) { + properties._earlyAccessMaintenance = 1; + if (!$util.isString(message.earlyAccessMaintenance)) + return "earlyAccessMaintenance: string expected"; + } if (message.enableEmergentMaintenance != null && message.hasOwnProperty("enableEmergentMaintenance")) { properties._enableEmergentMaintenance = 1; if (typeof message.enableEmergentMaintenance !== "boolean") @@ -440063,6 +446644,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.ReservationParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.protectionTier != null && message.hasOwnProperty("protectionTier")) { properties._protectionTier = 1; if (!$util.isString(message.protectionTier)) @@ -440178,6 +446767,8 @@ message.deploymentType = String(object.deploymentType); if (object.description != null) message.description = String(object.description); + if (object.earlyAccessMaintenance != null) + message.earlyAccessMaintenance = String(object.earlyAccessMaintenance); if (object.enableEmergentMaintenance != null) message.enableEmergentMaintenance = Boolean(object.enableEmergentMaintenance); if (object.id != null) @@ -440200,6 +446791,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.Reservation.params: object expected"); + message.params = $root.google.cloud.compute.v1.ReservationParams.fromObject(object.params); + } if (object.protectionTier != null) message.protectionTier = String(object.protectionTier); if (object.reservationSharingPolicy != null) { @@ -440295,6 +446891,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.ReservationParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.deleteAtTime != null && message.hasOwnProperty("deleteAtTime")) { object.deleteAtTime = message.deleteAtTime; if (options.oneofs) @@ -440340,6 +446941,11 @@ if (options.oneofs) object._deleteAfterDuration = "deleteAfterDuration"; } + if (message.earlyAccessMaintenance != null && message.hasOwnProperty("earlyAccessMaintenance")) { + object.earlyAccessMaintenance = message.earlyAccessMaintenance; + if (options.oneofs) + object._earlyAccessMaintenance = "earlyAccessMaintenance"; + } if (message.enableEmergentMaintenance != null && message.hasOwnProperty("enableEmergentMaintenance")) { object.enableEmergentMaintenance = message.enableEmergentMaintenance; if (options.oneofs) @@ -440435,6 +447041,24 @@ return values; })(); + /** + * EarlyAccessMaintenance enum. + * @name google.cloud.compute.v1.Reservation.EarlyAccessMaintenance + * @enum {number} + * @property {number} UNDEFINED_EARLY_ACCESS_MAINTENANCE=0 UNDEFINED_EARLY_ACCESS_MAINTENANCE value + * @property {number} NO_EARLY_ACCESS=220751774 NO_EARLY_ACCESS value + * @property {number} WAVE1=82367576 WAVE1 value + * @property {number} WAVE2=82367577 WAVE2 value + */ + Reservation.EarlyAccessMaintenance = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_EARLY_ACCESS_MAINTENANCE"] = 0; + values[valuesById[220751774] = "NO_EARLY_ACCESS"] = 220751774; + values[valuesById[82367576] = "WAVE1"] = 82367576; + values[valuesById[82367577] = "WAVE2"] = 82367577; + return values; + })(); + /** * ProtectionTier enum. * @name google.cloud.compute.v1.Reservation.ProtectionTier @@ -444451,38 +451075,25 @@ return ReservationList; })(); - v1.ReservationSubBlock = (function() { + v1.ReservationParams = (function() { /** - * Properties of a ReservationSubBlock. + * Properties of a ReservationParams. * @memberof google.cloud.compute.v1 - * @interface IReservationSubBlock - * @property {google.cloud.compute.v1.IAcceleratorTopologiesInfo|null} [acceleratorTopologiesInfo] ReservationSubBlock acceleratorTopologiesInfo - * @property {number|null} [count] ReservationSubBlock count - * @property {string|null} [creationTimestamp] ReservationSubBlock creationTimestamp - * @property {google.cloud.compute.v1.IReservationSubBlockHealthInfo|null} [healthInfo] ReservationSubBlock healthInfo - * @property {number|Long|null} [id] ReservationSubBlock id - * @property {number|null} [inUseCount] ReservationSubBlock inUseCount - * @property {number|null} [inUseHostCount] ReservationSubBlock inUseHostCount - * @property {string|null} [kind] ReservationSubBlock kind - * @property {string|null} [name] ReservationSubBlock name - * @property {google.cloud.compute.v1.IReservationSubBlockPhysicalTopology|null} [physicalTopology] ReservationSubBlock physicalTopology - * @property {google.cloud.compute.v1.IGroupMaintenanceInfo|null} [reservationSubBlockMaintenance] ReservationSubBlock reservationSubBlockMaintenance - * @property {string|null} [selfLink] ReservationSubBlock selfLink - * @property {string|null} [selfLinkWithId] ReservationSubBlock selfLinkWithId - * @property {string|null} [status] ReservationSubBlock status - * @property {string|null} [zone] ReservationSubBlock zone + * @interface IReservationParams + * @property {Object.|null} [resourceManagerTags] ReservationParams resourceManagerTags */ /** - * Constructs a new ReservationSubBlock. + * Constructs a new ReservationParams. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ReservationSubBlock. - * @implements IReservationSubBlock + * @classdesc Represents a ReservationParams. + * @implements IReservationParams * @constructor - * @param {google.cloud.compute.v1.IReservationSubBlock=} [properties] Properties to set + * @param {google.cloud.compute.v1.IReservationParams=} [properties] Properties to set */ - function ReservationSubBlock(properties) { + function ReservationParams(properties) { + this.resourceManagerTags = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -444490,240 +451101,433 @@ } /** - * ReservationSubBlock acceleratorTopologiesInfo. - * @member {google.cloud.compute.v1.IAcceleratorTopologiesInfo|null|undefined} acceleratorTopologiesInfo - * @memberof google.cloud.compute.v1.ReservationSubBlock + * ReservationParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.ReservationParams * @instance */ - ReservationSubBlock.prototype.acceleratorTopologiesInfo = null; + ReservationParams.prototype.resourceManagerTags = $util.emptyObject; /** - * ReservationSubBlock count. - * @member {number|null|undefined} count - * @memberof google.cloud.compute.v1.ReservationSubBlock - * @instance + * Creates a new ReservationParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {google.cloud.compute.v1.IReservationParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationParams} ReservationParams instance */ - ReservationSubBlock.prototype.count = null; + ReservationParams.create = function create(properties) { + return new ReservationParams(properties); + }; /** - * ReservationSubBlock creationTimestamp. - * @member {string|null|undefined} creationTimestamp - * @memberof google.cloud.compute.v1.ReservationSubBlock - * @instance + * Encodes the specified ReservationParams message. Does not implicitly {@link google.cloud.compute.v1.ReservationParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {google.cloud.compute.v1.IReservationParams} message ReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.prototype.creationTimestamp = null; + ReservationParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; /** - * ReservationSubBlock healthInfo. - * @member {google.cloud.compute.v1.IReservationSubBlockHealthInfo|null|undefined} healthInfo - * @memberof google.cloud.compute.v1.ReservationSubBlock - * @instance + * Encodes the specified ReservationParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {google.cloud.compute.v1.IReservationParams} message ReservationParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.prototype.healthInfo = null; + ReservationParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ReservationSubBlock id. - * @member {number|Long|null|undefined} id - * @memberof google.cloud.compute.v1.ReservationSubBlock + * Decodes a ReservationParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationParams + * @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.ReservationParams} ReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationParams} ReservationParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationParams message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a ReservationParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationParams} ReservationParams + */ + ReservationParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationParams) + return object; + var message = new $root.google.cloud.compute.v1.ReservationParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {google.cloud.compute.v1.ReservationParams} message ReservationParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this ReservationParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationParams * @instance + * @returns {Object.} JSON object */ - ReservationSubBlock.prototype.id = null; + ReservationParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ReservationSubBlock inUseCount. - * @member {number|null|undefined} inUseCount - * @memberof google.cloud.compute.v1.ReservationSubBlock + * Gets the default type url for ReservationParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationParams"; + }; + + return ReservationParams; + })(); + + v1.ReservationSlot = (function() { + + /** + * Properties of a ReservationSlot. + * @memberof google.cloud.compute.v1 + * @interface IReservationSlot + * @property {string|null} [creationTimestamp] ReservationSlot creationTimestamp + * @property {number|Long|null} [id] ReservationSlot id + * @property {string|null} [kind] ReservationSlot kind + * @property {string|null} [name] ReservationSlot name + * @property {google.cloud.compute.v1.IReservationSlotPhysicalTopology|null} [physicalTopology] ReservationSlot physicalTopology + * @property {string|null} [selfLink] ReservationSlot selfLink + * @property {string|null} [selfLinkWithId] ReservationSlot selfLinkWithId + * @property {google.cloud.compute.v1.IShareSettings|null} [shareSettings] ReservationSlot shareSettings + * @property {string|null} [state] ReservationSlot state + * @property {google.cloud.compute.v1.IReservationSlotStatus|null} [status] ReservationSlot status + * @property {string|null} [zone] ReservationSlot zone + */ + + /** + * Constructs a new ReservationSlot. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSlot. + * @implements IReservationSlot + * @constructor + * @param {google.cloud.compute.v1.IReservationSlot=} [properties] Properties to set + */ + function ReservationSlot(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlot creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.inUseCount = null; + ReservationSlot.prototype.creationTimestamp = null; /** - * ReservationSubBlock inUseHostCount. - * @member {number|null|undefined} inUseHostCount - * @memberof google.cloud.compute.v1.ReservationSubBlock + * ReservationSlot id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.inUseHostCount = null; + ReservationSlot.prototype.id = null; /** - * ReservationSubBlock kind. + * ReservationSlot kind. * @member {string|null|undefined} kind - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.kind = null; + ReservationSlot.prototype.kind = null; /** - * ReservationSubBlock name. + * ReservationSlot name. * @member {string|null|undefined} name - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.name = null; + ReservationSlot.prototype.name = null; /** - * ReservationSubBlock physicalTopology. - * @member {google.cloud.compute.v1.IReservationSubBlockPhysicalTopology|null|undefined} physicalTopology - * @memberof google.cloud.compute.v1.ReservationSubBlock + * ReservationSlot physicalTopology. + * @member {google.cloud.compute.v1.IReservationSlotPhysicalTopology|null|undefined} physicalTopology + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.physicalTopology = null; + ReservationSlot.prototype.physicalTopology = null; /** - * ReservationSubBlock reservationSubBlockMaintenance. - * @member {google.cloud.compute.v1.IGroupMaintenanceInfo|null|undefined} reservationSubBlockMaintenance - * @memberof google.cloud.compute.v1.ReservationSubBlock + * ReservationSlot selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.reservationSubBlockMaintenance = null; + ReservationSlot.prototype.selfLink = null; /** - * ReservationSubBlock selfLink. - * @member {string|null|undefined} selfLink - * @memberof google.cloud.compute.v1.ReservationSubBlock + * ReservationSlot selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.selfLink = null; + ReservationSlot.prototype.selfLinkWithId = null; /** - * ReservationSubBlock selfLinkWithId. - * @member {string|null|undefined} selfLinkWithId - * @memberof google.cloud.compute.v1.ReservationSubBlock + * ReservationSlot shareSettings. + * @member {google.cloud.compute.v1.IShareSettings|null|undefined} shareSettings + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.selfLinkWithId = null; + ReservationSlot.prototype.shareSettings = null; /** - * ReservationSubBlock status. - * @member {string|null|undefined} status - * @memberof google.cloud.compute.v1.ReservationSubBlock + * ReservationSlot state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.status = null; + ReservationSlot.prototype.state = null; /** - * ReservationSubBlock zone. + * ReservationSlot status. + * @member {google.cloud.compute.v1.IReservationSlotStatus|null|undefined} status + * @memberof google.cloud.compute.v1.ReservationSlot + * @instance + */ + ReservationSlot.prototype.status = null; + + /** + * ReservationSlot zone. * @member {string|null|undefined} zone - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @instance */ - ReservationSubBlock.prototype.zone = null; + ReservationSlot.prototype.zone = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_acceleratorTopologiesInfo", { - get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologiesInfo"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_count", { - get: $util.oneOfGetter($oneOfFields = ["count"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_creationTimestamp", { + Object.defineProperty(ReservationSlot.prototype, "_creationTimestamp", { get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_healthInfo", { - get: $util.oneOfGetter($oneOfFields = ["healthInfo"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_id", { + Object.defineProperty(ReservationSlot.prototype, "_id", { get: $util.oneOfGetter($oneOfFields = ["id"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_inUseCount", { - get: $util.oneOfGetter($oneOfFields = ["inUseCount"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_inUseHostCount", { - get: $util.oneOfGetter($oneOfFields = ["inUseHostCount"]), + Object.defineProperty(ReservationSlot.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_kind", { - get: $util.oneOfGetter($oneOfFields = ["kind"]), + Object.defineProperty(ReservationSlot.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_name", { - get: $util.oneOfGetter($oneOfFields = ["name"]), + Object.defineProperty(ReservationSlot.prototype, "_physicalTopology", { + get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_physicalTopology", { - get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), + Object.defineProperty(ReservationSlot.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_reservationSubBlockMaintenance", { - get: $util.oneOfGetter($oneOfFields = ["reservationSubBlockMaintenance"]), + Object.defineProperty(ReservationSlot.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_selfLink", { - get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + Object.defineProperty(ReservationSlot.prototype, "_shareSettings", { + get: $util.oneOfGetter($oneOfFields = ["shareSettings"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_selfLinkWithId", { - get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + Object.defineProperty(ReservationSlot.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_status", { + Object.defineProperty(ReservationSlot.prototype, "_status", { get: $util.oneOfGetter($oneOfFields = ["status"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ReservationSubBlock.prototype, "_zone", { + Object.defineProperty(ReservationSlot.prototype, "_zone", { get: $util.oneOfGetter($oneOfFields = ["zone"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ReservationSubBlock instance using the specified properties. + * Creates a new ReservationSlot instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @static - * @param {google.cloud.compute.v1.IReservationSubBlock=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ReservationSubBlock} ReservationSubBlock instance + * @param {google.cloud.compute.v1.IReservationSlot=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSlot} ReservationSlot instance */ - ReservationSubBlock.create = function create(properties) { - return new ReservationSubBlock(properties); + ReservationSlot.create = function create(properties) { + return new ReservationSlot(properties); }; /** - * Encodes the specified ReservationSubBlock message. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlock.verify|verify} messages. + * Encodes the specified ReservationSlot message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlot.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @static - * @param {google.cloud.compute.v1.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {google.cloud.compute.v1.IReservationSlot} message ReservationSlot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.encode = function encode(message, writer) { + ReservationSlot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.id != null && Object.hasOwnProperty.call(message, "id")) @@ -444738,88 +451542,60 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); - if (message.acceleratorTopologiesInfo != null && Object.hasOwnProperty.call(message, "acceleratorTopologiesInfo")) - $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.encode(message.acceleratorTopologiesInfo, writer.uint32(/* id 84833420, wireType 2 =*/678667362).fork()).ldelim(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 94851343, wireType 0 =*/758810744).int32(message.count); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); - if (message.healthInfo != null && Object.hasOwnProperty.call(message, "healthInfo")) - $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.encode(message.healthInfo, writer.uint32(/* id 235287729, wireType 2 =*/1882301834).fork()).ldelim(); + $root.google.cloud.compute.v1.ReservationSlotStatus.encode(message.status, writer.uint32(/* id 181260274, wireType 2 =*/1450082194).fork()).ldelim(); + if (message.shareSettings != null && Object.hasOwnProperty.call(message, "shareSettings")) + $root.google.cloud.compute.v1.ShareSettings.encode(message.shareSettings, writer.uint32(/* id 266668163, wireType 2 =*/2133345306).fork()).ldelim(); if (message.physicalTopology != null && Object.hasOwnProperty.call(message, "physicalTopology")) - $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); - if (message.inUseHostCount != null && Object.hasOwnProperty.call(message, "inUseHostCount")) - writer.uint32(/* id 364069834, wireType 0 =*/2912558672).int32(message.inUseHostCount); - if (message.reservationSubBlockMaintenance != null && Object.hasOwnProperty.call(message, "reservationSubBlockMaintenance")) - $root.google.cloud.compute.v1.GroupMaintenanceInfo.encode(message.reservationSubBlockMaintenance, writer.uint32(/* id 377005551, wireType 2 =*/3016044410).fork()).ldelim(); + $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); - if (message.inUseCount != null && Object.hasOwnProperty.call(message, "inUseCount")) - writer.uint32(/* id 493458877, wireType 0 =*/3947671016).int32(message.inUseCount); return writer; }; /** - * Encodes the specified ReservationSubBlock message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlock.verify|verify} messages. + * Encodes the specified ReservationSlot message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlot.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @static - * @param {google.cloud.compute.v1.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {google.cloud.compute.v1.IReservationSlot} message ReservationSlot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservationSubBlock.encodeDelimited = function encodeDelimited(message, writer) { + ReservationSlot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReservationSubBlock message from the specified reader or buffer. + * Decodes a ReservationSlot message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @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.ReservationSubBlock} ReservationSubBlock + * @returns {google.cloud.compute.v1.ReservationSlot} ReservationSlot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservationSubBlock.decode = function decode(reader, length, error) { + ReservationSlot.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationSubBlock(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationSlot(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 84833420: { - message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.decode(reader, reader.uint32()); - break; - } - case 94851343: { - message.count = reader.int32(); - break; - } case 30525366: { message.creationTimestamp = reader.string(); break; } - case 235287729: { - message.healthInfo = $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.decode(reader, reader.uint32()); - break; - } case 3355: { message.id = reader.uint64(); break; } - case 493458877: { - message.inUseCount = reader.int32(); - break; - } - case 364069834: { - message.inUseHostCount = reader.int32(); - break; - } case 3292052: { message.kind = reader.string(); break; @@ -444829,11 +451605,7 @@ break; } case 279778519: { - message.physicalTopology = $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.decode(reader, reader.uint32()); - break; - } - case 377005551: { - message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1.GroupMaintenanceInfo.decode(reader, reader.uint32()); + message.physicalTopology = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.decode(reader, reader.uint32()); break; } case 456214797: { @@ -444844,8 +451616,16 @@ message.selfLinkWithId = reader.string(); break; } + case 266668163: { + message.shareSettings = $root.google.cloud.compute.v1.ShareSettings.decode(reader, reader.uint32()); + break; + } + case 109757585: { + message.state = reader.string(); + break; + } case 181260274: { - message.status = reader.string(); + message.status = $root.google.cloud.compute.v1.ReservationSlotStatus.decode(reader, reader.uint32()); break; } case 3744684: { @@ -444861,74 +451641,43 @@ }; /** - * Decodes a ReservationSubBlock message from the specified reader or buffer, length delimited. + * Decodes a ReservationSlot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ReservationSubBlock} ReservationSubBlock + * @returns {google.cloud.compute.v1.ReservationSlot} ReservationSlot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservationSubBlock.decodeDelimited = function decodeDelimited(reader) { + ReservationSlot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReservationSubBlock message. + * Verifies a ReservationSlot message. * @function verify - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReservationSubBlock.verify = function verify(message) { + ReservationSlot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { - properties._acceleratorTopologiesInfo = 1; - { - var error = $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.verify(message.acceleratorTopologiesInfo); - if (error) - return "acceleratorTopologiesInfo." + error; - } - } - if (message.count != null && message.hasOwnProperty("count")) { - properties._count = 1; - if (!$util.isInteger(message.count)) - return "count: integer expected"; - } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) return "creationTimestamp: string expected"; } - if (message.healthInfo != null && message.hasOwnProperty("healthInfo")) { - properties._healthInfo = 1; - { - var error = $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.verify(message.healthInfo); - if (error) - return "healthInfo." + error; - } - } if (message.id != null && message.hasOwnProperty("id")) { properties._id = 1; if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) return "id: integer|Long expected"; } - if (message.inUseCount != null && message.hasOwnProperty("inUseCount")) { - properties._inUseCount = 1; - if (!$util.isInteger(message.inUseCount)) - return "inUseCount: integer expected"; - } - if (message.inUseHostCount != null && message.hasOwnProperty("inUseHostCount")) { - properties._inUseHostCount = 1; - if (!$util.isInteger(message.inUseHostCount)) - return "inUseHostCount: integer expected"; - } if (message.kind != null && message.hasOwnProperty("kind")) { properties._kind = 1; if (!$util.isString(message.kind)) @@ -444942,19 +451691,11 @@ if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { properties._physicalTopology = 1; { - var error = $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.verify(message.physicalTopology); + var error = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.verify(message.physicalTopology); if (error) return "physicalTopology." + error; } } - if (message.reservationSubBlockMaintenance != null && message.hasOwnProperty("reservationSubBlockMaintenance")) { - properties._reservationSubBlockMaintenance = 1; - { - var error = $root.google.cloud.compute.v1.GroupMaintenanceInfo.verify(message.reservationSubBlockMaintenance); - if (error) - return "reservationSubBlockMaintenance." + error; - } - } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { properties._selfLink = 1; if (!$util.isString(message.selfLink)) @@ -444965,10 +451706,26 @@ if (!$util.isString(message.selfLinkWithId)) return "selfLinkWithId: string expected"; } + if (message.shareSettings != null && message.hasOwnProperty("shareSettings")) { + properties._shareSettings = 1; + { + var error = $root.google.cloud.compute.v1.ShareSettings.verify(message.shareSettings); + if (error) + return "shareSettings." + error; + } + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } if (message.status != null && message.hasOwnProperty("status")) { properties._status = 1; - if (!$util.isString(message.status)) - return "status: string expected"; + { + var error = $root.google.cloud.compute.v1.ReservationSlotStatus.verify(message.status); + if (error) + return "status." + error; + } } if (message.zone != null && message.hasOwnProperty("zone")) { properties._zone = 1; @@ -444979,31 +451736,19 @@ }; /** - * Creates a ReservationSubBlock message from a plain object. Also converts values to their respective internal types. + * Creates a ReservationSlot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ReservationSubBlock} ReservationSubBlock + * @returns {google.cloud.compute.v1.ReservationSlot} ReservationSlot */ - ReservationSubBlock.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ReservationSubBlock) + ReservationSlot.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSlot) return object; - var message = new $root.google.cloud.compute.v1.ReservationSubBlock(); - if (object.acceleratorTopologiesInfo != null) { - if (typeof object.acceleratorTopologiesInfo !== "object") - throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.acceleratorTopologiesInfo: object expected"); - message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.fromObject(object.acceleratorTopologiesInfo); - } - if (object.count != null) - message.count = object.count | 0; + var message = new $root.google.cloud.compute.v1.ReservationSlot(); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); - if (object.healthInfo != null) { - if (typeof object.healthInfo !== "object") - throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.healthInfo: object expected"); - message.healthInfo = $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.fromObject(object.healthInfo); - } if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; @@ -445013,45 +451758,2008 @@ 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.inUseCount != null) - message.inUseCount = object.inUseCount | 0; - if (object.inUseHostCount != null) - message.inUseHostCount = object.inUseHostCount | 0; if (object.kind != null) message.kind = String(object.kind); if (object.name != null) message.name = String(object.name); if (object.physicalTopology != null) { if (typeof object.physicalTopology !== "object") - throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.physicalTopology: object expected"); - message.physicalTopology = $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.fromObject(object.physicalTopology); - } - if (object.reservationSubBlockMaintenance != null) { - if (typeof object.reservationSubBlockMaintenance !== "object") - throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.reservationSubBlockMaintenance: object expected"); - message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1.GroupMaintenanceInfo.fromObject(object.reservationSubBlockMaintenance); + throw TypeError(".google.cloud.compute.v1.ReservationSlot.physicalTopology: object expected"); + message.physicalTopology = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.fromObject(object.physicalTopology); } if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.selfLinkWithId != null) message.selfLinkWithId = String(object.selfLinkWithId); - if (object.status != null) - message.status = String(object.status); + if (object.shareSettings != null) { + if (typeof object.shareSettings !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSlot.shareSettings: object expected"); + message.shareSettings = $root.google.cloud.compute.v1.ShareSettings.fromObject(object.shareSettings); + } + if (object.state != null) + message.state = String(object.state); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSlot.status: object expected"); + message.status = $root.google.cloud.compute.v1.ReservationSlotStatus.fromObject(object.status); + } if (object.zone != null) message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ReservationSubBlock message. Also converts values to other types if specified. + * Creates a plain object from a ReservationSlot message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ReservationSubBlock + * @memberof google.cloud.compute.v1.ReservationSlot * @static - * @param {google.cloud.compute.v1.ReservationSubBlock} message ReservationSubBlock + * @param {google.cloud.compute.v1.ReservationSlot} message ReservationSlot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReservationSubBlock.toObject = function toObject(message, options) { + ReservationSlot.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.zone != null && message.hasOwnProperty("zone")) { + object.zone = message.zone; + if (options.oneofs) + object._zone = "zone"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; + if (options.oneofs) + object._selfLinkWithId = "selfLinkWithId"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.status != null && message.hasOwnProperty("status")) { + object.status = $root.google.cloud.compute.v1.ReservationSlotStatus.toObject(message.status, options); + if (options.oneofs) + object._status = "status"; + } + if (message.shareSettings != null && message.hasOwnProperty("shareSettings")) { + object.shareSettings = $root.google.cloud.compute.v1.ShareSettings.toObject(message.shareSettings, options); + if (options.oneofs) + object._shareSettings = "shareSettings"; + } + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + object.physicalTopology = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.toObject(message.physicalTopology, options); + if (options.oneofs) + object._physicalTopology = "physicalTopology"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this ReservationSlot to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationSlot + * @instance + * @returns {Object.} JSON object + */ + ReservationSlot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlot + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationSlot + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationSlot"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1.ReservationSlot.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} CREATING=455564985 CREATING value + * @property {number} DELETING=528602024 DELETING value + * @property {number} STATE_UNSPECIFIED=470755401 STATE_UNSPECIFIED value + * @property {number} UNAVAILABLE=413756464 UNAVAILABLE value + */ + ReservationSlot.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[455564985] = "CREATING"] = 455564985; + values[valuesById[528602024] = "DELETING"] = 528602024; + values[valuesById[470755401] = "STATE_UNSPECIFIED"] = 470755401; + values[valuesById[413756464] = "UNAVAILABLE"] = 413756464; + return values; + })(); + + return ReservationSlot; + })(); + + v1.ReservationSlotPhysicalTopology = (function() { + + /** + * Properties of a ReservationSlotPhysicalTopology. + * @memberof google.cloud.compute.v1 + * @interface IReservationSlotPhysicalTopology + * @property {string|null} [block] ReservationSlotPhysicalTopology block + * @property {string|null} [cluster] ReservationSlotPhysicalTopology cluster + * @property {string|null} [host] ReservationSlotPhysicalTopology host + * @property {string|null} [subBlock] ReservationSlotPhysicalTopology subBlock + */ + + /** + * Constructs a new ReservationSlotPhysicalTopology. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSlotPhysicalTopology. + * @implements IReservationSlotPhysicalTopology + * @constructor + * @param {google.cloud.compute.v1.IReservationSlotPhysicalTopology=} [properties] Properties to set + */ + function ReservationSlotPhysicalTopology(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotPhysicalTopology block. + * @member {string|null|undefined} block + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.block = null; + + /** + * ReservationSlotPhysicalTopology cluster. + * @member {string|null|undefined} cluster + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.cluster = null; + + /** + * ReservationSlotPhysicalTopology host. + * @member {string|null|undefined} host + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.host = null; + + /** + * ReservationSlotPhysicalTopology subBlock. + * @member {string|null|undefined} subBlock + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @instance + */ + ReservationSlotPhysicalTopology.prototype.subBlock = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_block", { + get: $util.oneOfGetter($oneOfFields = ["block"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_cluster", { + get: $util.oneOfGetter($oneOfFields = ["cluster"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_host", { + get: $util.oneOfGetter($oneOfFields = ["host"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotPhysicalTopology.prototype, "_subBlock", { + get: $util.oneOfGetter($oneOfFields = ["subBlock"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotPhysicalTopology instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1.IReservationSlotPhysicalTopology=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology instance + */ + ReservationSlotPhysicalTopology.create = function create(properties) { + return new ReservationSlotPhysicalTopology(properties); + }; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotPhysicalTopology.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1.IReservationSlotPhysicalTopology} message ReservationSlotPhysicalTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotPhysicalTopology.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.host != null && Object.hasOwnProperty.call(message, "host")) + writer.uint32(/* id 3208616, wireType 2 =*/25668930).string(message.host); + if (message.block != null && Object.hasOwnProperty.call(message, "block")) + writer.uint32(/* id 93832333, wireType 2 =*/750658666).string(message.block); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + writer.uint32(/* id 335221242, wireType 2 =*/2681769938).string(message.cluster); + if (message.subBlock != null && Object.hasOwnProperty.call(message, "subBlock")) + writer.uint32(/* id 478033358, wireType 2 =*/3824266866).string(message.subBlock); + return writer; + }; + + /** + * Encodes the specified ReservationSlotPhysicalTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotPhysicalTopology.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1.IReservationSlotPhysicalTopology} message ReservationSlotPhysicalTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotPhysicalTopology.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @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.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotPhysicalTopology.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 93832333: { + message.block = reader.string(); + break; + } + case 335221242: { + message.cluster = reader.string(); + break; + } + case 3208616: { + message.host = reader.string(); + break; + } + case 478033358: { + message.subBlock = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotPhysicalTopology message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotPhysicalTopology.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotPhysicalTopology message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotPhysicalTopology.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.block != null && message.hasOwnProperty("block")) { + properties._block = 1; + if (!$util.isString(message.block)) + return "block: string expected"; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) { + properties._cluster = 1; + if (!$util.isString(message.cluster)) + return "cluster: string expected"; + } + if (message.host != null && message.hasOwnProperty("host")) { + properties._host = 1; + if (!$util.isString(message.host)) + return "host: string expected"; + } + if (message.subBlock != null && message.hasOwnProperty("subBlock")) { + properties._subBlock = 1; + if (!$util.isString(message.subBlock)) + return "subBlock: string expected"; + } + return null; + }; + + /** + * Creates a ReservationSlotPhysicalTopology message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationSlotPhysicalTopology} ReservationSlotPhysicalTopology + */ + ReservationSlotPhysicalTopology.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology) + return object; + var message = new $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology(); + if (object.block != null) + message.block = String(object.block); + if (object.cluster != null) + message.cluster = String(object.cluster); + if (object.host != null) + message.host = String(object.host); + if (object.subBlock != null) + message.subBlock = String(object.subBlock); + return message; + }; + + /** + * Creates a plain object from a ReservationSlotPhysicalTopology message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {google.cloud.compute.v1.ReservationSlotPhysicalTopology} message ReservationSlotPhysicalTopology + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotPhysicalTopology.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.host != null && message.hasOwnProperty("host")) { + object.host = message.host; + if (options.oneofs) + object._host = "host"; + } + if (message.block != null && message.hasOwnProperty("block")) { + object.block = message.block; + if (options.oneofs) + object._block = "block"; + } + if (message.cluster != null && message.hasOwnProperty("cluster")) { + object.cluster = message.cluster; + if (options.oneofs) + object._cluster = "cluster"; + } + if (message.subBlock != null && message.hasOwnProperty("subBlock")) { + object.subBlock = message.subBlock; + if (options.oneofs) + object._subBlock = "subBlock"; + } + return object; + }; + + /** + * Converts this ReservationSlotPhysicalTopology to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotPhysicalTopology.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotPhysicalTopology + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationSlotPhysicalTopology + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotPhysicalTopology.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationSlotPhysicalTopology"; + }; + + return ReservationSlotPhysicalTopology; + })(); + + v1.ReservationSlotStatus = (function() { + + /** + * Properties of a ReservationSlotStatus. + * @memberof google.cloud.compute.v1 + * @interface IReservationSlotStatus + * @property {google.cloud.compute.v1.IReservationSlotPhysicalTopology|null} [physicalTopology] ReservationSlotStatus physicalTopology + * @property {Array.|null} [rdmaIpAddresses] ReservationSlotStatus rdmaIpAddresses + * @property {Array.|null} [runningInstances] ReservationSlotStatus runningInstances + */ + + /** + * Constructs a new ReservationSlotStatus. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSlotStatus. + * @implements IReservationSlotStatus + * @constructor + * @param {google.cloud.compute.v1.IReservationSlotStatus=} [properties] Properties to set + */ + function ReservationSlotStatus(properties) { + this.rdmaIpAddresses = []; + this.runningInstances = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotStatus physicalTopology. + * @member {google.cloud.compute.v1.IReservationSlotPhysicalTopology|null|undefined} physicalTopology + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @instance + */ + ReservationSlotStatus.prototype.physicalTopology = null; + + /** + * ReservationSlotStatus rdmaIpAddresses. + * @member {Array.} rdmaIpAddresses + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @instance + */ + ReservationSlotStatus.prototype.rdmaIpAddresses = $util.emptyArray; + + /** + * ReservationSlotStatus runningInstances. + * @member {Array.} runningInstances + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @instance + */ + ReservationSlotStatus.prototype.runningInstances = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotStatus.prototype, "_physicalTopology", { + get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1.IReservationSlotStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSlotStatus} ReservationSlotStatus instance + */ + ReservationSlotStatus.create = function create(properties) { + return new ReservationSlotStatus(properties); + }; + + /** + * Encodes the specified ReservationSlotStatus message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1.IReservationSlotStatus} message ReservationSlotStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rdmaIpAddresses != null && message.rdmaIpAddresses.length) + for (var i = 0; i < message.rdmaIpAddresses.length; ++i) + writer.uint32(/* id 167842531, wireType 2 =*/1342740250).string(message.rdmaIpAddresses[i]); + if (message.physicalTopology != null && Object.hasOwnProperty.call(message, "physicalTopology")) + $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); + if (message.runningInstances != null && message.runningInstances.length) + for (var i = 0; i < message.runningInstances.length; ++i) + writer.uint32(/* id 536292350, wireType 2 =*/4290338802).string(message.runningInstances[i]); + return writer; + }; + + /** + * Encodes the specified ReservationSlotStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1.IReservationSlotStatus} message ReservationSlotStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @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.ReservationSlotStatus} ReservationSlotStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotStatus.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationSlotStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 279778519: { + message.physicalTopology = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.decode(reader, reader.uint32()); + break; + } + case 167842531: { + if (!(message.rdmaIpAddresses && message.rdmaIpAddresses.length)) + message.rdmaIpAddresses = []; + message.rdmaIpAddresses.push(reader.string()); + break; + } + case 536292350: { + if (!(message.runningInstances && message.runningInstances.length)) + message.runningInstances = []; + message.runningInstances.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationSlotStatus} ReservationSlotStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotStatus message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + properties._physicalTopology = 1; + { + var error = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.verify(message.physicalTopology); + if (error) + return "physicalTopology." + error; + } + } + if (message.rdmaIpAddresses != null && message.hasOwnProperty("rdmaIpAddresses")) { + if (!Array.isArray(message.rdmaIpAddresses)) + return "rdmaIpAddresses: array expected"; + for (var i = 0; i < message.rdmaIpAddresses.length; ++i) + if (!$util.isString(message.rdmaIpAddresses[i])) + return "rdmaIpAddresses: string[] expected"; + } + if (message.runningInstances != null && message.hasOwnProperty("runningInstances")) { + if (!Array.isArray(message.runningInstances)) + return "runningInstances: array expected"; + for (var i = 0; i < message.runningInstances.length; ++i) + if (!$util.isString(message.runningInstances[i])) + return "runningInstances: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationSlotStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationSlotStatus} ReservationSlotStatus + */ + ReservationSlotStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSlotStatus) + return object; + var message = new $root.google.cloud.compute.v1.ReservationSlotStatus(); + if (object.physicalTopology != null) { + if (typeof object.physicalTopology !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSlotStatus.physicalTopology: object expected"); + message.physicalTopology = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.fromObject(object.physicalTopology); + } + if (object.rdmaIpAddresses) { + if (!Array.isArray(object.rdmaIpAddresses)) + throw TypeError(".google.cloud.compute.v1.ReservationSlotStatus.rdmaIpAddresses: array expected"); + message.rdmaIpAddresses = []; + for (var i = 0; i < object.rdmaIpAddresses.length; ++i) + message.rdmaIpAddresses[i] = String(object.rdmaIpAddresses[i]); + } + if (object.runningInstances) { + if (!Array.isArray(object.runningInstances)) + throw TypeError(".google.cloud.compute.v1.ReservationSlotStatus.runningInstances: array expected"); + message.runningInstances = []; + for (var i = 0; i < object.runningInstances.length; ++i) + message.runningInstances[i] = String(object.runningInstances[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {google.cloud.compute.v1.ReservationSlotStatus} message ReservationSlotStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.rdmaIpAddresses = []; + object.runningInstances = []; + } + if (message.rdmaIpAddresses && message.rdmaIpAddresses.length) { + object.rdmaIpAddresses = []; + for (var j = 0; j < message.rdmaIpAddresses.length; ++j) + object.rdmaIpAddresses[j] = message.rdmaIpAddresses[j]; + } + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + object.physicalTopology = $root.google.cloud.compute.v1.ReservationSlotPhysicalTopology.toObject(message.physicalTopology, options); + if (options.oneofs) + object._physicalTopology = "physicalTopology"; + } + if (message.runningInstances && message.runningInstances.length) { + object.runningInstances = []; + for (var j = 0; j < message.runningInstances.length; ++j) + object.runningInstances[j] = message.runningInstances[j]; + } + return object; + }; + + /** + * Converts this ReservationSlotStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationSlotStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationSlotStatus"; + }; + + return ReservationSlotStatus; + })(); + + v1.ReservationSlotsGetResponse = (function() { + + /** + * Properties of a ReservationSlotsGetResponse. + * @memberof google.cloud.compute.v1 + * @interface IReservationSlotsGetResponse + * @property {google.cloud.compute.v1.IReservationSlot|null} [resource] ReservationSlotsGetResponse resource + */ + + /** + * Constructs a new ReservationSlotsGetResponse. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSlotsGetResponse. + * @implements IReservationSlotsGetResponse + * @constructor + * @param {google.cloud.compute.v1.IReservationSlotsGetResponse=} [properties] Properties to set + */ + function ReservationSlotsGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotsGetResponse resource. + * @member {google.cloud.compute.v1.IReservationSlot|null|undefined} resource + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @instance + */ + ReservationSlotsGetResponse.prototype.resource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsGetResponse.prototype, "_resource", { + get: $util.oneOfGetter($oneOfFields = ["resource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotsGetResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1.IReservationSlotsGetResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSlotsGetResponse} ReservationSlotsGetResponse instance + */ + ReservationSlotsGetResponse.create = function create(properties) { + return new ReservationSlotsGetResponse(properties); + }; + + /** + * Encodes the specified ReservationSlotsGetResponse message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1.IReservationSlotsGetResponse} message ReservationSlotsGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + $root.google.cloud.compute.v1.ReservationSlot.encode(message.resource, writer.uint32(/* id 195806222, wireType 2 =*/1566449778).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ReservationSlotsGetResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1.IReservationSlotsGetResponse} message ReservationSlotsGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @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.ReservationSlotsGetResponse} ReservationSlotsGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationSlotsGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 195806222: { + message.resource = $root.google.cloud.compute.v1.ReservationSlot.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotsGetResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationSlotsGetResponse} ReservationSlotsGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotsGetResponse message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotsGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resource != null && message.hasOwnProperty("resource")) { + properties._resource = 1; + { + var error = $root.google.cloud.compute.v1.ReservationSlot.verify(message.resource); + if (error) + return "resource." + error; + } + } + return null; + }; + + /** + * Creates a ReservationSlotsGetResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationSlotsGetResponse} ReservationSlotsGetResponse + */ + ReservationSlotsGetResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSlotsGetResponse) + return object; + var message = new $root.google.cloud.compute.v1.ReservationSlotsGetResponse(); + if (object.resource != null) { + if (typeof object.resource !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSlotsGetResponse.resource: object expected"); + message.resource = $root.google.cloud.compute.v1.ReservationSlot.fromObject(object.resource); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotsGetResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {google.cloud.compute.v1.ReservationSlotsGetResponse} message ReservationSlotsGetResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotsGetResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.resource != null && message.hasOwnProperty("resource")) { + object.resource = $root.google.cloud.compute.v1.ReservationSlot.toObject(message.resource, options); + if (options.oneofs) + object._resource = "resource"; + } + return object; + }; + + /** + * Converts this ReservationSlotsGetResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotsGetResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotsGetResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationSlotsGetResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotsGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationSlotsGetResponse"; + }; + + return ReservationSlotsGetResponse; + })(); + + v1.ReservationSlotsListResponse = (function() { + + /** + * Properties of a ReservationSlotsListResponse. + * @memberof google.cloud.compute.v1 + * @interface IReservationSlotsListResponse + * @property {string|null} [id] ReservationSlotsListResponse id + * @property {Array.|null} [items] ReservationSlotsListResponse items + * @property {string|null} [kind] ReservationSlotsListResponse kind + * @property {string|null} [nextPageToken] ReservationSlotsListResponse nextPageToken + * @property {string|null} [selfLink] ReservationSlotsListResponse selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] ReservationSlotsListResponse warning + */ + + /** + * Constructs a new ReservationSlotsListResponse. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSlotsListResponse. + * @implements IReservationSlotsListResponse + * @constructor + * @param {google.cloud.compute.v1.IReservationSlotsListResponse=} [properties] Properties to set + */ + function ReservationSlotsListResponse(properties) { + this.items = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotsListResponse id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.id = null; + + /** + * ReservationSlotsListResponse items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.items = $util.emptyArray; + + /** + * ReservationSlotsListResponse kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.kind = null; + + /** + * ReservationSlotsListResponse nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.nextPageToken = null; + + /** + * ReservationSlotsListResponse selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.selfLink = null; + + /** + * ReservationSlotsListResponse warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @instance + */ + ReservationSlotsListResponse.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSlotsListResponse.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSlotsListResponse instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1.IReservationSlotsListResponse=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSlotsListResponse} ReservationSlotsListResponse instance + */ + ReservationSlotsListResponse.create = function create(properties) { + return new ReservationSlotsListResponse(properties); + }; + + /** + * Encodes the specified ReservationSlotsListResponse message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsListResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1.IReservationSlotsListResponse} message ReservationSlotsListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsListResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1.ReservationSlot.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified ReservationSlotsListResponse message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsListResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1.IReservationSlotsListResponse} message ReservationSlotsListResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsListResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @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.ReservationSlotsListResponse} ReservationSlotsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsListResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationSlotsListResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1.ReservationSlot.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotsListResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationSlotsListResponse} ReservationSlotsListResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsListResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotsListResponse message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotsListResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1.ReservationSlot.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a ReservationSlotsListResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationSlotsListResponse} ReservationSlotsListResponse + */ + ReservationSlotsListResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSlotsListResponse) + return object; + var message = new $root.google.cloud.compute.v1.ReservationSlotsListResponse(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.ReservationSlotsListResponse.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSlotsListResponse.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.ReservationSlot.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSlotsListResponse.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotsListResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {google.cloud.compute.v1.ReservationSlotsListResponse} message ReservationSlotsListResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotsListResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.items = []; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1.ReservationSlot.toObject(message.items[j], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this ReservationSlotsListResponse to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotsListResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotsListResponse + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationSlotsListResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotsListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationSlotsListResponse"; + }; + + return ReservationSlotsListResponse; + })(); + + v1.ReservationSubBlock = (function() { + + /** + * Properties of a ReservationSubBlock. + * @memberof google.cloud.compute.v1 + * @interface IReservationSubBlock + * @property {google.cloud.compute.v1.IAcceleratorTopologiesInfo|null} [acceleratorTopologiesInfo] ReservationSubBlock acceleratorTopologiesInfo + * @property {number|null} [count] ReservationSubBlock count + * @property {string|null} [creationTimestamp] ReservationSubBlock creationTimestamp + * @property {google.cloud.compute.v1.IReservationSubBlockHealthInfo|null} [healthInfo] ReservationSubBlock healthInfo + * @property {number|Long|null} [id] ReservationSubBlock id + * @property {number|null} [inUseCount] ReservationSubBlock inUseCount + * @property {number|null} [inUseHostCount] ReservationSubBlock inUseHostCount + * @property {string|null} [kind] ReservationSubBlock kind + * @property {string|null} [name] ReservationSubBlock name + * @property {google.cloud.compute.v1.IReservationSubBlockPhysicalTopology|null} [physicalTopology] ReservationSubBlock physicalTopology + * @property {google.cloud.compute.v1.IGroupMaintenanceInfo|null} [reservationSubBlockMaintenance] ReservationSubBlock reservationSubBlockMaintenance + * @property {string|null} [selfLink] ReservationSubBlock selfLink + * @property {string|null} [selfLinkWithId] ReservationSubBlock selfLinkWithId + * @property {string|null} [status] ReservationSubBlock status + * @property {string|null} [zone] ReservationSubBlock zone + */ + + /** + * Constructs a new ReservationSubBlock. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSubBlock. + * @implements IReservationSubBlock + * @constructor + * @param {google.cloud.compute.v1.IReservationSubBlock=} [properties] Properties to set + */ + function ReservationSubBlock(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSubBlock acceleratorTopologiesInfo. + * @member {google.cloud.compute.v1.IAcceleratorTopologiesInfo|null|undefined} acceleratorTopologiesInfo + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.acceleratorTopologiesInfo = null; + + /** + * ReservationSubBlock count. + * @member {number|null|undefined} count + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.count = null; + + /** + * ReservationSubBlock creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.creationTimestamp = null; + + /** + * ReservationSubBlock healthInfo. + * @member {google.cloud.compute.v1.IReservationSubBlockHealthInfo|null|undefined} healthInfo + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.healthInfo = null; + + /** + * ReservationSubBlock id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.id = null; + + /** + * ReservationSubBlock inUseCount. + * @member {number|null|undefined} inUseCount + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.inUseCount = null; + + /** + * ReservationSubBlock inUseHostCount. + * @member {number|null|undefined} inUseHostCount + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.inUseHostCount = null; + + /** + * ReservationSubBlock kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.kind = null; + + /** + * ReservationSubBlock name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.name = null; + + /** + * ReservationSubBlock physicalTopology. + * @member {google.cloud.compute.v1.IReservationSubBlockPhysicalTopology|null|undefined} physicalTopology + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.physicalTopology = null; + + /** + * ReservationSubBlock reservationSubBlockMaintenance. + * @member {google.cloud.compute.v1.IGroupMaintenanceInfo|null|undefined} reservationSubBlockMaintenance + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.reservationSubBlockMaintenance = null; + + /** + * ReservationSubBlock selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.selfLink = null; + + /** + * ReservationSubBlock selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.selfLinkWithId = null; + + /** + * ReservationSubBlock status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.status = null; + + /** + * ReservationSubBlock zone. + * @member {string|null|undefined} zone + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @instance + */ + ReservationSubBlock.prototype.zone = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_acceleratorTopologiesInfo", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologiesInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_count", { + get: $util.oneOfGetter($oneOfFields = ["count"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_healthInfo", { + get: $util.oneOfGetter($oneOfFields = ["healthInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_inUseCount", { + get: $util.oneOfGetter($oneOfFields = ["inUseCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_inUseHostCount", { + get: $util.oneOfGetter($oneOfFields = ["inUseHostCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_physicalTopology", { + get: $util.oneOfGetter($oneOfFields = ["physicalTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_reservationSubBlockMaintenance", { + get: $util.oneOfGetter($oneOfFields = ["reservationSubBlockMaintenance"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ReservationSubBlock.prototype, "_zone", { + get: $util.oneOfGetter($oneOfFields = ["zone"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ReservationSubBlock instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1.IReservationSubBlock=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSubBlock} ReservationSubBlock instance + */ + ReservationSubBlock.create = function create(properties) { + return new ReservationSubBlock(properties); + }; + + /** + * Encodes the specified ReservationSubBlock message. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlock.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + 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.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.acceleratorTopologiesInfo != null && Object.hasOwnProperty.call(message, "acceleratorTopologiesInfo")) + $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.encode(message.acceleratorTopologiesInfo, writer.uint32(/* id 84833420, wireType 2 =*/678667362).fork()).ldelim(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 94851343, wireType 0 =*/758810744).int32(message.count); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.healthInfo != null && Object.hasOwnProperty.call(message, "healthInfo")) + $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.encode(message.healthInfo, writer.uint32(/* id 235287729, wireType 2 =*/1882301834).fork()).ldelim(); + if (message.physicalTopology != null && Object.hasOwnProperty.call(message, "physicalTopology")) + $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.encode(message.physicalTopology, writer.uint32(/* id 279778519, wireType 2 =*/2238228154).fork()).ldelim(); + if (message.inUseHostCount != null && Object.hasOwnProperty.call(message, "inUseHostCount")) + writer.uint32(/* id 364069834, wireType 0 =*/2912558672).int32(message.inUseHostCount); + if (message.reservationSubBlockMaintenance != null && Object.hasOwnProperty.call(message, "reservationSubBlockMaintenance")) + $root.google.cloud.compute.v1.GroupMaintenanceInfo.encode(message.reservationSubBlockMaintenance, writer.uint32(/* id 377005551, wireType 2 =*/3016044410).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.inUseCount != null && Object.hasOwnProperty.call(message, "inUseCount")) + writer.uint32(/* id 493458877, wireType 0 =*/3947671016).int32(message.inUseCount); + return writer; + }; + + /** + * Encodes the specified ReservationSubBlock message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlock.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1.IReservationSubBlock} message ReservationSubBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlock.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSubBlock message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @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.ReservationSubBlock} ReservationSubBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlock.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ReservationSubBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 84833420: { + message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.decode(reader, reader.uint32()); + break; + } + case 94851343: { + message.count = reader.int32(); + break; + } + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 235287729: { + message.healthInfo = $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.decode(reader, reader.uint32()); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 493458877: { + message.inUseCount = reader.int32(); + break; + } + case 364069834: { + message.inUseHostCount = reader.int32(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 279778519: { + message.physicalTopology = $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.decode(reader, reader.uint32()); + break; + } + case 377005551: { + message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1.GroupMaintenanceInfo.decode(reader, reader.uint32()); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 181260274: { + message.status = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSubBlock message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationSubBlock} ReservationSubBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlock.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSubBlock message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSubBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.acceleratorTopologiesInfo != null && message.hasOwnProperty("acceleratorTopologiesInfo")) { + properties._acceleratorTopologiesInfo = 1; + { + var error = $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.verify(message.acceleratorTopologiesInfo); + if (error) + return "acceleratorTopologiesInfo." + error; + } + } + if (message.count != null && message.hasOwnProperty("count")) { + properties._count = 1; + if (!$util.isInteger(message.count)) + return "count: integer expected"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.healthInfo != null && message.hasOwnProperty("healthInfo")) { + properties._healthInfo = 1; + { + var error = $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.verify(message.healthInfo); + if (error) + return "healthInfo." + error; + } + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.inUseCount != null && message.hasOwnProperty("inUseCount")) { + properties._inUseCount = 1; + if (!$util.isInteger(message.inUseCount)) + return "inUseCount: integer expected"; + } + if (message.inUseHostCount != null && message.hasOwnProperty("inUseHostCount")) { + properties._inUseHostCount = 1; + if (!$util.isInteger(message.inUseHostCount)) + return "inUseHostCount: integer expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.physicalTopology != null && message.hasOwnProperty("physicalTopology")) { + properties._physicalTopology = 1; + { + var error = $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.verify(message.physicalTopology); + if (error) + return "physicalTopology." + error; + } + } + if (message.reservationSubBlockMaintenance != null && message.hasOwnProperty("reservationSubBlockMaintenance")) { + properties._reservationSubBlockMaintenance = 1; + { + var error = $root.google.cloud.compute.v1.GroupMaintenanceInfo.verify(message.reservationSubBlockMaintenance); + if (error) + return "reservationSubBlockMaintenance." + error; + } + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + if (!$util.isString(message.status)) + return "status: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) { + properties._zone = 1; + if (!$util.isString(message.zone)) + return "zone: string expected"; + } + return null; + }; + + /** + * Creates a ReservationSubBlock message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationSubBlock} ReservationSubBlock + */ + ReservationSubBlock.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSubBlock) + return object; + var message = new $root.google.cloud.compute.v1.ReservationSubBlock(); + if (object.acceleratorTopologiesInfo != null) { + if (typeof object.acceleratorTopologiesInfo !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.acceleratorTopologiesInfo: object expected"); + message.acceleratorTopologiesInfo = $root.google.cloud.compute.v1.AcceleratorTopologiesInfo.fromObject(object.acceleratorTopologiesInfo); + } + if (object.count != null) + message.count = object.count | 0; + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.healthInfo != null) { + if (typeof object.healthInfo !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.healthInfo: object expected"); + message.healthInfo = $root.google.cloud.compute.v1.ReservationSubBlockHealthInfo.fromObject(object.healthInfo); + } + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + 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.inUseCount != null) + message.inUseCount = object.inUseCount | 0; + if (object.inUseHostCount != null) + message.inUseHostCount = object.inUseHostCount | 0; + if (object.kind != null) + message.kind = String(object.kind); + if (object.name != null) + message.name = String(object.name); + if (object.physicalTopology != null) { + if (typeof object.physicalTopology !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.physicalTopology: object expected"); + message.physicalTopology = $root.google.cloud.compute.v1.ReservationSubBlockPhysicalTopology.fromObject(object.physicalTopology); + } + if (object.reservationSubBlockMaintenance != null) { + if (typeof object.reservationSubBlockMaintenance !== "object") + throw TypeError(".google.cloud.compute.v1.ReservationSubBlock.reservationSubBlockMaintenance: object expected"); + message.reservationSubBlockMaintenance = $root.google.cloud.compute.v1.GroupMaintenanceInfo.fromObject(object.reservationSubBlockMaintenance); + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.status != null) + message.status = String(object.status); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ReservationSubBlock message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationSubBlock + * @static + * @param {google.cloud.compute.v1.ReservationSubBlock} message ReservationSubBlock + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSubBlock.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -452382,6 +461090,7 @@ * Properties of a ResourcePolicyGroupPlacementPolicy. * @memberof google.cloud.compute.v1 * @interface IResourcePolicyGroupPlacementPolicy + * @property {string|null} [acceleratorTopologyMode] ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode * @property {number|null} [availabilityDomainCount] ResourcePolicyGroupPlacementPolicy availabilityDomainCount * @property {string|null} [collocation] ResourcePolicyGroupPlacementPolicy collocation * @property {string|null} [gpuTopology] ResourcePolicyGroupPlacementPolicy gpuTopology @@ -452403,6 +461112,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ResourcePolicyGroupPlacementPolicy acceleratorTopologyMode. + * @member {string|null|undefined} acceleratorTopologyMode + * @memberof google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy + * @instance + */ + ResourcePolicyGroupPlacementPolicy.prototype.acceleratorTopologyMode = null; + /** * ResourcePolicyGroupPlacementPolicy availabilityDomainCount. * @member {number|null|undefined} availabilityDomainCount @@ -452438,6 +461155,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourcePolicyGroupPlacementPolicy.prototype, "_acceleratorTopologyMode", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologyMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ResourcePolicyGroupPlacementPolicy.prototype, "_availabilityDomainCount", { get: $util.oneOfGetter($oneOfFields = ["availabilityDomainCount"]), @@ -452492,6 +461215,8 @@ writer.uint32(/* id 247948450, wireType 2 =*/1983587602).string(message.gpuTopology); if (message.vmCount != null && Object.hasOwnProperty.call(message, "vmCount")) writer.uint32(/* id 261463431, wireType 0 =*/2091707448).int32(message.vmCount); + if (message.acceleratorTopologyMode != null && Object.hasOwnProperty.call(message, "acceleratorTopologyMode")) + writer.uint32(/* id 284293791, wireType 2 =*/2274350330).string(message.acceleratorTopologyMode); if (message.collocation != null && Object.hasOwnProperty.call(message, "collocation")) writer.uint32(/* id 511156533, wireType 2 =*/4089252266).string(message.collocation); return writer; @@ -452530,6 +461255,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 284293791: { + message.acceleratorTopologyMode = reader.string(); + break; + } case 12453432: { message.availabilityDomainCount = reader.int32(); break; @@ -452582,6 +461311,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + properties._acceleratorTopologyMode = 1; + if (!$util.isString(message.acceleratorTopologyMode)) + return "acceleratorTopologyMode: string expected"; + } if (message.availabilityDomainCount != null && message.hasOwnProperty("availabilityDomainCount")) { properties._availabilityDomainCount = 1; if (!$util.isInteger(message.availabilityDomainCount)) @@ -452617,6 +461351,8 @@ if (object instanceof $root.google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy) return object; var message = new $root.google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy(); + if (object.acceleratorTopologyMode != null) + message.acceleratorTopologyMode = String(object.acceleratorTopologyMode); if (object.availabilityDomainCount != null) message.availabilityDomainCount = object.availabilityDomainCount | 0; if (object.collocation != null) @@ -452656,6 +461392,11 @@ if (options.oneofs) object._vmCount = "vmCount"; } + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + object.acceleratorTopologyMode = message.acceleratorTopologyMode; + if (options.oneofs) + object._acceleratorTopologyMode = "acceleratorTopologyMode"; + } if (message.collocation != null && message.hasOwnProperty("collocation")) { object.collocation = message.collocation; if (options.oneofs) @@ -452690,6 +461431,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy"; }; + /** + * AcceleratorTopologyMode enum. + * @name google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy.AcceleratorTopologyMode + * @enum {number} + * @property {number} UNDEFINED_ACCELERATOR_TOPOLOGY_MODE=0 UNDEFINED_ACCELERATOR_TOPOLOGY_MODE value + * @property {number} AUTO_CONNECT=491872826 AUTO_CONNECT value + * @property {number} PROVISION_ONLY=399134966 PROVISION_ONLY value + */ + ResourcePolicyGroupPlacementPolicy.AcceleratorTopologyMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ACCELERATOR_TOPOLOGY_MODE"] = 0; + values[valuesById[491872826] = "AUTO_CONNECT"] = 491872826; + values[valuesById[399134966] = "PROVISION_ONLY"] = 399134966; + return values; + })(); + /** * Collocation enum. * @name google.cloud.compute.v1.ResourcePolicyGroupPlacementPolicy.Collocation @@ -456985,6 +465742,7 @@ * @property {boolean|null} [enableOsInventoryMetadataValue] ResourceStatusEffectiveInstanceMetadata enableOsInventoryMetadataValue * @property {boolean|null} [enableOsconfigMetadataValue] ResourceStatusEffectiveInstanceMetadata enableOsconfigMetadataValue * @property {boolean|null} [enableOsloginMetadataValue] ResourceStatusEffectiveInstanceMetadata enableOsloginMetadataValue + * @property {boolean|null} [gceContainerDeclarationMetadataValue] ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue * @property {boolean|null} [serialPortEnableMetadataValue] ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue * @property {boolean|null} [serialPortLoggingEnableMetadataValue] ResourceStatusEffectiveInstanceMetadata serialPortLoggingEnableMetadataValue * @property {string|null} [vmDnsSettingMetadataValue] ResourceStatusEffectiveInstanceMetadata vmDnsSettingMetadataValue @@ -457045,6 +465803,14 @@ */ ResourceStatusEffectiveInstanceMetadata.prototype.enableOsloginMetadataValue = null; + /** + * ResourceStatusEffectiveInstanceMetadata gceContainerDeclarationMetadataValue. + * @member {boolean|null|undefined} gceContainerDeclarationMetadataValue + * @memberof google.cloud.compute.v1.ResourceStatusEffectiveInstanceMetadata + * @instance + */ + ResourceStatusEffectiveInstanceMetadata.prototype.gceContainerDeclarationMetadataValue = null; + /** * ResourceStatusEffectiveInstanceMetadata serialPortEnableMetadataValue. * @member {boolean|null|undefined} serialPortEnableMetadataValue @@ -457102,6 +465868,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourceStatusEffectiveInstanceMetadata.prototype, "_gceContainerDeclarationMetadataValue", { + get: $util.oneOfGetter($oneOfFields = ["gceContainerDeclarationMetadataValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ResourceStatusEffectiveInstanceMetadata.prototype, "_serialPortEnableMetadataValue", { get: $util.oneOfGetter($oneOfFields = ["serialPortEnableMetadataValue"]), @@ -457146,6 +465918,8 @@ writer = $Writer.create(); if (message.enableOsloginMetadataValue != null && Object.hasOwnProperty.call(message, "enableOsloginMetadataValue")) writer.uint32(/* id 216603159, wireType 0 =*/1732825272).bool(message.enableOsloginMetadataValue); + if (message.gceContainerDeclarationMetadataValue != null && Object.hasOwnProperty.call(message, "gceContainerDeclarationMetadataValue")) + writer.uint32(/* id 219617210, wireType 0 =*/1756937680).bool(message.gceContainerDeclarationMetadataValue); if (message.serialPortLoggingEnableMetadataValue != null && Object.hasOwnProperty.call(message, "serialPortLoggingEnableMetadataValue")) writer.uint32(/* id 311813290, wireType 0 =*/2494506320).bool(message.serialPortLoggingEnableMetadataValue); if (message.blockProjectSshKeysMetadataValue != null && Object.hasOwnProperty.call(message, "blockProjectSshKeysMetadataValue")) @@ -457216,6 +465990,10 @@ message.enableOsloginMetadataValue = reader.bool(); break; } + case 219617210: { + message.gceContainerDeclarationMetadataValue = reader.bool(); + break; + } case 430536330: { message.serialPortEnableMetadataValue = reader.bool(); break; @@ -457289,6 +466067,11 @@ if (typeof message.enableOsloginMetadataValue !== "boolean") return "enableOsloginMetadataValue: boolean expected"; } + if (message.gceContainerDeclarationMetadataValue != null && message.hasOwnProperty("gceContainerDeclarationMetadataValue")) { + properties._gceContainerDeclarationMetadataValue = 1; + if (typeof message.gceContainerDeclarationMetadataValue !== "boolean") + return "gceContainerDeclarationMetadataValue: boolean expected"; + } if (message.serialPortEnableMetadataValue != null && message.hasOwnProperty("serialPortEnableMetadataValue")) { properties._serialPortEnableMetadataValue = 1; if (typeof message.serialPortEnableMetadataValue !== "boolean") @@ -457329,6 +466112,8 @@ message.enableOsconfigMetadataValue = Boolean(object.enableOsconfigMetadataValue); if (object.enableOsloginMetadataValue != null) message.enableOsloginMetadataValue = Boolean(object.enableOsloginMetadataValue); + if (object.gceContainerDeclarationMetadataValue != null) + message.gceContainerDeclarationMetadataValue = Boolean(object.gceContainerDeclarationMetadataValue); if (object.serialPortEnableMetadataValue != null) message.serialPortEnableMetadataValue = Boolean(object.serialPortEnableMetadataValue); if (object.serialPortLoggingEnableMetadataValue != null) @@ -457356,6 +466141,11 @@ if (options.oneofs) object._enableOsloginMetadataValue = "enableOsloginMetadataValue"; } + if (message.gceContainerDeclarationMetadataValue != null && message.hasOwnProperty("gceContainerDeclarationMetadataValue")) { + object.gceContainerDeclarationMetadataValue = message.gceContainerDeclarationMetadataValue; + if (options.oneofs) + object._gceContainerDeclarationMetadataValue = "gceContainerDeclarationMetadataValue"; + } if (message.serialPortLoggingEnableMetadataValue != null && message.hasOwnProperty("serialPortLoggingEnableMetadataValue")) { object.serialPortLoggingEnableMetadataValue = message.serialPortLoggingEnableMetadataValue; if (options.oneofs) @@ -545125,6 +553915,7 @@ * @property {string|null} [purpose] Subnetwork purpose * @property {string|null} [region] Subnetwork region * @property {string|null} [reservedInternalRange] Subnetwork reservedInternalRange + * @property {string|null} [resolveSubnetMask] Subnetwork resolveSubnetMask * @property {string|null} [role] Subnetwork role * @property {Array.|null} [secondaryIpRanges] Subnetwork secondaryIpRanges * @property {string|null} [selfLink] Subnetwork selfLink @@ -545345,6 +554136,14 @@ */ Subnetwork.prototype.reservedInternalRange = null; + /** + * Subnetwork resolveSubnetMask. + * @member {string|null|undefined} resolveSubnetMask + * @memberof google.cloud.compute.v1.Subnetwork + * @instance + */ + Subnetwork.prototype.resolveSubnetMask = null; + /** * Subnetwork role. * @member {string|null|undefined} role @@ -545556,6 +554355,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Subnetwork.prototype, "_resolveSubnetMask", { + get: $util.oneOfGetter($oneOfFields = ["resolveSubnetMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Subnetwork.prototype, "_role", { get: $util.oneOfGetter($oneOfFields = ["role"]), @@ -545677,6 +554482,8 @@ writer.uint32(/* id 504658653, wireType 2 =*/4037269226).string(message.ipv6AccessType); if (message.internalIpv6Prefix != null && Object.hasOwnProperty.call(message, "internalIpv6Prefix")) writer.uint32(/* id 506270056, wireType 2 =*/4050160450).string(message.internalIpv6Prefix); + if (message.resolveSubnetMask != null && Object.hasOwnProperty.call(message, "resolveSubnetMask")) + writer.uint32(/* id 517696699, wireType 2 =*/4141573594).string(message.resolveSubnetMask); return writer; }; @@ -545809,6 +554616,10 @@ message.reservedInternalRange = reader.string(); break; } + case 517696699: { + message.resolveSubnetMask = reader.string(); + break; + } case 3506294: { message.role = reader.string(); break; @@ -546009,6 +554820,11 @@ if (!$util.isString(message.reservedInternalRange)) return "reservedInternalRange: string expected"; } + if (message.resolveSubnetMask != null && message.hasOwnProperty("resolveSubnetMask")) { + properties._resolveSubnetMask = 1; + if (!$util.isString(message.resolveSubnetMask)) + return "resolveSubnetMask: string expected"; + } if (message.role != null && message.hasOwnProperty("role")) { properties._role = 1; if (!$util.isString(message.role)) @@ -546136,6 +554952,8 @@ message.region = String(object.region); if (object.reservedInternalRange != null) message.reservedInternalRange = String(object.reservedInternalRange); + if (object.resolveSubnetMask != null) + message.resolveSubnetMask = String(object.resolveSubnetMask); if (object.role != null) message.role = String(object.role); if (object.secondaryIpRanges) { @@ -546357,6 +555175,11 @@ if (options.oneofs) object._internalIpv6Prefix = "internalIpv6Prefix"; } + if (message.resolveSubnetMask != null && message.hasOwnProperty("resolveSubnetMask")) { + object.resolveSubnetMask = message.resolveSubnetMask; + if (options.oneofs) + object._resolveSubnetMask = "resolveSubnetMask"; + } return object; }; @@ -546466,6 +555289,22 @@ return values; })(); + /** + * ResolveSubnetMask enum. + * @name google.cloud.compute.v1.Subnetwork.ResolveSubnetMask + * @enum {number} + * @property {number} UNDEFINED_RESOLVE_SUBNET_MASK=0 UNDEFINED_RESOLVE_SUBNET_MASK value + * @property {number} ARP_ALL_RANGES=445655380 ARP_ALL_RANGES value + * @property {number} ARP_PRIMARY_RANGE=120210048 ARP_PRIMARY_RANGE value + */ + Subnetwork.ResolveSubnetMask = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_RESOLVE_SUBNET_MASK"] = 0; + values[valuesById[445655380] = "ARP_ALL_RANGES"] = 445655380; + values[valuesById[120210048] = "ARP_PRIMARY_RANGE"] = 120210048; + return values; + })(); + /** * Role enum. * @name google.cloud.compute.v1.Subnetwork.Role @@ -566467,6 +575306,7 @@ * @property {Object.|null} [labels] TargetVpnGateway labels * @property {string|null} [name] TargetVpnGateway name * @property {string|null} [network] TargetVpnGateway network + * @property {google.cloud.compute.v1.ITargetVpnGatewayParams|null} [params] TargetVpnGateway params * @property {string|null} [region] TargetVpnGateway region * @property {string|null} [selfLink] TargetVpnGateway selfLink * @property {string|null} [status] TargetVpnGateway status @@ -566563,6 +575403,14 @@ */ TargetVpnGateway.prototype.network = null; + /** + * TargetVpnGateway params. + * @member {google.cloud.compute.v1.ITargetVpnGatewayParams|null|undefined} params + * @memberof google.cloud.compute.v1.TargetVpnGateway + * @instance + */ + TargetVpnGateway.prototype.params = null; + /** * TargetVpnGateway region. * @member {string|null|undefined} region @@ -566640,6 +575488,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(TargetVpnGateway.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(TargetVpnGateway.prototype, "_region", { get: $util.oneOfGetter($oneOfFields = ["region"]), @@ -566690,6 +575544,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.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.TargetVpnGatewayParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.tunnels != null && message.tunnels.length) for (var i = 0; i < message.tunnels.length; ++i) writer.uint32(/* id 104561931, wireType 2 =*/836495450).string(message.tunnels[i]); @@ -566804,6 +575660,10 @@ message.network = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.TargetVpnGatewayParams.decode(reader, reader.uint32()); + break; + } case 138946292: { message.region = reader.string(); break; @@ -566908,6 +575768,14 @@ if (!$util.isString(message.network)) return "network: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.TargetVpnGatewayParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -566980,6 +575848,11 @@ message.name = String(object.name); if (object.network != null) message.network = String(object.network); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.TargetVpnGateway.params: object expected"); + message.params = $root.google.cloud.compute.v1.TargetVpnGatewayParams.fromObject(object.params); + } if (object.region != null) message.region = String(object.region); if (object.selfLink != null) @@ -567038,6 +575911,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.TargetVpnGatewayParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.tunnels && message.tunnels.length) { object.tunnels = []; for (var j = 0; j < message.tunnels.length; ++j) @@ -567999,6 +576877,246 @@ return TargetVpnGatewayList; })(); + v1.TargetVpnGatewayParams = (function() { + + /** + * Properties of a TargetVpnGatewayParams. + * @memberof google.cloud.compute.v1 + * @interface ITargetVpnGatewayParams + * @property {Object.|null} [resourceManagerTags] TargetVpnGatewayParams resourceManagerTags + */ + + /** + * Constructs a new TargetVpnGatewayParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TargetVpnGatewayParams. + * @implements ITargetVpnGatewayParams + * @constructor + * @param {google.cloud.compute.v1.ITargetVpnGatewayParams=} [properties] Properties to set + */ + function TargetVpnGatewayParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TargetVpnGatewayParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @instance + */ + TargetVpnGatewayParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new TargetVpnGatewayParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.ITargetVpnGatewayParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TargetVpnGatewayParams} TargetVpnGatewayParams instance + */ + TargetVpnGatewayParams.create = function create(properties) { + return new TargetVpnGatewayParams(properties); + }; + + /** + * Encodes the specified TargetVpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1.TargetVpnGatewayParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.ITargetVpnGatewayParams} message TargetVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetVpnGatewayParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified TargetVpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TargetVpnGatewayParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.ITargetVpnGatewayParams} message TargetVpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetVpnGatewayParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @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.TargetVpnGatewayParams} TargetVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetVpnGatewayParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TargetVpnGatewayParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TargetVpnGatewayParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TargetVpnGatewayParams} TargetVpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetVpnGatewayParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TargetVpnGatewayParams message. + * @function verify + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TargetVpnGatewayParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a TargetVpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TargetVpnGatewayParams} TargetVpnGatewayParams + */ + TargetVpnGatewayParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TargetVpnGatewayParams) + return object; + var message = new $root.google.cloud.compute.v1.TargetVpnGatewayParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.TargetVpnGatewayParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a TargetVpnGatewayParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {google.cloud.compute.v1.TargetVpnGatewayParams} message TargetVpnGatewayParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TargetVpnGatewayParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this TargetVpnGatewayParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @instance + * @returns {Object.} JSON object + */ + TargetVpnGatewayParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TargetVpnGatewayParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TargetVpnGatewayParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TargetVpnGatewayParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TargetVpnGatewayParams"; + }; + + return TargetVpnGatewayParams; + })(); + v1.TargetVpnGatewaysScopedList = (function() { /** @@ -575546,30 +584664,590 @@ }; /** - * Decodes a TestIamPermissionsPacketMirroringRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsPacketMirroringRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsPacketMirroringRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsPacketMirroringRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsPacketMirroringRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsPacketMirroringRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + */ + TestIamPermissionsPacketMirroringRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsPacketMirroringRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest} message TestIamPermissionsPacketMirroringRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsPacketMirroringRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsPacketMirroringRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsPacketMirroringRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsPacketMirroringRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsPacketMirroringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest"; + }; + + return TestIamPermissionsPacketMirroringRequest; + })(); + + v1.TestIamPermissionsRegionAutoscalerRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionAutoscalerRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsRegionAutoscalerRequest + * @property {string|null} [project] TestIamPermissionsRegionAutoscalerRequest project + * @property {string|null} [region] TestIamPermissionsRegionAutoscalerRequest region + * @property {string|null} [resource] TestIamPermissionsRegionAutoscalerRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionAutoscalerRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionAutoscalerRequest. + * @implements ITestIamPermissionsRegionAutoscalerRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionAutoscalerRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionAutoscalerRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @instance + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionAutoscalerRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest instance + */ + TestIamPermissionsRegionAutoscalerRequest.create = function create(properties) { + return new TestIamPermissionsRegionAutoscalerRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionAutoscalerRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionAutoscalerRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @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.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionAutoscalerRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionAutoscalerRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsRegionAutoscalerRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + */ + TestIamPermissionsRegionAutoscalerRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionAutoscalerRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionAutoscalerRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsRegionAutoscalerRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionAutoscalerRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionAutoscalerRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest"; + }; + + return TestIamPermissionsRegionAutoscalerRequest; + })(); + + v1.TestIamPermissionsRegionBackendServiceRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsRegionBackendServiceRequest + * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project + * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionBackendServiceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. + * @implements ITestIamPermissionsRegionBackendServiceRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionBackendServiceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionBackendServiceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionBackendServiceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionBackendServiceRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @instance + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance + */ + TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionBackendServiceRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @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.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionBackendServiceRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsPacketMirroringRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsPacketMirroringRequest message. + * Verifies a TestIamPermissionsRegionBackendServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsPacketMirroringRequest.verify = function verify(message) { + TestIamPermissionsRegionBackendServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -575590,17 +585268,17 @@ }; /** - * Creates a TestIamPermissionsPacketMirroringRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest} TestIamPermissionsPacketMirroringRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest */ - TestIamPermissionsPacketMirroringRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest) + TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -575609,22 +585287,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsPacketMirroringRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionBackendServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest} message TestIamPermissionsPacketMirroringRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsPacketMirroringRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -575646,55 +585324,55 @@ }; /** - * Converts this TestIamPermissionsPacketMirroringRequest to JSON. + * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsPacketMirroringRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsPacketMirroringRequest + * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsPacketMirroringRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest"; }; - return TestIamPermissionsPacketMirroringRequest; + return TestIamPermissionsRegionBackendServiceRequest; })(); - v1.TestIamPermissionsRegionAutoscalerRequest = (function() { + v1.TestIamPermissionsRegionDiskRequest = (function() { /** - * Properties of a TestIamPermissionsRegionAutoscalerRequest. + * Properties of a TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionAutoscalerRequest - * @property {string|null} [project] TestIamPermissionsRegionAutoscalerRequest project - * @property {string|null} [region] TestIamPermissionsRegionAutoscalerRequest region - * @property {string|null} [resource] TestIamPermissionsRegionAutoscalerRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionDiskRequest + * @property {string|null} [project] TestIamPermissionsRegionDiskRequest project + * @property {string|null} [region] TestIamPermissionsRegionDiskRequest region + * @property {string|null} [resource] TestIamPermissionsRegionDiskRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionAutoscalerRequest. + * Constructs a new TestIamPermissionsRegionDiskRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionAutoscalerRequest. - * @implements ITestIamPermissionsRegionAutoscalerRequest + * @classdesc Represents a TestIamPermissionsRegionDiskRequest. + * @implements ITestIamPermissionsRegionDiskRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionAutoscalerRequest(properties) { + function TestIamPermissionsRegionDiskRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -575702,59 +585380,59 @@ } /** - * TestIamPermissionsRegionAutoscalerRequest project. + * TestIamPermissionsRegionDiskRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.project = ""; + TestIamPermissionsRegionDiskRequest.prototype.project = ""; /** - * TestIamPermissionsRegionAutoscalerRequest region. + * TestIamPermissionsRegionDiskRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.region = ""; + TestIamPermissionsRegionDiskRequest.prototype.region = ""; /** - * TestIamPermissionsRegionAutoscalerRequest resource. + * TestIamPermissionsRegionDiskRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.resource = ""; + TestIamPermissionsRegionDiskRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionAutoscalerRequest testPermissionsRequestResource. + * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance */ - TestIamPermissionsRegionAutoscalerRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionAutoscalerRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance */ - TestIamPermissionsRegionAutoscalerRequest.create = function create(properties) { - return new TestIamPermissionsRegionAutoscalerRequest(properties); + TestIamPermissionsRegionDiskRequest.create = function create(properties) { + return new TestIamPermissionsRegionDiskRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionAutoscalerRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionDiskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -575769,33 +585447,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionAutoscalerRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionAutoscalerRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @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.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionAutoscalerRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionDiskRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -575826,30 +585504,30 @@ }; /** - * Decodes a TestIamPermissionsRegionAutoscalerRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionAutoscalerRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionAutoscalerRequest message. + * Verifies a TestIamPermissionsRegionDiskRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionAutoscalerRequest.verify = function verify(message) { + TestIamPermissionsRegionDiskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -575870,17 +585548,17 @@ }; /** - * Creates a TestIamPermissionsRegionAutoscalerRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionDiskRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} TestIamPermissionsRegionAutoscalerRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest */ - TestIamPermissionsRegionAutoscalerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest) + TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -575889,22 +585567,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionAutoscalerRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionDiskRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest} message TestIamPermissionsRegionAutoscalerRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionAutoscalerRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -575926,55 +585604,55 @@ }; /** - * Converts this TestIamPermissionsRegionAutoscalerRequest to JSON. + * Converts this TestIamPermissionsRegionDiskRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionAutoscalerRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionAutoscalerRequest + * Gets the default type url for TestIamPermissionsRegionDiskRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionAutoscalerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionAutoscalerRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest"; }; - return TestIamPermissionsRegionAutoscalerRequest; + return TestIamPermissionsRegionDiskRequest; })(); - v1.TestIamPermissionsRegionBackendServiceRequest = (function() { + v1.TestIamPermissionsRegionHealthAggregationPolicyRequest = (function() { /** - * Properties of a TestIamPermissionsRegionBackendServiceRequest. + * Properties of a TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionBackendServiceRequest - * @property {string|null} [project] TestIamPermissionsRegionBackendServiceRequest project - * @property {string|null} [region] TestIamPermissionsRegionBackendServiceRequest region - * @property {string|null} [resource] TestIamPermissionsRegionBackendServiceRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthAggregationPolicyRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthAggregationPolicyRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthAggregationPolicyRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthAggregationPolicyRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionBackendServiceRequest. + * Constructs a new TestIamPermissionsRegionHealthAggregationPolicyRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionBackendServiceRequest. - * @implements ITestIamPermissionsRegionBackendServiceRequest + * @classdesc Represents a TestIamPermissionsRegionHealthAggregationPolicyRequest. + * @implements ITestIamPermissionsRegionHealthAggregationPolicyRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionBackendServiceRequest(properties) { + function TestIamPermissionsRegionHealthAggregationPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -575982,59 +585660,59 @@ } /** - * TestIamPermissionsRegionBackendServiceRequest project. + * TestIamPermissionsRegionHealthAggregationPolicyRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.project = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.project = ""; /** - * TestIamPermissionsRegionBackendServiceRequest region. + * TestIamPermissionsRegionHealthAggregationPolicyRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.region = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.region = ""; /** - * TestIamPermissionsRegionBackendServiceRequest resource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionBackendServiceRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthAggregationPolicyRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance */ - TestIamPermissionsRegionBackendServiceRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionBackendServiceRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthAggregationPolicyRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest instance */ - TestIamPermissionsRegionBackendServiceRequest.create = function create(properties) { - return new TestIamPermissionsRegionBackendServiceRequest(properties); + TestIamPermissionsRegionHealthAggregationPolicyRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthAggregationPolicyRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -576049,33 +585727,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthAggregationPolicyRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @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.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendServiceRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -576106,30 +585784,30 @@ }; /** - * Decodes a TestIamPermissionsRegionBackendServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthAggregationPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionBackendServiceRequest message. + * Verifies a TestIamPermissionsRegionHealthAggregationPolicyRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionBackendServiceRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -576150,17 +585828,17 @@ }; /** - * Creates a TestIamPermissionsRegionBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthAggregationPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} TestIamPermissionsRegionBackendServiceRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} TestIamPermissionsRegionHealthAggregationPolicyRequest */ - TestIamPermissionsRegionBackendServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest) + TestIamPermissionsRegionHealthAggregationPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -576169,22 +585847,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionBackendServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthAggregationPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest} message TestIamPermissionsRegionBackendServiceRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest} message TestIamPermissionsRegionHealthAggregationPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionBackendServiceRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -576206,55 +585884,55 @@ }; /** - * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. + * Converts this TestIamPermissionsRegionHealthAggregationPolicyRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthAggregationPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest + * Gets the default type url for TestIamPermissionsRegionHealthAggregationPolicyRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthAggregationPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest"; }; - return TestIamPermissionsRegionBackendServiceRequest; + return TestIamPermissionsRegionHealthAggregationPolicyRequest; })(); - v1.TestIamPermissionsRegionDiskRequest = (function() { + v1.TestIamPermissionsRegionHealthCheckRequest = (function() { /** - * Properties of a TestIamPermissionsRegionDiskRequest. + * Properties of a TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionDiskRequest - * @property {string|null} [project] TestIamPermissionsRegionDiskRequest project - * @property {string|null} [region] TestIamPermissionsRegionDiskRequest region - * @property {string|null} [resource] TestIamPermissionsRegionDiskRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionDiskRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthCheckRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthCheckRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthCheckRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionDiskRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionDiskRequest. - * @implements ITestIamPermissionsRegionDiskRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. + * @implements ITestIamPermissionsRegionHealthCheckRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionDiskRequest(properties) { + function TestIamPermissionsRegionHealthCheckRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -576262,59 +585940,59 @@ } /** - * TestIamPermissionsRegionDiskRequest project. + * TestIamPermissionsRegionHealthCheckRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; /** - * TestIamPermissionsRegionDiskRequest region. + * TestIamPermissionsRegionHealthCheckRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; /** - * TestIamPermissionsRegionDiskRequest resource. + * TestIamPermissionsRegionHealthCheckRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionDiskRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance */ - TestIamPermissionsRegionDiskRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionDiskRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance */ - TestIamPermissionsRegionDiskRequest.create = function create(properties) { - return new TestIamPermissionsRegionDiskRequest(properties); + TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthCheckRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -576329,33 +586007,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionDiskRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionDiskRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @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.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionDiskRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthCheckRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -576386,30 +586064,30 @@ }; /** - * Decodes a TestIamPermissionsRegionDiskRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionDiskRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionDiskRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionDiskRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthCheckRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -576430,17 +586108,17 @@ }; /** - * Creates a TestIamPermissionsRegionDiskRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthCheckRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} TestIamPermissionsRegionDiskRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest */ - TestIamPermissionsRegionDiskRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest) + TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -576449,22 +586127,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionDiskRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthCheckRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest} message TestIamPermissionsRegionDiskRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionDiskRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -576486,55 +586164,55 @@ }; /** - * Converts this TestIamPermissionsRegionDiskRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionDiskRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionDiskRequest + * Gets the default type url for TestIamPermissionsRegionHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionDiskRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest"; }; - return TestIamPermissionsRegionDiskRequest; + return TestIamPermissionsRegionHealthCheckRequest; })(); - v1.TestIamPermissionsRegionHealthCheckRequest = (function() { + v1.TestIamPermissionsRegionHealthCheckServiceRequest = (function() { /** - * Properties of a TestIamPermissionsRegionHealthCheckRequest. + * Properties of a TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsRegionHealthCheckRequest - * @property {string|null} [project] TestIamPermissionsRegionHealthCheckRequest project - * @property {string|null} [region] TestIamPermissionsRegionHealthCheckRequest region - * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource + * @interface ITestIamPermissionsRegionHealthCheckServiceRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthCheckServiceRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthCheckServiceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthCheckServiceRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsRegionHealthCheckRequest. + * Constructs a new TestIamPermissionsRegionHealthCheckServiceRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsRegionHealthCheckRequest. - * @implements ITestIamPermissionsRegionHealthCheckRequest + * @classdesc Represents a TestIamPermissionsRegionHealthCheckServiceRequest. + * @implements ITestIamPermissionsRegionHealthCheckServiceRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set */ - function TestIamPermissionsRegionHealthCheckRequest(properties) { + function TestIamPermissionsRegionHealthCheckServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -576542,59 +586220,59 @@ } /** - * TestIamPermissionsRegionHealthCheckRequest project. + * TestIamPermissionsRegionHealthCheckServiceRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.project = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.project = ""; /** - * TestIamPermissionsRegionHealthCheckRequest region. + * TestIamPermissionsRegionHealthCheckServiceRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.region = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.region = ""; /** - * TestIamPermissionsRegionHealthCheckRequest resource. + * TestIamPermissionsRegionHealthCheckServiceRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.resource = ""; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.resource = ""; /** - * TestIamPermissionsRegionHealthCheckRequest testPermissionsRequestResource. + * TestIamPermissionsRegionHealthCheckServiceRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance */ - TestIamPermissionsRegionHealthCheckRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsRegionHealthCheckRequest instance using the specified properties. + * Creates a new TestIamPermissionsRegionHealthCheckServiceRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest instance */ - TestIamPermissionsRegionHealthCheckRequest.create = function create(properties) { - return new TestIamPermissionsRegionHealthCheckRequest(properties); + TestIamPermissionsRegionHealthCheckServiceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthCheckServiceRequest(properties); }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.encode = function encode(message, writer) { + TestIamPermissionsRegionHealthCheckServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -576609,33 +586287,33 @@ }; /** - * Encodes the specified TestIamPermissionsRegionHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsRegionHealthCheckServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsRegionHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsRegionHealthCheckServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @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.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckRequest.decode = function decode(reader, length, error) { + TestIamPermissionsRegionHealthCheckServiceRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -576666,30 +586344,30 @@ }; /** - * Decodes a TestIamPermissionsRegionHealthCheckRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsRegionHealthCheckServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsRegionHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsRegionHealthCheckServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsRegionHealthCheckRequest message. + * Verifies a TestIamPermissionsRegionHealthCheckServiceRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsRegionHealthCheckRequest.verify = function verify(message) { + TestIamPermissionsRegionHealthCheckServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -576710,17 +586388,17 @@ }; /** - * Creates a TestIamPermissionsRegionHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsRegionHealthCheckServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} TestIamPermissionsRegionHealthCheckRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} TestIamPermissionsRegionHealthCheckServiceRequest */ - TestIamPermissionsRegionHealthCheckRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest) + TestIamPermissionsRegionHealthCheckServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest(); if (object.project != null) message.project = String(object.project); if (object.region != null) @@ -576729,22 +586407,22 @@ message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsRegionHealthCheckRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsRegionHealthCheckServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest} message TestIamPermissionsRegionHealthCheckRequest + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest} message TestIamPermissionsRegionHealthCheckServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsRegionHealthCheckRequest.toObject = function toObject(message, options) { + TestIamPermissionsRegionHealthCheckServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -576766,32 +586444,32 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthCheckRequest + * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest"; }; - return TestIamPermissionsRegionHealthCheckRequest; + return TestIamPermissionsRegionHealthCheckServiceRequest; })(); v1.TestIamPermissionsRegionInstanceGroupRequest = (function() { @@ -590914,6 +600592,346 @@ return UpdateReservationRequest; })(); + v1.UpdateReservationSlotRequest = (function() { + + /** + * Properties of an UpdateReservationSlotRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateReservationSlotRequest + * @property {string|null} [parentName] UpdateReservationSlotRequest parentName + * @property {string|null} [project] UpdateReservationSlotRequest project + * @property {string|null} [reservationSlot] UpdateReservationSlotRequest reservationSlot + * @property {google.cloud.compute.v1.IReservationSlot|null} [reservationSlotResource] UpdateReservationSlotRequest reservationSlotResource + * @property {string|null} [updateMask] UpdateReservationSlotRequest updateMask + * @property {string|null} [zone] UpdateReservationSlotRequest zone + */ + + /** + * Constructs a new UpdateReservationSlotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateReservationSlotRequest. + * @implements IUpdateReservationSlotRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateReservationSlotRequest=} [properties] Properties to set + */ + function UpdateReservationSlotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateReservationSlotRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.parentName = ""; + + /** + * UpdateReservationSlotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.project = ""; + + /** + * UpdateReservationSlotRequest reservationSlot. + * @member {string} reservationSlot + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.reservationSlot = ""; + + /** + * UpdateReservationSlotRequest reservationSlotResource. + * @member {google.cloud.compute.v1.IReservationSlot|null|undefined} reservationSlotResource + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.reservationSlotResource = null; + + /** + * UpdateReservationSlotRequest updateMask. + * @member {string|null|undefined} updateMask + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.updateMask = null; + + /** + * UpdateReservationSlotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @instance + */ + UpdateReservationSlotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateReservationSlotRequest.prototype, "_updateMask", { + get: $util.oneOfGetter($oneOfFields = ["updateMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateReservationSlotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateReservationSlotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateReservationSlotRequest} UpdateReservationSlotRequest instance + */ + UpdateReservationSlotRequest.create = function create(properties) { + return new UpdateReservationSlotRequest(properties); + }; + + /** + * Encodes the specified UpdateReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationSlotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateReservationSlotRequest} message UpdateReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReservationSlotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.reservationSlot != null && Object.hasOwnProperty.call(message, "reservationSlot")) + writer.uint32(/* id 277470865, wireType 2 =*/2219766922).string(message.reservationSlot); + if (message.reservationSlotResource != null && Object.hasOwnProperty.call(message, "reservationSlotResource")) + $root.google.cloud.compute.v1.ReservationSlot.encode(message.reservationSlotResource, writer.uint32(/* id 408545788, wireType 2 =*/3268366306).fork()).ldelim(); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + writer.uint32(/* id 500079778, wireType 2 =*/4000638226).string(message.updateMask); + return writer; + }; + + /** + * Encodes the specified UpdateReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationSlotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IUpdateReservationSlotRequest} message UpdateReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReservationSlotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @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.UpdateReservationSlotRequest} UpdateReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReservationSlotRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.UpdateReservationSlotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 478151936: { + message.parentName = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 277470865: { + message.reservationSlot = reader.string(); + break; + } + case 408545788: { + message.reservationSlotResource = $root.google.cloud.compute.v1.ReservationSlot.decode(reader, reader.uint32()); + break; + } + case 500079778: { + message.updateMask = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateReservationSlotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateReservationSlotRequest} UpdateReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReservationSlotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateReservationSlotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateReservationSlotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.parentName != null && message.hasOwnProperty("parentName")) + if (!$util.isString(message.parentName)) + return "parentName: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + if (!$util.isString(message.reservationSlot)) + return "reservationSlot: string expected"; + if (message.reservationSlotResource != null && message.hasOwnProperty("reservationSlotResource")) { + var error = $root.google.cloud.compute.v1.ReservationSlot.verify(message.reservationSlotResource); + if (error) + return "reservationSlotResource." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + properties._updateMask = 1; + if (!$util.isString(message.updateMask)) + return "updateMask: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateReservationSlotRequest} UpdateReservationSlotRequest + */ + UpdateReservationSlotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateReservationSlotRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateReservationSlotRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.reservationSlot != null) + message.reservationSlot = String(object.reservationSlot); + if (object.reservationSlotResource != null) { + if (typeof object.reservationSlotResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateReservationSlotRequest.reservationSlotResource: object expected"); + message.reservationSlotResource = $root.google.cloud.compute.v1.ReservationSlot.fromObject(object.reservationSlotResource); + } + if (object.updateMask != null) + message.updateMask = String(object.updateMask); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateReservationSlotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.UpdateReservationSlotRequest} message UpdateReservationSlotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateReservationSlotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.reservationSlot = ""; + object.reservationSlotResource = null; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + object.reservationSlot = message.reservationSlot; + if (message.reservationSlotResource != null && message.hasOwnProperty("reservationSlotResource")) + object.reservationSlotResource = $root.google.cloud.compute.v1.ReservationSlot.toObject(message.reservationSlotResource, options); + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + object.updateMask = message.updateMask; + if (options.oneofs) + object._updateMask = "updateMask"; + } + return object; + }; + + /** + * Converts this UpdateReservationSlotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateReservationSlotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateReservationSlotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.UpdateReservationSlotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateReservationSlotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.UpdateReservationSlotRequest"; + }; + + return UpdateReservationSlotRequest; + })(); + v1.UpdateRoutePolicyRouterRequest = (function() { /** @@ -600059,6 +610077,7 @@ * @property {Object.|null} [labels] VpnGateway labels * @property {string|null} [name] VpnGateway name * @property {string|null} [network] VpnGateway network + * @property {google.cloud.compute.v1.IVpnGatewayParams|null} [params] VpnGateway params * @property {string|null} [region] VpnGateway region * @property {string|null} [selfLink] VpnGateway selfLink * @property {string|null} [stackType] VpnGateway stackType @@ -600154,6 +610173,14 @@ */ VpnGateway.prototype.network = null; + /** + * VpnGateway params. + * @member {google.cloud.compute.v1.IVpnGatewayParams|null|undefined} params + * @memberof google.cloud.compute.v1.VpnGateway + * @instance + */ + VpnGateway.prototype.params = null; + /** * VpnGateway region. * @member {string|null|undefined} region @@ -600237,6 +610264,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(VpnGateway.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(VpnGateway.prototype, "_region", { get: $util.oneOfGetter($oneOfFields = ["region"]), @@ -600289,6 +610322,8 @@ writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.gatewayIpVersion != null && Object.hasOwnProperty.call(message, "gatewayIpVersion")) writer.uint32(/* id 65074843, wireType 2 =*/520598746).string(message.gatewayIpVersion); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.VpnGatewayParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.vpnInterfaces != null && message.vpnInterfaces.length) for (var i = 0; i < message.vpnInterfaces.length; ++i) $root.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.encode(message.vpnInterfaces[i], writer.uint32(/* id 91842181, wireType 2 =*/734737450).fork()).ldelim(); @@ -600398,6 +610433,10 @@ message.network = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.VpnGatewayParams.decode(reader, reader.uint32()); + break; + } case 138946292: { message.region = reader.string(); break; @@ -600500,6 +610539,14 @@ if (!$util.isString(message.network)) return "network: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.VpnGatewayParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -600569,6 +610616,11 @@ message.name = String(object.name); if (object.network != null) message.network = String(object.network); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.VpnGateway.params: object expected"); + message.params = $root.google.cloud.compute.v1.VpnGatewayParams.fromObject(object.params); + } if (object.region != null) message.region = String(object.region); if (object.selfLink != null) @@ -600633,6 +610685,11 @@ if (options.oneofs) object._gatewayIpVersion = "gatewayIpVersion"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.VpnGatewayParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.vpnInterfaces && message.vpnInterfaces.length) { object.vpnInterfaces = []; for (var j = 0; j < message.vpnInterfaces.length; ++j) @@ -601603,6 +611660,246 @@ return VpnGatewayList; })(); + v1.VpnGatewayParams = (function() { + + /** + * Properties of a VpnGatewayParams. + * @memberof google.cloud.compute.v1 + * @interface IVpnGatewayParams + * @property {Object.|null} [resourceManagerTags] VpnGatewayParams resourceManagerTags + */ + + /** + * Constructs a new VpnGatewayParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a VpnGatewayParams. + * @implements IVpnGatewayParams + * @constructor + * @param {google.cloud.compute.v1.IVpnGatewayParams=} [properties] Properties to set + */ + function VpnGatewayParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VpnGatewayParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @instance + */ + VpnGatewayParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new VpnGatewayParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1.IVpnGatewayParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VpnGatewayParams} VpnGatewayParams instance + */ + VpnGatewayParams.create = function create(properties) { + return new VpnGatewayParams(properties); + }; + + /** + * Encodes the specified VpnGatewayParams message. Does not implicitly {@link google.cloud.compute.v1.VpnGatewayParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1.IVpnGatewayParams} message VpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnGatewayParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified VpnGatewayParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.VpnGatewayParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1.IVpnGatewayParams} message VpnGatewayParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnGatewayParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @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.VpnGatewayParams} VpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnGatewayParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.VpnGatewayParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VpnGatewayParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.VpnGatewayParams} VpnGatewayParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnGatewayParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VpnGatewayParams message. + * @function verify + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VpnGatewayParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a VpnGatewayParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VpnGatewayParams} VpnGatewayParams + */ + VpnGatewayParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VpnGatewayParams) + return object; + var message = new $root.google.cloud.compute.v1.VpnGatewayParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.VpnGatewayParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a VpnGatewayParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {google.cloud.compute.v1.VpnGatewayParams} message VpnGatewayParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VpnGatewayParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this VpnGatewayParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @instance + * @returns {Object.} JSON object + */ + VpnGatewayParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VpnGatewayParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.VpnGatewayParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VpnGatewayParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.VpnGatewayParams"; + }; + + return VpnGatewayParams; + })(); + v1.VpnGatewayStatus = (function() { /** @@ -603556,6 +613853,7 @@ * @property {Object.|null} [labels] VpnTunnel labels * @property {Array.|null} [localTrafficSelector] VpnTunnel localTrafficSelector * @property {string|null} [name] VpnTunnel name + * @property {google.cloud.compute.v1.IVpnTunnelParams|null} [params] VpnTunnel params * @property {string|null} [peerExternalGateway] VpnTunnel peerExternalGateway * @property {number|null} [peerExternalGatewayInterface] VpnTunnel peerExternalGatewayInterface * @property {string|null} [peerGcpGateway] VpnTunnel peerGcpGateway @@ -603678,6 +613976,14 @@ */ VpnTunnel.prototype.name = null; + /** + * VpnTunnel params. + * @member {google.cloud.compute.v1.IVpnTunnelParams|null|undefined} params + * @memberof google.cloud.compute.v1.VpnTunnel + * @instance + */ + VpnTunnel.prototype.params = null; + /** * VpnTunnel peerExternalGateway. * @member {string|null|undefined} peerExternalGateway @@ -603847,6 +614153,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(VpnTunnel.prototype, "_params", { + get: $util.oneOfGetter($oneOfFields = ["params"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(VpnTunnel.prototype, "_peerExternalGateway", { get: $util.oneOfGetter($oneOfFields = ["peerExternalGateway"]), @@ -603957,6 +614269,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.params != null && Object.hasOwnProperty.call(message, "params")) + $root.google.cloud.compute.v1.VpnTunnelParams.encode(message.params, writer.uint32(/* id 78313862, wireType 2 =*/626510898).fork()).ldelim(); if (message.vpnGatewayInterface != null && Object.hasOwnProperty.call(message, "vpnGatewayInterface")) writer.uint32(/* id 95979123, wireType 0 =*/767832984).int32(message.vpnGatewayInterface); if (message.region != null && Object.hasOwnProperty.call(message, "region")) @@ -604103,6 +614417,10 @@ message.name = reader.string(); break; } + case 78313862: { + message.params = $root.google.cloud.compute.v1.VpnTunnelParams.decode(reader, reader.uint32()); + break; + } case 384956173: { message.peerExternalGateway = reader.string(); break; @@ -604260,6 +614578,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.params != null && message.hasOwnProperty("params")) { + properties._params = 1; + { + var error = $root.google.cloud.compute.v1.VpnTunnelParams.verify(message.params); + if (error) + return "params." + error; + } + } if (message.peerExternalGateway != null && message.hasOwnProperty("peerExternalGateway")) { properties._peerExternalGateway = 1; if (!$util.isString(message.peerExternalGateway)) @@ -604389,6 +614715,11 @@ } if (object.name != null) message.name = String(object.name); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".google.cloud.compute.v1.VpnTunnel.params: object expected"); + message.params = $root.google.cloud.compute.v1.VpnTunnelParams.fromObject(object.params); + } if (object.peerExternalGateway != null) message.peerExternalGateway = String(object.peerExternalGateway); if (object.peerExternalGatewayInterface != null) @@ -604467,6 +614798,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.params != null && message.hasOwnProperty("params")) { + object.params = $root.google.cloud.compute.v1.VpnTunnelParams.toObject(message.params, options); + if (options.oneofs) + object._params = "params"; + } if (message.vpnGatewayInterface != null && message.hasOwnProperty("vpnGatewayInterface")) { object.vpnGatewayInterface = message.vpnGatewayInterface; if (options.oneofs) @@ -605769,6 +616105,246 @@ return VpnTunnelList; })(); + v1.VpnTunnelParams = (function() { + + /** + * Properties of a VpnTunnelParams. + * @memberof google.cloud.compute.v1 + * @interface IVpnTunnelParams + * @property {Object.|null} [resourceManagerTags] VpnTunnelParams resourceManagerTags + */ + + /** + * Constructs a new VpnTunnelParams. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a VpnTunnelParams. + * @implements IVpnTunnelParams + * @constructor + * @param {google.cloud.compute.v1.IVpnTunnelParams=} [properties] Properties to set + */ + function VpnTunnelParams(properties) { + this.resourceManagerTags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VpnTunnelParams resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @instance + */ + VpnTunnelParams.prototype.resourceManagerTags = $util.emptyObject; + + /** + * Creates a new VpnTunnelParams instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1.IVpnTunnelParams=} [properties] Properties to set + * @returns {google.cloud.compute.v1.VpnTunnelParams} VpnTunnelParams instance + */ + VpnTunnelParams.create = function create(properties) { + return new VpnTunnelParams(properties); + }; + + /** + * Encodes the specified VpnTunnelParams message. Does not implicitly {@link google.cloud.compute.v1.VpnTunnelParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1.IVpnTunnelParams} message VpnTunnelParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnTunnelParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified VpnTunnelParams message, length delimited. Does not implicitly {@link google.cloud.compute.v1.VpnTunnelParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1.IVpnTunnelParams} message VpnTunnelParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VpnTunnelParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @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.VpnTunnelParams} VpnTunnelParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnTunnelParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.VpnTunnelParams(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 377671164: { + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourceManagerTags[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VpnTunnelParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.VpnTunnelParams} VpnTunnelParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VpnTunnelParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VpnTunnelParams message. + * @function verify + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VpnTunnelParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a VpnTunnelParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.VpnTunnelParams} VpnTunnelParams + */ + VpnTunnelParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.VpnTunnelParams) + return object; + var message = new $root.google.cloud.compute.v1.VpnTunnelParams(); + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.VpnTunnelParams.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a VpnTunnelParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {google.cloud.compute.v1.VpnTunnelParams} message VpnTunnelParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VpnTunnelParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceManagerTags = {}; + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } + return object; + }; + + /** + * Converts this VpnTunnelParams to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @instance + * @returns {Object.} JSON object + */ + VpnTunnelParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VpnTunnelParams + * @function getTypeUrl + * @memberof google.cloud.compute.v1.VpnTunnelParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VpnTunnelParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.VpnTunnelParams"; + }; + + return VpnTunnelParams; + })(); + v1.VpnTunnelPhase1Algorithms = (function() { /** @@ -612565,6 +623141,257 @@ return WithdrawPublicDelegatedPrefixeRequest; })(); + v1.WorkloadIdentityConfig = (function() { + + /** + * Properties of a WorkloadIdentityConfig. + * @memberof google.cloud.compute.v1 + * @interface IWorkloadIdentityConfig + * @property {string|null} [identity] WorkloadIdentityConfig identity + * @property {boolean|null} [identityCertificateEnabled] WorkloadIdentityConfig identityCertificateEnabled + */ + + /** + * Constructs a new WorkloadIdentityConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a WorkloadIdentityConfig. + * @implements IWorkloadIdentityConfig + * @constructor + * @param {google.cloud.compute.v1.IWorkloadIdentityConfig=} [properties] Properties to set + */ + function WorkloadIdentityConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkloadIdentityConfig identity. + * @member {string|null|undefined} identity + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @instance + */ + WorkloadIdentityConfig.prototype.identity = null; + + /** + * WorkloadIdentityConfig identityCertificateEnabled. + * @member {boolean|null|undefined} identityCertificateEnabled + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @instance + */ + WorkloadIdentityConfig.prototype.identityCertificateEnabled = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(WorkloadIdentityConfig.prototype, "_identity", { + get: $util.oneOfGetter($oneOfFields = ["identity"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(WorkloadIdentityConfig.prototype, "_identityCertificateEnabled", { + get: $util.oneOfGetter($oneOfFields = ["identityCertificateEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkloadIdentityConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1.IWorkloadIdentityConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.WorkloadIdentityConfig} WorkloadIdentityConfig instance + */ + WorkloadIdentityConfig.create = function create(properties) { + return new WorkloadIdentityConfig(properties); + }; + + /** + * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.cloud.compute.v1.WorkloadIdentityConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkloadIdentityConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.identityCertificateEnabled != null && Object.hasOwnProperty.call(message, "identityCertificateEnabled")) + writer.uint32(/* id 342892440, wireType 0 =*/2743139520).bool(message.identityCertificateEnabled); + if (message.identity != null && Object.hasOwnProperty.call(message, "identity")) + writer.uint32(/* id 401109182, wireType 2 =*/3208873458).string(message.identity); + return writer; + }; + + /** + * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.WorkloadIdentityConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkloadIdentityConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @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.WorkloadIdentityConfig} WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkloadIdentityConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.WorkloadIdentityConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 401109182: { + message.identity = reader.string(); + break; + } + case 342892440: { + message.identityCertificateEnabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.WorkloadIdentityConfig} WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkloadIdentityConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WorkloadIdentityConfig message. + * @function verify + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkloadIdentityConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.identity != null && message.hasOwnProperty("identity")) { + properties._identity = 1; + if (!$util.isString(message.identity)) + return "identity: string expected"; + } + if (message.identityCertificateEnabled != null && message.hasOwnProperty("identityCertificateEnabled")) { + properties._identityCertificateEnabled = 1; + if (typeof message.identityCertificateEnabled !== "boolean") + return "identityCertificateEnabled: boolean expected"; + } + return null; + }; + + /** + * Creates a WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.WorkloadIdentityConfig} WorkloadIdentityConfig + */ + WorkloadIdentityConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.WorkloadIdentityConfig) + return object; + var message = new $root.google.cloud.compute.v1.WorkloadIdentityConfig(); + if (object.identity != null) + message.identity = String(object.identity); + if (object.identityCertificateEnabled != null) + message.identityCertificateEnabled = Boolean(object.identityCertificateEnabled); + return message; + }; + + /** + * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {google.cloud.compute.v1.WorkloadIdentityConfig} message WorkloadIdentityConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WorkloadIdentityConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.identityCertificateEnabled != null && message.hasOwnProperty("identityCertificateEnabled")) { + object.identityCertificateEnabled = message.identityCertificateEnabled; + if (options.oneofs) + object._identityCertificateEnabled = "identityCertificateEnabled"; + } + if (message.identity != null && message.hasOwnProperty("identity")) { + object.identity = message.identity; + if (options.oneofs) + object._identity = "identity"; + } + return object; + }; + + /** + * Converts this WorkloadIdentityConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @instance + * @returns {Object.} JSON object + */ + WorkloadIdentityConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for WorkloadIdentityConfig + * @function getTypeUrl + * @memberof google.cloud.compute.v1.WorkloadIdentityConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkloadIdentityConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.WorkloadIdentityConfig"; + }; + + return WorkloadIdentityConfig; + })(); + v1.XpnHostList = (function() { /** @@ -634560,6 +645387,272 @@ return RegionDisks; })(); + v1.RegionHealthAggregationPolicies = (function() { + + /** + * Constructs a new RegionHealthAggregationPolicies service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionHealthAggregationPolicies + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RegionHealthAggregationPolicies(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionHealthAggregationPolicies.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionHealthAggregationPolicies; + + /** + * Creates new RegionHealthAggregationPolicies service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RegionHealthAggregationPolicies} RPC service. Useful where requests and/or responses are streamed. + */ + RegionHealthAggregationPolicies.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|aggregatedList}. + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthAggregationPolicyAggregatedList} [response] HealthAggregationPolicyAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedListCallback} callback Node-style callback called with the error, if any, and HealthAggregationPolicyAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest, $root.google.cloud.compute.v1.HealthAggregationPolicyAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} request AggregatedListRegionHealthAggregationPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|delete_}. + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest} request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthAggregationPolicies.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest} request DeleteRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|get}. + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthAggregationPolicy} [response] HealthAggregationPolicy + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest} request GetRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthAggregationPolicies.GetCallback} callback Node-style callback called with the error, if any, and HealthAggregationPolicy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1.HealthAggregationPolicy, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest} request GetRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|insert}. + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest} request InsertRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthAggregationPolicies.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest} request InsertRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|list}. + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthAggregationPolicyList} [response] HealthAggregationPolicyList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} request ListRegionHealthAggregationPoliciesRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthAggregationPolicies.ListCallback} callback Node-style callback called with the error, if any, and HealthAggregationPolicyList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest, $root.google.cloud.compute.v1.HealthAggregationPolicyList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} request ListRegionHealthAggregationPoliciesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|patch}. + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @typedef PatchCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest} request PatchRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthAggregationPolicies.PatchCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.patch = function patch(request, callback) { + return this.rpcCall(patch, $root.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest} request PatchRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthAggregationPolicies|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthAggregationPolicies.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionHealthAggregationPolicies + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest} request TestIamPermissionsRegionHealthAggregationPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionHealthAggregationPolicies; + })(); + v1.RegionHealthCheckServices = (function() { /** @@ -634757,6 +645850,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthCheckServices|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionHealthCheckServices + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionHealthCheckServices + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} request TestIamPermissionsRegionHealthCheckServiceRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthCheckServices.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionHealthCheckServices + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest} request TestIamPermissionsRegionHealthCheckServiceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return RegionHealthCheckServices; })(); @@ -639849,6 +650975,140 @@ return ReservationBlocks; })(); + v1.ReservationSlots = (function() { + + /** + * Constructs a new ReservationSlots service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSlots + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function ReservationSlots(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ReservationSlots.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ReservationSlots; + + /** + * Creates new ReservationSlots service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.ReservationSlots + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ReservationSlots} RPC service. Useful where requests and/or responses are streamed. + */ + ReservationSlots.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|get}. + * @memberof google.cloud.compute.v1.ReservationSlots + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.ReservationSlotsGetResponse} [response] ReservationSlotsGetResponse + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IGetReservationSlotRequest} request GetReservationSlotRequest message or plain object + * @param {google.cloud.compute.v1.ReservationSlots.GetCallback} callback Node-style callback called with the error, if any, and ReservationSlotsGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetReservationSlotRequest, $root.google.cloud.compute.v1.ReservationSlotsGetResponse, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IGetReservationSlotRequest} request GetReservationSlotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|list}. + * @memberof google.cloud.compute.v1.ReservationSlots + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.ReservationSlotsListResponse} [response] ReservationSlotsListResponse + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IListReservationSlotsRequest} request ListReservationSlotsRequest message or plain object + * @param {google.cloud.compute.v1.ReservationSlots.ListCallback} callback Node-style callback called with the error, if any, and ReservationSlotsListResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListReservationSlotsRequest, $root.google.cloud.compute.v1.ReservationSlotsListResponse, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IListReservationSlotsRequest} request ListReservationSlotsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|update}. + * @memberof google.cloud.compute.v1.ReservationSlots + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IUpdateReservationSlotRequest} request UpdateReservationSlotRequest message or plain object + * @param {google.cloud.compute.v1.ReservationSlots.UpdateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.update = function update(request, callback) { + return this.rpcCall(update, $root.google.cloud.compute.v1.UpdateReservationSlotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IUpdateReservationSlotRequest} request UpdateReservationSlotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ReservationSlots; + })(); + v1.ReservationSubBlocks = (function() { /** diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index a26cbf6c9b8..1174cc4970a 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -5023,6 +5023,103 @@ } } }, + "AggregatedListRegionHealthAggregationPoliciesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "includeAllScopes": { + "type": "bool", + "id": 391327988, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "serviceProjectNumber": { + "type": "int64", + "id": 316757497, + "options": { + "proto3_optional": true + } + } + } + }, "AggregatedListReservationsRequest": { "oneofs": { "_filter": { @@ -9052,6 +9149,11 @@ "maxUtilization" ] }, + "_orchestrationInfo": { + "oneof": [ + "orchestrationInfo" + ] + }, "_preference": { "oneof": [ "preference" @@ -9148,6 +9250,13 @@ "proto3_optional": true } }, + "orchestrationInfo": { + "type": "BackendBackendOrchestrationInfo", + "id": 441144300, + "options": { + "proto3_optional": true + } + }, "preference": { "type": "string", "id": 150781147, @@ -9176,6 +9285,24 @@ } } }, + "BackendBackendOrchestrationInfo": { + "oneofs": { + "_resourceUri": { + "oneof": [ + "resourceUri" + ] + } + }, + "fields": { + "resourceUri": { + "type": "string", + "id": 152830395, + "options": { + "proto3_optional": true + } + } + } + }, "BackendBucket": { "oneofs": { "_bucketName": { @@ -9842,6 +9969,11 @@ "networkPassThroughLbTrafficPolicy" ] }, + "_orchestrationInfo": { + "oneof": [ + "orchestrationInfo" + ] + }, "_outlierDetection": { "oneof": [ "outlierDetection" @@ -10143,6 +10275,13 @@ "proto3_optional": true } }, + "orchestrationInfo": { + "type": "BackendServiceOrchestrationInfo", + "id": 441144300, + "options": { + "proto3_optional": true + } + }, "outlierDetection": { "type": "OutlierDetection", "id": 354625086, @@ -11311,6 +11450,24 @@ } } }, + "BackendServiceOrchestrationInfo": { + "oneofs": { + "_resourceUri": { + "oneof": [ + "resourceUri" + ] + } + }, + "fields": { + "resourceUri": { + "type": "string", + "id": 152830395, + "options": { + "proto3_optional": true + } + } + } + }, "BackendServiceParams": { "fields": { "resourceManagerTags": { @@ -12522,6 +12679,36 @@ } } }, + "BundledLocalSsds": { + "oneofs": { + "_defaultInterface": { + "oneof": [ + "defaultInterface" + ] + }, + "_partitionCount": { + "oneof": [ + "partitionCount" + ] + } + }, + "fields": { + "defaultInterface": { + "type": "string", + "id": 17309883, + "options": { + "proto3_optional": true + } + }, + "partitionCount": { + "type": "int32", + "id": 408514426, + "options": { + "proto3_optional": true + } + } + } + }, "CacheInvalidationRule": { "oneofs": { "_host": { @@ -13263,6 +13450,7 @@ "GENERAL_PURPOSE_N2": 301912156, "GENERAL_PURPOSE_N2D": 232471400, "GENERAL_PURPOSE_N4": 301912158, + "GENERAL_PURPOSE_N4A": 232471459, "GENERAL_PURPOSE_N4D": 232471462, "GENERAL_PURPOSE_T2D": 232477166, "GRAPHICS_OPTIMIZED": 68500563, @@ -16285,48 +16473,7 @@ } } }, - "DeleteRegionHealthCheckRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "healthCheck": { - "type": "string", - "id": 308876645, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - } - } - }, - "DeleteRegionHealthCheckServiceRequest": { + "DeleteRegionHealthAggregationPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -16335,9 +16482,9 @@ } }, "fields": { - "healthCheckService": { + "healthAggregationPolicy": { "type": "string", - "id": 408374747, + "id": 240314354, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -16367,7 +16514,7 @@ } } }, - "DeleteRegionInstanceGroupManagerRequest": { + "DeleteRegionHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -16376,9 +16523,9 @@ } }, "fields": { - "instanceGroupManager": { + "healthCheck": { "type": "string", - "id": 249363395, + "id": 308876645, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -16408,7 +16555,7 @@ } } }, - "DeleteRegionInstanceTemplateRequest": { + "DeleteRegionHealthCheckServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -16417,9 +16564,9 @@ } }, "fields": { - "instanceTemplate": { + "healthCheckService": { "type": "string", - "id": 309248228, + "id": 408374747, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -16449,7 +16596,7 @@ } } }, - "DeleteRegionInstantSnapshotRequest": { + "DeleteRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -16458,9 +16605,9 @@ } }, "fields": { - "instantSnapshot": { + "instanceGroupManager": { "type": "string", - "id": 391638626, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -16490,7 +16637,7 @@ } } }, - "DeleteRegionNetworkEndpointGroupRequest": { + "DeleteRegionInstanceTemplateRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -16499,9 +16646,91 @@ } }, "fields": { - "networkEndpointGroup": { + "instanceTemplate": { "type": "string", - "id": 433907078, + "id": 309248228, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "DeleteRegionInstantSnapshotRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instantSnapshot": { + "type": "string", + "id": 391638626, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, + "DeleteRegionNetworkEndpointGroupRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "networkEndpointGroup": { + "type": "string", + "id": 433907078, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -20273,6 +20502,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_redundancyType": { "oneof": [ "redundancyType" @@ -20337,6 +20571,13 @@ "proto3_optional": true } }, + "params": { + "type": "ExternalVpnGatewayParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "redundancyType": { "type": "string", "id": 271443740, @@ -20488,6 +20729,15 @@ } } }, + "ExternalVpnGatewayParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "FileContentBuffer": { "oneofs": { "_content": { @@ -26798,161 +27048,186 @@ } } }, - "GetRegionHealthCheckRequest": { - "fields": { - "healthCheck": { - "type": "string", - "id": 308876645, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetRegionHealthCheckServiceRequest": { - "fields": { - "healthCheckService": { - "type": "string", - "id": 408374747, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetRegionInstanceGroupManagerRequest": { - "fields": { - "instanceGroupManager": { - "type": "string", - "id": 249363395, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetRegionInstanceGroupRequest": { - "fields": { - "instanceGroup": { - "type": "string", - "id": 81095253, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetRegionInstanceTemplateRequest": { - "fields": { - "instanceTemplate": { - "type": "string", - "id": 309248228, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetRegionInstantSnapshotRequest": { - "fields": { - "instantSnapshot": { - "type": "string", - "id": 391638626, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetRegionNetworkEndpointGroupRequest": { + "GetRegionHealthAggregationPolicyRequest": { "fields": { - "networkEndpointGroup": { + "healthAggregationPolicy": { "type": "string", - "id": 433907078, + "id": 240314354, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionHealthCheckRequest": { + "fields": { + "healthCheck": { + "type": "string", + "id": 308876645, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionHealthCheckServiceRequest": { + "fields": { + "healthCheckService": { + "type": "string", + "id": 408374747, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionInstanceGroupManagerRequest": { + "fields": { + "instanceGroupManager": { + "type": "string", + "id": 249363395, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionInstanceGroupRequest": { + "fields": { + "instanceGroup": { + "type": "string", + "id": 81095253, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionInstanceTemplateRequest": { + "fields": { + "instanceTemplate": { + "type": "string", + "id": 309248228, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionInstantSnapshotRequest": { + "fields": { + "instantSnapshot": { + "type": "string", + "id": 391638626, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetRegionNetworkEndpointGroupRequest": { + "fields": { + "networkEndpointGroup": { + "type": "string", + "id": 433907078, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -27323,6 +27598,38 @@ } } }, + "GetReservationSlotRequest": { + "fields": { + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSlot": { + "type": "string", + "id": 277470865, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetReservationSubBlockRequest": { "oneofs": { "_view": { @@ -29178,13 +29485,31 @@ } } }, - "HealthCheck": { + "HealthAggregationPoliciesScopedList": { "oneofs": { - "_checkIntervalSec": { + "_warning": { "oneof": [ - "checkIntervalSec" + "warning" ] + } + }, + "fields": { + "healthAggregationPolicies": { + "rule": "repeated", + "type": "HealthAggregationPolicy", + "id": 87589904 }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthAggregationPolicy": { + "oneofs": { "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -29195,34 +29520,14 @@ "description" ] }, - "_grpcHealthCheck": { - "oneof": [ - "grpcHealthCheck" - ] - }, - "_grpcTlsHealthCheck": { - "oneof": [ - "grpcTlsHealthCheck" - ] - }, - "_healthyThreshold": { - "oneof": [ - "healthyThreshold" - ] - }, - "_http2HealthCheck": { - "oneof": [ - "http2HealthCheck" - ] - }, - "_httpHealthCheck": { + "_fingerprint": { "oneof": [ - "httpHealthCheck" + "fingerprint" ] }, - "_httpsHealthCheck": { + "_healthyPercentThreshold": { "oneof": [ - "httpsHealthCheck" + "healthyPercentThreshold" ] }, "_id": { @@ -29235,9 +29540,9 @@ "kind" ] }, - "_logConfig": { + "_minHealthyThreshold": { "oneof": [ - "logConfig" + "minHealthyThreshold" ] }, "_name": { @@ -29245,6 +29550,11 @@ "name" ] }, + "_policyType": { + "oneof": [ + "policyType" + ] + }, "_region": { "oneof": [ "region" @@ -29255,40 +29565,13 @@ "selfLink" ] }, - "_sslHealthCheck": { - "oneof": [ - "sslHealthCheck" - ] - }, - "_tcpHealthCheck": { - "oneof": [ - "tcpHealthCheck" - ] - }, - "_timeoutSec": { - "oneof": [ - "timeoutSec" - ] - }, - "_type": { - "oneof": [ - "type" - ] - }, - "_unhealthyThreshold": { + "_selfLinkWithId": { "oneof": [ - "unhealthyThreshold" + "selfLinkWithId" ] } }, "fields": { - "checkIntervalSec": { - "type": "int32", - "id": 345561006, - "options": { - "proto3_optional": true - } - }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -29303,44 +29586,16 @@ "proto3_optional": true } }, - "grpcHealthCheck": { - "type": "GRPCHealthCheck", - "id": 85529574, - "options": { - "proto3_optional": true - } - }, - "grpcTlsHealthCheck": { - "type": "GRPCTLSHealthCheck", - "id": 267273258, - "options": { - "proto3_optional": true - } - }, - "healthyThreshold": { - "type": "int32", - "id": 403212361, - "options": { - "proto3_optional": true - } - }, - "http2HealthCheck": { - "type": "HTTP2HealthCheck", - "id": 11360986, - "options": { - "proto3_optional": true - } - }, - "httpHealthCheck": { - "type": "HTTPHealthCheck", - "id": 412586940, + "fingerprint": { + "type": "string", + "id": 234678500, "options": { "proto3_optional": true } }, - "httpsHealthCheck": { - "type": "HTTPSHealthCheck", - "id": 436046905, + "healthyPercentThreshold": { + "type": "uint32", + "id": 72242895, "options": { "proto3_optional": true } @@ -29359,9 +29614,9 @@ "proto3_optional": true } }, - "logConfig": { - "type": "HealthCheckLogConfig", - "id": 351299741, + "minHealthyThreshold": { + "type": "uint32", + "id": 132310940, "options": { "proto3_optional": true } @@ -29373,78 +29628,459 @@ "proto3_optional": true } }, - "region": { + "policyType": { "type": "string", - "id": 138946292, + "id": 18158119, "options": { "proto3_optional": true } }, - "selfLink": { + "region": { "type": "string", - "id": 456214797, + "id": 138946292, "options": { "proto3_optional": true } }, - "sourceRegions": { - "rule": "repeated", + "selfLink": { "type": "string", - "id": 405568475 - }, - "sslHealthCheck": { - "type": "SSLHealthCheck", - "id": 280032440, - "options": { - "proto3_optional": true - } - }, - "tcpHealthCheck": { - "type": "TCPHealthCheck", - "id": 469980419, - "options": { - "proto3_optional": true - } - }, - "timeoutSec": { - "type": "int32", - "id": 79994995, + "id": 456214797, "options": { "proto3_optional": true } }, - "type": { + "selfLinkWithId": { "type": "string", - "id": 3575610, - "options": { - "proto3_optional": true - } - }, - "unhealthyThreshold": { - "type": "int32", - "id": 227958480, + "id": 44520962, "options": { "proto3_optional": true } } }, "nested": { - "Type": { + "PolicyType": { "values": { - "UNDEFINED_TYPE": 0, - "GRPC": 2196510, - "GRPC_WITH_TLS": 268089571, - "HTTP": 2228360, - "HTTP2": 69079210, - "HTTPS": 69079243, - "INVALID": 530283991, - "SSL": 82412, - "TCP": 82881 + "UNDEFINED_POLICY_TYPE": 0, + "BACKEND_SERVICE_POLICY": 415582023, + "DNS_PUBLIC_IP_POLICY": 366354794 } } } }, - "HealthCheckList": { + "HealthAggregationPolicyAggregatedList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "keyType": "string", + "type": "HealthAggregationPoliciesScopedList", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthAggregationPolicyList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "HealthAggregationPolicy", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthCheck": { + "oneofs": { + "_checkIntervalSec": { + "oneof": [ + "checkIntervalSec" + ] + }, + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_grpcHealthCheck": { + "oneof": [ + "grpcHealthCheck" + ] + }, + "_grpcTlsHealthCheck": { + "oneof": [ + "grpcTlsHealthCheck" + ] + }, + "_healthyThreshold": { + "oneof": [ + "healthyThreshold" + ] + }, + "_http2HealthCheck": { + "oneof": [ + "http2HealthCheck" + ] + }, + "_httpHealthCheck": { + "oneof": [ + "httpHealthCheck" + ] + }, + "_httpsHealthCheck": { + "oneof": [ + "httpsHealthCheck" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_logConfig": { + "oneof": [ + "logConfig" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_sslHealthCheck": { + "oneof": [ + "sslHealthCheck" + ] + }, + "_tcpHealthCheck": { + "oneof": [ + "tcpHealthCheck" + ] + }, + "_timeoutSec": { + "oneof": [ + "timeoutSec" + ] + }, + "_type": { + "oneof": [ + "type" + ] + }, + "_unhealthyThreshold": { + "oneof": [ + "unhealthyThreshold" + ] + } + }, + "fields": { + "checkIntervalSec": { + "type": "int32", + "id": 345561006, + "options": { + "proto3_optional": true + } + }, + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "grpcHealthCheck": { + "type": "GRPCHealthCheck", + "id": 85529574, + "options": { + "proto3_optional": true + } + }, + "grpcTlsHealthCheck": { + "type": "GRPCTLSHealthCheck", + "id": 267273258, + "options": { + "proto3_optional": true + } + }, + "healthyThreshold": { + "type": "int32", + "id": 403212361, + "options": { + "proto3_optional": true + } + }, + "http2HealthCheck": { + "type": "HTTP2HealthCheck", + "id": 11360986, + "options": { + "proto3_optional": true + } + }, + "httpHealthCheck": { + "type": "HTTPHealthCheck", + "id": 412586940, + "options": { + "proto3_optional": true + } + }, + "httpsHealthCheck": { + "type": "HTTPSHealthCheck", + "id": 436046905, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "logConfig": { + "type": "HealthCheckLogConfig", + "id": 351299741, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "sourceRegions": { + "rule": "repeated", + "type": "string", + "id": 405568475 + }, + "sslHealthCheck": { + "type": "SSLHealthCheck", + "id": 280032440, + "options": { + "proto3_optional": true + } + }, + "tcpHealthCheck": { + "type": "TCPHealthCheck", + "id": 469980419, + "options": { + "proto3_optional": true + } + }, + "timeoutSec": { + "type": "int32", + "id": 79994995, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + }, + "unhealthyThreshold": { + "type": "int32", + "id": 227958480, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Type": { + "values": { + "UNDEFINED_TYPE": 0, + "GRPC": 2196510, + "GRPC_WITH_TLS": 268089571, + "HTTP": 2228360, + "HTTP2": 69079210, + "HTTPS": 69079243, + "INVALID": 530283991, + "SSL": 82412, + "TCP": 82881 + } + } + } + }, + "HealthCheckList": { "oneofs": { "_id": { "oneof": [ @@ -33209,6 +33845,47 @@ } } }, + "InsertRegionHealthAggregationPolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "healthAggregationPolicyResource": { + "type": "HealthAggregationPolicy", + "id": 293526971, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, "InsertRegionHealthCheckRequest": { "oneofs": { "_requestId": { @@ -34911,6 +35588,11 @@ "tags" ] }, + "_workloadIdentityConfig": { + "oneof": [ + "workloadIdentityConfig" + ] + }, "_zone": { "oneof": [ "zone" @@ -35221,6 +35903,13 @@ "proto3_optional": true } }, + "workloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 338198811, + "options": { + "proto3_optional": true + } + }, "zone": { "type": "string", "id": 3744684, @@ -36463,6 +37152,11 @@ "oneof": [ "forceUpdateOnRepair" ] + }, + "_onFailedHealthCheck": { + "oneof": [ + "onFailedHealthCheck" + ] } }, "fields": { @@ -36479,6 +37173,13 @@ "options": { "proto3_optional": true } + }, + "onFailedHealthCheck": { + "type": "string", + "id": 39807943, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -36495,6 +37196,12 @@ "NO": 2497, "YES": 87751 } + }, + "OnFailedHealthCheck": { + "values": { + "UNDEFINED_ON_FAILED_HEALTH_CHECK": 0, + "DEFAULT_ACTION": 463967764 + } } } }, @@ -38139,6 +38846,11 @@ "oneof": [ "tags" ] + }, + "_workloadIdentityConfig": { + "oneof": [ + "workloadIdentityConfig" + ] } }, "fields": { @@ -38274,6 +38986,13 @@ "options": { "proto3_optional": true } + }, + "workloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 338198811, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -38945,6 +39664,7 @@ "values": { "UNDEFINED_BEHAVIOR": 0, "BEHAVIOR_UNSPECIFIED": 85734570, + "CHIP_ERROR": 263151669, "PERFORMANCE": 135701520, "SILENT_DATA_CORRUPTION": 111360678, "UNRECOVERABLE_GPU_ERROR": 363710747 @@ -39170,6 +39890,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_region": { "oneof": [ "region" @@ -39283,6 +40008,13 @@ "proto3_optional": true } }, + "params": { + "type": "InstantSnapshotParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "region": { "type": "string", "id": 138946292, @@ -39522,6 +40254,15 @@ } } }, + "InstantSnapshotParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "InstantSnapshotResourceStatus": { "oneofs": { "_storageSizeBytes": { @@ -45085,6 +45826,11 @@ }, "ListAssociationsFirewallPolicyRequest": { "oneofs": { + "_includeInheritedPolicies": { + "oneof": [ + "includeInheritedPolicies" + ] + }, "_targetResource": { "oneof": [ "targetResource" @@ -45092,6 +45838,13 @@ } }, "fields": { + "includeInheritedPolicies": { + "type": "bool", + "id": 32280076, + "options": { + "proto3_optional": true + } + }, "targetResource": { "type": "string", "id": 467318524, @@ -50931,7 +51684,7 @@ } } }, - "ListRegionHealthCheckServicesRequest": { + "ListRegionHealthAggregationPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51011,7 +51764,7 @@ } } }, - "ListRegionHealthChecksRequest": { + "ListRegionHealthCheckServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51091,7 +51844,7 @@ } } }, - "ListRegionInstanceGroupManagersRequest": { + "ListRegionHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51171,7 +51924,7 @@ } } }, - "ListRegionInstanceGroupsRequest": { + "ListRegionInstanceGroupManagersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51251,7 +52004,7 @@ } } }, - "ListRegionInstanceTemplatesRequest": { + "ListRegionInstanceGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51331,7 +52084,7 @@ } } }, - "ListRegionInstantSnapshotsRequest": { + "ListRegionInstanceTemplatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51411,7 +52164,7 @@ } } }, - "ListRegionNetworkEndpointGroupsRequest": { + "ListRegionInstantSnapshotsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51491,7 +52244,7 @@ } } }, - "ListRegionNetworkFirewallPoliciesRequest": { + "ListRegionNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51571,7 +52324,7 @@ } } }, - "ListRegionNotificationEndpointsRequest": { + "ListRegionNetworkFirewallPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51651,7 +52404,7 @@ } } }, - "ListRegionOperationsRequest": { + "ListRegionNotificationEndpointsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51731,7 +52484,7 @@ } } }, - "ListRegionSecurityPoliciesRequest": { + "ListRegionOperationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51811,7 +52564,7 @@ } } }, - "ListRegionSslCertificatesRequest": { + "ListRegionSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51891,7 +52644,7 @@ } } }, - "ListRegionSslPoliciesRequest": { + "ListRegionSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -51971,7 +52724,7 @@ } } }, - "ListRegionTargetHttpProxiesRequest": { + "ListRegionSslPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -52051,7 +52804,7 @@ } } }, - "ListRegionTargetHttpsProxiesRequest": { + "ListRegionTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -52131,7 +52884,7 @@ } } }, - "ListRegionTargetTcpProxiesRequest": { + "ListRegionTargetHttpsProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -52211,7 +52964,7 @@ } } }, - "ListRegionUrlMapsRequest": { + "ListRegionTargetTcpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -52291,7 +53044,7 @@ } } }, - "ListRegionZonesRequest": { + "ListRegionUrlMapsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -52371,80 +53124,7 @@ } } }, - "ListRegionsRequest": { - "oneofs": { - "_filter": { - "oneof": [ - "filter" - ] - }, - "_maxResults": { - "oneof": [ - "maxResults" - ] - }, - "_orderBy": { - "oneof": [ - "orderBy" - ] - }, - "_pageToken": { - "oneof": [ - "pageToken" - ] - }, - "_returnPartialSuccess": { - "oneof": [ - "returnPartialSuccess" - ] - } - }, - "fields": { - "filter": { - "type": "string", - "id": 336120696, - "options": { - "proto3_optional": true - } - }, - "maxResults": { - "type": "uint32", - "id": 54715419, - "options": { - "proto3_optional": true - } - }, - "orderBy": { - "type": "string", - "id": 160562920, - "options": { - "proto3_optional": true - } - }, - "pageToken": { - "type": "string", - "id": 19994697, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "returnPartialSuccess": { - "type": "bool", - "id": 517198390, - "options": { - "proto3_optional": true - } - } - } - }, - "ListReservationBlocksRequest": { + "ListRegionZonesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -52508,9 +53188,9 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "reservation": { + "region": { "type": "string", - "id": 47530956, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -52521,17 +53201,10 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListReservationSubBlocksRequest": { + "ListRegionsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -52588,13 +53261,6 @@ "proto3_optional": true } }, - "parentName": { - "type": "string", - "id": 478151936, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -52608,17 +53274,271 @@ "options": { "proto3_optional": true } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "ListReservationsRequest": { + "ListReservationBlocksRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservation": { + "type": "string", + "id": 47530956, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListReservationSlotsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListReservationSubBlocksRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -55132,6 +56052,11 @@ "options": { "proto3_optional": true } + }, + "zones": { + "rule": "repeated", + "type": "LocationPolicyZoneConfiguration", + "id": 116085319 } }, "nested": { @@ -55203,6 +56128,24 @@ } } }, + "LocationPolicyZoneConfiguration": { + "oneofs": { + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + } + }, "MachineImage": { "oneofs": { "_creationTimestamp": { @@ -55250,6 +56193,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_satisfiesPzi": { "oneof": [ "satisfiesPzi" @@ -55355,6 +56303,13 @@ "proto3_optional": true } }, + "params": { + "type": "MachineImageParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "satisfiesPzi": { "type": "bool", "id": 480964257, @@ -55504,6 +56459,15 @@ } } }, + "MachineImageParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "MachineType": { "oneofs": { "_architecture": { @@ -55511,6 +56475,11 @@ "architecture" ] }, + "_bundledLocalSsds": { + "oneof": [ + "bundledLocalSsds" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -55595,6 +56564,13 @@ "proto3_optional": true } }, + "bundledLocalSsds": { + "type": "BundledLocalSsds", + "id": 387462016, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -58388,6 +59364,11 @@ }, "NetworkInterface": { "oneofs": { + "_enableVpcScopedDns": { + "oneof": [ + "enableVpcScopedDns" + ] + }, "_fingerprint": { "oneof": [ "fingerprint" @@ -58480,6 +59461,13 @@ "type": "AliasIpRange", "id": 165085631 }, + "enableVpcScopedDns": { + "type": "bool", + "id": 283425868, + "options": { + "proto3_optional": true + } + }, "fingerprint": { "type": "string", "id": 234678500, @@ -64980,7 +65968,7 @@ } } }, - "PatchRegionHealthCheckRequest": { + "PatchRegionHealthAggregationPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -64989,16 +65977,16 @@ } }, "fields": { - "healthCheck": { + "healthAggregationPolicy": { "type": "string", - "id": 308876645, + "id": 240314354, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "healthCheckResource": { - "type": "HealthCheck", - "id": 201925032, + "healthAggregationPolicyResource": { + "type": "HealthAggregationPolicy", + "id": 293526971, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -65028,7 +66016,7 @@ } } }, - "PatchRegionHealthCheckServiceRequest": { + "PatchRegionHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -65037,16 +66025,16 @@ } }, "fields": { - "healthCheckService": { + "healthCheck": { "type": "string", - "id": 408374747, + "id": 308876645, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "healthCheckServiceResource": { - "type": "HealthCheckService", - "id": 477367794, + "healthCheckResource": { + "type": "HealthCheck", + "id": 201925032, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -65076,7 +66064,7 @@ } } }, - "PatchRegionInstanceGroupManagerRequest": { + "PatchRegionHealthCheckServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -65085,16 +66073,16 @@ } }, "fields": { - "instanceGroupManager": { + "healthCheckService": { "type": "string", - "id": 249363395, + "id": 408374747, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "instanceGroupManagerResource": { - "type": "InstanceGroupManager", - "id": 261063946, + "healthCheckServiceResource": { + "type": "HealthCheckService", + "id": 477367794, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -65124,7 +66112,7 @@ } } }, - "PatchRegionNetworkFirewallPolicyRequest": { + "PatchRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -65133,16 +66121,16 @@ } }, "fields": { - "firewallPolicy": { + "instanceGroupManager": { "type": "string", - "id": 498173265, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "firewallPolicyResource": { - "type": "FirewallPolicy", - "id": 495049532, + "instanceGroupManagerResource": { + "type": "InstanceGroupManager", + "id": 261063946, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -65172,75 +66160,29 @@ } } }, - "PatchRegionSecurityPolicyRequest": { + "PatchRegionNetworkFirewallPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_updateMask": { - "oneof": [ - "updateMask" - ] } }, "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } - }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "securityPolicy": { + "firewallPolicy": { "type": "string", - "id": 171082513, + "id": 498173265, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "securityPolicyResource": { - "type": "SecurityPolicy", - "id": 216159612, + "firewallPolicyResource": { + "type": "FirewallPolicy", + "id": 495049532, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "updateMask": { - "type": "string", - "id": 500079778, - "options": { - "proto3_optional": true - } - } - } - }, - "PatchRegionSslPolicyRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { "project": { "type": "string", "id": 227560217, @@ -65263,29 +66205,20 @@ "options": { "proto3_optional": true } - }, - "sslPolicy": { - "type": "string", - "id": 295190213, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "sslPolicyResource": { - "type": "SslPolicy", - "id": 274891848, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "PatchRegionTargetHttpsProxyRequest": { + "PatchRegionSecurityPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] } }, "fields": { @@ -65312,81 +66245,184 @@ "proto3_optional": true } }, - "targetHttpsProxy": { + "securityPolicy": { "type": "string", - "id": 52336748, + "id": 171082513, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "targetHttpsProxyResource": { - "type": "TargetHttpsProxy", - "id": 433657473, + "securityPolicyResource": { + "type": "SecurityPolicy", + "id": 216159612, "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "PatchRegionUrlMapRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" - } - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" - } }, - "requestId": { + "updateMask": { "type": "string", - "id": 37109963, + "id": 500079778, "options": { "proto3_optional": true } - }, - "urlMap": { - "type": "string", - "id": 367020684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "urlMapResource": { - "type": "UrlMap", - "id": 168675425, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "PatchResourcePolicyRequest": { + "PatchRegionSslPolicyRequest": { "oneofs": { "_requestId": { "oneof": [ "requestId" ] - }, - "_updateMask": { - "oneof": [ - "updateMask" - ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "sslPolicy": { + "type": "string", + "id": 295190213, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "sslPolicyResource": { + "type": "SslPolicy", + "id": 274891848, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PatchRegionTargetHttpsProxyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "targetHttpsProxy": { + "type": "string", + "id": 52336748, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "targetHttpsProxyResource": { + "type": "TargetHttpsProxy", + "id": 433657473, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PatchRegionUrlMapRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "urlMap": { + "type": "string", + "id": 367020684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "urlMapResource": { + "type": "UrlMap", + "id": 168675425, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PatchResourcePolicyRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] } }, "fields": { @@ -71502,6 +72538,11 @@ "description" ] }, + "_earlyAccessMaintenance": { + "oneof": [ + "earlyAccessMaintenance" + ] + }, "_enableEmergentMaintenance": { "oneof": [ "enableEmergentMaintenance" @@ -71522,6 +72563,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_protectionTier": { "oneof": [ "protectionTier" @@ -71635,6 +72681,13 @@ "proto3_optional": true } }, + "earlyAccessMaintenance": { + "type": "string", + "id": 343918356, + "options": { + "proto3_optional": true + } + }, "enableEmergentMaintenance": { "type": "bool", "id": 353759497, @@ -71668,6 +72721,13 @@ "proto3_optional": true } }, + "params": { + "type": "ReservationParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "protectionTier": { "type": "string", "id": 503959432, @@ -71759,6 +72819,14 @@ "DEPLOYMENT_TYPE_UNSPECIFIED": 234847180 } }, + "EarlyAccessMaintenance": { + "values": { + "UNDEFINED_EARLY_ACCESS_MAINTENANCE": 0, + "NO_EARLY_ACCESS": 220751774, + "WAVE1": 82367576, + "WAVE2": 82367577 + } + }, "ProtectionTier": { "values": { "UNDEFINED_PROTECTION_TIER": 0, @@ -72465,6 +73533,336 @@ } } }, + "ReservationParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, + "ReservationSlot": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_physicalTopology": { + "oneof": [ + "physicalTopology" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_shareSettings": { + "oneof": [ + "shareSettings" + ] + }, + "_state": { + "oneof": [ + "state" + ] + }, + "_status": { + "oneof": [ + "status" + ] + }, + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "physicalTopology": { + "type": "ReservationSlotPhysicalTopology", + "id": 279778519, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "shareSettings": { + "type": "ShareSettings", + "id": 266668163, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + }, + "status": { + "type": "ReservationSlotStatus", + "id": 181260274, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "ACTIVE": 314733318, + "CREATING": 455564985, + "DELETING": 528602024, + "STATE_UNSPECIFIED": 470755401, + "UNAVAILABLE": 413756464 + } + } + } + }, + "ReservationSlotPhysicalTopology": { + "oneofs": { + "_block": { + "oneof": [ + "block" + ] + }, + "_cluster": { + "oneof": [ + "cluster" + ] + }, + "_host": { + "oneof": [ + "host" + ] + }, + "_subBlock": { + "oneof": [ + "subBlock" + ] + } + }, + "fields": { + "block": { + "type": "string", + "id": 93832333, + "options": { + "proto3_optional": true + } + }, + "cluster": { + "type": "string", + "id": 335221242, + "options": { + "proto3_optional": true + } + }, + "host": { + "type": "string", + "id": 3208616, + "options": { + "proto3_optional": true + } + }, + "subBlock": { + "type": "string", + "id": 478033358, + "options": { + "proto3_optional": true + } + } + } + }, + "ReservationSlotStatus": { + "oneofs": { + "_physicalTopology": { + "oneof": [ + "physicalTopology" + ] + } + }, + "fields": { + "physicalTopology": { + "type": "ReservationSlotPhysicalTopology", + "id": 279778519, + "options": { + "proto3_optional": true + } + }, + "rdmaIpAddresses": { + "rule": "repeated", + "type": "string", + "id": 167842531 + }, + "runningInstances": { + "rule": "repeated", + "type": "string", + "id": 536292350 + } + } + }, + "ReservationSlotsGetResponse": { + "oneofs": { + "_resource": { + "oneof": [ + "resource" + ] + } + }, + "fields": { + "resource": { + "type": "ReservationSlot", + "id": 195806222, + "options": { + "proto3_optional": true + } + } + } + }, + "ReservationSlotsListResponse": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "ReservationSlot", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "ReservationSubBlock": { "oneofs": { "_acceleratorTopologiesInfo": { @@ -73759,6 +75157,11 @@ }, "ResourcePolicyGroupPlacementPolicy": { "oneofs": { + "_acceleratorTopologyMode": { + "oneof": [ + "acceleratorTopologyMode" + ] + }, "_availabilityDomainCount": { "oneof": [ "availabilityDomainCount" @@ -73781,6 +75184,13 @@ } }, "fields": { + "acceleratorTopologyMode": { + "type": "string", + "id": 284293791, + "options": { + "proto3_optional": true + } + }, "availabilityDomainCount": { "type": "int32", "id": 12453432, @@ -73811,6 +75221,13 @@ } }, "nested": { + "AcceleratorTopologyMode": { + "values": { + "UNDEFINED_ACCELERATOR_TOPOLOGY_MODE": 0, + "AUTO_CONNECT": 491872826, + "PROVISION_ONLY": 399134966 + } + }, "Collocation": { "values": { "UNDEFINED_COLLOCATION": 0, @@ -74471,6 +75888,11 @@ "enableOsloginMetadataValue" ] }, + "_gceContainerDeclarationMetadataValue": { + "oneof": [ + "gceContainerDeclarationMetadataValue" + ] + }, "_serialPortEnableMetadataValue": { "oneof": [ "serialPortEnableMetadataValue" @@ -74523,6 +75945,13 @@ "proto3_optional": true } }, + "gceContainerDeclarationMetadataValue": { + "type": "bool", + "id": 219617210, + "options": { + "proto3_optional": true + } + }, "serialPortEnableMetadataValue": { "type": "bool", "id": 430536330, @@ -88434,6 +89863,11 @@ "reservedInternalRange" ] }, + "_resolveSubnetMask": { + "oneof": [ + "resolveSubnetMask" + ] + }, "_role": { "oneof": [ "role" @@ -88629,6 +90063,13 @@ "proto3_optional": true } }, + "resolveSubnetMask": { + "type": "string", + "id": 517696699, + "options": { + "proto3_optional": true + } + }, "role": { "type": "string", "id": 3506294, @@ -88717,6 +90158,13 @@ "REGIONAL_MANAGED_PROXY": 153049966 } }, + "ResolveSubnetMask": { + "values": { + "UNDEFINED_RESOLVE_SUBNET_MASK": 0, + "ARP_ALL_RANGES": 445655380, + "ARP_PRIMARY_RANGE": 120210048 + } + }, "Role": { "values": { "UNDEFINED_ROLE": 0, @@ -91916,6 +93364,11 @@ "network" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_region": { "oneof": [ "region" @@ -91992,6 +93445,13 @@ "proto3_optional": true } }, + "params": { + "type": "TargetVpnGatewayParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "region": { "type": "string", "id": 138946292, @@ -92178,6 +93638,15 @@ } } }, + "TargetVpnGatewayParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "TargetVpnGatewaysScopedList": { "oneofs": { "_warning": { @@ -92422,7 +93891,132 @@ } } }, - "TestIamPermissionsDiskRequest": { + "TestIamPermissionsDiskRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsExternalVpnGatewayRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsFirewallPolicyRequest": { + "fields": { + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsFirewallRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsGlobalAddressRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "TestIamPermissionsHealthCheckRequest": { "fields": { "project": { "type": "string", @@ -92444,17 +94038,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsExternalVpnGatewayRequest": { + "TestIamPermissionsImageRequest": { "fields": { "project": { "type": "string", @@ -92479,25 +94066,7 @@ } } }, - "TestIamPermissionsFirewallPolicyRequest": { - "fields": { - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "TestIamPermissionsFirewallRequest": { + "TestIamPermissionsInstanceGroupRequest": { "fields": { "project": { "type": "string", @@ -92519,35 +94088,17 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "TestIamPermissionsGlobalAddressRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } }, - "resource": { + "zone": { "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "TestIamPermissionsHealthCheckRequest": { + "TestIamPermissionsInstanceRequest": { "fields": { "project": { "type": "string", @@ -92569,35 +94120,17 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - } - } - }, - "TestIamPermissionsImageRequest": { - "fields": { - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } }, - "resource": { + "zone": { "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "testPermissionsRequestResource": { - "type": "TestPermissionsRequest", - "id": 439214758, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "TestIamPermissionsInstanceGroupRequest": { + "TestIamPermissionsInstanceTemplateRequest": { "fields": { "project": { "type": "string", @@ -92619,17 +94152,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsInstanceRequest": { + "TestIamPermissionsInstantSnapshotRequest": { "fields": { "project": { "type": "string", @@ -92661,7 +94187,7 @@ } } }, - "TestIamPermissionsInstanceTemplateRequest": { + "TestIamPermissionsInterconnectAttachmentGroupRequest": { "fields": { "project": { "type": "string", @@ -92686,7 +94212,7 @@ } } }, - "TestIamPermissionsInstantSnapshotRequest": { + "TestIamPermissionsInterconnectGroupRequest": { "fields": { "project": { "type": "string", @@ -92708,17 +94234,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsInterconnectAttachmentGroupRequest": { + "TestIamPermissionsLicenseCodeRequest": { "fields": { "project": { "type": "string", @@ -92743,7 +94262,7 @@ } } }, - "TestIamPermissionsInterconnectGroupRequest": { + "TestIamPermissionsLicenseRequest": { "fields": { "project": { "type": "string", @@ -92768,7 +94287,7 @@ } } }, - "TestIamPermissionsLicenseCodeRequest": { + "TestIamPermissionsMachineImageRequest": { "fields": { "project": { "type": "string", @@ -92793,7 +94312,7 @@ } } }, - "TestIamPermissionsLicenseRequest": { + "TestIamPermissionsNetworkAttachmentRequest": { "fields": { "project": { "type": "string", @@ -92802,6 +94321,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -92818,7 +94344,7 @@ } } }, - "TestIamPermissionsMachineImageRequest": { + "TestIamPermissionsNetworkEndpointGroupRequest": { "fields": { "project": { "type": "string", @@ -92840,10 +94366,17 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "TestIamPermissionsNetworkAttachmentRequest": { + "TestIamPermissionsNetworkFirewallPolicyRequest": { "fields": { "project": { "type": "string", @@ -92852,13 +94385,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "resource": { "type": "string", "id": 195806222, @@ -92875,7 +94401,7 @@ } } }, - "TestIamPermissionsNetworkEndpointGroupRequest": { + "TestIamPermissionsNodeGroupRequest": { "fields": { "project": { "type": "string", @@ -92907,7 +94433,7 @@ } } }, - "TestIamPermissionsNetworkFirewallPolicyRequest": { + "TestIamPermissionsNodeTemplateRequest": { "fields": { "project": { "type": "string", @@ -92916,6 +94442,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -92932,7 +94465,7 @@ } } }, - "TestIamPermissionsNodeGroupRequest": { + "TestIamPermissionsPacketMirroringRequest": { "fields": { "project": { "type": "string", @@ -92941,6 +94474,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -92954,17 +94494,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsNodeTemplateRequest": { + "TestIamPermissionsRegionAutoscalerRequest": { "fields": { "project": { "type": "string", @@ -92996,7 +94529,7 @@ } } }, - "TestIamPermissionsPacketMirroringRequest": { + "TestIamPermissionsRegionBackendServiceRequest": { "fields": { "project": { "type": "string", @@ -93028,7 +94561,7 @@ } } }, - "TestIamPermissionsRegionAutoscalerRequest": { + "TestIamPermissionsRegionDiskRequest": { "fields": { "project": { "type": "string", @@ -93060,7 +94593,7 @@ } } }, - "TestIamPermissionsRegionBackendServiceRequest": { + "TestIamPermissionsRegionHealthAggregationPolicyRequest": { "fields": { "project": { "type": "string", @@ -93092,7 +94625,7 @@ } } }, - "TestIamPermissionsRegionDiskRequest": { + "TestIamPermissionsRegionHealthCheckRequest": { "fields": { "project": { "type": "string", @@ -93124,7 +94657,7 @@ } } }, - "TestIamPermissionsRegionHealthCheckRequest": { + "TestIamPermissionsRegionHealthCheckServiceRequest": { "fields": { "project": { "type": "string", @@ -95155,6 +96688,61 @@ } } }, + "UpdateReservationSlotRequest": { + "oneofs": { + "_updateMask": { + "oneof": [ + "updateMask" + ] + } + }, + "fields": { + "parentName": { + "type": "string", + "id": 478151936, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "reservationSlot": { + "type": "string", + "id": 277470865, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSlotResource": { + "type": "ReservationSlot", + "id": 408545788, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "UpdateRoutePolicyRouterRequest": { "oneofs": { "_requestId": { @@ -96621,6 +98209,11 @@ "network" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_region": { "oneof": [ "region" @@ -96699,6 +98292,13 @@ "proto3_optional": true } }, + "params": { + "type": "VpnGatewayParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "region": { "type": "string", "id": 138946292, @@ -96891,6 +98491,15 @@ } } }, + "VpnGatewayParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "VpnGatewayStatus": { "fields": { "vpnConnections": { @@ -97176,6 +98785,11 @@ "name" ] }, + "_params": { + "oneof": [ + "params" + ] + }, "_peerExternalGateway": { "oneof": [ "peerExternalGateway" @@ -97316,6 +98930,13 @@ "proto3_optional": true } }, + "params": { + "type": "VpnTunnelParams", + "id": 78313862, + "options": { + "proto3_optional": true + } + }, "peerExternalGateway": { "type": "string", "id": 384956173, @@ -97611,6 +99232,15 @@ } } }, + "VpnTunnelParams": { + "fields": { + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + } + } + }, "VpnTunnelPhase1Algorithms": { "fields": { "dh": { @@ -98491,6 +100121,36 @@ } } }, + "WorkloadIdentityConfig": { + "oneofs": { + "_identity": { + "oneof": [ + "identity" + ] + }, + "_identityCertificateEnabled": { + "oneof": [ + "identityCertificateEnabled" + ] + } + }, + "fields": { + "identity": { + "type": "string", + "id": 401109182, + "options": { + "proto3_optional": true + } + }, + "identityCertificateEnabled": { + "type": "bool", + "id": 342892440, + "options": { + "proto3_optional": true + } + } + } + }, "XpnHostList": { "oneofs": { "_id": { @@ -110473,6 +112133,158 @@ } } }, + "RegionHealthAggregationPolicies": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "AggregatedList": { + "requestType": "AggregatedListRegionHealthAggregationPoliciesRequest", + "responseType": "HealthAggregationPolicyAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/healthAggregationPolicies", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/healthAggregationPolicies" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Delete": { + "requestType": "DeleteRegionHealthAggregationPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}", + "(google.api.method_signature)": "project,region,health_aggregation_policy", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionHealthAggregationPolicyRequest", + "responseType": "HealthAggregationPolicy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}", + "(google.api.method_signature)": "project,region,health_aggregation_policy" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy" + } + ] + }, + "Insert": { + "requestType": "InsertRegionHealthAggregationPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "health_aggregation_policy_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies", + "(google.api.method_signature)": "project,region,health_aggregation_policy_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "health_aggregation_policy_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionHealthAggregationPoliciesRequest", + "responseType": "HealthAggregationPolicyList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "Patch": { + "requestType": "PatchRegionHealthAggregationPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "health_aggregation_policy_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}", + "(google.api.method_signature)": "project,region,health_aggregation_policy,health_aggregation_policy_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "health_aggregation_policy_resource", + "patch": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{health_aggregation_policy}" + } + }, + { + "(google.api.method_signature)": "project,region,health_aggregation_policy,health_aggregation_policy_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionHealthAggregationPolicyRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionHealthCheckServices": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -110584,6 +112396,26 @@ "(google.cloud.operation_service)": "RegionOperations" } ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionHealthCheckServiceRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] } } }, @@ -113555,6 +115387,74 @@ } } }, + "ReservationSlots": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Get": { + "requestType": "GetReservationSlotRequest", + "responseType": "ReservationSlotsGetResponse", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}", + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot" + } + ] + }, + "List": { + "requestType": "ListReservationSlotsRequest", + "responseType": "ReservationSlotsListResponse", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots", + "(google.api.method_signature)": "project,zone,parent_name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name" + } + ] + }, + "Update": { + "requestType": "UpdateReservationSlotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "reservation_slot_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}", + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slot_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "reservation_slot_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slot_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + } + } + }, "ReservationSubBlocks": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -113565,13 +115465,13 @@ "requestType": "GetReservationSubBlockRequest", "responseType": "ReservationSubBlocksGetResponse", "options": { - "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}", + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}", "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}" + "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}" } }, { @@ -113583,13 +115483,13 @@ "requestType": "GetIamPolicyReservationSubBlockRequest", "responseType": "Policy", "options": { - "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy", + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/getIamPolicy", "(google.api.method_signature)": "project,zone,parent_resource,resource" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/getIamPolicy" + "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/getIamPolicy" } }, { @@ -113601,13 +115501,13 @@ "requestType": "ListReservationSubBlocksRequest", "responseType": "ReservationSubBlocksListResponse", "options": { - "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks", + "(google.api.http).get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks", "(google.api.method_signature)": "project,zone,parent_name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks" + "get": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks" } }, { @@ -113619,14 +115519,14 @@ "requestType": "PerformMaintenanceReservationSubBlockRequest", "responseType": "Operation", "options": { - "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/performMaintenance", "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block", "(google.cloud.operation_service)": "ZoneOperations" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" + "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/performMaintenance" } }, { @@ -113642,7 +115542,7 @@ "responseType": "Operation", "options": { "(google.api.http).body": "reservation_sub_blocks_report_faulty_request_resource", - "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/reportFaulty", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/reportFaulty", "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_report_faulty_request_resource", "(google.cloud.operation_service)": "ZoneOperations" }, @@ -113650,7 +115550,7 @@ { "(google.api.http)": { "body": "reservation_sub_blocks_report_faulty_request_resource", - "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" + "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/reportFaulty" } }, { @@ -113666,14 +115566,14 @@ "responseType": "Policy", "options": { "(google.api.http).body": "zone_set_nested_policy_request_resource", - "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/setIamPolicy", "(google.api.method_signature)": "project,zone,parent_resource,resource,zone_set_nested_policy_request_resource" }, "parsedOptions": [ { "(google.api.http)": { "body": "zone_set_nested_policy_request_resource", - "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/setIamPolicy" + "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/setIamPolicy" } }, { @@ -113686,14 +115586,14 @@ "responseType": "TestPermissionsResponse", "options": { "(google.api.http).body": "test_permissions_request_resource", - "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/testIamPermissions", "(google.api.method_signature)": "project,zone,parent_resource,resource,test_permissions_request_resource" }, "parsedOptions": [ { "(google.api.http)": { "body": "test_permissions_request_resource", - "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource}/reservationSubBlocks/{resource}/testIamPermissions" + "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_resource=reservations/*/reservationBlocks/*}/reservationSubBlocks/{resource}/testIamPermissions" } }, { diff --git a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list_associations.js b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list_associations.js index fbebdfe199d..b5e9018c6b4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list_associations.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list_associations.js @@ -28,6 +28,12 @@ function main() { * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ + /** + * If set to "true", the response will contain a list of all associations for + * the containing folders and the containing organization of the target. The + * parameter has no effect if the target is an organization. + */ + // const includeInheritedPolicies = true /** * The target resource to list associations. It is an organization, or a * folder. diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.aggregated_list.js new file mode 100644 index 00000000000..cfbca5acffa --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.aggregated_list.js @@ -0,0 +1,163 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project) { + // [START compute_v1_generated_RegionHealthAggregationPolicies_AggregatedList_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + */ + // const includeAllScopes = true + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Name of the project scoping this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + */ + // const serviceProjectNumber = 1234 + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callAggregatedList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = computeClient.aggregatedListAsync(request); + for await (const [key, value] of iterable) { + console.log(response); + } + } + + callAggregatedList(); + // [END compute_v1_generated_RegionHealthAggregationPolicies_AggregatedList_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.delete.js new file mode 100644 index 00000000000..efd805af44a --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.delete.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicy, project, region) { + // [START compute_v1_generated_RegionHealthAggregationPolicies_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the HealthAggregationPolicy resource to delete. + */ + // const healthAggregationPolicy = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callDelete() { + // Construct request + const request = { + healthAggregationPolicy, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionHealthAggregationPolicies_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.get.js b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.get.js new file mode 100644 index 00000000000..edc1918fbd4 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.get.js @@ -0,0 +1,71 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicy, project, region) { + // [START compute_v1_generated_RegionHealthAggregationPolicies_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the HealthAggregationPolicy resource to return. + */ + // const healthAggregationPolicy = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callGet() { + // Construct request + const request = { + healthAggregationPolicy, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionHealthAggregationPolicies_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.insert.js new file mode 100644 index 00000000000..46e56981546 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.insert.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicyResource, project, region) { + // [START compute_v1_generated_RegionHealthAggregationPolicies_Insert_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const healthAggregationPolicyResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callInsert() { + // Construct request + const request = { + healthAggregationPolicyResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionHealthAggregationPolicies_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.list.js new file mode 100644 index 00000000000..98e681d0049 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.list.js @@ -0,0 +1,153 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region) { + // [START compute_v1_generated_RegionHealthAggregationPolicies_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1_generated_RegionHealthAggregationPolicies_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.patch.js b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.patch.js new file mode 100644 index 00000000000..1a67faa7123 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.patch.js @@ -0,0 +1,91 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(healthAggregationPolicy, healthAggregationPolicyResource, project, region) { + // [START compute_v1_generated_RegionHealthAggregationPolicies_Patch_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the HealthAggregationPolicy to update. The name + * must be 1-63 characters long, and comply with RFC1035. + */ + // const healthAggregationPolicy = 'abc123' + /** + * The body resource for this request + */ + // const healthAggregationPolicyResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region scoping this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callPatch() { + // Construct request + const request = { + healthAggregationPolicy, + healthAggregationPolicyResource, + project, + region, + }; + + // Run request + const response = await computeClient.patch(request); + console.log(response); + } + + callPatch(); + // [END compute_v1_generated_RegionHealthAggregationPolicies_Patch_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.test_iam_permissions.js new file mode 100644 index 00000000000..6a1633dc007 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_aggregation_policies.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource, testPermissionsRequestResource) { + // [START compute_v1_generated_RegionHealthAggregationPolicies_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {RegionHealthAggregationPoliciesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthAggregationPoliciesClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + region, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1_generated_RegionHealthAggregationPolicies_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.test_iam_permissions.js new file mode 100644 index 00000000000..b16718d0405 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.test_iam_permissions.js @@ -0,0 +1,76 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(project, region, resource, testPermissionsRequestResource) { + // [START compute_v1_generated_RegionHealthCheckServices_TestIamPermissions_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {RegionHealthCheckServicesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthCheckServicesClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + region, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1_generated_RegionHealthCheckServices_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/reservation_slots.get.js b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.get.js new file mode 100644 index 00000000000..ec5329ee578 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.get.js @@ -0,0 +1,78 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentName, project, reservationSlot, zone) { + // [START compute_v1_generated_ReservationSlots_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + // const parentName = 'abc123' + /** + * The project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the reservation slot, formatted as RFC1035 or a resource ID + * number. + */ + // const reservationSlot = 'abc123' + /** + * The name of the zone for this request, formatted as RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callGet() { + // Construct request + const request = { + parentName, + project, + reservationSlot, + zone, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_ReservationSlots_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/reservation_slots.list.js b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.list.js new file mode 100644 index 00000000000..1c58e019671 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.list.js @@ -0,0 +1,159 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentName, project, zone) { + // [START compute_v1_generated_ReservationSlots_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * You cannot combine constraints on multiple fields using regular + * expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + */ + // const pageToken = 'abc123' + /** + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + // const parentName = 'abc123' + /** + * The project ID for this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + */ + // const returnPartialSuccess = true + /** + * The name of the zone for this request, formatted as RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callList() { + // Construct request + const request = { + parentName, + project, + zone, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1_generated_ReservationSlots_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/reservation_slots.update.js b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.update.js new file mode 100644 index 00000000000..9722a3ae48e --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.update.js @@ -0,0 +1,85 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parentName, project, reservationSlot, reservationSlotResource, zone) { + // [START compute_v1_generated_ReservationSlots_Update_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name of the sub-block resource. + */ + // const parentName = 'abc123' + /** + * The project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the slot resource. + */ + // const reservationSlot = 'abc123' + /** + * The body resource for this request + */ + // const reservationSlotResource = {} + /** + * The fields to be updated as part of this request. + */ + // const updateMask = 'abc123' + /** + * The name of the zone for this request, formatted as RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callUpdate() { + // Construct request + const request = { + parentName, + project, + reservationSlot, + reservationSlotResource, + zone, + }; + + // Run request + const response = await computeClient.update(request); + console.log(response); + } + + callUpdate(); + // [END compute_v1_generated_ReservationSlots_Update_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json index b09c98a455c..24236fc37b5 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 @@ -3879,7 +3879,7 @@ "regionTag": "compute_v1_generated_Disks_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "description": " Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask.", "canonical": true, "file": "disks.update.js", "language": "JAVASCRIPT", @@ -4898,7 +4898,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 59, "type": "FULL" } ], @@ -4907,6 +4907,10 @@ "fullName": "google.cloud.compute.v1.FirewallPolicies.ListAssociations", "async": true, "parameters": [ + { + "name": "include_inherited_policies", + "type": "TYPE_BOOL" + }, { "name": "target_resource", "type": "TYPE_STRING" @@ -7359,7 +7363,7 @@ "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request.", + "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", "canonical": true, "file": "global_network_endpoint_groups.insert.js", "language": "JAVASCRIPT", @@ -19367,7 +19371,7 @@ "regionTag": "compute_v1_generated_NetworkEndpointGroups_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request.", + "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", "canonical": true, "file": "network_endpoint_groups.insert.js", "language": "JAVASCRIPT", @@ -27899,7 +27903,7 @@ "regionTag": "compute_v1_generated_RegionDisks_Update_async", "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.", + "description": " Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask.", "canonical": true, "file": "region_disks.update.js", "language": "JAVASCRIPT", @@ -28072,12 +28076,80 @@ } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Delete_async", + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", + "canonical": true, + "file": "region_health_aggregation_policies.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" + } + ], + "resultType": ".google.cloud.compute.v1.HealthAggregationPolicyAggregatedList", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedList", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified HealthCheck resource.", + "description": " Deletes the specified HealthAggregationPolicy in the given region.", "canonical": true, - "file": "region_health_checks.delete.js", + "file": "region_health_aggregation_policies.delete.js", "language": "JAVASCRIPT", "segments": [ { @@ -28088,11 +28160,11 @@ ], "clientMethod": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", "async": true, "parameters": [ { - "name": "health_check", + "name": "health_aggregation_policy", "type": "TYPE_STRING" }, { @@ -28110,26 +28182,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" }, "method": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Get_async", + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource.", + "description": " Returns the specified HealthAggregationPolicy resource in the given region.", "canonical": true, - "file": "region_health_checks.get.js", + "file": "region_health_aggregation_policies.get.js", "language": "JAVASCRIPT", "segments": [ { @@ -28140,11 +28212,11 @@ ], "clientMethod": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", "async": true, "parameters": [ { - "name": "health_check", + "name": "health_aggregation_policy", "type": "TYPE_STRING" }, { @@ -28156,28 +28228,28 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.HealthCheck", + "resultType": ".google.cloud.compute.v1.HealthAggregationPolicy", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" }, "method": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Insert_async", + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a HealthCheck resource in the specified project using the data included in the request.", + "description": " Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.", "canonical": true, - "file": "region_health_checks.insert.js", + "file": "region_health_aggregation_policies.insert.js", "language": "JAVASCRIPT", "segments": [ { @@ -28188,12 +28260,12 @@ ], "clientMethod": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", "async": true, "parameters": [ { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" + "name": "health_aggregation_policy_resource", + "type": ".google.cloud.compute.v1.HealthAggregationPolicy" }, { "name": "project", @@ -28210,26 +28282,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" }, "method": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_List_async", + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of HealthCheck resources available to the specified project.", + "description": " Lists the HealthAggregationPolicies for a project in the given region.", "canonical": true, - "file": "region_health_checks.list.js", + "file": "region_health_aggregation_policies.list.js", "language": "JAVASCRIPT", "segments": [ { @@ -28240,7 +28312,7 @@ ], "clientMethod": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.List", "async": true, "parameters": [ { @@ -28272,48 +28344,48 @@ "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.HealthCheckList", + "resultType": ".google.cloud.compute.v1.HealthAggregationPolicyList", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" }, "method": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.List", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Patch_async", + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", + "description": " Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", "canonical": true, - "file": "region_health_checks.patch.js", + "file": "region_health_aggregation_policies.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], "clientMethod": { "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", "async": true, "parameters": [ { - "name": "health_check", + "name": "health_aggregation_policy", "type": "TYPE_STRING" }, { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" + "name": "health_aggregation_policy_resource", + "type": ".google.cloud.compute.v1.HealthAggregationPolicy" }, { "name": "project", @@ -28330,26 +28402,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" }, "method": { "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_TestIamPermissions_async", + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_TestIamPermissions_async", "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", "description": " Returns permissions that a caller has on the specified resource.", "canonical": true, - "file": "region_health_checks.test_iam_permissions.js", + "file": "region_health_aggregation_policies.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { @@ -28360,7 +28432,7 @@ ], "clientMethod": { "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissions", "async": true, "parameters": [ { @@ -28382,47 +28454,43 @@ ], "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" }, "method": { "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissions", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Update_async", - "title": "AcceleratorTypes update Sample", + "regionTag": "compute_v1_generated_RegionHealthChecks_Delete_async", + "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", + "description": " Deletes the specified HealthCheck resource.", "canonical": true, - "file": "region_health_checks.update.js", + "file": "region_health_checks.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 77, "type": "FULL" } ], "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", "async": true, "parameters": [ { "name": "health_check", "type": "TYPE_STRING" }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" - }, { "name": "project", "type": "TYPE_STRING" @@ -28442,8 +28510,8 @@ "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" }, "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", "service": { "shortName": "RegionHealthChecks", "fullName": "google.cloud.compute.v1.RegionHealthChecks" @@ -28452,79 +28520,27 @@ } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional HealthCheckService.", - "canonical": true, - "file": "region_health_check_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", - "async": true, - "parameters": [ - { - "name": "health_check_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_async", + "regionTag": "compute_v1_generated_RegionHealthChecks_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified regional HealthCheckService resource.", + "description": " Returns the specified HealthCheck resource.", "canonical": true, - "file": "region_health_check_services.get.js", + "file": "region_health_checks.get.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 64, + "end": 63, "type": "FULL" } ], "clientMethod": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", "async": true, "parameters": [ { - "name": "health_check_service", + "name": "health_check", "type": "TYPE_STRING" }, { @@ -28536,28 +28552,28 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.HealthCheckService", + "resultType": ".google.cloud.compute.v1.HealthCheck", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" }, "method": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Insert_async", + "regionTag": "compute_v1_generated_RegionHealthChecks_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.", + "description": " Creates a HealthCheck resource in the specified project using the data included in the request.", "canonical": true, - "file": "region_health_check_services.insert.js", + "file": "region_health_checks.insert.js", "language": "JAVASCRIPT", "segments": [ { @@ -28568,12 +28584,12 @@ ], "clientMethod": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", "async": true, "parameters": [ { - "name": "health_check_service_resource", - "type": ".google.cloud.compute.v1.HealthCheckService" + "name": "health_check_resource", + "type": ".google.cloud.compute.v1.HealthCheck" }, { "name": "project", @@ -28590,26 +28606,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" }, "method": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_List_async", + "regionTag": "compute_v1_generated_RegionHealthChecks_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Lists all the HealthCheckService resources that have been configured for the specified project in the given region.", + "description": " Retrieves the list of HealthCheck resources available to the specified project.", "canonical": true, - "file": "region_health_check_services.list.js", + "file": "region_health_checks.list.js", "language": "JAVASCRIPT", "segments": [ { @@ -28620,7 +28636,7 @@ ], "clientMethod": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", "async": true, "parameters": [ { @@ -28652,7 +28668,387 @@ "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.HealthCheckServicesList", + "resultType": ".google.cloud.compute.v1.HealthCheckList", + "client": { + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", + "service": { + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthChecks_Patch_async", + "title": "AcceleratorTypes patch Sample", + "origin": "API_DEFINITION", + "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", + "canonical": true, + "file": "region_health_checks.patch.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", + "async": true, + "parameters": [ + { + "name": "health_check", + "type": "TYPE_STRING" + }, + { + "name": "health_check_resource", + "type": ".google.cloud.compute.v1.HealthCheck" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + }, + "method": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", + "service": { + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthChecks_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_health_checks.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "client": { + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", + "service": { + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthChecks_Update_async", + "title": "AcceleratorTypes update Sample", + "origin": "API_DEFINITION", + "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", + "canonical": true, + "file": "region_health_checks.update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 82, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "async": true, + "parameters": [ + { + "name": "health_check", + "type": "TYPE_STRING" + }, + { + "name": "health_check_resource", + "type": ".google.cloud.compute.v1.HealthCheck" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "service": { + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified regional HealthCheckService.", + "canonical": true, + "file": "region_health_check_services.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", + "async": true, + "parameters": [ + { + "name": "health_check_service", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", + "service": { + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified regional HealthCheckService resource.", + "canonical": true, + "file": "region_health_check_services.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 64, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", + "async": true, + "parameters": [ + { + "name": "health_check_service", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.HealthCheckService", + "client": { + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", + "service": { + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.", + "canonical": true, + "file": "region_health_check_services.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "async": true, + "parameters": [ + { + "name": "health_check_service_resource", + "type": ".google.cloud.compute.v1.HealthCheckService" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "service": { + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthCheckServices_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Lists all the HealthCheckService resources that have been configured for the specified project in the given region.", + "canonical": true, + "file": "region_health_check_services.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1.HealthCheckServicesList", "client": { "shortName": "RegionHealthCheckServicesClient", "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" @@ -28723,6 +29119,58 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionHealthCheckServices_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "region_health_check_services.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "client": { + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", + "service": { + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_async", "title": "AcceleratorTypes abandonInstances Sample", @@ -31235,7 +31683,7 @@ "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request.", + "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", "canonical": true, "file": "region_network_endpoint_groups.insert.js", "language": "JAVASCRIPT", @@ -36323,6 +36771,186 @@ } } }, + { + "regionTag": "compute_v1_generated_ReservationSlots_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Retrieves information about the specified reservation slot.", + "canonical": true, + "file": "reservation_slots.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.ReservationSlots.Get", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.ReservationSlotsGetResponse", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1.ReservationSlotsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.ReservationSlots.Get", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1.ReservationSlots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_ReservationSlots_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of reservation slots under a single reservation.", + "canonical": true, + "file": "reservation_slots.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 151, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.ReservationSlots.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.ReservationSlotsListResponse", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1.ReservationSlotsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.ReservationSlots.List", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1.ReservationSlots" + } + } + } + }, + { + "regionTag": "compute_v1_generated_ReservationSlots_Update_async", + "title": "AcceleratorTypes update Sample", + "origin": "API_DEFINITION", + "description": " Update a reservation slot in the specified sub-block.", + "canonical": true, + "file": "reservation_slots.update.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.ReservationSlots.Update", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot_resource", + "type": ".google.cloud.compute.v1.ReservationSlot" + }, + { + "name": "update_mask", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1.ReservationSlotsClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.ReservationSlots.Update", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1.ReservationSlots" + } + } + } + }, { "regionTag": "compute_v1_generated_ReservationSubBlocks_Get_async", "title": "AcceleratorTypes get Sample", diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index 50cea3049ee..883cb9db98e 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -140,6 +140,8 @@ const RegionDisksClient = v1.RegionDisksClient; type RegionDisksClient = v1.RegionDisksClient; const RegionDiskTypesClient = v1.RegionDiskTypesClient; type RegionDiskTypesClient = v1.RegionDiskTypesClient; +const RegionHealthAggregationPoliciesClient = v1.RegionHealthAggregationPoliciesClient; +type RegionHealthAggregationPoliciesClient = v1.RegionHealthAggregationPoliciesClient; const RegionHealthChecksClient = v1.RegionHealthChecksClient; type RegionHealthChecksClient = v1.RegionHealthChecksClient; const RegionHealthCheckServicesClient = v1.RegionHealthCheckServicesClient; @@ -184,6 +186,8 @@ const ReservationBlocksClient = v1.ReservationBlocksClient; type ReservationBlocksClient = v1.ReservationBlocksClient; const ReservationsClient = v1.ReservationsClient; type ReservationsClient = v1.ReservationsClient; +const ReservationSlotsClient = v1.ReservationSlotsClient; +type ReservationSlotsClient = v1.ReservationSlotsClient; const ReservationSubBlocksClient = v1.ReservationSubBlocksClient; type ReservationSubBlocksClient = v1.ReservationSubBlocksClient; const ResourcePoliciesClient = v1.ResourcePoliciesClient; @@ -239,7 +243,7 @@ type ZoneOperationsClient = v1.ZoneOperationsClient; const ZonesClient = v1.ZonesClient; type ZonesClient = v1.ZonesClient; -export {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient}; -export default {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient}; +export {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSlotsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient}; +export default {v1small, v1, v1beta, AcceleratorTypesClient, AddressesClient, AdviceClient, AutoscalersClient, BackendBucketsClient, BackendServicesClient, CrossSiteNetworksClient, DisksClient, DiskTypesClient, ExternalVpnGatewaysClient, FirewallPoliciesClient, FirewallsClient, ForwardingRulesClient, FutureReservationsClient, GlobalAddressesClient, GlobalForwardingRulesClient, GlobalNetworkEndpointGroupsClient, GlobalOperationsClient, GlobalOrganizationOperationsClient, GlobalPublicDelegatedPrefixesClient, HealthChecksClient, ImageFamilyViewsClient, ImagesClient, InstanceGroupManagerResizeRequestsClient, InstanceGroupManagersClient, InstanceGroupsClient, InstancesClient, InstanceSettingsServiceClient, InstanceTemplatesClient, InstantSnapshotsClient, InterconnectAttachmentGroupsClient, InterconnectAttachmentsClient, InterconnectGroupsClient, InterconnectLocationsClient, InterconnectRemoteLocationsClient, InterconnectsClient, LicenseCodesClient, LicensesClient, MachineImagesClient, MachineTypesClient, NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, NetworkProfilesClient, NetworksClient, NodeGroupsClient, NodeTemplatesClient, NodeTypesClient, OrganizationSecurityPoliciesClient, PacketMirroringsClient, PreviewFeaturesClient, ProjectsClient, PublicAdvertisedPrefixesClient, PublicDelegatedPrefixesClient, RegionAutoscalersClient, RegionBackendServicesClient, RegionCommitmentsClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionInstanceGroupManagersClient, RegionInstanceGroupsClient, RegionInstancesClient, RegionInstanceTemplatesClient, RegionInstantSnapshotsClient, RegionNetworkEndpointGroupsClient, RegionNetworkFirewallPoliciesClient, RegionNotificationEndpointsClient, RegionOperationsClient, RegionsClient, RegionSecurityPoliciesClient, RegionSslCertificatesClient, RegionSslPoliciesClient, RegionTargetHttpProxiesClient, RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, RegionZonesClient, ReservationBlocksClient, ReservationsClient, ReservationSlotsClient, ReservationSubBlocksClient, ResourcePoliciesClient, RoutersClient, RoutesClient, SecurityPoliciesClient, ServiceAttachmentsClient, SnapshotsClient, SnapshotSettingsServiceClient, SslCertificatesClient, SslPoliciesClient, StoragePoolsClient, StoragePoolTypesClient, SubnetworksClient, TargetGrpcProxiesClient, TargetHttpProxiesClient, TargetHttpsProxiesClient, TargetInstancesClient, TargetPoolsClient, TargetSslProxiesClient, TargetTcpProxiesClient, TargetVpnGatewaysClient, UrlMapsClient, VpnGatewaysClient, VpnTunnelsClient, WireGroupsClient, ZoneOperationsClient, ZonesClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-compute/src/v1/disks_client.ts b/packages/google-cloud-compute/src/v1/disks_client.ts index 5a8044d07bb..3a219ccb723 100644 --- a/packages/google-cloud-compute/src/v1/disks_client.ts +++ b/packages/google-cloud-compute/src/v1/disks_client.ts @@ -2191,7 +2191,7 @@ export class DisksClient { /** * Updates the specified disk with the data included in the request. * The update is performed only on selected fields included as part - * of update-mask. Only the following fields can be modified: user_license. + * of update-mask. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts index 2ab0b77789f..1962e01bcc5 100644 --- a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts @@ -1285,6 +1285,10 @@ export class FirewallPoliciesClient { * * @param {Object} request * The request object that will be sent. + * @param {boolean} request.includeInheritedPolicies + * If set to "true", the response will contain a list of all associations for + * the containing folders and the containing organization of the target. The + * parameter has no effect if the target is an organization. * @param {string} request.targetResource * The target resource to list associations. It is an organization, or a * folder. diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index 3d4a16d6103..b5596fe1fbd 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -6481,6 +6481,98 @@ } } }, + "RegionHealthAggregationPolicies": { + "clients": { + "grpc": { + "libraryClient": "RegionHealthAggregationPoliciesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionHealthAggregationPoliciesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "RegionHealthChecks": { "clients": { "grpc": { @@ -6594,6 +6686,11 @@ "patch" ] }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, "List": { "methods": [ "list", @@ -6626,6 +6723,11 @@ "patch" ] }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, "List": { "methods": [ "list", @@ -8387,6 +8489,54 @@ } } }, + "ReservationSlots": { + "clients": { + "grpc": { + "libraryClient": "ReservationSlotsClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "Update": { + "methods": [ + "update" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "ReservationSlotsClient", + "rpcs": { + "Get": { + "methods": [ + "get" + ] + }, + "Update": { + "methods": [ + "update" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "ReservationSubBlocks": { "clients": { "grpc": { diff --git a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts index d281886f47c..7ce8e9ecddf 100644 --- a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts @@ -783,6 +783,20 @@ export class GlobalNetworkEndpointGroupsClient { * Creates a network endpoint group in the specified project using the * parameters that are included in the request. * + * Note: Use the following APIs to manage network endpoint groups: + * + * - + * To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + * NEGs): zonal + * API + * - + * To manage NEGs with regional scope (such as regional internet NEGs, + * serverless NEGs, Private Service Connect NEGs): regional + * API + * - + * To manage NEGs with global scope (such as global internet NEGs):global + * API + * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1.NetworkEndpointGroup} request.networkEndpointGroupResource diff --git a/packages/google-cloud-compute/src/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 72e89882c8a..8ee7992e392 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -76,6 +76,7 @@ export {RegionBackendServicesClient} from './region_backend_services_client'; export {RegionCommitmentsClient} from './region_commitments_client'; export {RegionDisksClient} from './region_disks_client'; export {RegionDiskTypesClient} from './region_disk_types_client'; +export {RegionHealthAggregationPoliciesClient} from './region_health_aggregation_policies_client'; export {RegionHealthChecksClient} from './region_health_checks_client'; export {RegionHealthCheckServicesClient} from './region_health_check_services_client'; export {RegionInstanceGroupManagersClient} from './region_instance_group_managers_client'; @@ -98,6 +99,7 @@ export {RegionUrlMapsClient} from './region_url_maps_client'; export {RegionZonesClient} from './region_zones_client'; export {ReservationBlocksClient} from './reservation_blocks_client'; export {ReservationsClient} from './reservations_client'; +export {ReservationSlotsClient} from './reservation_slots_client'; export {ReservationSubBlocksClient} from './reservation_sub_blocks_client'; export {ResourcePoliciesClient} from './resource_policies_client'; export {RoutersClient} from './routers_client'; diff --git a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts index 17d539e8ba4..056ffcb637c 100644 --- a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts @@ -804,6 +804,20 @@ export class NetworkEndpointGroupsClient { * Creates a network endpoint group in the specified project using the * parameters that are included in the request. * + * Note: Use the following APIs to manage network endpoint groups: + * + * - + * To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + * NEGs): zonal + * API + * - + * To manage NEGs with regional scope (such as regional internet NEGs, + * serverless NEGs, Private Service Connect NEGs): regional + * API + * - + * To manage NEGs with global scope (such as global internet NEGs):global + * API + * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1.NetworkEndpointGroup} request.networkEndpointGroupResource diff --git a/packages/google-cloud-compute/src/v1/region_disks_client.ts b/packages/google-cloud-compute/src/v1/region_disks_client.ts index 7f5c07e2da9..80fa84c0a57 100644 --- a/packages/google-cloud-compute/src/v1/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disks_client.ts @@ -2060,8 +2060,7 @@ export class RegionDisksClient { } /** * Update the specified disk with the data included in the request. Update is - * performed only on selected fields included as part of update-mask. Only the - * following fields can be modified: user_license. + * performed only on selected fields included as part of update-mask. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_client.ts b/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_client.ts new file mode 100644 index 00000000000..65283e9e4fd --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_client.ts @@ -0,0 +1,1511 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1/region_health_aggregation_policies_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_health_aggregation_policies_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionHealthAggregationPolicies API. + * @class + * @memberof v1 + */ +export class RegionHealthAggregationPoliciesClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionHealthAggregationPoliciesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionHealthAggregationPoliciesClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RegionHealthAggregationPoliciesClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof RegionHealthAggregationPoliciesClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + aggregatedList: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items'), + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1.RegionHealthAggregationPolicies', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.regionHealthAggregationPoliciesStub) { + return this.regionHealthAggregationPoliciesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionHealthAggregationPolicies. + this.regionHealthAggregationPoliciesStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionHealthAggregationPolicies') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionHealthAggregationPolicies, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const regionHealthAggregationPoliciesStubMethods = + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; + for (const methodName of regionHealthAggregationPoliciesStubMethods) { + const callPromise = this.regionHealthAggregationPoliciesStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionHealthAggregationPoliciesStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Deletes the specified HealthAggregationPolicy in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthAggregationPolicy + * Name of the HealthAggregationPolicy resource to delete. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/region_health_aggregation_policies.delete.js + * region_tag:compute_v1_generated_RegionHealthAggregationPolicies_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'health_aggregation_policy': request.healthAggregationPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('delete request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('delete response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.delete(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns the specified HealthAggregationPolicy resource in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthAggregationPolicy + * Name of the HealthAggregationPolicy resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1.HealthAggregationPolicy|HealthAggregationPolicy}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/region_health_aggregation_policies.get.js + * region_tag:compute_v1_generated_RegionHealthAggregationPolicies_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'health_aggregation_policy': request.healthAggregationPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1.IHealthAggregationPolicy, + protos.google.cloud.compute.v1.IGetRegionHealthAggregationPolicyRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Create a HealthAggregationPolicy in the specified project in the given + * region using the parameters that are included in the request. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.HealthAggregationPolicy} request.healthAggregationPolicyResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/region_health_aggregation_policies.insert.js + * region_tag:compute_v1_generated_RegionHealthAggregationPolicies_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('insert request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('insert response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.insert(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Updates the specified regional HealthAggregationPolicy + * resource with the data included in the request. This method supportsPATCH + * semantics and uses theJSON merge + * patch format and processing rules. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthAggregationPolicy + * Name of the HealthAggregationPolicy to update. The name + * must be 1-63 characters long, and comply with RFC1035. + * @param {google.cloud.compute.v1.HealthAggregationPolicy} request.healthAggregationPolicyResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/region_health_aggregation_policies.patch.js + * region_tag:compute_v1_generated_RegionHealthAggregationPolicies_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'health_aggregation_policy': request.healthAggregationPolicy ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('patch request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('patch response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.patch(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/region_health_aggregation_policies.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionHealthAggregationPolicies_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthAggregationPolicyRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + +/** + * Retrieves the list of all HealthAggregationPolicy resources, + * regional and global, available to the specified project. + * + * To prevent failure, it is recommended that you set the + * `returnPartialSuccess` parameter to `true`. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {boolean} request.includeAllScopes + * Indicates whether every visible scope for each scope type (zone, region, + * global) should be included in the response. For new resource types added + * after this field, the flag has no effect as new resource types will always + * include every visible scope for each scope type in response. For resource + * types which predate this field, if this flag is omitted or false, only + * scopes of the scope types where the resource type is expected to be found + * will be included. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Name of the project scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which + * aggregated list request is invoked for subnetworks list-usable api. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * as tuple [string, {@link protos.google.cloud.compute.v1.HealthAggregationPoliciesScopedList|HealthAggregationPoliciesScopedList}]. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/region_health_aggregation_policies.aggregated_list.js + * region_tag:compute_v1_generated_RegionHealthAggregationPolicies_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1.IHealthAggregationPoliciesScopedList]>{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + }); + const defaultCallSettings = this._defaults['aggregatedList']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('aggregatedList iterate %j', request); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable<[string, protos.google.cloud.compute.v1.IHealthAggregationPoliciesScopedList]>; + } + /** + * Lists the HealthAggregationPolicies for a project in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1.HealthAggregationPolicy|HealthAggregationPolicy}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IHealthAggregationPolicy[], + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest|null, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList + ]>; + list( + request: protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1.IHealthAggregationPolicy>): void; + list( + request: protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1.IHealthAggregationPolicy>): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1.IHealthAggregationPolicy>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1.IHealthAggregationPolicy>): + Promise<[ + protos.google.cloud.compute.v1.IHealthAggregationPolicy[], + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest|null, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList|null|undefined, + protos.google.cloud.compute.v1.IHealthAggregationPolicy>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1.IHealthAggregationPolicy[], + protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest|null, + protos.google.cloud.compute.v1.IHealthAggregationPolicyList + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1.HealthAggregationPolicy|HealthAggregationPolicy} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region scoping this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1.HealthAggregationPolicy|HealthAggregationPolicy}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/region_health_aggregation_policies.list.js + * region_tag:compute_v1_generated_RegionHealthAggregationPolicies_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.regionHealthAggregationPoliciesStub && !this._terminated) { + return this.regionHealthAggregationPoliciesStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_client_config.json b/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_client_config.json new file mode 100644 index 00000000000..a49f0923948 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionHealthAggregationPolicies": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Patch": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_proto_list.json b/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_health_aggregation_policies_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts b/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts index 47f5111abb9..ce1a6d3ed97 100644 --- a/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts +++ b/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts @@ -223,7 +223,7 @@ export class RegionHealthCheckServicesClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionHealthCheckServicesStubMethods = - ['delete', 'get', 'insert', 'list', 'patch']; + ['delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; for (const methodName of regionHealthCheckServicesStubMethods) { const callPromise = this.regionHealthCheckServicesStub.then( stub => (...args: Array<{}>) => { @@ -789,6 +789,108 @@ export class RegionHealthCheckServicesClient { throw error; }); } +/** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1.TestPermissionsResponse|TestPermissionsResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/region_health_check_services.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionHealthCheckServices_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'region': request.region ?? '', + 'resource': request.resource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('testIamPermissions request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('testIamPermissions response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.testIamPermissions(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthCheckServiceRequest|undefined, + {}|undefined + ]) => { + this._log.info('testIamPermissions response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } /** * Lists all the HealthCheckService resources that have been diff --git a/packages/google-cloud-compute/src/v1/region_health_check_services_client_config.json b/packages/google-cloud-compute/src/v1/region_health_check_services_client_config.json index e421f312aaa..e8c9e272643 100644 --- a/packages/google-cloud-compute/src/v1/region_health_check_services_client_config.json +++ b/packages/google-cloud-compute/src/v1/region_health_check_services_client_config.json @@ -39,6 +39,10 @@ "Patch": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts index 50f90229fa7..4a1bed6a0cc 100644 --- a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts @@ -802,6 +802,20 @@ export class RegionNetworkEndpointGroupsClient { * Creates a network endpoint group in the specified project using the * parameters that are included in the request. * + * Note: Use the following APIs to manage network endpoint groups: + * + * - + * To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity + * NEGs): zonal + * API + * - + * To manage NEGs with regional scope (such as regional internet NEGs, + * serverless NEGs, Private Service Connect NEGs): regional + * API + * - + * To manage NEGs with global scope (such as global internet NEGs):global + * API + * * @param {Object} request * The request object that will be sent. * @param {google.cloud.compute.v1.NetworkEndpointGroup} request.networkEndpointGroupResource diff --git a/packages/google-cloud-compute/src/v1/reservation_slots_client.ts b/packages/google-cloud-compute/src/v1/reservation_slots_client.ts new file mode 100644 index 00000000000..d30b9902c71 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/reservation_slots_client.ts @@ -0,0 +1,1028 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type {Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, GaxCall} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +import {loggingUtils as logging, decodeAnyProtosInArray} from 'google-gax'; + +/** + * Client JSON configuration object, loaded from + * `src/v1/reservation_slots_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './reservation_slots_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The ReservationSlots API. + * @class + * @memberof v1 + */ +export class ReservationSlotsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + private _log = logging.log('compute'); + + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + reservationSlotsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of ReservationSlotsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new ReservationSlotsClient({fallback: true}, gax); + * ``` + */ + constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof ReservationSlotsClient; + if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) { + throw new Error('Please set either universe_domain or universeDomain, but not both.'); + } + const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined; + this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = (this._gaxGrpc.auth as gax.GoogleAuth); + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [ + `gax/${this._gaxModule.version}`, + `gapic/${version}`, + ]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: + new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'items') + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1.ReservationSlots', gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')}); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.reservationSlotsStub) { + return this.reservationSlotsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.ReservationSlots. + this.reservationSlotsStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.ReservationSlots') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.ReservationSlots, + this._opts, this._providedCustomServicePath) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const reservationSlotsStubMethods = + ['get', 'list', 'update']; + for (const methodName of reservationSlotsStubMethods) { + const callPromise = this.reservationSlotsStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error|null|undefined) => () => { + throw err; + }); + + const descriptor = + this.descriptors.page[methodName] || + undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.reservationSlotsStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform' + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback?: Callback): + Promise|void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- +/** + * Retrieves information about the specified reservation slot. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {string} request.reservationSlot + * The name of the reservation slot, formatted as RFC1035 or a resource ID + * number. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link protos.google.cloud.compute.v1.ReservationSlotsGetResponse|ReservationSlotsGetResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/reservation_slots.get.js + * region_tag:compute_v1_generated_ReservationSlots_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetReservationSlotRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetReservationSlotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetReservationSlotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetReservationSlotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + 'reservation_slot': request.reservationSlot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, options, rawResponse) => { + this._log.info('get response %j', response); + callback!(error, response, options, rawResponse); // We verified callback above. + } + : undefined; + return this.innerApiCalls.get(request, options, wrappedCallback) + ?.then(([response, options, rawResponse]: [ + protos.google.cloud.compute.v1.IReservationSlotsGetResponse, + protos.google.cloud.compute.v1.IGetReservationSlotRequest|undefined, + {}|undefined + ]) => { + this._log.info('get response %j', response); + return [response, options, rawResponse]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } +/** + * Update a reservation slot in the specified sub-block. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentName + * The name of the sub-block resource. + * @param {string} request.project + * The project ID for this request. + * @param {string} request.reservationSlot + * The name of the slot resource. + * @param {google.cloud.compute.v1.ReservationSlot} request.reservationSlotResource + * The body resource for this request + * @param {string} request.updateMask + * The fields to be updated as part of this request. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/reservation_slots.update.js + * region_tag:compute_v1_generated_ReservationSlots_Update_async + */ + update( + request?: protos.google.cloud.compute.v1.IUpdateReservationSlotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + update( + request: protos.google.cloud.compute.v1.IUpdateReservationSlotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + update( + request: protos.google.cloud.compute.v1.IUpdateReservationSlotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + update( + request?: protos.google.cloud.compute.v1.IUpdateReservationSlotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + 'reservation_slot': request.reservationSlot ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('update request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IUpdateReservationSlotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('update response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.update(request, options, wrappedCallback) + ?.then(([response, operation, rawResponse]: [protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation, protos.google.cloud.compute.v1.IOperation]) => { + return [ + { latestResponse: response, done: false, name: response.id, metadata: null, result: {}}, + operation, + rawResponse + ]; + }).catch((error: any) => { + if (error && 'statusDetails' in error && error.statusDetails instanceof Array) { + const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos) as unknown as gax.protobuf.Type; + error.statusDetails = decodeAnyProtosInArray(error.statusDetails, protos); + } + throw error; + }); + } + + /** + * Retrieves a list of reservation slots under a single reservation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1.ReservationSlot|ReservationSlot}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1.IListReservationSlotsRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IReservationSlot[], + protos.google.cloud.compute.v1.IListReservationSlotsRequest|null, + protos.google.cloud.compute.v1.IReservationSlotsListResponse + ]>; + list( + request: protos.google.cloud.compute.v1.IListReservationSlotsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListReservationSlotsRequest, + protos.google.cloud.compute.v1.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1.IReservationSlot>): void; + list( + request: protos.google.cloud.compute.v1.IListReservationSlotsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListReservationSlotsRequest, + protos.google.cloud.compute.v1.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1.IReservationSlot>): void; + list( + request?: protos.google.cloud.compute.v1.IListReservationSlotsRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListReservationSlotsRequest, + protos.google.cloud.compute.v1.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1.IReservationSlot>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListReservationSlotsRequest, + protos.google.cloud.compute.v1.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1.IReservationSlot>): + Promise<[ + protos.google.cloud.compute.v1.IReservationSlot[], + protos.google.cloud.compute.v1.IListReservationSlotsRequest|null, + protos.google.cloud.compute.v1.IReservationSlotsListResponse + ]>|void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + }); + this.initialize().catch(err => {throw err}); + const wrappedCallback: PaginationCallback< + protos.google.cloud.compute.v1.IListReservationSlotsRequest, + protos.google.cloud.compute.v1.IReservationSlotsListResponse|null|undefined, + protos.google.cloud.compute.v1.IReservationSlot>|undefined = callback + ? (error, values, nextPageRequest, rawResponse) => { + this._log.info('list values %j', values); + callback!(error, values, nextPageRequest, rawResponse); // We verified callback above. + } + : undefined; + this._log.info('list request %j', request); + return this.innerApiCalls + .list(request, options, wrappedCallback) + ?.then(([response, input, output]: [ + protos.google.cloud.compute.v1.IReservationSlot[], + protos.google.cloud.compute.v1.IListReservationSlotsRequest|null, + protos.google.cloud.compute.v1.IReservationSlotsListResponse + ]) => { + this._log.info('list values %j', response); + return [response, input, output]; + }); + } + +/** + * Equivalent to `list`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1.ReservationSlot|ReservationSlot} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1.IListReservationSlotsRequest, + options?: CallOptions): + Transform{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list stream %j', request); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + +/** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * These two types of filter expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value + * must be a string, a number, or a boolean. The operator + * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can + * exclude instances named `example-instance` by specifying + * `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. + * For example, to find all objects with `owner` label use: + * ``` + * labels.owner:* + * ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only + * if they are not scheduled for automatic restarts. You can use filtering + * on nested fields to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: + * ``` + * (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") + * ``` + * By default, each expression is an `AND` expression. However, you + * can include `AND` and `OR` expressions explicitly. + * For example: + * ``` + * (cpuPlatform = "Intel Skylake") OR + * (cpuPlatform = "Intel Broadwell") AND + * (scheduling.automaticRestart = true) + * ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` + * (not equal) operator against a single un-parenthesized expression with or + * without quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` + * `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` + * `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular + * expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. + * If the number of available results is larger than `maxResults`, + * Compute Engine returns a `nextPageToken` that can be used to get + * the next page of results in subsequent list requests. Acceptable values are + * `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results + * are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using `orderBy="creationTimestamp desc"`. This sorts + * results based on the `creationTimestamp` field in + * reverse chronological order (newest result first). Use this to sort + * resources like operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or + * `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the + * `nextPageToken` returned by a previous list request to get + * the next page of results. + * @param {string} request.parentName + * The name of the parent reservation and parent block, formatted as + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * The project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case + * of failure. The default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @param {string} request.zone + * The name of the zone for this request, formatted as RFC1035. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1.ReservationSlot|ReservationSlot}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/reservation_slots.list.js + * region_tag:compute_v1_generated_ReservationSlots_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListReservationSlotsRequest, + options?: CallOptions): + AsyncIterable{ + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = this._gaxModule.routingHeader.fromParams({ + 'project': request.project ?? '', + 'zone': request.zone ?? '', + 'parent_name': request.parentName ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize().catch(err => {throw err}); + this._log.info('list iterate %j', request); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.reservationSlotsStub && !this._terminated) { + return this.reservationSlotsStub.then(stub => { + this._log.info('ending gRPC channel'); + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} \ No newline at end of file diff --git a/packages/google-cloud-compute/src/v1/reservation_slots_client_config.json b/packages/google-cloud-compute/src/v1/reservation_slots_client_config.json new file mode 100644 index 00000000000..72c39bab0ad --- /dev/null +++ b/packages/google-cloud-compute/src/v1/reservation_slots_client_config.json @@ -0,0 +1,38 @@ +{ + "interfaces": { + "google.cloud.compute.v1.ReservationSlots": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Update": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/reservation_slots_proto_list.json b/packages/google-cloud-compute/src/v1/reservation_slots_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/reservation_slots_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/test/gapic_region_health_aggregation_policies_v1.ts b/packages/google-cloud-compute/test/gapic_region_health_aggregation_policies_v1.ts new file mode 100644 index 00000000000..b3dd910e2e6 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_health_aggregation_policies_v1.ts @@ -0,0 +1,1258 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as regionhealthaggregationpoliciesModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.RegionHealthAggregationPoliciesClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthAggregationPoliciesStub, undefined); + await client.initialize(); + assert(client.regionHealthAggregationPoliciesStub); + }); + + it('has close method for the initialized client', done => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionHealthAggregationPoliciesStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthAggregationPoliciesStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.delete as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.HealthAggregationPolicy() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.HealthAggregationPolicy() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IHealthAggregationPolicy|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.insert as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('patch', () => { + it('invokes patch without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.patch = stubSimpleCall(expectedResponse); + const [response] = await client.patch(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.patch = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.patch( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_aggregation_policy=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.patch = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.patch(request), expectedError); + const actualRequest = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.patch as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes patch with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthAggregationPolicyRequest', ['healthAggregationPolicy']); + request.healthAggregationPolicy = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.patch(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthAggregationPolicyRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPoliciesScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPoliciesScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPoliciesScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1.IHealthAggregationPoliciesScopedList]> = []; + const iterable = client.aggregatedListAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with aggregatedList with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.aggregatedListAsync(request); + await assert.rejects(async () => { + const responses: Array<[string, protos.google.cloud.compute.v1.IHealthAggregationPoliciesScopedList]> = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IHealthAggregationPolicy[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.HealthAggregationPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.HealthAggregationPolicy) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.HealthAggregationPolicy[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.HealthAggregationPolicy) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthAggregationPolicy()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IHealthAggregationPolicy[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new regionhealthaggregationpoliciesModule.v1.RegionHealthAggregationPoliciesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1.IHealthAggregationPolicy[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts b/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts index 0d951521051..6fdc30afe97 100644 --- a/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_health_check_services_v1.ts @@ -786,6 +786,138 @@ describe('v1.RegionHealthCheckServicesClient', () => { }); }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ITestPermissionsResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['resource']); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&resource=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest', ['resource']); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ diff --git a/packages/google-cloud-compute/test/gapic_reservation_slots_v1.ts b/packages/google-cloud-compute/test/gapic_reservation_slots_v1.ts new file mode 100644 index 00000000000..6284b32ba0f --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_reservation_slots_v1.ts @@ -0,0 +1,847 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as reservationslotsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON(require('../protos/protos.json')).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message) + .toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback(response?: ResponseType, error?: Error) { + return error ? sinon.stub().callsArgWith(2, error) : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall(responses?: ResponseType[], error?: Error) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error ? sinon.stub().callsArgWith(2, error) : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { mockStream.write({}); }); + } + setImmediate(() => { mockStream.end(); }); + } else { + setImmediate(() => { mockStream.write({}); }); + setImmediate(() => { mockStream.end(); }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall(responses?: ResponseType[], error?: Error) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + } + }; + } + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.ReservationSlotsClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon.stub().resolves({Authorization: 'Bearer SOME_TOKEN'}), + }) + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, "googleapis.com"); + }); + + if (typeof process === 'object' && typeof process.emitWarning === 'function') { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = reservationslotsModule.v1.ReservationSlotsClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = reservationslotsModule.v1.ReservationSlotsClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({universe_domain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new reservationslotsModule.v1.ReservationSlotsClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new reservationslotsModule.v1.ReservationSlotsClient({universeDomain: 'configured.example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { new reservationslotsModule.v1.ReservationSlotsClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = reservationslotsModule.v1.ReservationSlotsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.reservationSlotsStub, undefined); + await client.initialize(); + assert(client.reservationSlotsStub); + }); + + it('has close method for the initialized client', done => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.reservationSlotsStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.reservationSlotsStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error|null, projectId?: string|null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.ReservationSlotsGetResponse() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.ReservationSlotsGetResponse() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IReservationSlotsGetResponse|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.get as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('update', () => { + it('invokes update without error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update without error using callback', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + const actualRequest = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.update as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes update with closed client', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.UpdateReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.update(request), expectedError); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IReservationSlot[]|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.list as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + ]; + client.descriptors.page.list.createStream = stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.ReservationSlot[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.ReservationSlot) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall(undefined, expectedError); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.ReservationSlot[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.ReservationSlot) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert((client.descriptors.page.list.createStream as SinonStub) + .getCall(0).calledWith(client.innerApiCalls.list, request)); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + generateSampleMessage(new protos.google.cloud.compute.v1.ReservationSlot()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IReservationSlot[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new reservationslotsModule.v1.ReservationSlotsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListReservationSlotsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.ListReservationSlotsRequest', ['parentName']); + request.parentName = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1.IReservationSlot[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[1], request); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0).args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +});