diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index d6a5e8ae6b6..4afae6baa7c 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -577,6 +577,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_commitments.insert.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_commitments.update.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.aggregated_list.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.list.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.patch.js) | +| test iam permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.test_iam_permissions.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disk_types.get.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js) | | add resource policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.add_resource_policies.js) | @@ -603,6 +610,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | 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) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.aggregated_list.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) | @@ -616,6 +624,13 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_checks.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_checks.test_iam_permissions.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_checks.update.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.aggregated_list.js) | +| delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.delete.js) | +| get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.get.js) | +| insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.insert.js) | +| list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.list.js) | +| patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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_sources.test_iam_permissions.js) | | abandon instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.abandon_instances.js) | | apply updates to instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.apply_updates_to_instances.js) | | create instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.create_instances.js) | @@ -681,6 +696,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | remove rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_firewall_policies.remove_rule.js) | | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_network_firewall_policies.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/region_network_firewall_policies.test_iam_permissions.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.insert.js) | @@ -743,10 +759,12 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | 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) | +| get version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_slots.get_version.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) | +| get version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.get_version.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) | | perform maintenance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.perform_maintenance.js) | | report faulty | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.report_faulty.js) | @@ -1557,6 +1575,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_aggregation_policies.list.js) | | patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/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/v1beta/region_health_aggregation_policies.test_iam_permissions.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.insert.js) | @@ -1679,6 +1698,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | patch traffic classification rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.patch_traffic_classification_rule.js) | | remove association | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_association.js) | | remove traffic classification rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_network_policies.remove_traffic_classification_rule.js) | +| aggregated list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.aggregated_list.js) | | delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.delete.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.get.js) | | insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.insert.js) | @@ -1758,10 +1778,12 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ | set iam policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/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/v1beta/reservation_blocks.test_iam_permissions.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get.js) | +| get version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get_version.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.list.js) | | update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.update.js) | | get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/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/v1beta/reservation_sub_blocks.get_iam_policy.js) | +| get version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_version.js) | | list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.list.js) | | perform maintenance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.perform_maintenance.js) | | report faulty | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.report_faulty.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 08a52e72f2d..4e072f2aac8 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: 20260213 +// Source file revision: 20260227 // API name: compute // API version: v1 @@ -4713,6 +4713,119 @@ message AggregatedListRegionCommitmentsRequest { } +// A request message for RegionCompositeHealthChecks.AggregatedList. See the method description for details. +message AggregatedListRegionCompositeHealthChecksRequest { + // 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 RegionHealthAggregationPolicies.AggregatedList. See the method description for details. message AggregatedListRegionHealthAggregationPoliciesRequest { // A filter expression that filters resources listed in the response. Most @@ -4826,8 +4939,8 @@ message AggregatedListRegionHealthAggregationPoliciesRequest { } -// A request message for Reservations.AggregatedList. See the method description for details. -message AggregatedListReservationsRequest { +// A request message for RegionHealthCheckServices.AggregatedList. See the method description for details. +message AggregatedListRegionHealthCheckServicesRequest { // 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 @@ -4922,7 +5035,7 @@ message AggregatedListReservationsRequest { // the next page of results. optional string page_token = 19994697; - // Project ID for this request. + // 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 @@ -4939,8 +5052,8 @@ message AggregatedListReservationsRequest { } -// A request message for ResourcePolicies.AggregatedList. See the method description for details. -message AggregatedListResourcePoliciesRequest { +// A request message for RegionHealthSources.AggregatedList. See the method description for details. +message AggregatedListRegionHealthSourcesRequest { // 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 @@ -5035,7 +5148,7 @@ message AggregatedListResourcePoliciesRequest { // the next page of results. optional string page_token = 19994697; - // Project ID for this request. + // 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 @@ -5052,8 +5165,121 @@ message AggregatedListResourcePoliciesRequest { } -// A request message for Routers.AggregatedList. See the method description for details. -message AggregatedListRoutersRequest { +// A request message for RegionNotificationEndpoints.AggregatedList. See the method description for details. +message AggregatedListRegionNotificationEndpointsRequest { + // 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 // Compute resources support two types of filter expressions: // expressions that support regular expressions and expressions that follow @@ -5165,8 +5391,8 @@ message AggregatedListRoutersRequest { } -// A request message for SecurityPolicies.AggregatedList. See the method description for details. -message AggregatedListSecurityPoliciesRequest { +// A request message for ResourcePolicies.AggregatedList. See the method description for details. +message AggregatedListResourcePoliciesRequest { // 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 @@ -5261,7 +5487,7 @@ message AggregatedListSecurityPoliciesRequest { // the next page of results. optional string page_token = 19994697; - // Name of the project scoping this request. + // 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 @@ -5278,8 +5504,8 @@ message AggregatedListSecurityPoliciesRequest { } -// A request message for ServiceAttachments.AggregatedList. See the method description for details. -message AggregatedListServiceAttachmentsRequest { +// A request message for Routers.AggregatedList. See the method description for details. +message AggregatedListRoutersRequest { // 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 @@ -5374,7 +5600,7 @@ message AggregatedListServiceAttachmentsRequest { // the next page of results. optional string page_token = 19994697; - // Name of the project scoping this request. + // 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 @@ -5391,8 +5617,8 @@ message AggregatedListServiceAttachmentsRequest { } -// A request message for SslCertificates.AggregatedList. See the method description for details. -message AggregatedListSslCertificatesRequest { +// A request message for SecurityPolicies.AggregatedList. See the method description for details. +message AggregatedListSecurityPoliciesRequest { // 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 @@ -5504,8 +5730,8 @@ message AggregatedListSslCertificatesRequest { } -// A request message for SslPolicies.AggregatedList. See the method description for details. -message AggregatedListSslPoliciesRequest { +// A request message for ServiceAttachments.AggregatedList. See the method description for details. +message AggregatedListServiceAttachmentsRequest { // 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 @@ -5617,8 +5843,8 @@ message AggregatedListSslPoliciesRequest { } -// A request message for StoragePoolTypes.AggregatedList. See the method description for details. -message AggregatedListStoragePoolTypesRequest { +// A request message for SslCertificates.AggregatedList. See the method description for details. +message AggregatedListSslCertificatesRequest { // 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 @@ -5713,7 +5939,7 @@ message AggregatedListStoragePoolTypesRequest { // the next page of results. optional string page_token = 19994697; - // Project ID for this request. + // 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 @@ -5730,8 +5956,8 @@ message AggregatedListStoragePoolTypesRequest { } -// A request message for StoragePools.AggregatedList. See the method description for details. -message AggregatedListStoragePoolsRequest { +// A request message for SslPolicies.AggregatedList. See the method description for details. +message AggregatedListSslPoliciesRequest { // 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 @@ -5826,7 +6052,7 @@ message AggregatedListStoragePoolsRequest { // the next page of results. optional string page_token = 19994697; - // Project ID for this request. + // 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 @@ -5843,24 +6069,8 @@ message AggregatedListStoragePoolsRequest { } -// A request message for Subnetworks.AggregatedList. See the method description for details. -message AggregatedListSubnetworksRequest { - // 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 StoragePoolTypes.AggregatedList. See the method description for details. +message AggregatedListStoragePoolTypesRequest { // 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 @@ -5970,18 +6180,10 @@ message AggregatedListSubnetworksRequest { // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; - // 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 TargetHttpProxies.AggregatedList. See the method description for details. -message AggregatedListTargetHttpProxiesRequest { +// A request message for StoragePools.AggregatedList. See the method description for details. +message AggregatedListStoragePoolsRequest { // 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 @@ -6076,7 +6278,7 @@ message AggregatedListTargetHttpProxiesRequest { // the next page of results. optional string page_token = 19994697; - // Name of the project scoping this request. + // 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 @@ -6093,121 +6295,24 @@ message AggregatedListTargetHttpProxiesRequest { } -// A request message for TargetHttpsProxies.AggregatedList. See the method description for details. -message AggregatedListTargetHttpsProxiesRequest { - // 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. +// A request message for Subnetworks.AggregatedList. See the method description for details. +message AggregatedListSubnetworksRequest { + // Defines the extra views returned back in the subnetwork resource. + // Supported values: // - // 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]; + // - WITH_UTILIZATION: Utilization data is included in the + // response. + enum Views { + // A value indicating that the enum field is not set. + UNDEFINED_VIEWS = 0; - // 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; + DEFAULT = 115302945; - // 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; + // Utilization data is included in the response. + WITH_UTILIZATION = 504090633; -} + } -// A request message for TargetInstances.AggregatedList. See the method description for details. -message AggregatedListTargetInstancesRequest { // 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 @@ -6317,123 +6422,470 @@ message AggregatedListTargetInstancesRequest { // aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; -} - -// A request message for TargetPools.AggregatedList. See the method description for details. -message AggregatedListTargetPoolsRequest { - // 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; - - // 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. + // Defines the extra views returned back in the subnetwork resource. + // Supported values: // - // 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; + // - 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 TargetTcpProxies.AggregatedList. See the method description for details. -message AggregatedListTargetTcpProxiesRequest { +// A request message for TargetHttpProxies.AggregatedList. See the method description for details. +message AggregatedListTargetHttpProxiesRequest { + // 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 TargetHttpsProxies.AggregatedList. See the method description for details. +message AggregatedListTargetHttpsProxiesRequest { + // 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 TargetInstances.AggregatedList. See the method description for details. +message AggregatedListTargetInstancesRequest { + // 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; + + // 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 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 TargetPools.AggregatedList. See the method description for details. +message AggregatedListTargetPoolsRequest { + // 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; + + // 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 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 TargetTcpProxies.AggregatedList. See the method description for details. +message AggregatedListTargetTcpProxiesRequest { // 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 @@ -10613,7 +11065,7 @@ message BackendServiceCustomMetric { // connections to persist, even on VMs no longer in the active pool, for up // to the duration of the connection draining timeout (10 minutes). message BackendServiceFailoverPolicy { - // This can be set to true only if the protocol isTCP. + // This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. // // The default is false. optional bool disable_connection_drain_on_failover = 182150753; @@ -12755,6 +13207,136 @@ message CommitmentsScopedList { } +// Represents a composite health check. +// +// A composite health check resource specifies the health source resources and +// the health destination resource to which the aggregated health result from +// the health source resources is delivered. +message CompositeHealthCheck { + // 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 CompositeHealthCheck. An up-to-date fingerprint + // must be provided in order to patch the CompositeHealthCheck; Otherwise, + // the request will fail with error 412 conditionNotMet. To see + // the latest fingerprint, make a get() request to retrieve the + // CompositeHealthCheck. + optional string fingerprint = 234678500; + + // URL to the destination resource. Must be set. Must be aForwardingRule. The ForwardingRule must have + // load balancing scheme INTERNAL orINTERNAL_MANAGED and must be regional and in the same region + // as the CompositeHealthCheck (cross-region deployment forINTERNAL_MANAGED is not supported). Can be mutated. + optional string health_destination = 311098027; + + // URLs to the HealthSource resources whose results are AND'ed. + // I.e. he aggregated result is is HEALTHY only if all sources + // are HEALTHY. Must have at least 1. Must not have more than 10. + // Must be regional and in the same region as theCompositeHealthCheck. Can be mutated. + repeated string health_sources = 397879509; + + // Output only. [Output Only] A unique identifier for this resource type. The server + // generates this identifier. + optional uint64 id = 3355; + + // Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health checks. + optional string kind = 3292052; + + // 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; + + // Output only. [Output Only] URL of the region where the composite health check 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 CompositeHealthChecksScopedList. +message CompositeHealthCheckAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of CompositeHealthChecksScopedList 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 CompositeHealthCheckList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of CompositeHealthCheck resources. + repeated CompositeHealthCheck items = 100526016; + + // Output only. [Output Only] Type of the resource. Alwayscompute#compositeHealthCheck for composite health checks. + 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; + +} + +// +message CompositeHealthChecksScopedList { + // A list of CompositeHealthChecks contained in this scope. + repeated CompositeHealthCheck composite_health_checks = 517891062; + + // Informational warning which replaces the list of composite health checks + // when the list is empty. + optional Warning warning = 50704284; + +} + // A set of Confidential Instance options. message ConfidentialInstanceConfig { // Defines the type of technology used by the confidential instance. @@ -14913,6 +15495,40 @@ message DeleteRegionBackendServiceRequest { } +// A request message for RegionCompositeHealthChecks.Delete. See the method description for details. +message DeleteRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck resource to delete. + string composite_health_check = 466984989 [(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 RegionDisks.Delete. See the method description for details. message DeleteRegionDiskRequest { // Name of the regional persistent disk to delete. @@ -15050,6 +15666,40 @@ message DeleteRegionHealthCheckServiceRequest { } +// A request message for RegionHealthSources.Delete. See the method description for details. +message DeleteRegionHealthSourceRequest { + // Name of the HealthSource resource to delete. + string health_source = 376521566 [(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 RegionInstanceGroupManagers.Delete. See the method description for details. message DeleteRegionInstanceGroupManagerRequest { // Name of the managed instance group to delete. @@ -17604,6 +18254,11 @@ message DistributionPolicy { // Zones where the regional managed instance group will create and manage // its instances. + // By default, a regional MIG doesn't automatically select an AI zone to create + // instances, even if an AI zone is available in the specified region. To + // create instances in an AI zone in the selected region, you must explicitly + // specify it in the distribution policy together with the other preferred + // zones. repeated DistributionPolicyZoneConfiguration zones = 116085319; } @@ -17688,7 +18343,7 @@ message EnableXpnResourceProjectRequest { } -// Output only. Errors that prevented the ResizeRequest to be fulfilled. +// Output only. [Output Only] Encountered errors. message Error { // [Output Only] The array of errors encountered while processing this // operation. @@ -21990,6 +22645,19 @@ message GetRegionCommitmentRequest { } +// A request message for RegionCompositeHealthChecks.Get. See the method description for details. +message GetRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck resource to return. + string composite_health_check = 466984989 [(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 RegionDisks.Get. See the method description for details. message GetRegionDiskRequest { // Name of the regional persistent disk to return. @@ -22056,6 +22724,19 @@ message GetRegionHealthCheckServiceRequest { } +// A request message for RegionHealthSources.Get. See the method description for details. +message GetRegionHealthSourceRequest { + // Name of the HealthSource resource to return. + string health_source = 376521566 [(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 RegionInstanceGroupManagers.Get. See the method description for details. message GetRegionInstanceGroupManagerRequest { // Name of the managed instance group to return. @@ -22818,6 +23499,108 @@ message GetUrlMapRequest { } +// +message GetVersionOperationMetadata { + optional GetVersionOperationMetadataSbomInfo inline_sbom_info = 7079706; + +} + +// +message GetVersionOperationMetadataSbomInfo { + // SBOM versions currently applied to the resource. The key is the component + // name and the value is the version. + map current_component_versions = 273325091; + + // SBOM versions scheduled for the next maintenance. The key is the + // component name and the value is the version. + map target_component_versions = 345997579; + +} + +// A request message for ReservationSlots.GetVersion. See the method description for details. +message GetVersionReservationSlotRequest { + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the reservation slot. + // Name should conform to RFC1035 or be a resource ID. + string reservation_slot = 277470865 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ReservationSlotsGetVersionRequest reservation_slots_get_version_request_resource = 335316011 [(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, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for ReservationSubBlocks.GetVersion. See the method description for details. +message GetVersionReservationSubBlockRequest { + // 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, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the reservation subBlock. + // Name should conform to RFC1035 or be a resource ID. + string reservation_sub_block = 22750491 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ReservationSubBlocksGetVersionRequest reservation_sub_blocks_get_version_request_resource = 223034677 [(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, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for VpnGateways.Get. See the method description for details. message GetVpnGatewayRequest { // Project ID for this request. @@ -24050,6 +24833,35 @@ message HealthCheckService { } +// Contains a list of HealthCheckServicesScopedList. +message HealthCheckServiceAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthCheckServicesScopedList 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; + +} + // A full or valid partial URL to a health check service. For example, the // following are valid URLs: // @@ -24088,6 +24900,17 @@ message HealthCheckServicesList { } +// +message HealthCheckServicesScopedList { + // A list of HealthCheckServices contained in this scope. + repeated HealthCheckService resources = 164412965; + + // Informational warning which replaces the list of + // backend services when the list is empty. + optional Warning warning = 50704284; + +} + // message HealthChecksAggregatedList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -24128,6 +24951,152 @@ message HealthChecksScopedList { } +// Represents a health source. +// +// A health source resource specifies the source resources and the health +// aggregation policy applied to the source resources to determine the +// aggregated health status. +message HealthSource { + // Specifies the type of the HealthSource. The only allowed value + // is BACKEND_SERVICE. Must be specified when theHealthSource is created, and cannot be mutated. + enum SourceType { + // A value indicating that the enum field is not set. + UNDEFINED_SOURCE_TYPE = 0; + + BACKEND_SERVICE = 285792202; + + } + + // 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 HealthSource. An up-to-date fingerprint + // must be provided in order to patch the HealthSource; Otherwise, the request + // will fail with error 412 conditionNotMet. To see the latest + // fingerprint, make a get() request to retrieve the + // HealthSource. + optional string fingerprint = 234678500; + + // URL to the HealthAggregationPolicy resource. Must be set. Must + // be regional and in the same region as the HealthSource. Can be + // mutated. + optional string health_aggregation_policy = 240314354; + + // Output only. [Output Only] A unique identifier for this resource type. The server + // generates this identifier. + optional uint64 id = 3355; + + // Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + optional string kind = 3292052; + + // 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; + + // Output only. [Output Only] URL of the region where the health source 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; + + // Specifies the type of the HealthSource. The only allowed value + // is BACKEND_SERVICE. Must be specified when theHealthSource is created, and cannot be mutated. + // Check the SourceType enum for the list of possible values. + optional string source_type = 452245726; + + // URLs to the source resources. Must be size 1. Must be aBackendService if + // the sourceType is BACKEND_SERVICE. TheBackendService must have load balancing schemeINTERNAL or INTERNAL_MANAGED and must be regional + // and in the same region as the HealthSource (cross-region + // deployment for INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, MIGs, or NEGs of typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not use haPolicy. Can be + // mutated. + repeated string sources = 125606840; + +} + +// Contains a list of HealthSourcesScopedList. +message HealthSourceAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthSourcesScopedList 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 HealthSourceList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthSource resources. + repeated HealthSource items = 100526016; + + // Output only. [Output Only] Type of the resource. Alwayscompute#healthSource for health sources. + 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; + +} + +// +message HealthSourcesScopedList { + // A list of HealthSources contained in this scope. + repeated HealthSource health_sources = 397879509; + + // Informational warning which replaces the list of + // health sources when the list is empty. + optional Warning warning = 50704284; + +} + // message HealthStatus { // Health state of the IPv4 address of the instance. @@ -26563,46 +27532,114 @@ message InsertPacketMirroringRequest { } -// A request message for PublicAdvertisedPrefixes.Insert. See the method description for details. -message InsertPublicAdvertisedPrefixeRequest { - // Project ID for this request. - string project = 227560217 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "project" - ]; - +// A request message for PublicAdvertisedPrefixes.Insert. See the method description for details. +message InsertPublicAdvertisedPrefixeRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The body resource for this request + PublicAdvertisedPrefix public_advertised_prefix_resource = 233614223 [(google.api.field_behavior) = REQUIRED]; + + // 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 PublicDelegatedPrefixes.Insert. See the method description for details. +message InsertPublicDelegatedPrefixeRequest { + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // The body resource for this request + PublicDelegatedPrefix public_delegated_prefix_resource = 47594501 [(google.api.field_behavior) = REQUIRED]; + + // 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; + +} + +// A request message for RegionAutoscalers.Insert. See the method description for details. +message InsertRegionAutoscalerRequest { + // The body resource for this request + Autoscaler autoscaler_resource = 207616118 [(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 RegionBackendServices.Insert. See the method description for details. +message InsertRegionBackendServiceRequest { // The body resource for this request - PublicAdvertisedPrefix public_advertised_prefix_resource = 233614223 [(google.api.field_behavior) = REQUIRED]; - - // 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; - -} + BackendService backend_service_resource = 347586723 [(google.api.field_behavior) = REQUIRED]; -// A request message for PublicDelegatedPrefixes.Insert. See the method description for details. -message InsertPublicDelegatedPrefixeRequest { // Project ID for this request. string project = 227560217 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "project" ]; - // The body resource for this request - PublicDelegatedPrefix public_delegated_prefix_resource = 47594501 [(google.api.field_behavior) = REQUIRED]; - - // Name of the region of this request. + // Name of the region scoping this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -26625,10 +27662,10 @@ message InsertPublicDelegatedPrefixeRequest { } -// A request message for RegionAutoscalers.Insert. See the method description for details. -message InsertRegionAutoscalerRequest { +// A request message for RegionCommitments.Insert. See the method description for details. +message InsertRegionCommitmentRequest { // The body resource for this request - Autoscaler autoscaler_resource = 207616118 [(google.api.field_behavior) = REQUIRED]; + Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -26636,7 +27673,7 @@ message InsertRegionAutoscalerRequest { (google.cloud.operation_request_field) = "project" ]; - // Name of the region scoping this request. + // Name of the region for this request. string region = 138946292 [ (google.api.field_behavior) = REQUIRED, (google.cloud.operation_request_field) = "region" @@ -26659,10 +27696,10 @@ message InsertRegionAutoscalerRequest { } -// A request message for RegionBackendServices.Insert. See the method description for details. -message InsertRegionBackendServiceRequest { +// A request message for RegionCompositeHealthChecks.Insert. See the method description for details. +message InsertRegionCompositeHealthCheckRequest { // The body resource for this request - BackendService backend_service_resource = 347586723 [(google.api.field_behavior) = REQUIRED]; + CompositeHealthCheck composite_health_check_resource = 132195824 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -26693,10 +27730,10 @@ message InsertRegionBackendServiceRequest { } -// A request message for RegionCommitments.Insert. See the method description for details. -message InsertRegionCommitmentRequest { +// A request message for RegionDisks.Insert. See the method description for details. +message InsertRegionDiskRequest { // The body resource for this request - Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; + Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -26725,12 +27762,15 @@ message InsertRegionCommitmentRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; + // Source image to restore onto a disk. This field is optional. + optional string source_image = 50443319; + } -// A request message for RegionDisks.Insert. See the method description for details. -message InsertRegionDiskRequest { +// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. +message InsertRegionHealthAggregationPolicyRequest { // The body resource for this request - Disk disk_resource = 25880688 [(google.api.field_behavior) = REQUIRED]; + HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -26738,7 +27778,7 @@ message InsertRegionDiskRequest { (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" @@ -26759,15 +27799,12 @@ message InsertRegionDiskRequest { // (00000000-0000-0000-0000-000000000000). optional string request_id = 37109963; - // Source image to restore onto a disk. This field is optional. - optional string source_image = 50443319; - } -// A request message for RegionHealthAggregationPolicies.Insert. See the method description for details. -message InsertRegionHealthAggregationPolicyRequest { +// A request message for RegionHealthChecks.Insert. See the method description for details. +message InsertRegionHealthCheckRequest { // The body resource for this request - HealthAggregationPolicy health_aggregation_policy_resource = 293526971 [(google.api.field_behavior) = REQUIRED]; + HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -26798,10 +27835,10 @@ message InsertRegionHealthAggregationPolicyRequest { } -// A request message for RegionHealthChecks.Insert. See the method description for details. -message InsertRegionHealthCheckRequest { +// A request message for RegionHealthCheckServices.Insert. See the method description for details. +message InsertRegionHealthCheckServiceRequest { // The body resource for this request - HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; + HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -26832,10 +27869,10 @@ message InsertRegionHealthCheckRequest { } -// A request message for RegionHealthCheckServices.Insert. See the method description for details. -message InsertRegionHealthCheckServiceRequest { +// A request message for RegionHealthSources.Insert. See the method description for details. +message InsertRegionHealthSourceRequest { // The body resource for this request - HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; + HealthSource health_source_resource = 357735375 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -28730,6 +29767,10 @@ message InstanceGroupManager { // changes this number. optional int32 target_size = 62880239; + // The policy that specifies how the MIG creates its VMs to achieve the target + // size. + optional InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506; + // The target number of stopped instances for this managed instance group. // This number changes when you: // @@ -29251,10 +30292,17 @@ message InstanceGroupManagerStatus { // Output only. [Output only] Status of all-instances configuration on the group. optional InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737; + // Output only. [Output Only] The accelerator topology applied to this MIG. + // Currently only one accelerator topology is supported. + repeated InstanceGroupManagerStatusAcceleratorTopology applied_accelerator_topologies = 481392547; + // Output only. [Output Only] The URL of theAutoscaler // that targets this instance group manager. optional string autoscaler = 517258967; + // Output only. [Output Only] The status of bulk instance operation. + optional InstanceGroupManagerStatusBulkInstanceOperation bulk_instance_operation = 501667466; + // Output only. [Output Only] A bit indicating whether the managed instance group is in a // stable state. A stable state means that: none of the instances in the // managed instance group is currently undergoing any type of change (for @@ -29273,6 +30321,60 @@ message InstanceGroupManagerStatus { } +// +message InstanceGroupManagerStatusAcceleratorTopology { + // Output only. [Output Only] The state of the accelerator topology. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The accelerator topology is being activated. + ACTIVATING = 378825968; + + // The accelerator topology is active. + ACTIVE = 314733318; + + // The accelerator topology is being deactivated. + DEACTIVATING = 57182257; + + // The accelerator topology failed. + FAILED = 455706685; + + // The configuration is incomplete and the accelerator topology cannot + // be activated due to insufficient number of running VMs. + INCOMPLETE = 11941214; + + // The accelerator topology is being reactivated. + REACTIVATING = 253727587; + + } + + // Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. + // The value is the same as configured in the WorkloadPolicy. + optional string accelerator_topology = 389323203; + + // Output only. [Output Only] The state of the accelerator topology. + // Check the State enum for the list of possible values. + optional string state = 109757585; + + // Output only. [Output Only] The result of the latest accelerator topology state + // check. + optional InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails state_details = 95566996; + +} + +// +message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { + // Output only. [Output Only] Encountered errors. + optional Error error = 96784904; + + // Output only. [Output Only] Timestamp is shown only if there is an error. The field + // has // RFC3339 // + // text format. + optional string timestamp = 55126294; + +} + // message InstanceGroupManagerStatusAllInstancesConfig { // Output only. [Output Only] Current all-instances configuration revision. @@ -29285,6 +30387,29 @@ message InstanceGroupManagerStatusAllInstancesConfig { } +// Bulk instance operation is the creation of VMs in a MIG when the +// targetSizePolicy.mode is set to BULK. +message InstanceGroupManagerStatusBulkInstanceOperation { + // Output only. [Output Only] Informs whether bulk instance operation is in progress. + optional bool in_progress = 320200711; + + // Output only. [Output Only] Information from the last progress check of bulk instance + // operation. + optional InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck last_progress_check = 208638271; + +} + +// +message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { + // Output only. [Output Only] Errors encountered during bulk instance operation. + optional Error error = 96784904; + + // Output only. [Output Only] Timestamp of the last progress check of bulk instance + // operation. Timestamp is in RFC3339 text format. + optional string timestamp = 55126294; + +} + // message InstanceGroupManagerStatusStateful { // Output only. [Output Only] A bit indicating whether the managed instance group @@ -29318,6 +30443,37 @@ message InstanceGroupManagerStatusVersionTarget { } +// +message InstanceGroupManagerTargetSizePolicy { + // The mode of target size policy based on which the MIG creates its VMs + // individually or all at once. + enum Mode { + // A value indicating that the enum field is not set. + UNDEFINED_MODE = 0; + + // The mode in which the MIG creates VMs all at once. In this mode, if the + // MIG is unable to create even one VM, the MIG waits until all VMs can be + // created at the same time. + BULK = 2050322; + + // The mode in which the MIG creates VMs individually. In this mode, if + // the MIG is unable to create a VM, the MIG will continue to create the + // other VMs in the group. This is the default mode. + INDIVIDUAL = 438800025; + + // If mode is unspecified, MIG will behave as in the default `INDIVIDUAL` + // mode. + UNSPECIFIED_MODE = 53715403; + + } + + // The mode of target size policy based on which the MIG creates its VMs + // individually or all at once. + // Check the Mode enum for the list of possible values. + optional string mode = 3357091; + +} + // message InstanceGroupManagerUpdatePolicy { // The @@ -35428,20 +36584,129 @@ message ListBgpRoutesRoutersRequest { // the next page of results. optional string page_token = 19994697; - // (Required) limit results to the BGP peer with the given name. - // Name should conform to RFC1035. - optional string peer = 3436898; - - // When true, the method returns post-policy routes. Otherwise, it returns - // pre-policy routes. - optional bool policy_applied = 379464304; - + // (Required) limit results to the BGP peer with the given name. + // Name should conform to RFC1035. + optional string peer = 3436898; + + // When true, the method returns post-policy routes. Otherwise, it returns + // pre-policy routes. + optional bool policy_applied = 379464304; + + // 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; + + // (Required) limit results to this type of route (either LEARNED or + // ADVERTISED) + // Check the RouteType enum for the list of possible values. + optional string route_type = 375888752; + + // 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 CrossSiteNetworks.List. See the method description for details. +message ListCrossSiteNetworksRequest { + // 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. // @@ -35450,19 +36715,10 @@ message ListBgpRoutesRoutersRequest { // with an error code. optional bool return_partial_success = 517198390; - // (Required) limit results to this type of route (either LEARNED or - // ADVERTISED) - // Check the RouteType enum for the list of possible values. - optional string route_type = 375888752; - - // 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 CrossSiteNetworks.List. See the method description for details. -message ListCrossSiteNetworksRequest { +// A request message for DiskTypes.List. See the method description for details. +message ListDiskTypesRequest { // 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 @@ -35559,10 +36815,13 @@ message ListCrossSiteNetworksRequest { // 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 DiskTypes.List. See the method description for details. -message ListDiskTypesRequest { +// A request message for Disks.List. See the method description for details. +message ListDisksRequest { // 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 @@ -35664,8 +36923,8 @@ message ListDiskTypesRequest { } -// A request message for Disks.List. See the method description for details. -message ListDisksRequest { +// A request message for StoragePools.ListDisks. See the method description for details. +message ListDisksStoragePoolsRequest { // 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 @@ -35762,13 +37021,16 @@ message ListDisksRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the storage pool to list disks of. + string storage_pool = 360473440 [(google.api.field_behavior) = REQUIRED]; + // The name of the zone for this request. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for StoragePools.ListDisks. See the method description for details. -message ListDisksStoragePoolsRequest { +// A request message for InstanceGroupManagers.ListErrors. See the method description for details. +message ListErrorsInstanceGroupManagersRequest { // 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 @@ -35829,6 +37091,12 @@ message ListDisksStoragePoolsRequest { // expressions. optional string filter = 336120696; + // The name of the managed instance group. + // It must be a string that meets the requirements in RFC1035, or an + // unsigned long integer: must match regexp pattern: + // (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -35865,16 +37133,15 @@ message ListDisksStoragePoolsRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the storage pool to list disks of. - string storage_pool = 360473440 [(google.api.field_behavior) = REQUIRED]; - - // The name of the zone for this request. + // The name of thezone where the managed + // instance group is located. + // It should conform to RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for InstanceGroupManagers.ListErrors. See the method description for details. -message ListErrorsInstanceGroupManagersRequest { +// A request message for RegionInstanceGroupManagers.ListErrors. See the method description for details. +message ListErrorsRegionInstanceGroupManagersRequest { // 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 @@ -35966,8 +37233,214 @@ message ListErrorsInstanceGroupManagersRequest { // the next page of results. optional string page_token = 19994697; - // Project ID for this request. - string project = 227560217 [(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. + // This should conform to RFC1035. + 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 ExternalVpnGateways.List. See the method description for details. +message ListExternalVpnGatewaysRequest { + // 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 FirewallPolicies.List. See the method description for details. +message ListFirewallPoliciesRequest { + // 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; + + // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" + // if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the + // parent is an organization. + optional string parent_id = 459714768; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -35977,15 +37450,10 @@ message ListErrorsInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone where the managed - // instance group is located. - // It should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionInstanceGroupManagers.ListErrors. See the method description for details. -message ListErrorsRegionInstanceGroupManagersRequest { +// A request message for Firewalls.List. See the method description for details. +message ListFirewallsRequest { // 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 @@ -36046,12 +37514,6 @@ message ListErrorsRegionInstanceGroupManagersRequest { // expressions. optional string filter = 336120696; - // The name of the managed instance group. - // It must be a string that meets the requirements in RFC1035, or an - // unsigned long integer: must match regexp pattern: - // (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -36080,10 +37542,6 @@ message ListErrorsRegionInstanceGroupManagersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. - // This should conform to RFC1035. - 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. // @@ -36094,8 +37552,8 @@ message ListErrorsRegionInstanceGroupManagersRequest { } -// A request message for ExternalVpnGateways.List. See the method description for details. -message ListExternalVpnGatewaysRequest { +// A request message for ForwardingRules.List. See the method description for details. +message ListForwardingRulesRequest { // 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 @@ -36184,107 +37642,8 @@ message ListExternalVpnGatewaysRequest { // 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 FirewallPolicies.List. See the method description for details. -message ListFirewallPoliciesRequest { - // 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; - - // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" - // if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the - // parent is an organization. - optional string parent_id = 459714768; + // 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. @@ -36296,8 +37655,8 @@ message ListFirewallPoliciesRequest { } -// A request message for Firewalls.List. See the method description for details. -message ListFirewallsRequest { +// A request message for FutureReservations.List. See the method description for details. +message ListFutureReservationsRequest { // 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 @@ -36394,10 +37753,13 @@ message ListFirewallsRequest { // with an error code. optional bool return_partial_success = 517198390; + // Name of the zone for this request. Name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for ForwardingRules.List. See the method description for details. -message ListForwardingRulesRequest { +// A request message for GlobalAddresses.List. See the method description for details. +message ListGlobalAddressesRequest { // 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 @@ -36486,9 +37848,6 @@ message ListForwardingRulesRequest { // 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. // @@ -36499,8 +37858,8 @@ message ListForwardingRulesRequest { } -// A request message for FutureReservations.List. See the method description for details. -message ListFutureReservationsRequest { +// A request message for GlobalForwardingRules.List. See the method description for details. +message ListGlobalForwardingRulesRequest { // 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 @@ -36597,13 +37956,10 @@ message ListFutureReservationsRequest { // with an error code. optional bool return_partial_success = 517198390; - // Name of the zone for this request. Name should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for GlobalAddresses.List. See the method description for details. -message ListGlobalAddressesRequest { +// A request message for GlobalNetworkEndpointGroups.List. See the method description for details. +message ListGlobalNetworkEndpointGroupsRequest { // 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 @@ -36702,8 +38058,8 @@ message ListGlobalAddressesRequest { } -// A request message for GlobalForwardingRules.List. See the method description for details. -message ListGlobalForwardingRulesRequest { +// A request message for GlobalOperations.List. See the method description for details. +message ListGlobalOperationsRequest { // 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 @@ -36802,8 +38158,8 @@ message ListGlobalForwardingRulesRequest { } -// A request message for GlobalNetworkEndpointGroups.List. See the method description for details. -message ListGlobalNetworkEndpointGroupsRequest { +// A request message for GlobalOrganizationOperations.List. See the method description for details. +message ListGlobalOrganizationOperationsRequest { // 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 @@ -36889,8 +38245,8 @@ message ListGlobalNetworkEndpointGroupsRequest { // the next page of results. optional string page_token = 19994697; - // Project ID for this request. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // Parent ID for this request. + optional string parent_id = 459714768; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -36902,8 +38258,8 @@ message ListGlobalNetworkEndpointGroupsRequest { } -// A request message for GlobalOperations.List. See the method description for details. -message ListGlobalOperationsRequest { +// A request message for GlobalPublicDelegatedPrefixes.List. See the method description for details. +message ListGlobalPublicDelegatedPrefixesRequest { // 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 @@ -37002,8 +38358,8 @@ message ListGlobalOperationsRequest { } -// A request message for GlobalOrganizationOperations.List. See the method description for details. -message ListGlobalOrganizationOperationsRequest { +// A request message for HealthChecks.List. See the method description for details. +message ListHealthChecksRequest { // 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 @@ -37089,8 +38445,8 @@ message ListGlobalOrganizationOperationsRequest { // the next page of results. optional string page_token = 19994697; - // Parent ID for this request. - optional string parent_id = 459714768; + // 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. @@ -37102,8 +38458,8 @@ message ListGlobalOrganizationOperationsRequest { } -// A request message for GlobalPublicDelegatedPrefixes.List. See the method description for details. -message ListGlobalPublicDelegatedPrefixesRequest { +// A request message for Images.List. See the method description for details. +message ListImagesRequest { // 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 @@ -37202,8 +38558,8 @@ message ListGlobalPublicDelegatedPrefixesRequest { } -// A request message for HealthChecks.List. See the method description for details. -message ListHealthChecksRequest { +// A request message for InstanceGroupManagerResizeRequests.List. See the method description for details. +message ListInstanceGroupManagerResizeRequestsRequest { // 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 @@ -37264,6 +38620,9 @@ message ListHealthChecksRequest { // expressions. optional string filter = 336120696; + // The name of the managed instance group. The name should conform to RFC1035. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -37300,10 +38659,14 @@ message ListHealthChecksRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone where the managed + // instance group is located. The name should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for Images.List. See the method description for details. -message ListImagesRequest { +// A request message for InstanceGroupManagers.List. See the method description for details. +message ListInstanceGroupManagersRequest { // 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 @@ -37400,10 +38763,14 @@ message ListImagesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone where the managed + // instance group is located. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for InstanceGroupManagerResizeRequests.List. See the method description for details. -message ListInstanceGroupManagerResizeRequestsRequest { +// A request message for InstanceGroups.List. See the method description for details. +message ListInstanceGroupsRequest { // 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 @@ -37464,9 +38831,6 @@ message ListInstanceGroupManagerResizeRequestsRequest { // expressions. optional string filter = 336120696; - // The name of the managed instance group. The name should conform to RFC1035. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -37503,14 +38867,14 @@ message ListInstanceGroupManagerResizeRequestsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone where the managed - // instance group is located. The name should conform to RFC1035. + // The name of thezone + // where the instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for InstanceGroupManagers.List. See the method description for details. -message ListInstanceGroupManagersRequest { +// A request message for InstanceTemplates.List. See the method description for details. +message ListInstanceTemplatesRequest { // 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 @@ -37607,14 +38971,10 @@ message ListInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone where the managed - // instance group is located. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for InstanceGroups.List. See the method description for details. -message ListInstanceGroupsRequest { +// A request message for InstanceGroups.ListInstances. See the method description for details. +message ListInstancesInstanceGroupsRequest { // 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 @@ -37675,6 +39035,13 @@ message ListInstanceGroupsRequest { // expressions. optional string filter = 336120696; + // The name of the instance group from which you want to generate a list + // of included instances. + string instance_group = 81095253 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + InstanceGroupsListInstancesRequest instance_groups_list_instances_request_resource = 476255263 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -37711,14 +39078,14 @@ message ListInstanceGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone + // The name of the zone // where the instance group is located. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for InstanceTemplates.List. See the method description for details. -message ListInstanceTemplatesRequest { +// A request message for RegionInstanceGroups.ListInstances. See the method description for details. +message ListInstancesRegionInstanceGroupsRequest { // 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 @@ -37779,6 +39146,10 @@ message ListInstanceTemplatesRequest { // expressions. optional string filter = 336120696; + // Name of the regional instance group for which we want to list the + // instances. + string instance_group = 81095253 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -37807,6 +39178,12 @@ message ListInstanceTemplatesRequest { // 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]; + + // The body resource for this request + RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(google.api.field_behavior) = REQUIRED]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -37817,8 +39194,8 @@ message ListInstanceTemplatesRequest { } -// A request message for InstanceGroups.ListInstances. See the method description for details. -message ListInstancesInstanceGroupsRequest { +// A request message for Instances.List. See the method description for details. +message ListInstancesRequest { // 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 @@ -37879,13 +39256,6 @@ message ListInstancesInstanceGroupsRequest { // expressions. optional string filter = 336120696; - // The name of the instance group from which you want to generate a list - // of included instances. - string instance_group = 81095253 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - InstanceGroupsListInstancesRequest instance_groups_list_instances_request_resource = 476255263 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -37922,14 +39292,13 @@ message ListInstancesInstanceGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone - // where the instance group is located. + // The name of the zone for this request. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for RegionInstanceGroups.ListInstances. See the method description for details. -message ListInstancesRegionInstanceGroupsRequest { +// A request message for InstantSnapshots.List. See the method description for details. +message ListInstantSnapshotsRequest { // 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 @@ -37990,10 +39359,6 @@ message ListInstancesRegionInstanceGroupsRequest { // expressions. optional string filter = 336120696; - // Name of the regional instance group for which we want to list the - // instances. - string instance_group = 81095253 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -38022,12 +39387,6 @@ message ListInstancesRegionInstanceGroupsRequest { // 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]; - - // The body resource for this request - RegionInstanceGroupsListInstancesRequest region_instance_groups_list_instances_request_resource = 48239828 [(google.api.field_behavior) = REQUIRED]; - // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -38036,10 +39395,13 @@ message ListInstancesRegionInstanceGroupsRequest { // 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 Instances.List. See the method description for details. -message ListInstancesRequest { +// A request message for InterconnectAttachmentGroups.List. See the method description for details. +message ListInterconnectAttachmentGroupsRequest { // 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 @@ -38136,13 +39498,10 @@ message ListInstancesRequest { // 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 InstantSnapshots.List. See the method description for details. -message ListInstantSnapshotsRequest { +// A request message for InterconnectAttachments.List. See the method description for details. +message ListInterconnectAttachmentsRequest { // 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 @@ -38231,6 +39590,9 @@ message ListInstantSnapshotsRequest { // 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. // @@ -38239,13 +39601,10 @@ message ListInstantSnapshotsRequest { // 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 InterconnectAttachmentGroups.List. See the method description for details. -message ListInterconnectAttachmentGroupsRequest { +// A request message for InterconnectGroups.List. See the method description for details. +message ListInterconnectGroupsRequest { // 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 @@ -38344,8 +39703,8 @@ message ListInterconnectAttachmentGroupsRequest { } -// A request message for InterconnectAttachments.List. See the method description for details. -message ListInterconnectAttachmentsRequest { +// A request message for InterconnectLocations.List. See the method description for details. +message ListInterconnectLocationsRequest { // 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 @@ -38434,9 +39793,6 @@ message ListInterconnectAttachmentsRequest { // 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. // @@ -38447,8 +39803,8 @@ message ListInterconnectAttachmentsRequest { } -// A request message for InterconnectGroups.List. See the method description for details. -message ListInterconnectGroupsRequest { +// A request message for InterconnectRemoteLocations.List. See the method description for details. +message ListInterconnectRemoteLocationsRequest { // 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 @@ -38547,8 +39903,8 @@ message ListInterconnectGroupsRequest { } -// A request message for InterconnectLocations.List. See the method description for details. -message ListInterconnectLocationsRequest { +// A request message for Interconnects.List. See the method description for details. +message ListInterconnectsRequest { // 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 @@ -38647,8 +40003,8 @@ message ListInterconnectLocationsRequest { } -// A request message for InterconnectRemoteLocations.List. See the method description for details. -message ListInterconnectRemoteLocationsRequest { +// A request message for Licenses.List. See the method description for details. +message ListLicensesRequest { // 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 @@ -38747,8 +40103,8 @@ message ListInterconnectRemoteLocationsRequest { } -// A request message for Interconnects.List. See the method description for details. -message ListInterconnectsRequest { +// A request message for MachineImages.List. See the method description for details. +message ListMachineImagesRequest { // 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 @@ -38847,8 +40203,8 @@ message ListInterconnectsRequest { } -// A request message for Licenses.List. See the method description for details. -message ListLicensesRequest { +// A request message for MachineTypes.List. See the method description for details. +message ListMachineTypesRequest { // 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 @@ -38945,10 +40301,13 @@ message ListLicensesRequest { // 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 MachineImages.List. See the method description for details. -message ListMachineImagesRequest { +// A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details. +message ListManagedInstancesInstanceGroupManagersRequest { // 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 @@ -39009,6 +40368,9 @@ message ListMachineImagesRequest { // expressions. optional string filter = 336120696; + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -39045,10 +40407,14 @@ message ListMachineImagesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone where the managed + // instance group is located. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for MachineTypes.List. See the method description for details. -message ListMachineTypesRequest { +// A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. +message ListManagedInstancesRegionInstanceGroupManagersRequest { // 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 @@ -39109,6 +40475,9 @@ message ListMachineTypesRequest { // expressions. optional string filter = 336120696; + // The name of the managed instance group. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -39137,6 +40506,9 @@ message ListMachineTypesRequest { // 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. // @@ -39145,13 +40517,10 @@ message ListMachineTypesRequest { // 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 InstanceGroupManagers.ListManagedInstances. See the method description for details. -message ListManagedInstancesInstanceGroupManagersRequest { +// A request message for NetworkAttachments.List. See the method description for details. +message ListNetworkAttachmentsRequest { // 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 @@ -39212,9 +40581,6 @@ message ListManagedInstancesInstanceGroupManagersRequest { // expressions. optional string filter = 336120696; - // The name of the managed instance group. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -39243,6 +40609,9 @@ message ListManagedInstancesInstanceGroupManagersRequest { // 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. // @@ -39251,14 +40620,10 @@ message ListManagedInstancesInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone where the managed - // instance group is located. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. -message ListManagedInstancesRegionInstanceGroupManagersRequest { +// A request message for NetworkEndpointGroups.List. See the method description for details. +message ListNetworkEndpointGroupsRequest { // 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 @@ -39319,9 +40684,6 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // expressions. optional string filter = 336120696; - // The name of the managed instance group. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -39350,9 +40712,6 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // 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. // @@ -39361,10 +40720,14 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone + // where the network endpoint group is located. It should comply with RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for NetworkAttachments.List. See the method description for details. -message ListNetworkAttachmentsRequest { +// A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. +message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // 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 @@ -39432,6 +40795,10 @@ message ListNetworkAttachmentsRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; + // The name of the network endpoint group from which you want to generate a + // list of included network endpoints. It should comply with RFC1035. + string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; + // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -39453,9 +40820,6 @@ message ListNetworkAttachmentsRequest { // 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. // @@ -39466,8 +40830,8 @@ message ListNetworkAttachmentsRequest { } -// A request message for NetworkEndpointGroups.List. See the method description for details. -message ListNetworkEndpointGroupsRequest { +// A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. +message ListNetworkEndpointsNetworkEndpointGroupsRequest { // 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 @@ -39535,6 +40899,13 @@ message ListNetworkEndpointGroupsRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; + // The name of the network endpoint group from which you want to generate a + // list of included network endpoints. It should comply with RFC1035. + string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + NetworkEndpointGroupsListEndpointsRequest network_endpoint_groups_list_endpoints_request_resource = 59493390 [(google.api.field_behavior) = REQUIRED]; + // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -39564,14 +40935,14 @@ message ListNetworkEndpointGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone - // where the network endpoint group is located. It should comply with RFC1035. + // The name of the zone where + // the network endpoint group is located. It should comply with RFC1035. string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; } -// A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { +// A request message for RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. +message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { // 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 @@ -39664,6 +41035,110 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // 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. + 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 NetworkFirewallPolicies.List. See the method description for details. +message ListNetworkFirewallPoliciesRequest { + // 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. // @@ -39674,8 +41149,8 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { } -// A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsNetworkEndpointGroupsRequest { +// A request message for NetworkProfiles.List. See the method description for details. +message ListNetworkProfilesRequest { // 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 @@ -39743,13 +41218,6 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // The name of the network endpoint group from which you want to generate a - // list of included network endpoints. It should comply with RFC1035. - string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - - // The body resource for this request - NetworkEndpointGroupsListEndpointsRequest network_endpoint_groups_list_endpoints_request_resource = 59493390 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -39779,14 +41247,10 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of the zone where - // the network endpoint group is located. It should comply with RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. -message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { +// A request message for Networks.List. See the method description for details. +message ListNetworksRequest { // 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 @@ -39854,10 +41318,6 @@ message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // The name of the network endpoint group from which you want to generate a - // list of included network endpoints. It should comply with RFC1035. - string network_endpoint_group = 433907078 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -39879,10 +41339,6 @@ message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { // 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. - 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. // @@ -39893,8 +41349,8 @@ message ListNetworkEndpointsRegionNetworkEndpointGroupsRequest { } -// A request message for NetworkFirewallPolicies.List. See the method description for details. -message ListNetworkFirewallPoliciesRequest { +// A request message for NodeGroups.List. See the method description for details. +message ListNodeGroupsRequest { // 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 @@ -39991,10 +41447,13 @@ message ListNetworkFirewallPoliciesRequest { // 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 NetworkProfiles.List. See the method description for details. -message ListNetworkProfilesRequest { +// A request message for NodeTemplates.List. See the method description for details. +message ListNodeTemplatesRequest { // 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 @@ -40083,6 +41542,9 @@ message ListNetworkProfilesRequest { // 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]; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -40093,8 +41555,8 @@ message ListNetworkProfilesRequest { } -// A request message for Networks.List. See the method description for details. -message ListNetworksRequest { +// A request message for NodeTypes.List. See the method description for details. +message ListNodeTypesRequest { // 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 @@ -40191,10 +41653,13 @@ message ListNetworksRequest { // 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 NodeGroups.List. See the method description for details. -message ListNodeGroupsRequest { +// A request message for NodeGroups.ListNodes. See the method description for details. +message ListNodesNodeGroupsRequest { // 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 @@ -40262,6 +41727,9 @@ message ListNodeGroupsRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; + // Name of the NodeGroup resource whose nodes you want to list. + string node_group = 469958146 [(google.api.field_behavior) = REQUIRED]; + // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -40296,8 +41764,8 @@ message ListNodeGroupsRequest { } -// A request message for NodeTemplates.List. See the method description for details. -message ListNodeTemplatesRequest { +// A request message for OrganizationSecurityPolicies.List. See the method description for details. +message ListOrganizationSecurityPoliciesRequest { // 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 @@ -40383,11 +41851,8 @@ message ListNodeTemplatesRequest { // 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 region for this request. - string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + // Parent ID for this request. + optional string parent_id = 459714768; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -40399,8 +41864,8 @@ message ListNodeTemplatesRequest { } -// A request message for NodeTypes.List. See the method description for details. -message ListNodeTypesRequest { +// A request message for PacketMirrorings.List. See the method description for details. +message ListPacketMirroringsRequest { // 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 @@ -40489,6 +41954,9 @@ message ListNodeTypesRequest { // 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. // @@ -40497,13 +41965,27 @@ message ListNodeTypesRequest { // 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 NodeGroups.ListNodes. See the method description for details. -message ListNodesNodeGroupsRequest { +// A request message for Networks.ListPeeringRoutes. See the method description for details. +message ListPeeringRoutesNetworksRequest { + // The direction of the exchanged routes. + enum Direction { + // A value indicating that the enum field is not set. + UNDEFINED_DIRECTION = 0; + + // For routes exported from peer network. + INCOMING = 338552870; + + // For routes exported from local network. + OUTGOING = 307438444; + + } + + // The direction of the exchanged routes. + // Check the Direction enum for the list of possible values. + optional string direction = 111150975; + // 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 @@ -40571,8 +42053,8 @@ message ListNodesNodeGroupsRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Name of the NodeGroup resource whose nodes you want to list. - string node_group = 469958146 [(google.api.field_behavior) = REQUIRED]; + // Name of the network for this request. + string network = 232872494 [(google.api.field_behavior) = REQUIRED]; // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. @@ -40592,9 +42074,16 @@ message ListNodesNodeGroupsRequest { // the next page of results. optional string page_token = 19994697; + // The response will show routes exchanged over the given peering connection. + optional string peering_name = 249571370; + // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + // The region of the request. The response will include all subnet routes, + // static routes and dynamic routes in the region. + optional string region = 138946292; + // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. // @@ -40603,13 +42092,10 @@ message ListNodesNodeGroupsRequest { // 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 OrganizationSecurityPolicies.List. See the method description for details. -message ListOrganizationSecurityPoliciesRequest { +// A request message for InstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. +message ListPerInstanceConfigsInstanceGroupManagersRequest { // 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 @@ -40670,6 +42156,9 @@ message ListOrganizationSecurityPoliciesRequest { // expressions. optional string filter = 336120696; + // The name of the managed instance group. It should conform to RFC1035. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -40695,8 +42184,8 @@ message ListOrganizationSecurityPoliciesRequest { // the next page of results. optional string page_token = 19994697; - // Parent ID for this request. - optional string parent_id = 459714768; + // 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. @@ -40706,10 +42195,15 @@ message ListOrganizationSecurityPoliciesRequest { // with an error code. optional bool return_partial_success = 517198390; + // The name of thezone + // where the managed instance group is located. + // It should conform to RFC1035. + string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; + } -// A request message for PacketMirrorings.List. See the method description for details. -message ListPacketMirroringsRequest { +// A request message for RegionInstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. +message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { // 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 @@ -40770,6 +42264,9 @@ message ListPacketMirroringsRequest { // expressions. optional string filter = 336120696; + // The name of the managed instance group. It should conform to RFC1035. + string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -40798,7 +42295,7 @@ message ListPacketMirroringsRequest { // 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, should conform to RFC1035. string region = 138946292 [(google.api.field_behavior) = REQUIRED]; // Opt-in for partial success behavior which provides partial results in case @@ -40811,25 +42308,8 @@ message ListPacketMirroringsRequest { } -// A request message for Networks.ListPeeringRoutes. See the method description for details. -message ListPeeringRoutesNetworksRequest { - // The direction of the exchanged routes. - enum Direction { - // A value indicating that the enum field is not set. - UNDEFINED_DIRECTION = 0; - - // For routes exported from peer network. - INCOMING = 338552870; - - // For routes exported from local network. - OUTGOING = 307438444; - - } - - // The direction of the exchanged routes. - // Check the Direction enum for the list of possible values. - optional string direction = 111150975; - +// A request message for OrganizationSecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. +message ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest { // 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 @@ -40897,9 +42377,6 @@ message ListPeeringRoutesNetworksRequest { // `0` to `500`, inclusive. (Default: `500`) optional uint32 max_results = 54715419; - // Name of the network for this request. - string network = 232872494 [(google.api.field_behavior) = REQUIRED]; - // Sorts list results by a certain order. By default, results // are returned in alphanumerical order based on the resource name. // @@ -40918,15 +42395,8 @@ message ListPeeringRoutesNetworksRequest { // the next page of results. optional string page_token = 19994697; - // The response will show routes exchanged over the given peering connection. - optional string peering_name = 249571370; - - // Project ID for this request. - string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - - // The region of the request. The response will include all subnet routes, - // static routes and dynamic routes in the region. - optional string region = 138946292; + // Parent ID for this request. + optional string parent_id = 459714768; // Opt-in for partial success behavior which provides partial results in case // of failure. The default value is false. @@ -40938,8 +42408,8 @@ message ListPeeringRoutesNetworksRequest { } -// A request message for InstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. -message ListPerInstanceConfigsInstanceGroupManagersRequest { +// A request message for SecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. +message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { // 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 @@ -41000,9 +42470,6 @@ message ListPerInstanceConfigsInstanceGroupManagersRequest { // expressions. optional string filter = 336120696; - // The name of the managed instance group. It should conform to RFC1035. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -41039,15 +42506,10 @@ message ListPerInstanceConfigsInstanceGroupManagersRequest { // with an error code. optional bool return_partial_success = 517198390; - // The name of thezone - // where the managed instance group is located. - // It should conform to RFC1035. - string zone = 3744684 [(google.api.field_behavior) = REQUIRED]; - } -// A request message for RegionInstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. -message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { +// A request message for PreviewFeatures.List. See the method description for details. +message ListPreviewFeaturesRequest { // 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 @@ -41108,9 +42570,6 @@ message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { // expressions. optional string filter = 336120696; - // The name of the managed instance group. It should conform to RFC1035. - string instance_group_manager = 249363395 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -41139,9 +42598,6 @@ message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request, should conform to RFC1035. - 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. // @@ -41152,8 +42608,8 @@ message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { } -// A request message for OrganizationSecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. -message ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest { +// A request message for PublicAdvertisedPrefixes.List. See the method description for details. +message ListPublicAdvertisedPrefixesRequest { // 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 @@ -41239,8 +42695,8 @@ message ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest { // the next page of results. optional string page_token = 19994697; - // Parent ID for this request. - optional string parent_id = 459714768; + // 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. @@ -41252,8 +42708,8 @@ message ListPreconfiguredExpressionSetsOrganizationSecurityPoliciesRequest { } -// A request message for SecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. -message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { +// A request message for PublicDelegatedPrefixes.List. See the method description for details. +message ListPublicDelegatedPrefixesRequest { // 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 @@ -41342,6 +42798,9 @@ message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { // 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. // @@ -41352,8 +42811,8 @@ message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { } -// A request message for PreviewFeatures.List. See the method description for details. -message ListPreviewFeaturesRequest { +// A request message for Instances.ListReferrers. See the method description for details. +message ListReferrersInstancesRequest { // 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 @@ -41414,6 +42873,10 @@ message ListPreviewFeaturesRequest { // expressions. optional string filter = 336120696; + // Name of the target instance scoping this request, or '-' if the + // request should span over all instances in the container. + string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; + // 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 @@ -41450,10 +42913,13 @@ message ListPreviewFeaturesRequest { // 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 PublicAdvertisedPrefixes.List. See the method description for details. -message ListPublicAdvertisedPrefixesRequest { +// A request message for RegionAutoscalers.List. See the method description for details. +message ListRegionAutoscalersRequest { // 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 @@ -41542,6 +43008,9 @@ message ListPublicAdvertisedPrefixesRequest { // 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. // @@ -41552,8 +43021,8 @@ message ListPublicAdvertisedPrefixesRequest { } -// A request message for PublicDelegatedPrefixes.List. See the method description for details. -message ListPublicDelegatedPrefixesRequest { +// A request message for RegionBackendServices.List. See the method description for details. +message ListRegionBackendServicesRequest { // 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 @@ -41642,7 +43111,7 @@ message ListPublicDelegatedPrefixesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region of 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 @@ -41655,8 +43124,8 @@ message ListPublicDelegatedPrefixesRequest { } -// A request message for Instances.ListReferrers. See the method description for details. -message ListReferrersInstancesRequest { +// A request message for RegionCommitments.List. See the method description for details. +message ListRegionCommitmentsRequest { // 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 @@ -41717,10 +43186,6 @@ message ListReferrersInstancesRequest { // expressions. optional string filter = 336120696; - // Name of the target instance scoping this request, or '-' if the - // request should span over all instances in the container. - string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; - // 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 @@ -41749,6 +43214,9 @@ message ListReferrersInstancesRequest { // 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. // @@ -41757,13 +43225,10 @@ message ListReferrersInstancesRequest { // 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 RegionAutoscalers.List. See the method description for details. -message ListRegionAutoscalersRequest { +// A request message for RegionCompositeHealthChecks.List. See the method description for details. +message ListRegionCompositeHealthChecksRequest { // 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 @@ -41865,8 +43330,8 @@ message ListRegionAutoscalersRequest { } -// A request message for RegionBackendServices.List. See the method description for details. -message ListRegionBackendServicesRequest { +// A request message for RegionDiskTypes.List. See the method description for details. +message ListRegionDiskTypesRequest { // 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 @@ -41955,7 +43420,7 @@ message ListRegionBackendServicesRequest { // Project ID for this request. string project = 227560217 [(google.api.field_behavior) = REQUIRED]; - // Name of the region scoping this request. + // 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 @@ -41968,8 +43433,8 @@ message ListRegionBackendServicesRequest { } -// A request message for RegionCommitments.List. See the method description for details. -message ListRegionCommitmentsRequest { +// A request message for RegionDisks.List. See the method description for details. +message ListRegionDisksRequest { // 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 @@ -42071,111 +43536,8 @@ message ListRegionCommitmentsRequest { } -// A request message for RegionDiskTypes.List. See the method description for details. -message ListRegionDiskTypesRequest { - // 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]; - - // 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 - // 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 RegionDisks.List. See the method description for details. -message ListRegionDisksRequest { +// 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 @@ -42264,7 +43626,7 @@ message ListRegionDisksRequest { // 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 @@ -42277,8 +43639,8 @@ message ListRegionDisksRequest { } -// A request message for RegionHealthAggregationPolicies.List. See the method description for details. -message ListRegionHealthAggregationPoliciesRequest { +// 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 @@ -42380,8 +43742,8 @@ message ListRegionHealthAggregationPoliciesRequest { } -// A request message for RegionHealthCheckServices.List. See the method description for details. -message ListRegionHealthCheckServicesRequest { +// 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 @@ -42483,8 +43845,8 @@ message ListRegionHealthCheckServicesRequest { } -// A request message for RegionHealthChecks.List. See the method description for details. -message ListRegionHealthChecksRequest { +// A request message for RegionHealthSources.List. See the method description for details. +message ListRegionHealthSourcesRequest { // 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 @@ -52180,6 +53542,35 @@ message NotificationEndpoint { } +// Contains a list of NotificationEndpointsScopedList. +message NotificationEndpointAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of NotificationEndpointsScopedList 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; + +} + // Represents a gRPC setting that describes one gRPC notification endpoint and // the retry duration attempting to send notification to this endpoint. message NotificationEndpointGrpcSettings { @@ -52236,6 +53627,17 @@ message NotificationEndpointList { } +// +message NotificationEndpointsScopedList { + // A list of NotificationEndpoints contained in this scope. + repeated NotificationEndpoint resources = 164412965; + + // Informational warning which replaces the list of + // notification endpoints when the list is empty. + optional Warning warning = 50704284; + +} + // Represents an Operation resource. // // Google Compute Engine has three Operation resources: @@ -52299,6 +53701,8 @@ message Operation { // this field will be populated. optional Error error = 96784904; + optional GetVersionOperationMetadata get_version_operation_metadata = 173230167; + // [Output Only] If the operation fails, this field contains the HTTP error // message that was returned, such as `NOT FOUND`. optional string http_error_message = 202521945 [(google.cloud.operation_field) = ERROR_MESSAGE]; @@ -53944,51 +55348,127 @@ message PatchRegionBackendServiceRequest { } -// A request message for RegionHealthAggregationPolicies.Patch. See the method description for details. -message PatchRegionHealthAggregationPolicyRequest { - // Name of the HealthAggregationPolicy to update. The name +// A request message for RegionCompositeHealthChecks.Patch. See the method description for details. +message PatchRegionCompositeHealthCheckRequest { + // Name of the CompositeHealthCheck to update. The name + // must be 1-63 characters long, and comply with RFC1035. + string composite_health_check = 466984989 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + CompositeHealthCheck composite_health_check_resource = 132195824 [(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 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. + 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 RegionHealthCheckServices.Patch. See the method description for details. +message PatchRegionHealthCheckServiceRequest { + // Name of the HealthCheckService 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. - string health_check = 308876645 [(google.api.field_behavior) = REQUIRED]; + string health_check_service = 408374747 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - HealthCheck health_check_resource = 201925032 [(google.api.field_behavior) = REQUIRED]; + HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -54019,14 +55499,14 @@ message PatchRegionHealthCheckRequest { } -// A request message for RegionHealthCheckServices.Patch. See the method description for details. -message PatchRegionHealthCheckServiceRequest { - // Name of the HealthCheckService to update. The name +// A request message for RegionHealthSources.Patch. See the method description for details. +message PatchRegionHealthSourceRequest { + // Name of the HealthSource to update. The name // must be 1-63 characters long, and comply with RFC1035. - string health_check_service = 408374747 [(google.api.field_behavior) = REQUIRED]; + string health_source = 376521566 [(google.api.field_behavior) = REQUIRED]; // The body resource for this request - HealthCheckService health_check_service_resource = 477367794 [(google.api.field_behavior) = REQUIRED]; + HealthSource health_source_resource = 357735375 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. string project = 227560217 [ @@ -59395,6 +60875,27 @@ message ReservationSlotsGetResponse { } +// +message ReservationSlotsGetVersionRequest { + // + enum SbomSelections { + // A value indicating that the enum field is not set. + UNDEFINED_SBOM_SELECTIONS = 0; + + SBOM_SELECTION_CURRENT = 423856692; + + SBOM_SELECTION_TARGET = 152837462; + + SBOM_SELECTION_UNSPECIFIED = 379615858; + + } + + // The SBOM selection to return. Duplicate values in the list will be ignored. + // Check the SbomSelections enum for the list of possible values. + repeated string sbom_selections = 69155705; + +} + // A list of reservation slots within a single reservation. message ReservationSlotsListResponse { // The unique identifier for the resource; defined by the server. @@ -59553,6 +61054,27 @@ message ReservationSubBlocksGetResponse { } +// +message ReservationSubBlocksGetVersionRequest { + // + enum SbomSelections { + // A value indicating that the enum field is not set. + UNDEFINED_SBOM_SELECTIONS = 0; + + SBOM_SELECTION_CURRENT = 423856692; + + SBOM_SELECTION_TARGET = 152837462; + + SBOM_SELECTION_UNSPECIFIED = 379615858; + + } + + // The SBOM selection to return. + // Check the SbomSelections enum for the list of possible values. + repeated string sbom_selections = 69155705; + +} + // A list of reservation subBlocks under a single reservation. message ReservationSubBlocksListResponse { // Unique identifier for the resource; defined by the server. @@ -60447,6 +61969,21 @@ message ResourcePolicyWeeklyCycleDayOfWeek { // Represents the workload policy. message ResourcePolicyWorkloadPolicy { + // 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 the maximum distance between instances. enum MaxTopologyDistance { // A value indicating that the enum field is not set. @@ -60481,6 +62018,11 @@ message ResourcePolicyWorkloadPolicy { // interconnected GPUs. optional string accelerator_topology = 389323203; + // 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; + // Specifies the maximum distance between instances. // Check the MaxTopologyDistance enum for the list of possible values. optional string max_topology_distance = 7521706; @@ -64526,6 +66068,9 @@ message ServiceAttachmentConnectedEndpoint { // The url of a connected endpoint. optional string endpoint = 130489749; + // The url of a connected endpoint with resource id. + optional string endpoint_with_id = 444867210; + // NAT IPs of the connected PSC endpoint and those of other endpoints // propagated from it. repeated string nat_ips = 117635086; @@ -64549,6 +66094,9 @@ message ServiceAttachmentConsumerProjectLimit { // more than 1. optional uint32 connection_limit = 131403546; + // The URL for the PSC endpoint to accept + optional string endpoint_url = 223428549; + // The network URL for the network to set the limit for. optional string network_url = 207194078; @@ -68372,8 +69920,9 @@ message SslPolicy { } // Profile specifies the set of SSL features that can be used by the load - // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features - // to enable must be specified in the customFeatures field. + // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in + // the customFeatures field. If using FIPS_202205, + // the min_tls_version field must be set to TLS_1_2. enum Profile { // A value indicating that the enum field is not set. UNDEFINED_PROFILE = 0; @@ -68450,8 +69999,9 @@ message SslPolicy { optional string name = 3373707; // Profile specifies the set of SSL features that can be used by the load - // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features - // to enable must be specified in the customFeatures field. + // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in + // the customFeatures field. If using FIPS_202205, + // the min_tls_version field must be set to TLS_1_2. // Check the Profile enum for the list of possible values. optional string profile = 227445161; @@ -72532,6 +74082,22 @@ message TestIamPermissionsRegionBackendServiceRequest { } +// A request message for RegionCompositeHealthChecks.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionCompositeHealthCheckRequest { + // 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 RegionDisks.TestIamPermissions. See the method description for details. message TestIamPermissionsRegionDiskRequest { // Project ID for this request. @@ -72596,6 +74162,22 @@ message TestIamPermissionsRegionHealthCheckServiceRequest { } +// A request message for RegionHealthSources.TestIamPermissions. See the method description for details. +message TestIamPermissionsRegionHealthSourceRequest { + // 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. @@ -73400,6 +74982,10 @@ message UpdateInstanceRequest { } + // Whether to discard local SSDs from the instance during restart + // default value is false. + optional bool discard_local_ssd = 319517903; + // Name of the instance resource to update. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; @@ -82601,6 +84187,87 @@ service RegionCommitments { } +// The RegionCompositeHealthChecks API. +service RegionCompositeHealthChecks { + 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 CompositeHealthCheck resources (all + // regional) available to the specified project. + // + // To prevent failure, it is recommended that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListRegionCompositeHealthChecksRequest) returns (CompositeHealthCheckAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/compositeHealthChecks" + }; + option (google.api.method_signature) = "project"; + } + + // Deletes the specified CompositeHealthCheck in the given region + rpc Delete(DeleteRegionCompositeHealthCheckRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + }; + option (google.api.method_signature) = "project,region,composite_health_check"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified CompositeHealthCheck resource in the given region. + rpc Get(GetRegionCompositeHealthCheckRequest) returns (CompositeHealthCheck) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + }; + option (google.api.method_signature) = "project,region,composite_health_check"; + } + + // Create a CompositeHealthCheck in the specified project in the given region + // using the parameters that are included in the request. + rpc Insert(InsertRegionCompositeHealthCheckRequest) returns (Operation) { + option (google.api.http) = { + body: "composite_health_check_resource" + post: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks" + }; + option (google.api.method_signature) = "project,region,composite_health_check_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Lists the CompositeHealthChecks for a project in the given region. + rpc List(ListRegionCompositeHealthChecksRequest) returns (CompositeHealthCheckList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks" + }; + option (google.api.method_signature) = "project,region"; + } + + // Updates the specified regional CompositeHealthCheck resource + // with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + rpc Patch(PatchRegionCompositeHealthCheckRequest) returns (Operation) { + option (google.api.http) = { + body: "composite_health_check_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + }; + option (google.api.method_signature) = "project,region,composite_health_check,composite_health_check_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionCompositeHealthCheckRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionDiskTypes API. service RegionDiskTypes { option (google.api.default_host) = @@ -82907,6 +84574,18 @@ service RegionHealthCheckServices { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; + // Retrieves the list of all HealthCheckService 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(AggregatedListRegionHealthCheckServicesRequest) returns (HealthCheckServiceAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/healthCheckServices" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified regional HealthCheckService. rpc Delete(DeleteRegionHealthCheckServiceRequest) returns (Operation) { option (google.api.http) = { @@ -83049,6 +84728,87 @@ service RegionHealthChecks { } +// The RegionHealthSources API. +service RegionHealthSources { + 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 HealthSource resources (all + // regional) available to the specified project. + // + // To prevent failure, Google recommends that you set the + // `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListRegionHealthSourcesRequest) returns (HealthSourceAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/healthSources" + }; + option (google.api.method_signature) = "project"; + } + + // Deletes the specified HealthSource in the given region + rpc Delete(DeleteRegionHealthSourceRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}" + }; + option (google.api.method_signature) = "project,region,health_source"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified HealthSource resource in the given region. + rpc Get(GetRegionHealthSourceRequest) returns (HealthSource) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}" + }; + option (google.api.method_signature) = "project,region,health_source"; + } + + // Create a HealthSource in the specified project in the given region + // using the parameters that are included in the request. + rpc Insert(InsertRegionHealthSourceRequest) returns (Operation) { + option (google.api.http) = { + body: "health_source_resource" + post: "/compute/v1/projects/{project}/regions/{region}/healthSources" + }; + option (google.api.method_signature) = "project,region,health_source_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Lists the HealthSources for a project in the given region. + rpc List(ListRegionHealthSourcesRequest) returns (HealthSourceList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/healthSources" + }; + option (google.api.method_signature) = "project,region"; + } + + // Updates the specified regional HealthSource resource + // with the data included in the request. This method supportsPATCH + // semantics and uses theJSON merge + // patch format and processing rules. + rpc Patch(PatchRegionHealthSourceRequest) returns (Operation) { + option (google.api.http) = { + body: "health_source_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}" + }; + option (google.api.method_signature) = "project,region,health_source,health_source_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsRegionHealthSourceRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The RegionInstanceGroupManagers API. service RegionInstanceGroupManagers { option (google.api.default_host) = @@ -83941,6 +85701,15 @@ service RegionNotificationEndpoints { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; + // Retrieves the list of all NotificationEndpoint resources, + // regional and global, available to the specified project. + rpc AggregatedList(AggregatedListRegionNotificationEndpointsRequest) returns (NotificationEndpointAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/notificationEndpoints" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified NotificationEndpoint in the given region rpc Delete(DeleteRegionNotificationEndpointRequest) returns (Operation) { option (google.api.http) = { @@ -84715,6 +86484,16 @@ service ReservationSlots { option (google.api.method_signature) = "project,zone,parent_name,reservation_slot"; } + // Allows customers to get SBOM versions of a reservation slot. + rpc GetVersion(GetVersionReservationSlotRequest) returns (Operation) { + option (google.api.http) = { + body: "reservation_slots_get_version_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}/getVersion" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_slot,reservation_slots_get_version_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Retrieves a list of reservation slots under a single reservation. rpc List(ListReservationSlotsRequest) returns (ReservationSlotsListResponse) { option (google.api.http) = { @@ -84761,6 +86540,16 @@ service ReservationSubBlocks { option (google.api.method_signature) = "project,zone,parent_resource,resource"; } + // Allows customers to get SBOM versions of a reservation subBlock. + rpc GetVersion(GetVersionReservationSubBlockRequest) returns (Operation) { + option (google.api.http) = { + body: "reservation_sub_blocks_get_version_request_resource" + post: "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/getVersion" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_get_version_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Retrieves a list of reservation subBlocks under a single reservation. rpc List(ListReservationSubBlocksRequest) returns (ReservationSubBlocksListResponse) { option (google.api.http) = { diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto index 85989bb8a3d..bb6e9b3cd5e 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1beta/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1beta.json -// Source file revision: 20260213 +// Source file revision: 20260227 // API name: compute // API version: v1beta @@ -5308,6 +5308,119 @@ message AggregatedListRegionHealthAggregationPoliciesRequest { } +// A request message for RegionHealthCheckServices.AggregatedList. See the method description for details. +message AggregatedListRegionHealthCheckServicesRequest { + // 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 RegionHealthSources.AggregatedList. See the method description for details. message AggregatedListRegionHealthSourcesRequest { // A filter expression that filters resources listed in the response. Most @@ -5534,6 +5647,119 @@ message AggregatedListRegionNetworkPoliciesRequest { } +// A request message for RegionNotificationEndpoints.AggregatedList. See the method description for details. +message AggregatedListRegionNotificationEndpointsRequest { + // 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 @@ -11643,11 +11869,38 @@ message BackendServiceCustomMetric { // Defines a dynamic forwarding configuration for the backend service. message BackendServiceDynamicForwarding { + // Dynamic Forwarding Proxy configuration. + optional BackendServiceDynamicForwardingForwardProxy forward_proxy = 483776628; + // IP:PORT based dynamic forwarding configuration. optional BackendServiceDynamicForwardingIpPortSelection ip_port_selection = 527934822; } +// Defines Dynamic Forwarding Proxy configuration. +message BackendServiceDynamicForwardingForwardProxy { + // Determines the dynamic forwarding proxy mode. + enum ProxyMode { + // A value indicating that the enum field is not set. + UNDEFINED_PROXY_MODE = 0; + + // Dynamic forwarding directly to Cloud Run services. + CLOUD_RUN = 214253889; + + // Dynamic forwarding based on the Http Host header. + DIRECT_FORWARDING = 492448019; + + } + + // A boolean flag enabling dynamic forwarding proxy. + optional bool enabled = 1018689; + + // Determines the dynamic forwarding proxy mode. + // Check the ProxyMode enum for the list of possible values. + optional string proxy_mode = 286358740; + +} + // Defines a IP:PORT based dynamic forwarding configuration for the backend // service. Some ranges are restricted: Restricted // ranges. @@ -11672,7 +11925,7 @@ message BackendServiceDynamicForwardingIpPortSelection { // connections to persist, even on VMs no longer in the active pool, for up // to the duration of the connection draining timeout (10 minutes). message BackendServiceFailoverPolicy { - // This can be set to true only if the protocol isTCP. + // This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. // // The default is false. optional bool disable_connection_drain_on_failover = 182150753; @@ -19843,6 +20096,11 @@ message DistributionPolicy { // Zones where the regional managed instance group will create and manage // its instances. + // By default, a regional MIG doesn't automatically select an AI zone to create + // instances, even if an AI zone is available in the specified region. To + // create instances in an AI zone in the selected region, you must explicitly + // specify it in the distribution policy together with the other preferred + // zones. repeated DistributionPolicyZoneConfiguration zones = 116085319; } @@ -25666,6 +25924,108 @@ message GetUrlMapRequest { } +// +message GetVersionOperationMetadata { + optional GetVersionOperationMetadataSbomInfo inline_sbom_info = 7079706; + +} + +// +message GetVersionOperationMetadataSbomInfo { + // SBOM versions currently applied to the resource. The key is the component + // name and the value is the version. + map current_component_versions = 273325091; + + // SBOM versions scheduled for the next maintenance. The key is the + // component name and the value is the version. + map target_component_versions = 345997579; + +} + +// A request message for ReservationSlots.GetVersion. See the method description for details. +message GetVersionReservationSlotRequest { + // The name of the parent reservation and parent block. In the format of + // reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + string parent_name = 478151936 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the reservation slot. + // Name should conform to RFC1035 or be a resource ID. + string reservation_slot = 277470865 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ReservationSlotsGetVersionRequest reservation_slots_get_version_request_resource = 335316011 [(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, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// A request message for ReservationSubBlocks.GetVersion. See the method description for details. +message GetVersionReservationSubBlockRequest { + // 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, + (google.cloud.operation_request_field) = "project" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so + // that if you must retry your request, the server will know to ignore the + // request if it has already been completed. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same + // request ID, the server can check if original operation with the same + // request ID was received, and if so, will ignore the second request. This + // prevents clients from accidentally creating duplicate commitments. + // + // The request ID must be + // a valid UUID with the exception that zero UUID is not supported + // (00000000-0000-0000-0000-000000000000). + optional string request_id = 37109963; + + // The name of the reservation subBlock. + // Name should conform to RFC1035 or be a resource ID. + string reservation_sub_block = 22750491 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + ReservationSubBlocksGetVersionRequest reservation_sub_blocks_get_version_request_resource = 223034677 [(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, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for VpnGateways.Get. See the method description for details. message GetVpnGatewayRequest { // Project ID for this request. @@ -26083,7 +26443,10 @@ message GlobalVmExtensionPolicyRolloutOperation { // message GlobalVmExtensionPolicyRolloutOperationRolloutInput { - // Optional. Predefined rollout plan. + // Optional. Specifies the predefined rollout plan for the policy. Valid values + // are `SLOW_ROLLOUT` and `FAST_ROLLOUT`. The recommended value is + // `SLOW_ROLLOUT` for progressive rollout. For more information, see Rollout + // plans for global policies. enum PredefinedRolloutPlan { // A value indicating that the enum field is not set. UNDEFINED_PREDEFINED_ROLLOUT_PLAN = 0; @@ -26101,12 +26464,14 @@ message GlobalVmExtensionPolicyRolloutOperationRolloutInput { // methods. // // A conflict occurs in the following cases: + // // * `insert` method: If the zonal policy already exists when the insert // happens. // * `update` method: If the zonal policy was modified by a zonal API call // outside of this rollout. // // Possible values are the following: + // // * `""` (empty string): If a conflict occurs, the local value is not // overwritten. This is the default behavior. // * `"overwrite"`: If a conflict occurs, the local value is overwritten @@ -26118,7 +26483,10 @@ message GlobalVmExtensionPolicyRolloutOperationRolloutInput { // projects//locations/global/rolloutPlans/. optional string name = 3373707; - // Optional. Predefined rollout plan. + // Optional. Specifies the predefined rollout plan for the policy. Valid values + // are `SLOW_ROLLOUT` and `FAST_ROLLOUT`. The recommended value is + // `SLOW_ROLLOUT` for progressive rollout. For more information, see Rollout + // plans for global policies. // Check the PredefinedRolloutPlan enum for the list of possible values. optional string predefined_rollout_plan = 364023440; @@ -26179,6 +26547,10 @@ message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata { } + // Output only. [Output Only] The rollout status for each location. The list of the + // locations is the same as the list of locations in the rollout plan. + map location_rollout_status = 278036490; + // Output only. [Output Only] The name of the rollout. // Ex. projects//locations/global/rollouts/. optional string rollout = 303366577; @@ -26194,6 +26566,36 @@ message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata { } +// +message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus { + // Output only. [Output Only] The state of the location rollout. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The location rollout is completed. + LOCATION_ROLLOUT_STATE_COMPLETED = 134765221; + + // The location rollout has failed. + LOCATION_ROLLOUT_STATE_FAILED = 53286403; + + // The location rollout has not started. + LOCATION_ROLLOUT_STATE_NOT_STARTED = 471817423; + + // The location rollout is skipped. + LOCATION_ROLLOUT_STATE_SKIPPED = 54074890; + + // Default value. This value is unused. + LOCATION_ROLLOUT_STATE_UNSPECIFIED = 242367761; + + } + + // Output only. [Output Only] The state of the location rollout. + // Check the State enum for the list of possible values. + optional string state = 109757585; + +} + // Maintenance Info for ReservationBlocks. message GroupMaintenanceInfo { // The type of maintenance for the reservation. @@ -27207,6 +27609,35 @@ message HealthCheckService { } +// Contains a list of HealthCheckServicesScopedList. +message HealthCheckServiceAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of HealthCheckServicesScopedList 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; + +} + // A full or valid partial URL to a health check service. For example, the // following are valid URLs: // @@ -27245,6 +27676,17 @@ message HealthCheckServicesList { } +// +message HealthCheckServicesScopedList { + // A list of HealthCheckServices contained in this scope. + repeated HealthCheckService resources = 164412965; + + // Informational warning which replaces the list of + // backend services when the list is empty. + optional Warning warning = 50704284; + +} + // message HealthChecksAggregatedList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -33245,6 +33687,10 @@ message InstanceGroupManagerStatus { // Output only. [Output only] Status of all-instances configuration on the group. optional InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737; + // Output only. [Output Only] The accelerator topology applied to this MIG. + // Currently only one accelerator topology is supported. + repeated InstanceGroupManagerStatusAcceleratorTopology applied_accelerator_topologies = 481392547; + // Output only. [Output Only] The URL of theAutoscaler // that targets this instance group manager. optional string autoscaler = 517258967; @@ -33275,6 +33721,60 @@ message InstanceGroupManagerStatus { } +// +message InstanceGroupManagerStatusAcceleratorTopology { + // Output only. [Output Only] The state of the accelerator topology. + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + // The accelerator topology is being activated. + ACTIVATING = 378825968; + + // The accelerator topology is active. + ACTIVE = 314733318; + + // The accelerator topology is being deactivated. + DEACTIVATING = 57182257; + + // The accelerator topology failed. + FAILED = 455706685; + + // The configuration is incomplete and the accelerator topology cannot + // be activated due to insufficient number of running VMs. + INCOMPLETE = 11941214; + + // The accelerator topology is being reactivated. + REACTIVATING = 253727587; + + } + + // Output only. [Output Only] Topology in the format of: "16x16", "4x4x4", etc. + // The value is the same as configured in the WorkloadPolicy. + optional string accelerator_topology = 389323203; + + // Output only. [Output Only] The state of the accelerator topology. + // Check the State enum for the list of possible values. + optional string state = 109757585; + + // Output only. [Output Only] The result of the latest accelerator topology state + // check. + optional InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails state_details = 95566996; + +} + +// +message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { + // Output only. [Output Only] Encountered errors. + optional Error error = 96784904; + + // Output only. [Output Only] Timestamp is shown only if there is an error. The field + // has // RFC3339 // + // text format. + optional string timestamp = 55126294; + +} + // message InstanceGroupManagerStatusAllInstancesConfig { // Output only. [Output Only] Current all-instances configuration revision. @@ -59446,6 +59946,35 @@ message NotificationEndpoint { } +// Contains a list of NotificationEndpointsScopedList. +message NotificationEndpointAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of NotificationEndpointsScopedList 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; + +} + // Represents a gRPC setting that describes one gRPC notification endpoint and // the retry duration attempting to send notification to this endpoint. message NotificationEndpointGrpcSettings { @@ -59502,6 +60031,17 @@ message NotificationEndpointList { } +// +message NotificationEndpointsScopedList { + // A list of NotificationEndpoints contained in this scope. + repeated NotificationEndpoint resources = 164412965; + + // Informational warning which replaces the list of + // notification endpoints when the list is empty. + optional Warning warning = 50704284; + +} + // Represents an Operation resource. // // Google Compute Engine has three Operation resources: @@ -59565,6 +60105,8 @@ message Operation { // this field will be populated. optional Error error = 96784904; + optional GetVersionOperationMetadata get_version_operation_metadata = 173230167; + // [Output Only] If the operation fails, this field contains the HTTP error // message that was returned, such as `NOT FOUND`. optional string http_error_message = 202521945 [(google.cloud.operation_field) = ERROR_MESSAGE]; @@ -67401,6 +67943,27 @@ message ReservationSlotsGetResponse { } +// +message ReservationSlotsGetVersionRequest { + // + enum SbomSelections { + // A value indicating that the enum field is not set. + UNDEFINED_SBOM_SELECTIONS = 0; + + SBOM_SELECTION_CURRENT = 423856692; + + SBOM_SELECTION_TARGET = 152837462; + + SBOM_SELECTION_UNSPECIFIED = 379615858; + + } + + // The SBOM selection to return. Duplicate values in the list will be ignored. + // Check the SbomSelections enum for the list of possible values. + repeated string sbom_selections = 69155705; + +} + // A list of reservation slots within a single reservation. message ReservationSlotsListResponse { // The unique identifier for the resource; defined by the server. @@ -67559,6 +68122,27 @@ message ReservationSubBlocksGetResponse { } +// +message ReservationSubBlocksGetVersionRequest { + // + enum SbomSelections { + // A value indicating that the enum field is not set. + UNDEFINED_SBOM_SELECTIONS = 0; + + SBOM_SELECTION_CURRENT = 423856692; + + SBOM_SELECTION_TARGET = 152837462; + + SBOM_SELECTION_UNSPECIFIED = 379615858; + + } + + // The SBOM selection to return. + // Check the SbomSelections enum for the list of possible values. + repeated string sbom_selections = 69155705; + +} + // A list of reservation subBlocks under a single reservation. message ReservationSubBlocksListResponse { // Unique identifier for the resource; defined by the server. @@ -72257,20 +72841,20 @@ message SecurityPolicyDdosProtectionConfig { optional string ddos_adaptive_protection = 96895463; // DDoS Protection for Network Load Balancers (and VMs with public IPs) - // builds DDos mitigations that minimize collateral damage. It quantifies + // builds DDoS mitigations that minimize collateral damage. It quantifies // this as the fraction of a non-abuse baseline that's inadvertently // blocked. // // Rules whose collateral damage exceeds ddosImpactedBaselineThreshold will // not be deployed. Using a lower value will prioritize keeping collateral // damage low, possibly at the cost of its effectiveness in rate limiting - // some or all of the attack. It should typically be unset, so Advanced DDos + // some or all of the attack. It should typically be unset, so Advanced DDoS // (and Adaptive Protection) uses the best mitigation it can find. Setting // the threshold is advised if there are logs for false positive detections - // with high collateral damage, and will cause Advanced DDos to attempt to - // find a less aggressive rule that satisfies the constraint; Failing that, - // it will fall back to no mitigation (smaller attack) or to broader network - // throttles (larger attack). + // with high collateral damage, and will cause Advanced DDoS to attempt to + // find a less aggressive rule that satisfies the constraint. If a suitable + // rule cannot be found, the system falls back to either no mitigation for + // smaller attacks or broader network throttles for larger ones. optional float ddos_impacted_baseline_threshold = 192689584; // @@ -77892,8 +78476,9 @@ message SslPolicy { } // Profile specifies the set of SSL features that can be used by the load - // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features - // to enable must be specified in the customFeatures field. + // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in + // the customFeatures field. If using FIPS_202205, + // the min_tls_version field must be set to TLS_1_2. enum Profile { // A value indicating that the enum field is not set. UNDEFINED_PROFILE = 0; @@ -77970,8 +78555,9 @@ message SslPolicy { optional string name = 3373707; // Profile specifies the set of SSL features that can be used by the load - // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features - // to enable must be specified in the customFeatures field. + // balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL features to enable must be specified in + // the customFeatures field. If using FIPS_202205, + // the min_tls_version field must be set to TLS_1_2. // Check the Profile enum for the list of possible values. optional string profile = 227445161; @@ -83523,6 +84109,10 @@ message UpdateInstanceRequest { } + // Whether to discard local SSDs from the instance during restart + // default value is false. + optional bool discard_local_ssd = 319517903; + // Name of the instance resource to update. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; @@ -94173,6 +94763,18 @@ service RegionHealthCheckServices { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; + // Retrieves the list of all HealthCheckService 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(AggregatedListRegionHealthCheckServicesRequest) returns (HealthCheckServiceAggregatedList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/aggregated/healthCheckServices" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified regional HealthCheckService. rpc Delete(DeleteRegionHealthCheckServiceRequest) returns (Operation) { option (google.api.http) = { @@ -95728,6 +96330,15 @@ service RegionNotificationEndpoints { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; + // Retrieves the list of all NotificationEndpoint resources, + // regional and global, available to the specified project. + rpc AggregatedList(AggregatedListRegionNotificationEndpointsRequest) returns (NotificationEndpointAggregatedList) { + option (google.api.http) = { + get: "/compute/beta/projects/{project}/aggregated/notificationEndpoints" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified NotificationEndpoint in the given region rpc Delete(DeleteRegionNotificationEndpointRequest) returns (Operation) { option (google.api.http) = { @@ -96694,6 +97305,16 @@ service ReservationSlots { option (google.api.method_signature) = "project,zone,parent_name,reservation_slot"; } + // Allows customers to get SBOM versions of a reservation slot. + rpc GetVersion(GetVersionReservationSlotRequest) returns (Operation) { + option (google.api.http) = { + body: "reservation_slots_get_version_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}/getVersion" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_slot,reservation_slots_get_version_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Retrieves a list of reservation slots under a single reservation. rpc List(ListReservationSlotsRequest) returns (ReservationSlotsListResponse) { option (google.api.http) = { @@ -96740,6 +97361,16 @@ service ReservationSubBlocks { option (google.api.method_signature) = "project,zone,parent_resource,resource"; } + // Allows customers to get SBOM versions of a reservation subBlock. + rpc GetVersion(GetVersionReservationSubBlockRequest) returns (Operation) { + option (google.api.http) = { + body: "reservation_sub_blocks_get_version_request_resource" + post: "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/getVersion" + }; + option (google.api.method_signature) = "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_get_version_request_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Retrieves a list of reservation subBlocks under a single reservation. rpc List(ListReservationSubBlocksRequest) returns (ReservationSubBlocksListResponse) { option (google.api.http) = { diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 442c92afb1b..62648788989 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 AggregatedListRegionCompositeHealthChecksRequest. */ + interface IAggregatedListRegionCompositeHealthChecksRequest { + + /** AggregatedListRegionCompositeHealthChecksRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionCompositeHealthChecksRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest project */ + project?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionCompositeHealthChecksRequest. */ + class AggregatedListRegionCompositeHealthChecksRequest implements IAggregatedListRegionCompositeHealthChecksRequest { + + /** + * Constructs a new AggregatedListRegionCompositeHealthChecksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest); + + /** AggregatedListRegionCompositeHealthChecksRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionCompositeHealthChecksRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionCompositeHealthChecksRequest project. */ + public project: string; + + /** AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionCompositeHealthChecksRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest): google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is not a 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.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is 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.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Verifies an AggregatedListRegionCompositeHealthChecksRequest message. + * @param message Plain 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 AggregatedListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionCompositeHealthChecksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest; + + /** + * Creates a plain object from an AggregatedListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionCompositeHealthChecksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. */ interface IAggregatedListRegionHealthAggregationPoliciesRequest { @@ -9009,6 +9148,423 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListRegionHealthCheckServicesRequest. */ + interface IAggregatedListRegionHealthCheckServicesRequest { + + /** AggregatedListRegionHealthCheckServicesRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionHealthCheckServicesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest project */ + project?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionHealthCheckServicesRequest. */ + class AggregatedListRegionHealthCheckServicesRequest implements IAggregatedListRegionHealthCheckServicesRequest { + + /** + * Constructs a new AggregatedListRegionHealthCheckServicesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest); + + /** AggregatedListRegionHealthCheckServicesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionHealthCheckServicesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest project. */ + public project: string; + + /** AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionHealthCheckServicesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionHealthCheckServicesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest): google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionHealthCheckServicesRequest + * @throws {Error} If the payload is not a 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.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionHealthCheckServicesRequest + * @throws {Error} If the payload is 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.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Verifies an AggregatedListRegionHealthCheckServicesRequest message. + * @param message Plain 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 AggregatedListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionHealthCheckServicesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Creates a plain object from an AggregatedListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionHealthCheckServicesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionHealthCheckServicesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionHealthCheckServicesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AggregatedListRegionHealthSourcesRequest. */ + interface IAggregatedListRegionHealthSourcesRequest { + + /** AggregatedListRegionHealthSourcesRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionHealthSourcesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthSourcesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionHealthSourcesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionHealthSourcesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionHealthSourcesRequest project */ + project?: (string|null); + + /** AggregatedListRegionHealthSourcesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthSourcesRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionHealthSourcesRequest. */ + class AggregatedListRegionHealthSourcesRequest implements IAggregatedListRegionHealthSourcesRequest { + + /** + * Constructs a new AggregatedListRegionHealthSourcesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest); + + /** AggregatedListRegionHealthSourcesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionHealthSourcesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthSourcesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionHealthSourcesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionHealthSourcesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionHealthSourcesRequest project. */ + public project: string; + + /** AggregatedListRegionHealthSourcesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthSourcesRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionHealthSourcesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest): google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest; + + /** + * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionHealthSourcesRequest + * @throws {Error} If the payload is not a 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.AggregatedListRegionHealthSourcesRequest; + + /** + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionHealthSourcesRequest + * @throws {Error} If the payload is 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.AggregatedListRegionHealthSourcesRequest; + + /** + * Verifies an AggregatedListRegionHealthSourcesRequest message. + * @param message Plain 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 AggregatedListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionHealthSourcesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest; + + /** + * Creates a plain object from an AggregatedListRegionHealthSourcesRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionHealthSourcesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionHealthSourcesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionHealthSourcesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AggregatedListRegionNotificationEndpointsRequest. */ + interface IAggregatedListRegionNotificationEndpointsRequest { + + /** AggregatedListRegionNotificationEndpointsRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionNotificationEndpointsRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest project */ + project?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionNotificationEndpointsRequest. */ + class AggregatedListRegionNotificationEndpointsRequest implements IAggregatedListRegionNotificationEndpointsRequest { + + /** + * Constructs a new AggregatedListRegionNotificationEndpointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest); + + /** AggregatedListRegionNotificationEndpointsRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionNotificationEndpointsRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest project. */ + public project: string; + + /** AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionNotificationEndpointsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionNotificationEndpointsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest): google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. + * @param message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. + * @param message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionNotificationEndpointsRequest + * @throws {Error} If the payload is not a 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.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionNotificationEndpointsRequest + * @throws {Error} If the payload is 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.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Verifies an AggregatedListRegionNotificationEndpointsRequest message. + * @param message Plain 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 AggregatedListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionNotificationEndpointsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Creates a plain object from an AggregatedListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionNotificationEndpointsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionNotificationEndpointsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionNotificationEndpointsRequest + * @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 { @@ -25502,6 +26058,526 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CompositeHealthCheck. */ + interface ICompositeHealthCheck { + + /** CompositeHealthCheck creationTimestamp */ + creationTimestamp?: (string|null); + + /** CompositeHealthCheck description */ + description?: (string|null); + + /** CompositeHealthCheck fingerprint */ + fingerprint?: (string|null); + + /** CompositeHealthCheck healthDestination */ + healthDestination?: (string|null); + + /** CompositeHealthCheck healthSources */ + healthSources?: (string[]|null); + + /** CompositeHealthCheck id */ + id?: (number|Long|string|null); + + /** CompositeHealthCheck kind */ + kind?: (string|null); + + /** CompositeHealthCheck name */ + name?: (string|null); + + /** CompositeHealthCheck region */ + region?: (string|null); + + /** CompositeHealthCheck selfLink */ + selfLink?: (string|null); + + /** CompositeHealthCheck selfLinkWithId */ + selfLinkWithId?: (string|null); + } + + /** Represents a CompositeHealthCheck. */ + class CompositeHealthCheck implements ICompositeHealthCheck { + + /** + * Constructs a new CompositeHealthCheck. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICompositeHealthCheck); + + /** CompositeHealthCheck creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** CompositeHealthCheck description. */ + public description?: (string|null); + + /** CompositeHealthCheck fingerprint. */ + public fingerprint?: (string|null); + + /** CompositeHealthCheck healthDestination. */ + public healthDestination?: (string|null); + + /** CompositeHealthCheck healthSources. */ + public healthSources: string[]; + + /** CompositeHealthCheck id. */ + public id?: (number|Long|string|null); + + /** CompositeHealthCheck kind. */ + public kind?: (string|null); + + /** CompositeHealthCheck name. */ + public name?: (string|null); + + /** CompositeHealthCheck region. */ + public region?: (string|null); + + /** CompositeHealthCheck selfLink. */ + public selfLink?: (string|null); + + /** CompositeHealthCheck selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** + * Creates a new CompositeHealthCheck instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheck instance + */ + public static create(properties?: google.cloud.compute.v1.ICompositeHealthCheck): google.cloud.compute.v1.CompositeHealthCheck; + + /** + * Encodes the specified CompositeHealthCheck message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheck.verify|verify} messages. + * @param message CompositeHealthCheck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICompositeHealthCheck, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheck.verify|verify} messages. + * @param message CompositeHealthCheck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICompositeHealthCheck, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheck + * @throws {Error} If the payload is not a 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.CompositeHealthCheck; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheck + * @throws {Error} If the payload is 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.CompositeHealthCheck; + + /** + * Verifies a CompositeHealthCheck message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthCheck message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheck + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CompositeHealthCheck; + + /** + * Creates a plain object from a CompositeHealthCheck message. Also converts values to other types if specified. + * @param message CompositeHealthCheck + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CompositeHealthCheck, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheck to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheck + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompositeHealthCheckAggregatedList. */ + interface ICompositeHealthCheckAggregatedList { + + /** CompositeHealthCheckAggregatedList id */ + id?: (string|null); + + /** CompositeHealthCheckAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.ICompositeHealthChecksScopedList }|null); + + /** CompositeHealthCheckAggregatedList kind */ + kind?: (string|null); + + /** CompositeHealthCheckAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** CompositeHealthCheckAggregatedList selfLink */ + selfLink?: (string|null); + + /** CompositeHealthCheckAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** CompositeHealthCheckAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a CompositeHealthCheckAggregatedList. */ + class CompositeHealthCheckAggregatedList implements ICompositeHealthCheckAggregatedList { + + /** + * Constructs a new CompositeHealthCheckAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICompositeHealthCheckAggregatedList); + + /** CompositeHealthCheckAggregatedList id. */ + public id?: (string|null); + + /** CompositeHealthCheckAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.ICompositeHealthChecksScopedList }; + + /** CompositeHealthCheckAggregatedList kind. */ + public kind?: (string|null); + + /** CompositeHealthCheckAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** CompositeHealthCheckAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** CompositeHealthCheckAggregatedList unreachables. */ + public unreachables: string[]; + + /** CompositeHealthCheckAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new CompositeHealthCheckAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheckAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.ICompositeHealthCheckAggregatedList): google.cloud.compute.v1.CompositeHealthCheckAggregatedList; + + /** + * Encodes the specified CompositeHealthCheckAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @param message CompositeHealthCheckAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICompositeHealthCheckAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheckAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @param message CompositeHealthCheckAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICompositeHealthCheckAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is not a 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.CompositeHealthCheckAggregatedList; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is 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.CompositeHealthCheckAggregatedList; + + /** + * Verifies a CompositeHealthCheckAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthCheckAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheckAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CompositeHealthCheckAggregatedList; + + /** + * Creates a plain object from a CompositeHealthCheckAggregatedList message. Also converts values to other types if specified. + * @param message CompositeHealthCheckAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CompositeHealthCheckAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheckAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheckAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompositeHealthCheckList. */ + interface ICompositeHealthCheckList { + + /** CompositeHealthCheckList id */ + id?: (string|null); + + /** CompositeHealthCheckList items */ + items?: (google.cloud.compute.v1.ICompositeHealthCheck[]|null); + + /** CompositeHealthCheckList kind */ + kind?: (string|null); + + /** CompositeHealthCheckList nextPageToken */ + nextPageToken?: (string|null); + + /** CompositeHealthCheckList selfLink */ + selfLink?: (string|null); + + /** CompositeHealthCheckList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a CompositeHealthCheckList. */ + class CompositeHealthCheckList implements ICompositeHealthCheckList { + + /** + * Constructs a new CompositeHealthCheckList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICompositeHealthCheckList); + + /** CompositeHealthCheckList id. */ + public id?: (string|null); + + /** CompositeHealthCheckList items. */ + public items: google.cloud.compute.v1.ICompositeHealthCheck[]; + + /** CompositeHealthCheckList kind. */ + public kind?: (string|null); + + /** CompositeHealthCheckList nextPageToken. */ + public nextPageToken?: (string|null); + + /** CompositeHealthCheckList selfLink. */ + public selfLink?: (string|null); + + /** CompositeHealthCheckList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new CompositeHealthCheckList instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthCheckList instance + */ + public static create(properties?: google.cloud.compute.v1.ICompositeHealthCheckList): google.cloud.compute.v1.CompositeHealthCheckList; + + /** + * Encodes the specified CompositeHealthCheckList message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckList.verify|verify} messages. + * @param message CompositeHealthCheckList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICompositeHealthCheckList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthCheckList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckList.verify|verify} messages. + * @param message CompositeHealthCheckList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICompositeHealthCheckList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthCheckList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthCheckList + * @throws {Error} If the payload is not a 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.CompositeHealthCheckList; + + /** + * Decodes a CompositeHealthCheckList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthCheckList + * @throws {Error} If the payload is 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.CompositeHealthCheckList; + + /** + * Verifies a CompositeHealthCheckList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthCheckList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthCheckList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CompositeHealthCheckList; + + /** + * Creates a plain object from a CompositeHealthCheckList message. Also converts values to other types if specified. + * @param message CompositeHealthCheckList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CompositeHealthCheckList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthCheckList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthCheckList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CompositeHealthChecksScopedList. */ + interface ICompositeHealthChecksScopedList { + + /** CompositeHealthChecksScopedList compositeHealthChecks */ + compositeHealthChecks?: (google.cloud.compute.v1.ICompositeHealthCheck[]|null); + + /** CompositeHealthChecksScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a CompositeHealthChecksScopedList. */ + class CompositeHealthChecksScopedList implements ICompositeHealthChecksScopedList { + + /** + * Constructs a new CompositeHealthChecksScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ICompositeHealthChecksScopedList); + + /** CompositeHealthChecksScopedList compositeHealthChecks. */ + public compositeHealthChecks: google.cloud.compute.v1.ICompositeHealthCheck[]; + + /** CompositeHealthChecksScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new CompositeHealthChecksScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns CompositeHealthChecksScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.ICompositeHealthChecksScopedList): google.cloud.compute.v1.CompositeHealthChecksScopedList; + + /** + * Encodes the specified CompositeHealthChecksScopedList message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksScopedList.verify|verify} messages. + * @param message CompositeHealthChecksScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ICompositeHealthChecksScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompositeHealthChecksScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksScopedList.verify|verify} messages. + * @param message CompositeHealthChecksScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ICompositeHealthChecksScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompositeHealthChecksScopedList + * @throws {Error} If the payload is not a 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.CompositeHealthChecksScopedList; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompositeHealthChecksScopedList + * @throws {Error} If the payload is 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.CompositeHealthChecksScopedList; + + /** + * Verifies a CompositeHealthChecksScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompositeHealthChecksScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompositeHealthChecksScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.CompositeHealthChecksScopedList; + + /** + * Creates a plain object from a CompositeHealthChecksScopedList message. Also converts values to other types if specified. + * @param message CompositeHealthChecksScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.CompositeHealthChecksScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompositeHealthChecksScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompositeHealthChecksScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ConfidentialInstanceConfig. */ interface IConfidentialInstanceConfig { @@ -33614,6 +34690,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionCompositeHealthCheckRequest. */ + interface IDeleteRegionCompositeHealthCheckRequest { + + /** DeleteRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** DeleteRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** DeleteRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** DeleteRegionCompositeHealthCheckRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionCompositeHealthCheckRequest. */ + class DeleteRegionCompositeHealthCheckRequest implements IDeleteRegionCompositeHealthCheckRequest { + + /** + * Constructs a new DeleteRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest); + + /** DeleteRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** DeleteRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** DeleteRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** DeleteRegionCompositeHealthCheckRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest): google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a 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.DeleteRegionCompositeHealthCheckRequest; + + /** + * Decodes a DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is 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.DeleteRegionCompositeHealthCheckRequest; + + /** + * Verifies a DeleteRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a DeleteRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message DeleteRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionDiskRequest. */ interface IDeleteRegionDiskRequest { @@ -34074,6 +35265,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteRegionHealthSourceRequest. */ + interface IDeleteRegionHealthSourceRequest { + + /** DeleteRegionHealthSourceRequest healthSource */ + healthSource?: (string|null); + + /** DeleteRegionHealthSourceRequest project */ + project?: (string|null); + + /** DeleteRegionHealthSourceRequest region */ + region?: (string|null); + + /** DeleteRegionHealthSourceRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteRegionHealthSourceRequest. */ + class DeleteRegionHealthSourceRequest implements IDeleteRegionHealthSourceRequest { + + /** + * Constructs a new DeleteRegionHealthSourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteRegionHealthSourceRequest); + + /** DeleteRegionHealthSourceRequest healthSource. */ + public healthSource: string; + + /** DeleteRegionHealthSourceRequest project. */ + public project: string; + + /** DeleteRegionHealthSourceRequest region. */ + public region: string; + + /** DeleteRegionHealthSourceRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new DeleteRegionHealthSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteRegionHealthSourceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteRegionHealthSourceRequest): google.cloud.compute.v1.DeleteRegionHealthSourceRequest; + + /** + * Encodes the specified DeleteRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthSourceRequest.verify|verify} messages. + * @param message DeleteRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthSourceRequest.verify|verify} messages. + * @param message DeleteRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteRegionHealthSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteRegionHealthSourceRequest + * @throws {Error} If the payload is not a 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.DeleteRegionHealthSourceRequest; + + /** + * Decodes a DeleteRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteRegionHealthSourceRequest + * @throws {Error} If the payload is 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.DeleteRegionHealthSourceRequest; + + /** + * Verifies a DeleteRegionHealthSourceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteRegionHealthSourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteRegionHealthSourceRequest; + + /** + * Creates a plain object from a DeleteRegionHealthSourceRequest message. Also converts values to other types if specified. + * @param message DeleteRegionHealthSourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteRegionHealthSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteRegionHealthSourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteRegionHealthSourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteRegionInstanceGroupManagerRequest. */ interface IDeleteRegionInstanceGroupManagerRequest { @@ -62051,6 +63357,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionCompositeHealthCheckRequest. */ + interface IGetRegionCompositeHealthCheckRequest { + + /** GetRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** GetRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** GetRegionCompositeHealthCheckRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionCompositeHealthCheckRequest. */ + class GetRegionCompositeHealthCheckRequest implements IGetRegionCompositeHealthCheckRequest { + + /** + * Constructs a new GetRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest); + + /** GetRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** GetRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** GetRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** + * Creates a new GetRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest): google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a 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.GetRegionCompositeHealthCheckRequest; + + /** + * Decodes a GetRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is 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.GetRegionCompositeHealthCheckRequest; + + /** + * Verifies a GetRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a GetRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message GetRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionDiskRequest. */ interface IGetRegionDiskRequest { @@ -62596,6 +64011,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetRegionHealthSourceRequest. */ + interface IGetRegionHealthSourceRequest { + + /** GetRegionHealthSourceRequest healthSource */ + healthSource?: (string|null); + + /** GetRegionHealthSourceRequest project */ + project?: (string|null); + + /** GetRegionHealthSourceRequest region */ + region?: (string|null); + } + + /** Represents a GetRegionHealthSourceRequest. */ + class GetRegionHealthSourceRequest implements IGetRegionHealthSourceRequest { + + /** + * Constructs a new GetRegionHealthSourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetRegionHealthSourceRequest); + + /** GetRegionHealthSourceRequest healthSource. */ + public healthSource: string; + + /** GetRegionHealthSourceRequest project. */ + public project: string; + + /** GetRegionHealthSourceRequest region. */ + public region: string; + + /** + * Creates a new GetRegionHealthSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetRegionHealthSourceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetRegionHealthSourceRequest): google.cloud.compute.v1.GetRegionHealthSourceRequest; + + /** + * Encodes the specified GetRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthSourceRequest.verify|verify} messages. + * @param message GetRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthSourceRequest.verify|verify} messages. + * @param message GetRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetRegionHealthSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetRegionHealthSourceRequest + * @throws {Error} If the payload is not a 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.GetRegionHealthSourceRequest; + + /** + * Decodes a GetRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetRegionHealthSourceRequest + * @throws {Error} If the payload is 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.GetRegionHealthSourceRequest; + + /** + * Verifies a GetRegionHealthSourceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetRegionHealthSourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetRegionHealthSourceRequest; + + /** + * Creates a plain object from a GetRegionHealthSourceRequest message. Also converts values to other types if specified. + * @param message GetRegionHealthSourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetRegionHealthSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetRegionHealthSourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetRegionHealthSourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetRegionInstanceGroupManagerRequest. */ interface IGetRegionInstanceGroupManagerRequest { @@ -68381,6 +69905,460 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetVersionOperationMetadata. */ + interface IGetVersionOperationMetadata { + + /** GetVersionOperationMetadata inlineSbomInfo */ + inlineSbomInfo?: (google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo|null); + } + + /** Represents a GetVersionOperationMetadata. */ + class GetVersionOperationMetadata implements IGetVersionOperationMetadata { + + /** + * Constructs a new GetVersionOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetVersionOperationMetadata); + + /** GetVersionOperationMetadata inlineSbomInfo. */ + public inlineSbomInfo?: (google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo|null); + + /** + * Creates a new GetVersionOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionOperationMetadata instance + */ + public static create(properties?: google.cloud.compute.v1.IGetVersionOperationMetadata): google.cloud.compute.v1.GetVersionOperationMetadata; + + /** + * Encodes the specified GetVersionOperationMetadata message. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadata.verify|verify} messages. + * @param message GetVersionOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadata.verify|verify} messages. + * @param message GetVersionOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionOperationMetadata + * @throws {Error} If the payload is not a 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.GetVersionOperationMetadata; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionOperationMetadata + * @throws {Error} If the payload is 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.GetVersionOperationMetadata; + + /** + * Verifies a GetVersionOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetVersionOperationMetadata; + + /** + * Creates a plain object from a GetVersionOperationMetadata message. Also converts values to other types if specified. + * @param message GetVersionOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionOperationMetadataSbomInfo. */ + interface IGetVersionOperationMetadataSbomInfo { + + /** GetVersionOperationMetadataSbomInfo currentComponentVersions */ + currentComponentVersions?: ({ [k: string]: string }|null); + + /** GetVersionOperationMetadataSbomInfo targetComponentVersions */ + targetComponentVersions?: ({ [k: string]: string }|null); + } + + /** Represents a GetVersionOperationMetadataSbomInfo. */ + class GetVersionOperationMetadataSbomInfo implements IGetVersionOperationMetadataSbomInfo { + + /** + * Constructs a new GetVersionOperationMetadataSbomInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo); + + /** GetVersionOperationMetadataSbomInfo currentComponentVersions. */ + public currentComponentVersions: { [k: string]: string }; + + /** GetVersionOperationMetadataSbomInfo targetComponentVersions. */ + public targetComponentVersions: { [k: string]: string }; + + /** + * Creates a new GetVersionOperationMetadataSbomInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionOperationMetadataSbomInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo): google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @param message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @param message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is not a 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.GetVersionOperationMetadataSbomInfo; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is 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.GetVersionOperationMetadataSbomInfo; + + /** + * Verifies a GetVersionOperationMetadataSbomInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionOperationMetadataSbomInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionOperationMetadataSbomInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo; + + /** + * Creates a plain object from a GetVersionOperationMetadataSbomInfo message. Also converts values to other types if specified. + * @param message GetVersionOperationMetadataSbomInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionOperationMetadataSbomInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionOperationMetadataSbomInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionReservationSlotRequest. */ + interface IGetVersionReservationSlotRequest { + + /** GetVersionReservationSlotRequest parentName */ + parentName?: (string|null); + + /** GetVersionReservationSlotRequest project */ + project?: (string|null); + + /** GetVersionReservationSlotRequest requestId */ + requestId?: (string|null); + + /** GetVersionReservationSlotRequest reservationSlot */ + reservationSlot?: (string|null); + + /** GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource */ + reservationSlotsGetVersionRequestResource?: (google.cloud.compute.v1.IReservationSlotsGetVersionRequest|null); + + /** GetVersionReservationSlotRequest zone */ + zone?: (string|null); + } + + /** Represents a GetVersionReservationSlotRequest. */ + class GetVersionReservationSlotRequest implements IGetVersionReservationSlotRequest { + + /** + * Constructs a new GetVersionReservationSlotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetVersionReservationSlotRequest); + + /** GetVersionReservationSlotRequest parentName. */ + public parentName: string; + + /** GetVersionReservationSlotRequest project. */ + public project: string; + + /** GetVersionReservationSlotRequest requestId. */ + public requestId?: (string|null); + + /** GetVersionReservationSlotRequest reservationSlot. */ + public reservationSlot: string; + + /** GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource. */ + public reservationSlotsGetVersionRequestResource?: (google.cloud.compute.v1.IReservationSlotsGetVersionRequest|null); + + /** GetVersionReservationSlotRequest zone. */ + public zone: string; + + /** + * Creates a new GetVersionReservationSlotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionReservationSlotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetVersionReservationSlotRequest): google.cloud.compute.v1.GetVersionReservationSlotRequest; + + /** + * Encodes the specified GetVersionReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSlotRequest.verify|verify} messages. + * @param message GetVersionReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetVersionReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSlotRequest.verify|verify} messages. + * @param message GetVersionReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetVersionReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionReservationSlotRequest + * @throws {Error} If the payload is not a 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.GetVersionReservationSlotRequest; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionReservationSlotRequest + * @throws {Error} If the payload is 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.GetVersionReservationSlotRequest; + + /** + * Verifies a GetVersionReservationSlotRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionReservationSlotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetVersionReservationSlotRequest; + + /** + * Creates a plain object from a GetVersionReservationSlotRequest message. Also converts values to other types if specified. + * @param message GetVersionReservationSlotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetVersionReservationSlotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionReservationSlotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionReservationSlotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionReservationSubBlockRequest. */ + interface IGetVersionReservationSubBlockRequest { + + /** GetVersionReservationSubBlockRequest parentName */ + parentName?: (string|null); + + /** GetVersionReservationSubBlockRequest project */ + project?: (string|null); + + /** GetVersionReservationSubBlockRequest requestId */ + requestId?: (string|null); + + /** GetVersionReservationSubBlockRequest reservationSubBlock */ + reservationSubBlock?: (string|null); + + /** GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource */ + reservationSubBlocksGetVersionRequestResource?: (google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest|null); + + /** GetVersionReservationSubBlockRequest zone */ + zone?: (string|null); + } + + /** Represents a GetVersionReservationSubBlockRequest. */ + class GetVersionReservationSubBlockRequest implements IGetVersionReservationSubBlockRequest { + + /** + * Constructs a new GetVersionReservationSubBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetVersionReservationSubBlockRequest); + + /** GetVersionReservationSubBlockRequest parentName. */ + public parentName: string; + + /** GetVersionReservationSubBlockRequest project. */ + public project: string; + + /** GetVersionReservationSubBlockRequest requestId. */ + public requestId?: (string|null); + + /** GetVersionReservationSubBlockRequest reservationSubBlock. */ + public reservationSubBlock: string; + + /** GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource. */ + public reservationSubBlocksGetVersionRequestResource?: (google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest|null); + + /** GetVersionReservationSubBlockRequest zone. */ + public zone: string; + + /** + * Creates a new GetVersionReservationSubBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionReservationSubBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetVersionReservationSubBlockRequest): google.cloud.compute.v1.GetVersionReservationSubBlockRequest; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @param message GetVersionReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetVersionReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @param message GetVersionReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetVersionReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is not a 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.GetVersionReservationSubBlockRequest; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is 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.GetVersionReservationSubBlockRequest; + + /** + * Verifies a GetVersionReservationSubBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionReservationSubBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetVersionReservationSubBlockRequest; + + /** + * Creates a plain object from a GetVersionReservationSubBlockRequest message. Also converts values to other types if specified. + * @param message GetVersionReservationSubBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetVersionReservationSubBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionReservationSubBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionReservationSubBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetVpnGatewayRequest. */ interface IGetVpnGatewayRequest { @@ -72081,6 +74059,139 @@ export namespace google { } } + /** Properties of a HealthCheckServiceAggregatedList. */ + interface IHealthCheckServiceAggregatedList { + + /** HealthCheckServiceAggregatedList id */ + id?: (string|null); + + /** HealthCheckServiceAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.IHealthCheckServicesScopedList }|null); + + /** HealthCheckServiceAggregatedList kind */ + kind?: (string|null); + + /** HealthCheckServiceAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthCheckServiceAggregatedList selfLink */ + selfLink?: (string|null); + + /** HealthCheckServiceAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** HealthCheckServiceAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthCheckServiceAggregatedList. */ + class HealthCheckServiceAggregatedList implements IHealthCheckServiceAggregatedList { + + /** + * Constructs a new HealthCheckServiceAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthCheckServiceAggregatedList); + + /** HealthCheckServiceAggregatedList id. */ + public id?: (string|null); + + /** HealthCheckServiceAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.IHealthCheckServicesScopedList }; + + /** HealthCheckServiceAggregatedList kind. */ + public kind?: (string|null); + + /** HealthCheckServiceAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthCheckServiceAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** HealthCheckServiceAggregatedList unreachables. */ + public unreachables: string[]; + + /** HealthCheckServiceAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthCheckServiceAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthCheckServiceAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthCheckServiceAggregatedList): google.cloud.compute.v1.HealthCheckServiceAggregatedList; + + /** + * Encodes the specified HealthCheckServiceAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServiceAggregatedList.verify|verify} messages. + * @param message HealthCheckServiceAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthCheckServiceAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthCheckServiceAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServiceAggregatedList.verify|verify} messages. + * @param message HealthCheckServiceAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthCheckServiceAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthCheckServiceAggregatedList + * @throws {Error} If the payload is not a 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.HealthCheckServiceAggregatedList; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthCheckServiceAggregatedList + * @throws {Error} If the payload is 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.HealthCheckServiceAggregatedList; + + /** + * Verifies a HealthCheckServiceAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthCheckServiceAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthCheckServiceAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthCheckServiceAggregatedList; + + /** + * Creates a plain object from a HealthCheckServiceAggregatedList message. Also converts values to other types if specified. + * @param message HealthCheckServiceAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthCheckServiceAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthCheckServiceAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthCheckServiceAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthCheckServiceReference. */ interface IHealthCheckServiceReference { @@ -72305,6 +74416,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a HealthCheckServicesScopedList. */ + interface IHealthCheckServicesScopedList { + + /** HealthCheckServicesScopedList resources */ + resources?: (google.cloud.compute.v1.IHealthCheckService[]|null); + + /** HealthCheckServicesScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthCheckServicesScopedList. */ + class HealthCheckServicesScopedList implements IHealthCheckServicesScopedList { + + /** + * Constructs a new HealthCheckServicesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthCheckServicesScopedList); + + /** HealthCheckServicesScopedList resources. */ + public resources: google.cloud.compute.v1.IHealthCheckService[]; + + /** HealthCheckServicesScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthCheckServicesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthCheckServicesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthCheckServicesScopedList): google.cloud.compute.v1.HealthCheckServicesScopedList; + + /** + * Encodes the specified HealthCheckServicesScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServicesScopedList.verify|verify} messages. + * @param message HealthCheckServicesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthCheckServicesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthCheckServicesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServicesScopedList.verify|verify} messages. + * @param message HealthCheckServicesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthCheckServicesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthCheckServicesScopedList + * @throws {Error} If the payload is not a 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.HealthCheckServicesScopedList; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthCheckServicesScopedList + * @throws {Error} If the payload is 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.HealthCheckServicesScopedList; + + /** + * Verifies a HealthCheckServicesScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthCheckServicesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthCheckServicesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthCheckServicesScopedList; + + /** + * Creates a plain object from a HealthCheckServicesScopedList message. Also converts values to other types if specified. + * @param message HealthCheckServicesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthCheckServicesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthCheckServicesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthCheckServicesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthChecksAggregatedList. */ interface IHealthChecksAggregatedList { @@ -72541,6 +74755,541 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a HealthSource. */ + interface IHealthSource { + + /** HealthSource creationTimestamp */ + creationTimestamp?: (string|null); + + /** HealthSource description */ + description?: (string|null); + + /** HealthSource fingerprint */ + fingerprint?: (string|null); + + /** HealthSource healthAggregationPolicy */ + healthAggregationPolicy?: (string|null); + + /** HealthSource id */ + id?: (number|Long|string|null); + + /** HealthSource kind */ + kind?: (string|null); + + /** HealthSource name */ + name?: (string|null); + + /** HealthSource region */ + region?: (string|null); + + /** HealthSource selfLink */ + selfLink?: (string|null); + + /** HealthSource selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** HealthSource sourceType */ + sourceType?: (string|null); + + /** HealthSource sources */ + sources?: (string[]|null); + } + + /** Represents a HealthSource. */ + class HealthSource implements IHealthSource { + + /** + * Constructs a new HealthSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthSource); + + /** HealthSource creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** HealthSource description. */ + public description?: (string|null); + + /** HealthSource fingerprint. */ + public fingerprint?: (string|null); + + /** HealthSource healthAggregationPolicy. */ + public healthAggregationPolicy?: (string|null); + + /** HealthSource id. */ + public id?: (number|Long|string|null); + + /** HealthSource kind. */ + public kind?: (string|null); + + /** HealthSource name. */ + public name?: (string|null); + + /** HealthSource region. */ + public region?: (string|null); + + /** HealthSource selfLink. */ + public selfLink?: (string|null); + + /** HealthSource selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** HealthSource sourceType. */ + public sourceType?: (string|null); + + /** HealthSource sources. */ + public sources: string[]; + + /** + * Creates a new HealthSource instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSource instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthSource): google.cloud.compute.v1.HealthSource; + + /** + * Encodes the specified HealthSource message. Does not implicitly {@link google.cloud.compute.v1.HealthSource.verify|verify} messages. + * @param message HealthSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSource message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSource.verify|verify} messages. + * @param message HealthSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSource + * @throws {Error} If the payload is not a 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.HealthSource; + + /** + * Decodes a HealthSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSource + * @throws {Error} If the payload is 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.HealthSource; + + /** + * Verifies a HealthSource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthSource; + + /** + * Creates a plain object from a HealthSource message. Also converts values to other types if specified. + * @param message HealthSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace HealthSource { + + /** SourceType enum. */ + enum SourceType { + UNDEFINED_SOURCE_TYPE = 0, + BACKEND_SERVICE = 285792202 + } + } + + /** Properties of a HealthSourceAggregatedList. */ + interface IHealthSourceAggregatedList { + + /** HealthSourceAggregatedList id */ + id?: (string|null); + + /** HealthSourceAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.IHealthSourcesScopedList }|null); + + /** HealthSourceAggregatedList kind */ + kind?: (string|null); + + /** HealthSourceAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthSourceAggregatedList selfLink */ + selfLink?: (string|null); + + /** HealthSourceAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** HealthSourceAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthSourceAggregatedList. */ + class HealthSourceAggregatedList implements IHealthSourceAggregatedList { + + /** + * Constructs a new HealthSourceAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthSourceAggregatedList); + + /** HealthSourceAggregatedList id. */ + public id?: (string|null); + + /** HealthSourceAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.IHealthSourcesScopedList }; + + /** HealthSourceAggregatedList kind. */ + public kind?: (string|null); + + /** HealthSourceAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthSourceAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** HealthSourceAggregatedList unreachables. */ + public unreachables: string[]; + + /** HealthSourceAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthSourceAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourceAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthSourceAggregatedList): google.cloud.compute.v1.HealthSourceAggregatedList; + + /** + * Encodes the specified HealthSourceAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.HealthSourceAggregatedList.verify|verify} messages. + * @param message HealthSourceAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthSourceAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourceAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourceAggregatedList.verify|verify} messages. + * @param message HealthSourceAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthSourceAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourceAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourceAggregatedList + * @throws {Error} If the payload is not a 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.HealthSourceAggregatedList; + + /** + * Decodes a HealthSourceAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourceAggregatedList + * @throws {Error} If the payload is 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.HealthSourceAggregatedList; + + /** + * Verifies a HealthSourceAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthSourceAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourceAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthSourceAggregatedList; + + /** + * Creates a plain object from a HealthSourceAggregatedList message. Also converts values to other types if specified. + * @param message HealthSourceAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthSourceAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourceAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourceAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthSourceList. */ + interface IHealthSourceList { + + /** HealthSourceList id */ + id?: (string|null); + + /** HealthSourceList items */ + items?: (google.cloud.compute.v1.IHealthSource[]|null); + + /** HealthSourceList kind */ + kind?: (string|null); + + /** HealthSourceList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthSourceList selfLink */ + selfLink?: (string|null); + + /** HealthSourceList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthSourceList. */ + class HealthSourceList implements IHealthSourceList { + + /** + * Constructs a new HealthSourceList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthSourceList); + + /** HealthSourceList id. */ + public id?: (string|null); + + /** HealthSourceList items. */ + public items: google.cloud.compute.v1.IHealthSource[]; + + /** HealthSourceList kind. */ + public kind?: (string|null); + + /** HealthSourceList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthSourceList selfLink. */ + public selfLink?: (string|null); + + /** HealthSourceList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthSourceList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourceList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthSourceList): google.cloud.compute.v1.HealthSourceList; + + /** + * Encodes the specified HealthSourceList message. Does not implicitly {@link google.cloud.compute.v1.HealthSourceList.verify|verify} messages. + * @param message HealthSourceList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthSourceList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourceList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourceList.verify|verify} messages. + * @param message HealthSourceList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthSourceList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourceList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourceList + * @throws {Error} If the payload is not a 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.HealthSourceList; + + /** + * Decodes a HealthSourceList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourceList + * @throws {Error} If the payload is 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.HealthSourceList; + + /** + * Verifies a HealthSourceList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthSourceList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourceList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthSourceList; + + /** + * Creates a plain object from a HealthSourceList message. Also converts values to other types if specified. + * @param message HealthSourceList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthSourceList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourceList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourceList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a HealthSourcesScopedList. */ + interface IHealthSourcesScopedList { + + /** HealthSourcesScopedList healthSources */ + healthSources?: (google.cloud.compute.v1.IHealthSource[]|null); + + /** HealthSourcesScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a HealthSourcesScopedList. */ + class HealthSourcesScopedList implements IHealthSourcesScopedList { + + /** + * Constructs a new HealthSourcesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IHealthSourcesScopedList); + + /** HealthSourcesScopedList healthSources. */ + public healthSources: google.cloud.compute.v1.IHealthSource[]; + + /** HealthSourcesScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new HealthSourcesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthSourcesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.IHealthSourcesScopedList): google.cloud.compute.v1.HealthSourcesScopedList; + + /** + * Encodes the specified HealthSourcesScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesScopedList.verify|verify} messages. + * @param message HealthSourcesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IHealthSourcesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthSourcesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesScopedList.verify|verify} messages. + * @param message HealthSourcesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IHealthSourcesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthSourcesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthSourcesScopedList + * @throws {Error} If the payload is not a 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.HealthSourcesScopedList; + + /** + * Decodes a HealthSourcesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthSourcesScopedList + * @throws {Error} If the payload is 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.HealthSourcesScopedList; + + /** + * Verifies a HealthSourcesScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthSourcesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthSourcesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.HealthSourcesScopedList; + + /** + * Creates a plain object from a HealthSourcesScopedList message. Also converts values to other types if specified. + * @param message HealthSourcesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.HealthSourcesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthSourcesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthSourcesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthStatus. */ interface IHealthStatus { @@ -80264,6 +83013,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionCompositeHealthCheckRequest. */ + interface IInsertRegionCompositeHealthCheckRequest { + + /** InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource */ + compositeHealthCheckResource?: (google.cloud.compute.v1.ICompositeHealthCheck|null); + + /** InsertRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** InsertRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** InsertRegionCompositeHealthCheckRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionCompositeHealthCheckRequest. */ + class InsertRegionCompositeHealthCheckRequest implements IInsertRegionCompositeHealthCheckRequest { + + /** + * Constructs a new InsertRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest); + + /** InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource. */ + public compositeHealthCheckResource?: (google.cloud.compute.v1.ICompositeHealthCheck|null); + + /** InsertRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** InsertRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** InsertRegionCompositeHealthCheckRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new InsertRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest): google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified InsertRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message InsertRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message InsertRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a 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.InsertRegionCompositeHealthCheckRequest; + + /** + * Decodes an InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is 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.InsertRegionCompositeHealthCheckRequest; + + /** + * Verifies an InsertRegionCompositeHealthCheckRequest message. + * @param message Plain 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 InsertRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from an InsertRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message InsertRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionDiskRequest. */ interface IInsertRegionDiskRequest { @@ -80730,6 +83594,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertRegionHealthSourceRequest. */ + interface IInsertRegionHealthSourceRequest { + + /** InsertRegionHealthSourceRequest healthSourceResource */ + healthSourceResource?: (google.cloud.compute.v1.IHealthSource|null); + + /** InsertRegionHealthSourceRequest project */ + project?: (string|null); + + /** InsertRegionHealthSourceRequest region */ + region?: (string|null); + + /** InsertRegionHealthSourceRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertRegionHealthSourceRequest. */ + class InsertRegionHealthSourceRequest implements IInsertRegionHealthSourceRequest { + + /** + * Constructs a new InsertRegionHealthSourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertRegionHealthSourceRequest); + + /** InsertRegionHealthSourceRequest healthSourceResource. */ + public healthSourceResource?: (google.cloud.compute.v1.IHealthSource|null); + + /** InsertRegionHealthSourceRequest project. */ + public project: string; + + /** InsertRegionHealthSourceRequest region. */ + public region: string; + + /** InsertRegionHealthSourceRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new InsertRegionHealthSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertRegionHealthSourceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertRegionHealthSourceRequest): google.cloud.compute.v1.InsertRegionHealthSourceRequest; + + /** + * Encodes the specified InsertRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthSourceRequest.verify|verify} messages. + * @param message InsertRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthSourceRequest.verify|verify} messages. + * @param message InsertRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertRegionHealthSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertRegionHealthSourceRequest + * @throws {Error} If the payload is not a 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.InsertRegionHealthSourceRequest; + + /** + * Decodes an InsertRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertRegionHealthSourceRequest + * @throws {Error} If the payload is 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.InsertRegionHealthSourceRequest; + + /** + * Verifies an InsertRegionHealthSourceRequest message. + * @param message Plain 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 InsertRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertRegionHealthSourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertRegionHealthSourceRequest; + + /** + * Creates a plain object from an InsertRegionHealthSourceRequest message. Also converts values to other types if specified. + * @param message InsertRegionHealthSourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertRegionHealthSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertRegionHealthSourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertRegionHealthSourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertRegionInstanceGroupManagerRequest. */ interface IInsertRegionInstanceGroupManagerRequest { @@ -86300,6 +89279,9 @@ export namespace google { /** InstanceGroupManager targetSize */ targetSize?: (number|null); + /** InstanceGroupManager targetSizePolicy */ + targetSizePolicy?: (google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy|null); + /** InstanceGroupManager targetStoppedSize */ targetStoppedSize?: (number|null); @@ -86406,6 +89388,9 @@ export namespace google { /** InstanceGroupManager targetSize. */ public targetSize?: (number|null); + /** InstanceGroupManager targetSizePolicy. */ + public targetSizePolicy?: (google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy|null); + /** InstanceGroupManager targetStoppedSize. */ public targetStoppedSize?: (number|null); @@ -88190,9 +91175,15 @@ export namespace google { /** InstanceGroupManagerStatus allInstancesConfig */ allInstancesConfig?: (google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig|null); + /** InstanceGroupManagerStatus appliedAcceleratorTopologies */ + appliedAcceleratorTopologies?: (google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology[]|null); + /** InstanceGroupManagerStatus autoscaler */ autoscaler?: (string|null); + /** InstanceGroupManagerStatus bulkInstanceOperation */ + bulkInstanceOperation?: (google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation|null); + /** InstanceGroupManagerStatus isStable */ isStable?: (boolean|null); @@ -88215,9 +91206,15 @@ export namespace google { /** InstanceGroupManagerStatus allInstancesConfig. */ public allInstancesConfig?: (google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig|null); + /** InstanceGroupManagerStatus appliedAcceleratorTopologies. */ + public appliedAcceleratorTopologies: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology[]; + /** InstanceGroupManagerStatus autoscaler. */ public autoscaler?: (string|null); + /** InstanceGroupManagerStatus bulkInstanceOperation. */ + public bulkInstanceOperation?: (google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation|null); + /** InstanceGroupManagerStatus isStable. */ public isStable?: (boolean|null); @@ -88305,6 +91302,232 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerStatusAcceleratorTopology. */ + interface IInstanceGroupManagerStatusAcceleratorTopology { + + /** InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology */ + acceleratorTopology?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology state */ + state?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology stateDetails */ + stateDetails?: (google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null); + } + + /** Represents an InstanceGroupManagerStatusAcceleratorTopology. */ + class InstanceGroupManagerStatusAcceleratorTopology implements IInstanceGroupManagerStatusAcceleratorTopology { + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopology. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology); + + /** InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology. */ + public acceleratorTopology?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology state. */ + public state?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology stateDetails. */ + public stateDetails?: (google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopology instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusAcceleratorTopology instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology): google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is not a 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.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is 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.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopology message. + * @param message Plain 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 InstanceGroupManagerStatusAcceleratorTopology message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusAcceleratorTopology + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopology message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusAcceleratorTopology + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopology to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopology + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstanceGroupManagerStatusAcceleratorTopology { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + ACTIVATING = 378825968, + ACTIVE = 314733318, + DEACTIVATING = 57182257, + FAILED = 455706685, + INCOMPLETE = 11941214, + REACTIVATING = 253727587 + } + } + + /** Properties of an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. */ + interface IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error */ + error?: (google.cloud.compute.v1.IError|null); + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp */ + timestamp?: (string|null); + } + + /** Represents an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. */ + class InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails implements IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails); + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error. */ + public error?: (google.cloud.compute.v1.IError|null); + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp. */ + public timestamp?: (string|null); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails): google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is not a 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.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is 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.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. + * @param message Plain 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 InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerStatusAllInstancesConfig. */ interface IInstanceGroupManagerStatusAllInstancesConfig { @@ -88408,6 +91631,212 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerStatusBulkInstanceOperation. */ + interface IInstanceGroupManagerStatusBulkInstanceOperation { + + /** InstanceGroupManagerStatusBulkInstanceOperation inProgress */ + inProgress?: (boolean|null); + + /** InstanceGroupManagerStatusBulkInstanceOperation lastProgressCheck */ + lastProgressCheck?: (google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck|null); + } + + /** Represents an InstanceGroupManagerStatusBulkInstanceOperation. */ + class InstanceGroupManagerStatusBulkInstanceOperation implements IInstanceGroupManagerStatusBulkInstanceOperation { + + /** + * Constructs a new InstanceGroupManagerStatusBulkInstanceOperation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation); + + /** InstanceGroupManagerStatusBulkInstanceOperation inProgress. */ + public inProgress?: (boolean|null); + + /** InstanceGroupManagerStatusBulkInstanceOperation lastProgressCheck. */ + public lastProgressCheck?: (google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck|null); + + /** + * Creates a new InstanceGroupManagerStatusBulkInstanceOperation instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusBulkInstanceOperation instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation): google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperation message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.verify|verify} messages. + * @param message InstanceGroupManagerStatusBulkInstanceOperation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.verify|verify} messages. + * @param message InstanceGroupManagerStatusBulkInstanceOperation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusBulkInstanceOperation + * @throws {Error} If the payload is not a 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.InstanceGroupManagerStatusBulkInstanceOperation; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusBulkInstanceOperation + * @throws {Error} If the payload is 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.InstanceGroupManagerStatusBulkInstanceOperation; + + /** + * Verifies an InstanceGroupManagerStatusBulkInstanceOperation message. + * @param message Plain 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 InstanceGroupManagerStatusBulkInstanceOperation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusBulkInstanceOperation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation; + + /** + * Creates a plain object from an InstanceGroupManagerStatusBulkInstanceOperation message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusBulkInstanceOperation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusBulkInstanceOperation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusBulkInstanceOperation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. */ + interface IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { + + /** InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck error */ + error?: (google.cloud.compute.v1.IError|null); + + /** InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck timestamp */ + timestamp?: (string|null); + } + + /** Represents an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. */ + class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck implements IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck { + + /** + * Constructs a new InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck); + + /** InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck error. */ + public error?: (google.cloud.compute.v1.IError|null); + + /** InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck timestamp. */ + public timestamp?: (string|null); + + /** + * Creates a new InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck): google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.verify|verify} messages. + * @param message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.verify|verify} messages. + * @param message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @throws {Error} If the payload is not a 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.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @throws {Error} If the payload is 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.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck; + + /** + * Verifies an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message. + * @param message Plain 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 InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck; + + /** + * Creates a plain object from an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerStatusStateful. */ interface IInstanceGroupManagerStatusStateful { @@ -88705,6 +92134,114 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerTargetSizePolicy. */ + interface IInstanceGroupManagerTargetSizePolicy { + + /** InstanceGroupManagerTargetSizePolicy mode */ + mode?: (string|null); + } + + /** Represents an InstanceGroupManagerTargetSizePolicy. */ + class InstanceGroupManagerTargetSizePolicy implements IInstanceGroupManagerTargetSizePolicy { + + /** + * Constructs a new InstanceGroupManagerTargetSizePolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy); + + /** InstanceGroupManagerTargetSizePolicy mode. */ + public mode?: (string|null); + + /** + * Creates a new InstanceGroupManagerTargetSizePolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerTargetSizePolicy instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy): google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy; + + /** + * Encodes the specified InstanceGroupManagerTargetSizePolicy message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.verify|verify} messages. + * @param message InstanceGroupManagerTargetSizePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerTargetSizePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.verify|verify} messages. + * @param message InstanceGroupManagerTargetSizePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerTargetSizePolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerTargetSizePolicy + * @throws {Error} If the payload is not a 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.InstanceGroupManagerTargetSizePolicy; + + /** + * Decodes an InstanceGroupManagerTargetSizePolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerTargetSizePolicy + * @throws {Error} If the payload is 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.InstanceGroupManagerTargetSizePolicy; + + /** + * Verifies an InstanceGroupManagerTargetSizePolicy message. + * @param message Plain 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 InstanceGroupManagerTargetSizePolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerTargetSizePolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy; + + /** + * Creates a plain object from an InstanceGroupManagerTargetSizePolicy message. Also converts values to other types if specified. + * @param message InstanceGroupManagerTargetSizePolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerTargetSizePolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerTargetSizePolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstanceGroupManagerTargetSizePolicy { + + /** Mode enum. */ + enum Mode { + UNDEFINED_MODE = 0, + BULK = 2050322, + INDIVIDUAL = 438800025, + UNSPECIFIED_MODE = 53715403 + } + } + /** Properties of an InstanceGroupManagerUpdatePolicy. */ interface IInstanceGroupManagerUpdatePolicy { @@ -116485,6 +120022,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionCompositeHealthChecksRequest. */ + interface IListRegionCompositeHealthChecksRequest { + + /** ListRegionCompositeHealthChecksRequest filter */ + filter?: (string|null); + + /** ListRegionCompositeHealthChecksRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionCompositeHealthChecksRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionCompositeHealthChecksRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionCompositeHealthChecksRequest project */ + project?: (string|null); + + /** ListRegionCompositeHealthChecksRequest region */ + region?: (string|null); + + /** ListRegionCompositeHealthChecksRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionCompositeHealthChecksRequest. */ + class ListRegionCompositeHealthChecksRequest implements IListRegionCompositeHealthChecksRequest { + + /** + * Constructs a new ListRegionCompositeHealthChecksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest); + + /** ListRegionCompositeHealthChecksRequest filter. */ + public filter?: (string|null); + + /** ListRegionCompositeHealthChecksRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionCompositeHealthChecksRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionCompositeHealthChecksRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionCompositeHealthChecksRequest project. */ + public project: string; + + /** ListRegionCompositeHealthChecksRequest region. */ + public region: string; + + /** ListRegionCompositeHealthChecksRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionCompositeHealthChecksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionCompositeHealthChecksRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest): google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest; + + /** + * Encodes the specified ListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message ListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. + * @param message ListRegionCompositeHealthChecksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is not a 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.ListRegionCompositeHealthChecksRequest; + + /** + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionCompositeHealthChecksRequest + * @throws {Error} If the payload is 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.ListRegionCompositeHealthChecksRequest; + + /** + * Verifies a ListRegionCompositeHealthChecksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionCompositeHealthChecksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest; + + /** + * Creates a plain object from a ListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. + * @param message ListRegionCompositeHealthChecksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionCompositeHealthChecksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionCompositeHealthChecksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionDiskTypesRequest. */ interface IListRegionDiskTypesRequest { @@ -117150,6 +120820,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionHealthSourcesRequest. */ + interface IListRegionHealthSourcesRequest { + + /** ListRegionHealthSourcesRequest filter */ + filter?: (string|null); + + /** ListRegionHealthSourcesRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionHealthSourcesRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionHealthSourcesRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionHealthSourcesRequest project */ + project?: (string|null); + + /** ListRegionHealthSourcesRequest region */ + region?: (string|null); + + /** ListRegionHealthSourcesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionHealthSourcesRequest. */ + class ListRegionHealthSourcesRequest implements IListRegionHealthSourcesRequest { + + /** + * Constructs a new ListRegionHealthSourcesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionHealthSourcesRequest); + + /** ListRegionHealthSourcesRequest filter. */ + public filter?: (string|null); + + /** ListRegionHealthSourcesRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionHealthSourcesRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionHealthSourcesRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionHealthSourcesRequest project. */ + public project: string; + + /** ListRegionHealthSourcesRequest region. */ + public region: string; + + /** ListRegionHealthSourcesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** + * Creates a new ListRegionHealthSourcesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionHealthSourcesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionHealthSourcesRequest): google.cloud.compute.v1.ListRegionHealthSourcesRequest; + + /** + * Encodes the specified ListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. + * @param message ListRegionHealthSourcesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionHealthSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. + * @param message ListRegionHealthSourcesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionHealthSourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionHealthSourcesRequest + * @throws {Error} If the payload is not a 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.ListRegionHealthSourcesRequest; + + /** + * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionHealthSourcesRequest + * @throws {Error} If the payload is 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.ListRegionHealthSourcesRequest; + + /** + * Verifies a ListRegionHealthSourcesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionHealthSourcesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionHealthSourcesRequest; + + /** + * Creates a plain object from a ListRegionHealthSourcesRequest message. Also converts values to other types if specified. + * @param message ListRegionHealthSourcesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionHealthSourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionHealthSourcesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionHealthSourcesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionInstanceGroupManagersRequest. */ interface IListRegionInstanceGroupManagersRequest { @@ -137001,6 +140804,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NotificationEndpointAggregatedList. */ + interface INotificationEndpointAggregatedList { + + /** NotificationEndpointAggregatedList id */ + id?: (string|null); + + /** NotificationEndpointAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.INotificationEndpointsScopedList }|null); + + /** NotificationEndpointAggregatedList kind */ + kind?: (string|null); + + /** NotificationEndpointAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** NotificationEndpointAggregatedList selfLink */ + selfLink?: (string|null); + + /** NotificationEndpointAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** NotificationEndpointAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a NotificationEndpointAggregatedList. */ + class NotificationEndpointAggregatedList implements INotificationEndpointAggregatedList { + + /** + * Constructs a new NotificationEndpointAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INotificationEndpointAggregatedList); + + /** NotificationEndpointAggregatedList id. */ + public id?: (string|null); + + /** NotificationEndpointAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.INotificationEndpointsScopedList }; + + /** NotificationEndpointAggregatedList kind. */ + public kind?: (string|null); + + /** NotificationEndpointAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** NotificationEndpointAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** NotificationEndpointAggregatedList unreachables. */ + public unreachables: string[]; + + /** NotificationEndpointAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new NotificationEndpointAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationEndpointAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.INotificationEndpointAggregatedList): google.cloud.compute.v1.NotificationEndpointAggregatedList; + + /** + * Encodes the specified NotificationEndpointAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointAggregatedList.verify|verify} messages. + * @param message NotificationEndpointAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INotificationEndpointAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NotificationEndpointAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointAggregatedList.verify|verify} messages. + * @param message NotificationEndpointAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INotificationEndpointAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationEndpointAggregatedList + * @throws {Error} If the payload is not a 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.NotificationEndpointAggregatedList; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NotificationEndpointAggregatedList + * @throws {Error} If the payload is 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.NotificationEndpointAggregatedList; + + /** + * Verifies a NotificationEndpointAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NotificationEndpointAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationEndpointAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NotificationEndpointAggregatedList; + + /** + * Creates a plain object from a NotificationEndpointAggregatedList message. Also converts values to other types if specified. + * @param message NotificationEndpointAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NotificationEndpointAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NotificationEndpointAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NotificationEndpointAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a NotificationEndpointGrpcSettings. */ interface INotificationEndpointGrpcSettings { @@ -137249,6 +141185,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NotificationEndpointsScopedList. */ + interface INotificationEndpointsScopedList { + + /** NotificationEndpointsScopedList resources */ + resources?: (google.cloud.compute.v1.INotificationEndpoint[]|null); + + /** NotificationEndpointsScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a NotificationEndpointsScopedList. */ + class NotificationEndpointsScopedList implements INotificationEndpointsScopedList { + + /** + * Constructs a new NotificationEndpointsScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INotificationEndpointsScopedList); + + /** NotificationEndpointsScopedList resources. */ + public resources: google.cloud.compute.v1.INotificationEndpoint[]; + + /** NotificationEndpointsScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** + * Creates a new NotificationEndpointsScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationEndpointsScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.INotificationEndpointsScopedList): google.cloud.compute.v1.NotificationEndpointsScopedList; + + /** + * Encodes the specified NotificationEndpointsScopedList message. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointsScopedList.verify|verify} messages. + * @param message NotificationEndpointsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INotificationEndpointsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NotificationEndpointsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointsScopedList.verify|verify} messages. + * @param message NotificationEndpointsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INotificationEndpointsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationEndpointsScopedList + * @throws {Error} If the payload is not a 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.NotificationEndpointsScopedList; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NotificationEndpointsScopedList + * @throws {Error} If the payload is 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.NotificationEndpointsScopedList; + + /** + * Verifies a NotificationEndpointsScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NotificationEndpointsScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationEndpointsScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NotificationEndpointsScopedList; + + /** + * Creates a plain object from a NotificationEndpointsScopedList message. Also converts values to other types if specified. + * @param message NotificationEndpointsScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NotificationEndpointsScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NotificationEndpointsScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NotificationEndpointsScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Operation. */ interface IOperation { @@ -137267,6 +141306,9 @@ export namespace google { /** Operation error */ error?: (google.cloud.compute.v1.IError|null); + /** Operation getVersionOperationMetadata */ + getVersionOperationMetadata?: (google.cloud.compute.v1.IGetVersionOperationMetadata|null); + /** Operation httpErrorMessage */ httpErrorMessage?: (string|null); @@ -137355,6 +141397,9 @@ export namespace google { /** Operation error. */ public error?: (google.cloud.compute.v1.IError|null); + /** Operation getVersionOperationMetadata. */ + public getVersionOperationMetadata?: (google.cloud.compute.v1.IGetVersionOperationMetadata|null); + /** Operation httpErrorMessage. */ public httpErrorMessage?: (string|null); @@ -143140,6 +147185,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchRegionCompositeHealthCheckRequest. */ + interface IPatchRegionCompositeHealthCheckRequest { + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheck */ + compositeHealthCheck?: (string|null); + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource */ + compositeHealthCheckResource?: (google.cloud.compute.v1.ICompositeHealthCheck|null); + + /** PatchRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** PatchRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** PatchRegionCompositeHealthCheckRequest requestId */ + requestId?: (string|null); + } + + /** Represents a PatchRegionCompositeHealthCheckRequest. */ + class PatchRegionCompositeHealthCheckRequest implements IPatchRegionCompositeHealthCheckRequest { + + /** + * Constructs a new PatchRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest); + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheck. */ + public compositeHealthCheck: string; + + /** PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource. */ + public compositeHealthCheckResource?: (google.cloud.compute.v1.ICompositeHealthCheck|null); + + /** PatchRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** PatchRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** PatchRegionCompositeHealthCheckRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new PatchRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest): google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a 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.PatchRegionCompositeHealthCheckRequest; + + /** + * Decodes a PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is 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.PatchRegionCompositeHealthCheckRequest; + + /** + * Verifies a PatchRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PatchRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a PatchRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message PatchRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchRegionHealthAggregationPolicyRequest. */ interface IPatchRegionHealthAggregationPolicyRequest { @@ -143503,6 +147669,127 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PatchRegionHealthSourceRequest. */ + interface IPatchRegionHealthSourceRequest { + + /** PatchRegionHealthSourceRequest healthSource */ + healthSource?: (string|null); + + /** PatchRegionHealthSourceRequest healthSourceResource */ + healthSourceResource?: (google.cloud.compute.v1.IHealthSource|null); + + /** PatchRegionHealthSourceRequest project */ + project?: (string|null); + + /** PatchRegionHealthSourceRequest region */ + region?: (string|null); + + /** PatchRegionHealthSourceRequest requestId */ + requestId?: (string|null); + } + + /** Represents a PatchRegionHealthSourceRequest. */ + class PatchRegionHealthSourceRequest implements IPatchRegionHealthSourceRequest { + + /** + * Constructs a new PatchRegionHealthSourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IPatchRegionHealthSourceRequest); + + /** PatchRegionHealthSourceRequest healthSource. */ + public healthSource: string; + + /** PatchRegionHealthSourceRequest healthSourceResource. */ + public healthSourceResource?: (google.cloud.compute.v1.IHealthSource|null); + + /** PatchRegionHealthSourceRequest project. */ + public project: string; + + /** PatchRegionHealthSourceRequest region. */ + public region: string; + + /** PatchRegionHealthSourceRequest requestId. */ + public requestId?: (string|null); + + /** + * Creates a new PatchRegionHealthSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PatchRegionHealthSourceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IPatchRegionHealthSourceRequest): google.cloud.compute.v1.PatchRegionHealthSourceRequest; + + /** + * Encodes the specified PatchRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthSourceRequest.verify|verify} messages. + * @param message PatchRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IPatchRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PatchRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthSourceRequest.verify|verify} messages. + * @param message PatchRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IPatchRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PatchRegionHealthSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PatchRegionHealthSourceRequest + * @throws {Error} If the payload is not a 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.PatchRegionHealthSourceRequest; + + /** + * Decodes a PatchRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PatchRegionHealthSourceRequest + * @throws {Error} If the payload is 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.PatchRegionHealthSourceRequest; + + /** + * Verifies a PatchRegionHealthSourceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PatchRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PatchRegionHealthSourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.PatchRegionHealthSourceRequest; + + /** + * Creates a plain object from a PatchRegionHealthSourceRequest message. Also converts values to other types if specified. + * @param message PatchRegionHealthSourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.PatchRegionHealthSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PatchRegionHealthSourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PatchRegionHealthSourceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PatchRegionInstanceGroupManagerRequest. */ interface IPatchRegionInstanceGroupManagerRequest { @@ -161184,6 +165471,114 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationSlotsGetVersionRequest. */ + interface IReservationSlotsGetVersionRequest { + + /** ReservationSlotsGetVersionRequest sbomSelections */ + sbomSelections?: (string[]|null); + } + + /** Represents a ReservationSlotsGetVersionRequest. */ + class ReservationSlotsGetVersionRequest implements IReservationSlotsGetVersionRequest { + + /** + * Constructs a new ReservationSlotsGetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationSlotsGetVersionRequest); + + /** ReservationSlotsGetVersionRequest sbomSelections. */ + public sbomSelections: string[]; + + /** + * Creates a new ReservationSlotsGetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotsGetVersionRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationSlotsGetVersionRequest): google.cloud.compute.v1.ReservationSlotsGetVersionRequest; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @param message ReservationSlotsGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationSlotsGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @param message ReservationSlotsGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationSlotsGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is not a 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.ReservationSlotsGetVersionRequest; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is 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.ReservationSlotsGetVersionRequest; + + /** + * Verifies a ReservationSlotsGetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotsGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotsGetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationSlotsGetVersionRequest; + + /** + * Creates a plain object from a ReservationSlotsGetVersionRequest message. Also converts values to other types if specified. + * @param message ReservationSlotsGetVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationSlotsGetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotsGetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotsGetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationSlotsGetVersionRequest { + + /** SbomSelections enum. */ + enum SbomSelections { + UNDEFINED_SBOM_SELECTIONS = 0, + SBOM_SELECTION_CURRENT = 423856692, + SBOM_SELECTION_TARGET = 152837462, + SBOM_SELECTION_UNSPECIFIED = 379615858 + } + } + /** Properties of a ReservationSlotsListResponse. */ interface IReservationSlotsListResponse { @@ -161842,6 +166237,114 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationSubBlocksGetVersionRequest. */ + interface IReservationSubBlocksGetVersionRequest { + + /** ReservationSubBlocksGetVersionRequest sbomSelections */ + sbomSelections?: (string[]|null); + } + + /** Represents a ReservationSubBlocksGetVersionRequest. */ + class ReservationSubBlocksGetVersionRequest implements IReservationSubBlocksGetVersionRequest { + + /** + * Constructs a new ReservationSubBlocksGetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest); + + /** ReservationSubBlocksGetVersionRequest sbomSelections. */ + public sbomSelections: string[]; + + /** + * Creates a new ReservationSubBlocksGetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSubBlocksGetVersionRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest): google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @param message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @param message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is not a 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.ReservationSubBlocksGetVersionRequest; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is 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.ReservationSubBlocksGetVersionRequest; + + /** + * Verifies a ReservationSubBlocksGetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSubBlocksGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSubBlocksGetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest; + + /** + * Creates a plain object from a ReservationSubBlocksGetVersionRequest message. Also converts values to other types if specified. + * @param message ReservationSubBlocksGetVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSubBlocksGetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSubBlocksGetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationSubBlocksGetVersionRequest { + + /** SbomSelections enum. */ + enum SbomSelections { + UNDEFINED_SBOM_SELECTIONS = 0, + SBOM_SELECTION_CURRENT = 423856692, + SBOM_SELECTION_TARGET = 152837462, + SBOM_SELECTION_UNSPECIFIED = 379615858 + } + } + /** Properties of a ReservationSubBlocksListResponse. */ interface IReservationSubBlocksListResponse { @@ -165672,6 +170175,9 @@ export namespace google { /** ResourcePolicyWorkloadPolicy acceleratorTopology */ acceleratorTopology?: (string|null); + /** ResourcePolicyWorkloadPolicy acceleratorTopologyMode */ + acceleratorTopologyMode?: (string|null); + /** ResourcePolicyWorkloadPolicy maxTopologyDistance */ maxTopologyDistance?: (string|null); @@ -165691,6 +170197,9 @@ export namespace google { /** ResourcePolicyWorkloadPolicy acceleratorTopology. */ public acceleratorTopology?: (string|null); + /** ResourcePolicyWorkloadPolicy acceleratorTopologyMode. */ + public acceleratorTopologyMode?: (string|null); + /** ResourcePolicyWorkloadPolicy maxTopologyDistance. */ public maxTopologyDistance?: (string|null); @@ -165777,6 +170286,13 @@ export namespace google { namespace ResourcePolicyWorkloadPolicy { + /** AcceleratorTopologyMode enum. */ + enum AcceleratorTopologyMode { + UNDEFINED_ACCELERATOR_TOPOLOGY_MODE = 0, + AUTO_CONNECT = 491872826, + PROVISION_ONLY = 399134966 + } + /** MaxTopologyDistance enum. */ enum MaxTopologyDistance { UNDEFINED_MAX_TOPOLOGY_DISTANCE = 0, @@ -177346,6 +181862,9 @@ export namespace google { /** ServiceAttachmentConnectedEndpoint endpoint */ endpoint?: (string|null); + /** ServiceAttachmentConnectedEndpoint endpointWithId */ + endpointWithId?: (string|null); + /** ServiceAttachmentConnectedEndpoint natIps */ natIps?: (string[]|null); @@ -177374,6 +181893,9 @@ export namespace google { /** ServiceAttachmentConnectedEndpoint endpoint. */ public endpoint?: (string|null); + /** ServiceAttachmentConnectedEndpoint endpointWithId. */ + public endpointWithId?: (string|null); + /** ServiceAttachmentConnectedEndpoint natIps. */ public natIps: string[]; @@ -177484,6 +182006,9 @@ export namespace google { /** ServiceAttachmentConsumerProjectLimit connectionLimit */ connectionLimit?: (number|null); + /** ServiceAttachmentConsumerProjectLimit endpointUrl */ + endpointUrl?: (string|null); + /** ServiceAttachmentConsumerProjectLimit networkUrl */ networkUrl?: (string|null); @@ -177503,6 +182028,9 @@ export namespace google { /** ServiceAttachmentConsumerProjectLimit connectionLimit. */ public connectionLimit?: (number|null); + /** ServiceAttachmentConsumerProjectLimit endpointUrl. */ + public endpointUrl?: (string|null); + /** ServiceAttachmentConsumerProjectLimit networkUrl. */ public networkUrl?: (string|null); @@ -208253,6 +212781,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. */ + interface ITestIamPermissionsRegionCompositeHealthCheckRequest { + + /** TestIamPermissionsRegionCompositeHealthCheckRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. */ + class TestIamPermissionsRegionCompositeHealthCheckRequest implements ITestIamPermissionsRegionCompositeHealthCheckRequest { + + /** + * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest); + + /** TestIamPermissionsRegionCompositeHealthCheckRequest project. */ + public project: string; + + /** TestIamPermissionsRegionCompositeHealthCheckRequest region. */ + public region: string; + + /** TestIamPermissionsRegionCompositeHealthCheckRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest): google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a 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.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is 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.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionCompositeHealthCheckRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionCompositeHealthCheckRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionCompositeHealthCheckRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsRegionDiskRequest. */ interface ITestIamPermissionsRegionDiskRequest { @@ -208713,6 +213356,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsRegionHealthSourceRequest. */ + interface ITestIamPermissionsRegionHealthSourceRequest { + + /** TestIamPermissionsRegionHealthSourceRequest project */ + project?: (string|null); + + /** TestIamPermissionsRegionHealthSourceRequest region */ + region?: (string|null); + + /** TestIamPermissionsRegionHealthSourceRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsRegionHealthSourceRequest. */ + class TestIamPermissionsRegionHealthSourceRequest implements ITestIamPermissionsRegionHealthSourceRequest { + + /** + * Constructs a new TestIamPermissionsRegionHealthSourceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest); + + /** TestIamPermissionsRegionHealthSourceRequest project. */ + public project: string; + + /** TestIamPermissionsRegionHealthSourceRequest region. */ + public region: string; + + /** TestIamPermissionsRegionHealthSourceRequest resource. */ + public resource: string; + + /** TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsRegionHealthSourceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest): google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest; + + /** + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * @param message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsRegionHealthSourceRequest + * @throws {Error} If the payload is not a 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.TestIamPermissionsRegionHealthSourceRequest; + + /** + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsRegionHealthSourceRequest + * @throws {Error} If the payload is 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.TestIamPermissionsRegionHealthSourceRequest; + + /** + * Verifies a TestIamPermissionsRegionHealthSourceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a TestIamPermissionsRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsRegionHealthSourceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest; + + /** + * Creates a plain object from a TestIamPermissionsRegionHealthSourceRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsRegionHealthSourceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsRegionHealthSourceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsRegionHealthSourceRequest + * @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 { @@ -212450,6 +217208,9 @@ export namespace google { /** Properties of an UpdateInstanceRequest. */ interface IUpdateInstanceRequest { + /** UpdateInstanceRequest discardLocalSsd */ + discardLocalSsd?: (boolean|null); + /** UpdateInstanceRequest instance */ instance?: (string|null); @@ -212481,6 +217242,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IUpdateInstanceRequest); + /** UpdateInstanceRequest discardLocalSsd. */ + public discardLocalSsd?: (boolean|null); + /** UpdateInstanceRequest instance. */ public instance: string; @@ -235049,6 +239813,177 @@ export namespace google { type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents a RegionCompositeHealthChecks */ + class RegionCompositeHealthChecks extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionCompositeHealthChecks 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 RegionCompositeHealthChecks 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): RegionCompositeHealthChecks; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheckAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheck + */ + public get(request: google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls List. + * @param request ListRegionCompositeHealthChecksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompositeHealthCheckList + */ + public list(request: google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionCompositeHealthChecksRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest): Promise; + + /** + * Calls Patch. + * @param request PatchRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patch(request: google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest, callback: google.cloud.compute.v1.RegionCompositeHealthChecks.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest): Promise; + } + + namespace RegionCompositeHealthChecks { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|aggregatedList}. + * @param error Error, if any + * @param [response] CompositeHealthCheckAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.CompositeHealthCheckAggregatedList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|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.RegionCompositeHealthChecks|get}. + * @param error Error, if any + * @param [response] CompositeHealthCheck + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.CompositeHealthCheck) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|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.RegionCompositeHealthChecks|list}. + * @param error Error, if any + * @param [response] CompositeHealthCheckList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.CompositeHealthCheckList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|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.RegionCompositeHealthChecks|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a RegionDiskTypes */ class RegionDiskTypes extends $protobuf.rpc.Service { @@ -235687,6 +240622,20 @@ export namespace google { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionHealthCheckServices; + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthCheckServiceAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest, callback: google.cloud.compute.v1.RegionHealthCheckServices.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest): Promise; + /** * Calls Delete. * @param request DeleteRegionHealthCheckServiceRequest message or plain object @@ -235774,6 +240723,13 @@ export namespace google { namespace RegionHealthCheckServices { + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthCheckServices|aggregatedList}. + * @param error Error, if any + * @param [response] HealthCheckServiceAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthCheckServiceAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1.RegionHealthCheckServices|delete_}. * @param error Error, if any @@ -235988,6 +240944,177 @@ export namespace google { type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } + /** Represents a RegionHealthSources */ + class RegionHealthSources extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionHealthSources 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 RegionHealthSources 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): RegionHealthSources; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthSourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthSourceAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest, callback: google.cloud.compute.v1.RegionHealthSources.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthSourcesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteRegionHealthSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionHealthSourceRequest, callback: google.cloud.compute.v1.RegionHealthSources.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteRegionHealthSourceRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteRegionHealthSourceRequest): Promise; + + /** + * Calls Get. + * @param request GetRegionHealthSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthSource + */ + public get(request: google.cloud.compute.v1.IGetRegionHealthSourceRequest, callback: google.cloud.compute.v1.RegionHealthSources.GetCallback): void; + + /** + * Calls Get. + * @param request GetRegionHealthSourceRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetRegionHealthSourceRequest): Promise; + + /** + * Calls Insert. + * @param request InsertRegionHealthSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertRegionHealthSourceRequest, callback: google.cloud.compute.v1.RegionHealthSources.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertRegionHealthSourceRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertRegionHealthSourceRequest): Promise; + + /** + * Calls List. + * @param request ListRegionHealthSourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthSourceList + */ + public list(request: google.cloud.compute.v1.IListRegionHealthSourcesRequest, callback: google.cloud.compute.v1.RegionHealthSources.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionHealthSourcesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionHealthSourcesRequest): Promise; + + /** + * Calls Patch. + * @param request PatchRegionHealthSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public patch(request: google.cloud.compute.v1.IPatchRegionHealthSourceRequest, callback: google.cloud.compute.v1.RegionHealthSources.PatchCallback): void; + + /** + * Calls Patch. + * @param request PatchRegionHealthSourceRequest message or plain object + * @returns Promise + */ + public patch(request: google.cloud.compute.v1.IPatchRegionHealthSourceRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthSourceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest, callback: google.cloud.compute.v1.RegionHealthSources.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsRegionHealthSourceRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest): Promise; + } + + namespace RegionHealthSources { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|aggregatedList}. + * @param error Error, if any + * @param [response] HealthSourceAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthSourceAggregatedList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|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.RegionHealthSources|get}. + * @param error Error, if any + * @param [response] HealthSource + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthSource) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|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.RegionHealthSources|list}. + * @param error Error, if any + * @param [response] HealthSourceList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.HealthSourceList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|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.RegionHealthSources|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a RegionInstanceGroupManagers */ class RegionInstanceGroupManagers extends $protobuf.rpc.Service { @@ -237541,6 +242668,20 @@ export namespace google { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionNotificationEndpoints; + /** + * Calls AggregatedList. + * @param request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NotificationEndpointAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest, callback: google.cloud.compute.v1.RegionNotificationEndpoints.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest): Promise; + /** * Calls Delete. * @param request DeleteRegionNotificationEndpointRequest message or plain object @@ -237614,6 +242755,13 @@ export namespace google { namespace RegionNotificationEndpoints { + /** + * Callback as used by {@link google.cloud.compute.v1.RegionNotificationEndpoints|aggregatedList}. + * @param error Error, if any + * @param [response] NotificationEndpointAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.NotificationEndpointAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1.RegionNotificationEndpoints|delete_}. * @param error Error, if any @@ -239124,6 +244272,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1.IGetReservationSlotRequest): Promise; + /** + * Calls GetVersion. + * @param request GetVersionReservationSlotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getVersion(request: google.cloud.compute.v1.IGetVersionReservationSlotRequest, callback: google.cloud.compute.v1.ReservationSlots.GetVersionCallback): void; + + /** + * Calls GetVersion. + * @param request GetVersionReservationSlotRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.cloud.compute.v1.IGetVersionReservationSlotRequest): Promise; + /** * Calls List. * @param request ListReservationSlotsRequest message or plain object @@ -239162,6 +244324,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.ReservationSlotsGetResponse) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|getVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type GetVersionCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|list}. * @param error Error, if any @@ -239225,6 +244394,20 @@ export namespace google { */ public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyReservationSubBlockRequest): Promise; + /** + * Calls GetVersion. + * @param request GetVersionReservationSubBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getVersion(request: google.cloud.compute.v1.IGetVersionReservationSubBlockRequest, callback: google.cloud.compute.v1.ReservationSubBlocks.GetVersionCallback): void; + + /** + * Calls GetVersion. + * @param request GetVersionReservationSubBlockRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.cloud.compute.v1.IGetVersionReservationSubBlockRequest): Promise; + /** * Calls List. * @param request ListReservationSubBlocksRequest message or plain object @@ -239312,6 +244495,13 @@ export namespace google { */ type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSubBlocks|getVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type GetVersionCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.ReservationSubBlocks|list}. * @param error Error, if any @@ -254330,6 +259520,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListRegionHealthCheckServicesRequest. */ + interface IAggregatedListRegionHealthCheckServicesRequest { + + /** AggregatedListRegionHealthCheckServicesRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionHealthCheckServicesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest project */ + project?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionHealthCheckServicesRequest. */ + class AggregatedListRegionHealthCheckServicesRequest implements IAggregatedListRegionHealthCheckServicesRequest { + + /** + * Constructs a new AggregatedListRegionHealthCheckServicesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest); + + /** AggregatedListRegionHealthCheckServicesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionHealthCheckServicesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionHealthCheckServicesRequest project. */ + public project: string; + + /** AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionHealthCheckServicesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionHealthCheckServicesRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest): google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. + * @param message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionHealthCheckServicesRequest + * @throws {Error} If the payload is not a 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.v1beta.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionHealthCheckServicesRequest + * @throws {Error} If the payload is 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.v1beta.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Verifies an AggregatedListRegionHealthCheckServicesRequest message. + * @param message Plain 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 AggregatedListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionHealthCheckServicesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest; + + /** + * Creates a plain object from an AggregatedListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionHealthCheckServicesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionHealthCheckServicesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionHealthCheckServicesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListRegionHealthSourcesRequest. */ interface IAggregatedListRegionHealthSourcesRequest { @@ -254608,6 +259937,145 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListRegionNotificationEndpointsRequest. */ + interface IAggregatedListRegionNotificationEndpointsRequest { + + /** AggregatedListRegionNotificationEndpointsRequest filter */ + filter?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListRegionNotificationEndpointsRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest project */ + project?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber */ + serviceProjectNumber?: (number|Long|string|null); + } + + /** Represents an AggregatedListRegionNotificationEndpointsRequest. */ + class AggregatedListRegionNotificationEndpointsRequest implements IAggregatedListRegionNotificationEndpointsRequest { + + /** + * Constructs a new AggregatedListRegionNotificationEndpointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest); + + /** AggregatedListRegionNotificationEndpointsRequest filter. */ + public filter?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListRegionNotificationEndpointsRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListRegionNotificationEndpointsRequest project. */ + public project: string; + + /** AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber. */ + public serviceProjectNumber?: (number|Long|string|null); + + /** + * Creates a new AggregatedListRegionNotificationEndpointsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListRegionNotificationEndpointsRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest): google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. + * @param message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. + * @param message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListRegionNotificationEndpointsRequest + * @throws {Error} If the payload is not a 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.v1beta.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListRegionNotificationEndpointsRequest + * @throws {Error} If the payload is 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.v1beta.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Verifies an AggregatedListRegionNotificationEndpointsRequest message. + * @param message Plain 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 AggregatedListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListRegionNotificationEndpointsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest; + + /** + * Creates a plain object from an AggregatedListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. + * @param message AggregatedListRegionNotificationEndpointsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListRegionNotificationEndpointsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListRegionNotificationEndpointsRequest + * @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 { @@ -265009,6 +270477,9 @@ export namespace google { /** Properties of a BackendServiceDynamicForwarding. */ interface IBackendServiceDynamicForwarding { + /** BackendServiceDynamicForwarding forwardProxy */ + forwardProxy?: (google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy|null); + /** BackendServiceDynamicForwarding ipPortSelection */ ipPortSelection?: (google.cloud.compute.v1beta.IBackendServiceDynamicForwardingIpPortSelection|null); } @@ -265022,6 +270493,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IBackendServiceDynamicForwarding); + /** BackendServiceDynamicForwarding forwardProxy. */ + public forwardProxy?: (google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy|null); + /** BackendServiceDynamicForwarding ipPortSelection. */ public ipPortSelection?: (google.cloud.compute.v1beta.IBackendServiceDynamicForwardingIpPortSelection|null); @@ -265103,6 +270577,119 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a BackendServiceDynamicForwardingForwardProxy. */ + interface IBackendServiceDynamicForwardingForwardProxy { + + /** BackendServiceDynamicForwardingForwardProxy enabled */ + enabled?: (boolean|null); + + /** BackendServiceDynamicForwardingForwardProxy proxyMode */ + proxyMode?: (string|null); + } + + /** Represents a BackendServiceDynamicForwardingForwardProxy. */ + class BackendServiceDynamicForwardingForwardProxy implements IBackendServiceDynamicForwardingForwardProxy { + + /** + * Constructs a new BackendServiceDynamicForwardingForwardProxy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy); + + /** BackendServiceDynamicForwardingForwardProxy enabled. */ + public enabled?: (boolean|null); + + /** BackendServiceDynamicForwardingForwardProxy proxyMode. */ + public proxyMode?: (string|null); + + /** + * Creates a new BackendServiceDynamicForwardingForwardProxy instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendServiceDynamicForwardingForwardProxy instance + */ + public static create(properties?: google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy): google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy; + + /** + * Encodes the specified BackendServiceDynamicForwardingForwardProxy message. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.verify|verify} messages. + * @param message BackendServiceDynamicForwardingForwardProxy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendServiceDynamicForwardingForwardProxy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.verify|verify} messages. + * @param message BackendServiceDynamicForwardingForwardProxy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendServiceDynamicForwardingForwardProxy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendServiceDynamicForwardingForwardProxy + * @throws {Error} If the payload is not a 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.v1beta.BackendServiceDynamicForwardingForwardProxy; + + /** + * Decodes a BackendServiceDynamicForwardingForwardProxy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendServiceDynamicForwardingForwardProxy + * @throws {Error} If the payload is 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.v1beta.BackendServiceDynamicForwardingForwardProxy; + + /** + * Verifies a BackendServiceDynamicForwardingForwardProxy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BackendServiceDynamicForwardingForwardProxy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendServiceDynamicForwardingForwardProxy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy; + + /** + * Creates a plain object from a BackendServiceDynamicForwardingForwardProxy message. Also converts values to other types if specified. + * @param message BackendServiceDynamicForwardingForwardProxy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendServiceDynamicForwardingForwardProxy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BackendServiceDynamicForwardingForwardProxy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace BackendServiceDynamicForwardingForwardProxy { + + /** ProxyMode enum. */ + enum ProxyMode { + UNDEFINED_PROXY_MODE = 0, + CLOUD_RUN = 214253889, + DIRECT_FORWARDING = 492448019 + } + } + /** Properties of a BackendServiceDynamicForwardingIpPortSelection. */ interface IBackendServiceDynamicForwardingIpPortSelection { @@ -321745,6 +327332,460 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetVersionOperationMetadata. */ + interface IGetVersionOperationMetadata { + + /** GetVersionOperationMetadata inlineSbomInfo */ + inlineSbomInfo?: (google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo|null); + } + + /** Represents a GetVersionOperationMetadata. */ + class GetVersionOperationMetadata implements IGetVersionOperationMetadata { + + /** + * Constructs a new GetVersionOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetVersionOperationMetadata); + + /** GetVersionOperationMetadata inlineSbomInfo. */ + public inlineSbomInfo?: (google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo|null); + + /** + * Creates a new GetVersionOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionOperationMetadata instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetVersionOperationMetadata): google.cloud.compute.v1beta.GetVersionOperationMetadata; + + /** + * Encodes the specified GetVersionOperationMetadata message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadata.verify|verify} messages. + * @param message GetVersionOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadata.verify|verify} messages. + * @param message GetVersionOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionOperationMetadata + * @throws {Error} If the payload is not a 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.v1beta.GetVersionOperationMetadata; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionOperationMetadata + * @throws {Error} If the payload is 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.v1beta.GetVersionOperationMetadata; + + /** + * Verifies a GetVersionOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetVersionOperationMetadata; + + /** + * Creates a plain object from a GetVersionOperationMetadata message. Also converts values to other types if specified. + * @param message GetVersionOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionOperationMetadataSbomInfo. */ + interface IGetVersionOperationMetadataSbomInfo { + + /** GetVersionOperationMetadataSbomInfo currentComponentVersions */ + currentComponentVersions?: ({ [k: string]: string }|null); + + /** GetVersionOperationMetadataSbomInfo targetComponentVersions */ + targetComponentVersions?: ({ [k: string]: string }|null); + } + + /** Represents a GetVersionOperationMetadataSbomInfo. */ + class GetVersionOperationMetadataSbomInfo implements IGetVersionOperationMetadataSbomInfo { + + /** + * Constructs a new GetVersionOperationMetadataSbomInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo); + + /** GetVersionOperationMetadataSbomInfo currentComponentVersions. */ + public currentComponentVersions: { [k: string]: string }; + + /** GetVersionOperationMetadataSbomInfo targetComponentVersions. */ + public targetComponentVersions: { [k: string]: string }; + + /** + * Creates a new GetVersionOperationMetadataSbomInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionOperationMetadataSbomInfo instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo): google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @param message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @param message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is not a 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.v1beta.GetVersionOperationMetadataSbomInfo; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is 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.v1beta.GetVersionOperationMetadataSbomInfo; + + /** + * Verifies a GetVersionOperationMetadataSbomInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionOperationMetadataSbomInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionOperationMetadataSbomInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo; + + /** + * Creates a plain object from a GetVersionOperationMetadataSbomInfo message. Also converts values to other types if specified. + * @param message GetVersionOperationMetadataSbomInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionOperationMetadataSbomInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionOperationMetadataSbomInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionReservationSlotRequest. */ + interface IGetVersionReservationSlotRequest { + + /** GetVersionReservationSlotRequest parentName */ + parentName?: (string|null); + + /** GetVersionReservationSlotRequest project */ + project?: (string|null); + + /** GetVersionReservationSlotRequest requestId */ + requestId?: (string|null); + + /** GetVersionReservationSlotRequest reservationSlot */ + reservationSlot?: (string|null); + + /** GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource */ + reservationSlotsGetVersionRequestResource?: (google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest|null); + + /** GetVersionReservationSlotRequest zone */ + zone?: (string|null); + } + + /** Represents a GetVersionReservationSlotRequest. */ + class GetVersionReservationSlotRequest implements IGetVersionReservationSlotRequest { + + /** + * Constructs a new GetVersionReservationSlotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetVersionReservationSlotRequest); + + /** GetVersionReservationSlotRequest parentName. */ + public parentName: string; + + /** GetVersionReservationSlotRequest project. */ + public project: string; + + /** GetVersionReservationSlotRequest requestId. */ + public requestId?: (string|null); + + /** GetVersionReservationSlotRequest reservationSlot. */ + public reservationSlot: string; + + /** GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource. */ + public reservationSlotsGetVersionRequestResource?: (google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest|null); + + /** GetVersionReservationSlotRequest zone. */ + public zone: string; + + /** + * Creates a new GetVersionReservationSlotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionReservationSlotRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetVersionReservationSlotRequest): google.cloud.compute.v1beta.GetVersionReservationSlotRequest; + + /** + * Encodes the specified GetVersionReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSlotRequest.verify|verify} messages. + * @param message GetVersionReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetVersionReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSlotRequest.verify|verify} messages. + * @param message GetVersionReservationSlotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetVersionReservationSlotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionReservationSlotRequest + * @throws {Error} If the payload is not a 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.v1beta.GetVersionReservationSlotRequest; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionReservationSlotRequest + * @throws {Error} If the payload is 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.v1beta.GetVersionReservationSlotRequest; + + /** + * Verifies a GetVersionReservationSlotRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionReservationSlotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetVersionReservationSlotRequest; + + /** + * Creates a plain object from a GetVersionReservationSlotRequest message. Also converts values to other types if specified. + * @param message GetVersionReservationSlotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetVersionReservationSlotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionReservationSlotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionReservationSlotRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetVersionReservationSubBlockRequest. */ + interface IGetVersionReservationSubBlockRequest { + + /** GetVersionReservationSubBlockRequest parentName */ + parentName?: (string|null); + + /** GetVersionReservationSubBlockRequest project */ + project?: (string|null); + + /** GetVersionReservationSubBlockRequest requestId */ + requestId?: (string|null); + + /** GetVersionReservationSubBlockRequest reservationSubBlock */ + reservationSubBlock?: (string|null); + + /** GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource */ + reservationSubBlocksGetVersionRequestResource?: (google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest|null); + + /** GetVersionReservationSubBlockRequest zone */ + zone?: (string|null); + } + + /** Represents a GetVersionReservationSubBlockRequest. */ + class GetVersionReservationSubBlockRequest implements IGetVersionReservationSubBlockRequest { + + /** + * Constructs a new GetVersionReservationSubBlockRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest); + + /** GetVersionReservationSubBlockRequest parentName. */ + public parentName: string; + + /** GetVersionReservationSubBlockRequest project. */ + public project: string; + + /** GetVersionReservationSubBlockRequest requestId. */ + public requestId?: (string|null); + + /** GetVersionReservationSubBlockRequest reservationSubBlock. */ + public reservationSubBlock: string; + + /** GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource. */ + public reservationSubBlocksGetVersionRequestResource?: (google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest|null); + + /** GetVersionReservationSubBlockRequest zone. */ + public zone: string; + + /** + * Creates a new GetVersionReservationSubBlockRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionReservationSubBlockRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest): google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @param message GetVersionReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @param message GetVersionReservationSubBlockRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is not a 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.v1beta.GetVersionReservationSubBlockRequest; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is 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.v1beta.GetVersionReservationSubBlockRequest; + + /** + * Verifies a GetVersionReservationSubBlockRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetVersionReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionReservationSubBlockRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest; + + /** + * Creates a plain object from a GetVersionReservationSubBlockRequest message. Also converts values to other types if specified. + * @param message GetVersionReservationSubBlockRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetVersionReservationSubBlockRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetVersionReservationSubBlockRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetVpnGatewayRequest. */ interface IGetVpnGatewayRequest { @@ -324185,6 +330226,9 @@ export namespace google { /** Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. */ interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata { + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata locationRolloutStatus */ + locationRolloutStatus?: ({ [k: string]: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus }|null); + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout */ rollout?: (string|null); @@ -324204,6 +330248,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata); + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata locationRolloutStatus. */ + public locationRolloutStatus: { [k: string]: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus }; + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout. */ public rollout?: (string|null); @@ -324306,6 +330353,116 @@ export namespace google { } } + /** Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. */ + interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus { + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus state */ + state?: (string|null); + } + + /** Represents a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. */ + class GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus implements IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus { + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus); + + /** GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus state. */ + public state?: (string|null); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus instance + */ + public static create(properties?: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.verify|verify} messages. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @throws {Error} If the payload is not a 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.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @throws {Error} If the payload is 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.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message. Also converts values to other types if specified. + * @param message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + LOCATION_ROLLOUT_STATE_COMPLETED = 134765221, + LOCATION_ROLLOUT_STATE_FAILED = 53286403, + LOCATION_ROLLOUT_STATE_NOT_STARTED = 471817423, + LOCATION_ROLLOUT_STATE_SKIPPED = 54074890, + LOCATION_ROLLOUT_STATE_UNSPECIFIED = 242367761 + } + } + /** Properties of a GroupMaintenanceInfo. */ interface IGroupMaintenanceInfo { @@ -326636,6 +332793,139 @@ export namespace google { } } + /** Properties of a HealthCheckServiceAggregatedList. */ + interface IHealthCheckServiceAggregatedList { + + /** HealthCheckServiceAggregatedList id */ + id?: (string|null); + + /** HealthCheckServiceAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1beta.IHealthCheckServicesScopedList }|null); + + /** HealthCheckServiceAggregatedList kind */ + kind?: (string|null); + + /** HealthCheckServiceAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** HealthCheckServiceAggregatedList selfLink */ + selfLink?: (string|null); + + /** HealthCheckServiceAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** HealthCheckServiceAggregatedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a HealthCheckServiceAggregatedList. */ + class HealthCheckServiceAggregatedList implements IHealthCheckServiceAggregatedList { + + /** + * Constructs a new HealthCheckServiceAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList); + + /** HealthCheckServiceAggregatedList id. */ + public id?: (string|null); + + /** HealthCheckServiceAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1beta.IHealthCheckServicesScopedList }; + + /** HealthCheckServiceAggregatedList kind. */ + public kind?: (string|null); + + /** HealthCheckServiceAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** HealthCheckServiceAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** HealthCheckServiceAggregatedList unreachables. */ + public unreachables: string[]; + + /** HealthCheckServiceAggregatedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new HealthCheckServiceAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthCheckServiceAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList): google.cloud.compute.v1beta.HealthCheckServiceAggregatedList; + + /** + * Encodes the specified HealthCheckServiceAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServiceAggregatedList.verify|verify} messages. + * @param message HealthCheckServiceAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthCheckServiceAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServiceAggregatedList.verify|verify} messages. + * @param message HealthCheckServiceAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthCheckServiceAggregatedList + * @throws {Error} If the payload is not a 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.v1beta.HealthCheckServiceAggregatedList; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthCheckServiceAggregatedList + * @throws {Error} If the payload is 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.v1beta.HealthCheckServiceAggregatedList; + + /** + * Verifies a HealthCheckServiceAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthCheckServiceAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthCheckServiceAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthCheckServiceAggregatedList; + + /** + * Creates a plain object from a HealthCheckServiceAggregatedList message. Also converts values to other types if specified. + * @param message HealthCheckServiceAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthCheckServiceAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthCheckServiceAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthCheckServiceAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthCheckServiceReference. */ interface IHealthCheckServiceReference { @@ -326860,6 +333150,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a HealthCheckServicesScopedList. */ + interface IHealthCheckServicesScopedList { + + /** HealthCheckServicesScopedList resources */ + resources?: (google.cloud.compute.v1beta.IHealthCheckService[]|null); + + /** HealthCheckServicesScopedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a HealthCheckServicesScopedList. */ + class HealthCheckServicesScopedList implements IHealthCheckServicesScopedList { + + /** + * Constructs a new HealthCheckServicesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IHealthCheckServicesScopedList); + + /** HealthCheckServicesScopedList resources. */ + public resources: google.cloud.compute.v1beta.IHealthCheckService[]; + + /** HealthCheckServicesScopedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new HealthCheckServicesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns HealthCheckServicesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.IHealthCheckServicesScopedList): google.cloud.compute.v1beta.HealthCheckServicesScopedList; + + /** + * Encodes the specified HealthCheckServicesScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServicesScopedList.verify|verify} messages. + * @param message HealthCheckServicesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IHealthCheckServicesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HealthCheckServicesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServicesScopedList.verify|verify} messages. + * @param message HealthCheckServicesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IHealthCheckServicesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HealthCheckServicesScopedList + * @throws {Error} If the payload is not a 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.v1beta.HealthCheckServicesScopedList; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HealthCheckServicesScopedList + * @throws {Error} If the payload is 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.v1beta.HealthCheckServicesScopedList; + + /** + * Verifies a HealthCheckServicesScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HealthCheckServicesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HealthCheckServicesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.HealthCheckServicesScopedList; + + /** + * Creates a plain object from a HealthCheckServicesScopedList message. Also converts values to other types if specified. + * @param message HealthCheckServicesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.HealthCheckServicesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HealthCheckServicesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HealthCheckServicesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a HealthChecksAggregatedList. */ interface IHealthChecksAggregatedList { @@ -345353,6 +351746,9 @@ export namespace google { /** InstanceGroupManagerStatus allInstancesConfig */ allInstancesConfig?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusAllInstancesConfig|null); + /** InstanceGroupManagerStatus appliedAcceleratorTopologies */ + appliedAcceleratorTopologies?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology[]|null); + /** InstanceGroupManagerStatus autoscaler */ autoscaler?: (string|null); @@ -345384,6 +351780,9 @@ export namespace google { /** InstanceGroupManagerStatus allInstancesConfig. */ public allInstancesConfig?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusAllInstancesConfig|null); + /** InstanceGroupManagerStatus appliedAcceleratorTopologies. */ + public appliedAcceleratorTopologies: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology[]; + /** InstanceGroupManagerStatus autoscaler. */ public autoscaler?: (string|null); @@ -345480,6 +351879,232 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerStatusAcceleratorTopology. */ + interface IInstanceGroupManagerStatusAcceleratorTopology { + + /** InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology */ + acceleratorTopology?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology state */ + state?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology stateDetails */ + stateDetails?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null); + } + + /** Represents an InstanceGroupManagerStatusAcceleratorTopology. */ + class InstanceGroupManagerStatusAcceleratorTopology implements IInstanceGroupManagerStatusAcceleratorTopology { + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopology. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology); + + /** InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology. */ + public acceleratorTopology?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology state. */ + public state?: (string|null); + + /** InstanceGroupManagerStatusAcceleratorTopology stateDetails. */ + public stateDetails?: (google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopology instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusAcceleratorTopology instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology): google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is not a 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.v1beta.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is 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.v1beta.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopology message. + * @param message Plain 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 InstanceGroupManagerStatusAcceleratorTopology message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusAcceleratorTopology + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopology message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusAcceleratorTopology + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopology to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopology + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstanceGroupManagerStatusAcceleratorTopology { + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + ACTIVATING = 378825968, + ACTIVE = 314733318, + DEACTIVATING = 57182257, + FAILED = 455706685, + INCOMPLETE = 11941214, + REACTIVATING = 253727587 + } + } + + /** Properties of an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. */ + interface IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error */ + error?: (google.cloud.compute.v1beta.IError|null); + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp */ + timestamp?: (string|null); + } + + /** Represents an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. */ + class InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails implements IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails { + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails); + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error. */ + public error?: (google.cloud.compute.v1beta.IError|null); + + /** InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp. */ + public timestamp?: (string|null); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance + */ + public static create(properties?: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails): google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @param message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is not a 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.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is 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.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. + * @param message Plain 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 InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerStatusAllInstancesConfig. */ interface IInstanceGroupManagerStatusAllInstancesConfig { @@ -402152,6 +408777,139 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NotificationEndpointAggregatedList. */ + interface INotificationEndpointAggregatedList { + + /** NotificationEndpointAggregatedList id */ + id?: (string|null); + + /** NotificationEndpointAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1beta.INotificationEndpointsScopedList }|null); + + /** NotificationEndpointAggregatedList kind */ + kind?: (string|null); + + /** NotificationEndpointAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** NotificationEndpointAggregatedList selfLink */ + selfLink?: (string|null); + + /** NotificationEndpointAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** NotificationEndpointAggregatedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a NotificationEndpointAggregatedList. */ + class NotificationEndpointAggregatedList implements INotificationEndpointAggregatedList { + + /** + * Constructs a new NotificationEndpointAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.INotificationEndpointAggregatedList); + + /** NotificationEndpointAggregatedList id. */ + public id?: (string|null); + + /** NotificationEndpointAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1beta.INotificationEndpointsScopedList }; + + /** NotificationEndpointAggregatedList kind. */ + public kind?: (string|null); + + /** NotificationEndpointAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** NotificationEndpointAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** NotificationEndpointAggregatedList unreachables. */ + public unreachables: string[]; + + /** NotificationEndpointAggregatedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new NotificationEndpointAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationEndpointAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.INotificationEndpointAggregatedList): google.cloud.compute.v1beta.NotificationEndpointAggregatedList; + + /** + * Encodes the specified NotificationEndpointAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointAggregatedList.verify|verify} messages. + * @param message NotificationEndpointAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.INotificationEndpointAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NotificationEndpointAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointAggregatedList.verify|verify} messages. + * @param message NotificationEndpointAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.INotificationEndpointAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationEndpointAggregatedList + * @throws {Error} If the payload is not a 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.v1beta.NotificationEndpointAggregatedList; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NotificationEndpointAggregatedList + * @throws {Error} If the payload is 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.v1beta.NotificationEndpointAggregatedList; + + /** + * Verifies a NotificationEndpointAggregatedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NotificationEndpointAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationEndpointAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.NotificationEndpointAggregatedList; + + /** + * Creates a plain object from a NotificationEndpointAggregatedList message. Also converts values to other types if specified. + * @param message NotificationEndpointAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.NotificationEndpointAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NotificationEndpointAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NotificationEndpointAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a NotificationEndpointGrpcSettings. */ interface INotificationEndpointGrpcSettings { @@ -402400,6 +409158,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NotificationEndpointsScopedList. */ + interface INotificationEndpointsScopedList { + + /** NotificationEndpointsScopedList resources */ + resources?: (google.cloud.compute.v1beta.INotificationEndpoint[]|null); + + /** NotificationEndpointsScopedList warning */ + warning?: (google.cloud.compute.v1beta.IWarning|null); + } + + /** Represents a NotificationEndpointsScopedList. */ + class NotificationEndpointsScopedList implements INotificationEndpointsScopedList { + + /** + * Constructs a new NotificationEndpointsScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.INotificationEndpointsScopedList); + + /** NotificationEndpointsScopedList resources. */ + public resources: google.cloud.compute.v1beta.INotificationEndpoint[]; + + /** NotificationEndpointsScopedList warning. */ + public warning?: (google.cloud.compute.v1beta.IWarning|null); + + /** + * Creates a new NotificationEndpointsScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationEndpointsScopedList instance + */ + public static create(properties?: google.cloud.compute.v1beta.INotificationEndpointsScopedList): google.cloud.compute.v1beta.NotificationEndpointsScopedList; + + /** + * Encodes the specified NotificationEndpointsScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointsScopedList.verify|verify} messages. + * @param message NotificationEndpointsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.INotificationEndpointsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NotificationEndpointsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointsScopedList.verify|verify} messages. + * @param message NotificationEndpointsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.INotificationEndpointsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationEndpointsScopedList + * @throws {Error} If the payload is not a 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.v1beta.NotificationEndpointsScopedList; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NotificationEndpointsScopedList + * @throws {Error} If the payload is 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.v1beta.NotificationEndpointsScopedList; + + /** + * Verifies a NotificationEndpointsScopedList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NotificationEndpointsScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationEndpointsScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.NotificationEndpointsScopedList; + + /** + * Creates a plain object from a NotificationEndpointsScopedList message. Also converts values to other types if specified. + * @param message NotificationEndpointsScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.NotificationEndpointsScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NotificationEndpointsScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NotificationEndpointsScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Operation. */ interface IOperation { @@ -402418,6 +409279,9 @@ export namespace google { /** Operation error */ error?: (google.cloud.compute.v1beta.IError|null); + /** Operation getVersionOperationMetadata */ + getVersionOperationMetadata?: (google.cloud.compute.v1beta.IGetVersionOperationMetadata|null); + /** Operation httpErrorMessage */ httpErrorMessage?: (string|null); @@ -402506,6 +409370,9 @@ export namespace google { /** Operation error. */ public error?: (google.cloud.compute.v1beta.IError|null); + /** Operation getVersionOperationMetadata. */ + public getVersionOperationMetadata?: (google.cloud.compute.v1beta.IGetVersionOperationMetadata|null); + /** Operation httpErrorMessage. */ public httpErrorMessage?: (string|null); @@ -428932,6 +435799,114 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationSlotsGetVersionRequest. */ + interface IReservationSlotsGetVersionRequest { + + /** ReservationSlotsGetVersionRequest sbomSelections */ + sbomSelections?: (string[]|null); + } + + /** Represents a ReservationSlotsGetVersionRequest. */ + class ReservationSlotsGetVersionRequest implements IReservationSlotsGetVersionRequest { + + /** + * Constructs a new ReservationSlotsGetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest); + + /** ReservationSlotsGetVersionRequest sbomSelections. */ + public sbomSelections: string[]; + + /** + * Creates a new ReservationSlotsGetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSlotsGetVersionRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest): google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @param message ReservationSlotsGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @param message ReservationSlotsGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is not a 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.v1beta.ReservationSlotsGetVersionRequest; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is 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.v1beta.ReservationSlotsGetVersionRequest; + + /** + * Verifies a ReservationSlotsGetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSlotsGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSlotsGetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest; + + /** + * Creates a plain object from a ReservationSlotsGetVersionRequest message. Also converts values to other types if specified. + * @param message ReservationSlotsGetVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSlotsGetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSlotsGetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationSlotsGetVersionRequest { + + /** SbomSelections enum. */ + enum SbomSelections { + UNDEFINED_SBOM_SELECTIONS = 0, + SBOM_SELECTION_CURRENT = 423856692, + SBOM_SELECTION_TARGET = 152837462, + SBOM_SELECTION_UNSPECIFIED = 379615858 + } + } + /** Properties of a ReservationSlotsListResponse. */ interface IReservationSlotsListResponse { @@ -429590,6 +436565,114 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationSubBlocksGetVersionRequest. */ + interface IReservationSubBlocksGetVersionRequest { + + /** ReservationSubBlocksGetVersionRequest sbomSelections */ + sbomSelections?: (string[]|null); + } + + /** Represents a ReservationSubBlocksGetVersionRequest. */ + class ReservationSubBlocksGetVersionRequest implements IReservationSubBlocksGetVersionRequest { + + /** + * Constructs a new ReservationSubBlocksGetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest); + + /** ReservationSubBlocksGetVersionRequest sbomSelections. */ + public sbomSelections: string[]; + + /** + * Creates a new ReservationSubBlocksGetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationSubBlocksGetVersionRequest instance + */ + public static create(properties?: google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest): google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @param message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @param message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is not a 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.v1beta.ReservationSubBlocksGetVersionRequest; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is 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.v1beta.ReservationSubBlocksGetVersionRequest; + + /** + * Verifies a ReservationSubBlocksGetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservationSubBlocksGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationSubBlocksGetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest; + + /** + * Creates a plain object from a ReservationSubBlocksGetVersionRequest message. Also converts values to other types if specified. + * @param message ReservationSubBlocksGetVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationSubBlocksGetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationSubBlocksGetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationSubBlocksGetVersionRequest { + + /** SbomSelections enum. */ + enum SbomSelections { + UNDEFINED_SBOM_SELECTIONS = 0, + SBOM_SELECTION_CURRENT = 423856692, + SBOM_SELECTION_TARGET = 152837462, + SBOM_SELECTION_UNSPECIFIED = 379615858 + } + } + /** Properties of a ReservationSubBlocksListResponse. */ interface IReservationSubBlocksListResponse { @@ -489856,6 +496939,9 @@ export namespace google { /** Properties of an UpdateInstanceRequest. */ interface IUpdateInstanceRequest { + /** UpdateInstanceRequest discardLocalSsd */ + discardLocalSsd?: (boolean|null); + /** UpdateInstanceRequest instance */ instance?: (string|null); @@ -489887,6 +496973,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1beta.IUpdateInstanceRequest); + /** UpdateInstanceRequest discardLocalSsd. */ + public discardLocalSsd?: (boolean|null); + /** UpdateInstanceRequest instance. */ public instance: string; @@ -516072,6 +523161,20 @@ export namespace google { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionHealthCheckServices; + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HealthCheckServiceAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest, callback: google.cloud.compute.v1beta.RegionHealthCheckServices.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest): Promise; + /** * Calls Delete. * @param request DeleteRegionHealthCheckServiceRequest message or plain object @@ -516159,6 +523262,13 @@ export namespace google { namespace RegionHealthCheckServices { + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthCheckServices|aggregatedList}. + * @param error Error, if any + * @param [response] HealthCheckServiceAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.HealthCheckServiceAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthCheckServices|delete_}. * @param error Error, if any @@ -518994,6 +526104,20 @@ export namespace google { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionNotificationEndpoints; + /** + * Calls AggregatedList. + * @param request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NotificationEndpointAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest, callback: google.cloud.compute.v1beta.RegionNotificationEndpoints.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest): Promise; + /** * Calls Delete. * @param request DeleteRegionNotificationEndpointRequest message or plain object @@ -519067,6 +526191,13 @@ export namespace google { namespace RegionNotificationEndpoints { + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionNotificationEndpoints|aggregatedList}. + * @param error Error, if any + * @param [response] NotificationEndpointAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.NotificationEndpointAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.RegionNotificationEndpoints|delete_}. * @param error Error, if any @@ -520982,6 +528113,20 @@ export namespace google { */ public get(request: google.cloud.compute.v1beta.IGetReservationSlotRequest): Promise; + /** + * Calls GetVersion. + * @param request GetVersionReservationSlotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getVersion(request: google.cloud.compute.v1beta.IGetVersionReservationSlotRequest, callback: google.cloud.compute.v1beta.ReservationSlots.GetVersionCallback): void; + + /** + * Calls GetVersion. + * @param request GetVersionReservationSlotRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.cloud.compute.v1beta.IGetVersionReservationSlotRequest): Promise; + /** * Calls List. * @param request ListReservationSlotsRequest message or plain object @@ -521020,6 +528165,13 @@ export namespace google { */ type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.ReservationSlotsGetResponse) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|getVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type GetVersionCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|list}. * @param error Error, if any @@ -521083,6 +528235,20 @@ export namespace google { */ public getIamPolicy(request: google.cloud.compute.v1beta.IGetIamPolicyReservationSubBlockRequest): Promise; + /** + * Calls GetVersion. + * @param request GetVersionReservationSubBlockRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getVersion(request: google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest, callback: google.cloud.compute.v1beta.ReservationSubBlocks.GetVersionCallback): void; + + /** + * Calls GetVersion. + * @param request GetVersionReservationSubBlockRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest): Promise; + /** * Calls List. * @param request ListReservationSubBlocksRequest message or plain object @@ -521170,6 +528336,13 @@ export namespace google { */ type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Policy) => void; + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|getVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type GetVersionCallback = (error: (Error|null), response?: google.cloud.compute.v1beta.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|list}. * @param error Error, if any diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 9e5178c2a53..52a972b6080 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -26485,31 +26485,31 @@ return AggregatedListRegionCommitmentsRequest; })(); - v1.AggregatedListRegionHealthAggregationPoliciesRequest = (function() { + v1.AggregatedListRegionCompositeHealthChecksRequest = (function() { /** - * Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. + * Properties of an AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @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 + * @interface IAggregatedListRegionCompositeHealthChecksRequest + * @property {string|null} [filter] AggregatedListRegionCompositeHealthChecksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionCompositeHealthChecksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionCompositeHealthChecksRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionCompositeHealthChecksRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionCompositeHealthChecksRequest pageToken + * @property {string|null} [project] AggregatedListRegionCompositeHealthChecksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. + * Constructs a new AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionHealthAggregationPoliciesRequest. - * @implements IAggregatedListRegionHealthAggregationPoliciesRequest + * @classdesc Represents an AggregatedListRegionCompositeHealthChecksRequest. + * @implements IAggregatedListRegionCompositeHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set */ - function AggregatedListRegionHealthAggregationPoliciesRequest(properties) { + function AggregatedListRegionCompositeHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26517,136 +26517,136 @@ } /** - * AggregatedListRegionHealthAggregationPoliciesRequest filter. + * AggregatedListRegionCompositeHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.filter = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.filter = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. + * AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest maxResults. + * AggregatedListRegionCompositeHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.maxResults = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest orderBy. + * AggregatedListRegionCompositeHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.orderBy = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest pageToken. + * AggregatedListRegionCompositeHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.pageToken = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest project. + * AggregatedListRegionCompositeHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.project = ""; + AggregatedListRegionCompositeHealthChecksRequest.prototype.project = ""; /** - * AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. + * AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. + * AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.create = function create(properties) { - return new AggregatedListRegionHealthAggregationPoliciesRequest(properties); + AggregatedListRegionCompositeHealthChecksRequest.create = function create(properties) { + return new AggregatedListRegionCompositeHealthChecksRequest(properties); }; /** - * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthAggregationPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionCompositeHealthChecksRequest.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 AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @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.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthAggregationPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionCompositeHealthChecksRequest.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.AggregatedListRegionHealthAggregationPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -26742,30 +26742,30 @@ }; /** - * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthAggregationPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionCompositeHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. + * Verifies an AggregatedListRegionCompositeHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { + AggregatedListRegionCompositeHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26811,17 +26811,17 @@ }; /** - * Creates an AggregatedListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest */ - AggregatedListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest) + AggregatedListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26849,15 +26849,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26907,59 +26907,59 @@ }; /** - * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. + * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest + * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthAggregationPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest"; }; - return AggregatedListRegionHealthAggregationPoliciesRequest; + return AggregatedListRegionCompositeHealthChecksRequest; })(); - 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) @@ -26967,136 +26967,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")) @@ -27119,33 +27119,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) @@ -27192,30 +27192,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 = {}; @@ -27261,17 +27261,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) @@ -27299,15 +27299,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 = {}; @@ -27357,59 +27357,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.AggregatedListRegionHealthCheckServicesRequest = (function() { /** - * Properties of an AggregatedListResourcePoliciesRequest. + * Properties of an AggregatedListRegionHealthCheckServicesRequest. * @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 IAggregatedListRegionHealthCheckServicesRequest + * @property {string|null} [filter] AggregatedListRegionHealthCheckServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthCheckServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthCheckServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthCheckServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthCheckServicesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthCheckServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListResourcePoliciesRequest. + * Constructs a new AggregatedListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListResourcePoliciesRequest. - * @implements IAggregatedListResourcePoliciesRequest + * @classdesc Represents an AggregatedListRegionHealthCheckServicesRequest. + * @implements IAggregatedListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function AggregatedListResourcePoliciesRequest(properties) { + function AggregatedListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27417,136 +27417,136 @@ } /** - * AggregatedListResourcePoliciesRequest filter. + * AggregatedListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.filter = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * AggregatedListResourcePoliciesRequest includeAllScopes. + * AggregatedListRegionHealthCheckServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListResourcePoliciesRequest maxResults. + * AggregatedListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.maxResults = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * AggregatedListResourcePoliciesRequest orderBy. + * AggregatedListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.orderBy = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * AggregatedListResourcePoliciesRequest pageToken. + * AggregatedListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.pageToken = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * AggregatedListResourcePoliciesRequest project. + * AggregatedListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.project = ""; + AggregatedListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * AggregatedListResourcePoliciesRequest returnPartialSuccess. + * AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListResourcePoliciesRequest serviceProjectNumber. + * AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthCheckServicesRequest.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(AggregatedListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest instance */ - AggregatedListResourcePoliciesRequest.create = function create(properties) { - return new AggregatedListResourcePoliciesRequest(properties); + AggregatedListRegionHealthCheckServicesRequest.create = function create(properties) { + return new AggregatedListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthCheckServicesRequest.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 AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @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.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest * @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) { + AggregatedListRegionHealthCheckServicesRequest.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.AggregatedListRegionHealthCheckServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -27642,30 +27642,30 @@ }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest * @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) { + AggregatedListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListResourcePoliciesRequest message. + * Verifies an AggregatedListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @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) { + AggregatedListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27711,17 +27711,17 @@ }; /** - * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthCheckServicesRequest 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.AggregatedListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest */ - AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) + AggregatedListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27749,15 +27749,15 @@ }; /** - * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27807,59 +27807,59 @@ }; /** - * Converts this AggregatedListResourcePoliciesRequest to JSON. + * Converts this AggregatedListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthCheckServicesRequest.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 AggregatedListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest"; }; - return AggregatedListResourcePoliciesRequest; + return AggregatedListRegionHealthCheckServicesRequest; })(); - v1.AggregatedListRoutersRequest = (function() { + v1.AggregatedListRegionHealthSourcesRequest = (function() { /** - * Properties of an AggregatedListRoutersRequest. + * Properties of an AggregatedListRegionHealthSourcesRequest. * @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 IAggregatedListRegionHealthSourcesRequest + * @property {string|null} [filter] AggregatedListRegionHealthSourcesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthSourcesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthSourcesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthSourcesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthSourcesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthSourcesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthSourcesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthSourcesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRoutersRequest. + * Constructs a new AggregatedListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRoutersRequest. - * @implements IAggregatedListRoutersRequest + * @classdesc Represents an AggregatedListRegionHealthSourcesRequest. + * @implements IAggregatedListRegionHealthSourcesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set */ - function AggregatedListRoutersRequest(properties) { + function AggregatedListRegionHealthSourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27867,136 +27867,136 @@ } /** - * AggregatedListRoutersRequest filter. + * AggregatedListRegionHealthSourcesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.filter = null; + AggregatedListRegionHealthSourcesRequest.prototype.filter = null; /** - * AggregatedListRoutersRequest includeAllScopes. + * AggregatedListRegionHealthSourcesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthSourcesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRoutersRequest maxResults. + * AggregatedListRegionHealthSourcesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.maxResults = null; + AggregatedListRegionHealthSourcesRequest.prototype.maxResults = null; /** - * AggregatedListRoutersRequest orderBy. + * AggregatedListRegionHealthSourcesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.orderBy = null; + AggregatedListRegionHealthSourcesRequest.prototype.orderBy = null; /** - * AggregatedListRoutersRequest pageToken. + * AggregatedListRegionHealthSourcesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.pageToken = null; + AggregatedListRegionHealthSourcesRequest.prototype.pageToken = null; /** - * AggregatedListRoutersRequest project. + * AggregatedListRegionHealthSourcesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.project = ""; + AggregatedListRegionHealthSourcesRequest.prototype.project = ""; /** - * AggregatedListRoutersRequest returnPartialSuccess. + * AggregatedListRegionHealthSourcesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRoutersRequest serviceProjectNumber. + * AggregatedListRegionHealthSourcesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRoutersRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthSourcesRequest.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(AggregatedListRegionHealthSourcesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRoutersRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest instance */ - AggregatedListRoutersRequest.create = function create(properties) { - return new AggregatedListRoutersRequest(properties); + AggregatedListRegionHealthSourcesRequest.create = function create(properties) { + return new AggregatedListRegionHealthSourcesRequest(properties); }; /** - * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthSourcesRequest.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 AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @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.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @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) { + AggregatedListRegionHealthSourcesRequest.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.AggregatedListRegionHealthSourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28092,30 +28092,30 @@ }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @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) { + AggregatedListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRoutersRequest message. + * Verifies an AggregatedListRegionHealthSourcesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @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) { + AggregatedListRegionHealthSourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -28161,17 +28161,17 @@ }; /** - * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthSourcesRequest 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.AggregatedListRegionHealthSourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest */ - AggregatedListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) + AggregatedListRegionHealthSourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -28199,15 +28199,15 @@ }; /** - * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthSourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest + * @param {google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRoutersRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthSourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28257,59 +28257,59 @@ }; /** - * Converts this AggregatedListRoutersRequest to JSON. + * Converts this AggregatedListRegionHealthSourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthSourcesRequest.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 AggregatedListRegionHealthSourcesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest"; }; - return AggregatedListRoutersRequest; + return AggregatedListRegionHealthSourcesRequest; })(); - v1.AggregatedListSecurityPoliciesRequest = (function() { + v1.AggregatedListRegionNotificationEndpointsRequest = (function() { /** - * Properties of an AggregatedListSecurityPoliciesRequest. + * Properties of an AggregatedListRegionNotificationEndpointsRequest. * @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 IAggregatedListRegionNotificationEndpointsRequest + * @property {string|null} [filter] AggregatedListRegionNotificationEndpointsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionNotificationEndpointsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] AggregatedListRegionNotificationEndpointsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListSecurityPoliciesRequest. + * Constructs a new AggregatedListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSecurityPoliciesRequest. - * @implements IAggregatedListSecurityPoliciesRequest + * @classdesc Represents an AggregatedListRegionNotificationEndpointsRequest. + * @implements IAggregatedListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function AggregatedListSecurityPoliciesRequest(properties) { + function AggregatedListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28317,136 +28317,136 @@ } /** - * AggregatedListSecurityPoliciesRequest filter. + * AggregatedListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.filter = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * AggregatedListSecurityPoliciesRequest includeAllScopes. + * AggregatedListRegionNotificationEndpointsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.includeAllScopes = null; /** - * AggregatedListSecurityPoliciesRequest maxResults. + * AggregatedListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * AggregatedListSecurityPoliciesRequest orderBy. + * AggregatedListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * AggregatedListSecurityPoliciesRequest pageToken. + * AggregatedListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * AggregatedListSecurityPoliciesRequest project. + * AggregatedListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.project = ""; + AggregatedListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * AggregatedListSecurityPoliciesRequest returnPartialSuccess. + * AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSecurityPoliciesRequest serviceProjectNumber. + * AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionNotificationEndpointsRequest.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(AggregatedListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest instance */ - AggregatedListSecurityPoliciesRequest.create = function create(properties) { - return new AggregatedListSecurityPoliciesRequest(properties); + AggregatedListRegionNotificationEndpointsRequest.create = function create(properties) { + return new AggregatedListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionNotificationEndpointsRequest.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 AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @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.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest * @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) { + AggregatedListRegionNotificationEndpointsRequest.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.AggregatedListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -28542,30 +28542,30 @@ }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest * @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) { + AggregatedListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSecurityPoliciesRequest message. + * Verifies an AggregatedListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @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) { + AggregatedListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -28611,17 +28611,17 @@ }; /** - * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionNotificationEndpointsRequest 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.AggregatedListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest */ - AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) + AggregatedListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -28649,15 +28649,15 @@ }; /** - * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28707,59 +28707,59 @@ }; /** - * Converts this AggregatedListSecurityPoliciesRequest to JSON. + * Converts this AggregatedListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionNotificationEndpointsRequest.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 AggregatedListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest"; }; - return AggregatedListSecurityPoliciesRequest; + return AggregatedListRegionNotificationEndpointsRequest; })(); - v1.AggregatedListServiceAttachmentsRequest = (function() { + v1.AggregatedListReservationsRequest = (function() { /** - * Properties of an AggregatedListServiceAttachmentsRequest. + * Properties of an AggregatedListReservationsRequest. * @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 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 AggregatedListServiceAttachmentsRequest. + * Constructs a new AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListServiceAttachmentsRequest. - * @implements IAggregatedListServiceAttachmentsRequest + * @classdesc Represents an AggregatedListReservationsRequest. + * @implements IAggregatedListReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set */ - function AggregatedListServiceAttachmentsRequest(properties) { + function AggregatedListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28767,136 +28767,136 @@ } /** - * AggregatedListServiceAttachmentsRequest filter. + * AggregatedListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.filter = null; + AggregatedListReservationsRequest.prototype.filter = null; /** - * AggregatedListServiceAttachmentsRequest includeAllScopes. + * AggregatedListReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListServiceAttachmentsRequest maxResults. + * AggregatedListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; + AggregatedListReservationsRequest.prototype.maxResults = null; /** - * AggregatedListServiceAttachmentsRequest orderBy. + * AggregatedListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; + AggregatedListReservationsRequest.prototype.orderBy = null; /** - * AggregatedListServiceAttachmentsRequest pageToken. + * AggregatedListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; + AggregatedListReservationsRequest.prototype.pageToken = null; /** - * AggregatedListServiceAttachmentsRequest project. + * AggregatedListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.project = ""; + AggregatedListReservationsRequest.prototype.project = ""; /** - * AggregatedListServiceAttachmentsRequest returnPartialSuccess. + * AggregatedListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListServiceAttachmentsRequest serviceProjectNumber. + * AggregatedListReservationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListServiceAttachmentsRequest.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(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance */ - AggregatedListServiceAttachmentsRequest.create = function create(properties) { - return new AggregatedListServiceAttachmentsRequest(properties); + AggregatedListReservationsRequest.create = function create(properties) { + return new AggregatedListReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.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.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest 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 */ - AggregatedListServiceAttachmentsRequest.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")) @@ -28919,33 +28919,33 @@ }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.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.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest 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 */ - AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @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.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @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 */ - AggregatedListServiceAttachmentsRequest.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.AggregatedListServiceAttachmentsRequest(); + 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) @@ -28992,30 +28992,30 @@ }; /** - * Decodes an AggregatedListServiceAttachmentsRequest 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.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @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 */ - AggregatedListServiceAttachmentsRequest.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 AggregatedListServiceAttachmentsRequest message. + * Verifies an AggregatedListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @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 */ - AggregatedListServiceAttachmentsRequest.verify = function verify(message) { + AggregatedListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29061,17 +29061,17 @@ }; /** - * Creates an AggregatedListServiceAttachmentsRequest 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.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest */ - AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) + AggregatedListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29099,15 +29099,15 @@ }; /** - * Creates a plain object from an AggregatedListServiceAttachmentsRequest 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.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -29157,59 +29157,59 @@ }; /** - * Converts this AggregatedListServiceAttachmentsRequest to JSON. + * Converts this AggregatedListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListReservationsRequest.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 AggregatedListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; }; - return AggregatedListServiceAttachmentsRequest; + return AggregatedListReservationsRequest; })(); - v1.AggregatedListSslCertificatesRequest = (function() { + v1.AggregatedListResourcePoliciesRequest = (function() { /** - * Properties of an AggregatedListSslCertificatesRequest. + * Properties of an AggregatedListResourcePoliciesRequest. * @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 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 AggregatedListSslCertificatesRequest. + * Constructs a new AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslCertificatesRequest. - * @implements IAggregatedListSslCertificatesRequest + * @classdesc Represents an AggregatedListResourcePoliciesRequest. + * @implements IAggregatedListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set */ - function AggregatedListSslCertificatesRequest(properties) { + function AggregatedListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29217,136 +29217,136 @@ } /** - * AggregatedListSslCertificatesRequest filter. + * AggregatedListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.filter = null; + AggregatedListResourcePoliciesRequest.prototype.filter = null; /** - * AggregatedListSslCertificatesRequest includeAllScopes. + * AggregatedListResourcePoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; + AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslCertificatesRequest maxResults. + * AggregatedListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.maxResults = null; + AggregatedListResourcePoliciesRequest.prototype.maxResults = null; /** - * AggregatedListSslCertificatesRequest orderBy. + * AggregatedListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.orderBy = null; + AggregatedListResourcePoliciesRequest.prototype.orderBy = null; /** - * AggregatedListSslCertificatesRequest pageToken. + * AggregatedListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.pageToken = null; + AggregatedListResourcePoliciesRequest.prototype.pageToken = null; /** - * AggregatedListSslCertificatesRequest project. + * AggregatedListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.project = ""; + AggregatedListResourcePoliciesRequest.prototype.project = ""; /** - * AggregatedListSslCertificatesRequest returnPartialSuccess. + * AggregatedListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; + AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslCertificatesRequest serviceProjectNumber. + * AggregatedListResourcePoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListSslCertificatesRequest.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(AggregatedListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. + * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance */ - AggregatedListSslCertificatesRequest.create = function create(properties) { - return new AggregatedListSslCertificatesRequest(properties); + AggregatedListResourcePoliciesRequest.create = function create(properties) { + return new AggregatedListResourcePoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.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.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest 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 */ - AggregatedListSslCertificatesRequest.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")) @@ -29369,33 +29369,33 @@ }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.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.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest 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 */ - AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @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.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @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 */ - AggregatedListSslCertificatesRequest.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.AggregatedListSslCertificatesRequest(); + 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) @@ -29442,30 +29442,30 @@ }; /** - * Decodes an AggregatedListSslCertificatesRequest 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.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @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 */ - AggregatedListSslCertificatesRequest.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 AggregatedListSslCertificatesRequest message. + * Verifies an AggregatedListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @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 */ - AggregatedListSslCertificatesRequest.verify = function verify(message) { + AggregatedListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29511,17 +29511,17 @@ }; /** - * Creates an AggregatedListSslCertificatesRequest 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.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest */ - AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) + AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29549,15 +29549,15 @@ }; /** - * Creates a plain object from an AggregatedListSslCertificatesRequest 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.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest + * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { + AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -29607,59 +29607,59 @@ }; /** - * Converts this AggregatedListSslCertificatesRequest to JSON. + * Converts this AggregatedListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { + AggregatedListResourcePoliciesRequest.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 AggregatedListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; }; - return AggregatedListSslCertificatesRequest; + return AggregatedListResourcePoliciesRequest; })(); - v1.AggregatedListSslPoliciesRequest = (function() { + v1.AggregatedListRoutersRequest = (function() { /** - * Properties of an AggregatedListSslPoliciesRequest. + * Properties of an AggregatedListRoutersRequest. * @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 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 AggregatedListSslPoliciesRequest. + * Constructs a new AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslPoliciesRequest. - * @implements IAggregatedListSslPoliciesRequest + * @classdesc Represents an AggregatedListRoutersRequest. + * @implements IAggregatedListRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set */ - function AggregatedListSslPoliciesRequest(properties) { + function AggregatedListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29667,136 +29667,136 @@ } /** - * AggregatedListSslPoliciesRequest filter. + * AggregatedListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.filter = null; + AggregatedListRoutersRequest.prototype.filter = null; /** - * AggregatedListSslPoliciesRequest includeAllScopes. + * AggregatedListRoutersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRoutersRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslPoliciesRequest maxResults. + * AggregatedListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.maxResults = null; + AggregatedListRoutersRequest.prototype.maxResults = null; /** - * AggregatedListSslPoliciesRequest orderBy. + * AggregatedListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.orderBy = null; + AggregatedListRoutersRequest.prototype.orderBy = null; /** - * AggregatedListSslPoliciesRequest pageToken. + * AggregatedListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.pageToken = null; + AggregatedListRoutersRequest.prototype.pageToken = null; /** - * AggregatedListSslPoliciesRequest project. + * AggregatedListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.project = ""; + AggregatedListRoutersRequest.prototype.project = ""; /** - * AggregatedListSslPoliciesRequest returnPartialSuccess. + * AggregatedListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSslPoliciesRequest serviceProjectNumber. + * AggregatedListRoutersRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSslPoliciesRequest.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(AggregatedListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance */ - AggregatedListSslPoliciesRequest.create = function create(properties) { - return new AggregatedListSslPoliciesRequest(properties); + AggregatedListRoutersRequest.create = function create(properties) { + return new AggregatedListRoutersRequest(properties); }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.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.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest 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 */ - AggregatedListSslPoliciesRequest.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")) @@ -29819,33 +29819,33 @@ }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.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.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest 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 */ - AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @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.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @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 */ - AggregatedListSslPoliciesRequest.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.AggregatedListSslPoliciesRequest(); + 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) @@ -29892,30 +29892,30 @@ }; /** - * Decodes an AggregatedListSslPoliciesRequest 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.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @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 */ - AggregatedListSslPoliciesRequest.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 AggregatedListSslPoliciesRequest message. + * Verifies an AggregatedListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @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 */ - AggregatedListSslPoliciesRequest.verify = function verify(message) { + AggregatedListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -29961,17 +29961,17 @@ }; /** - * Creates an AggregatedListSslPoliciesRequest 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.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest */ - AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) + AggregatedListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -29999,15 +29999,15 @@ }; /** - * Creates a plain object from an AggregatedListSslPoliciesRequest 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.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30057,59 +30057,59 @@ }; /** - * Converts this AggregatedListSslPoliciesRequest to JSON. + * Converts this AggregatedListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRoutersRequest.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 AggregatedListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; }; - return AggregatedListSslPoliciesRequest; + return AggregatedListRoutersRequest; })(); - v1.AggregatedListStoragePoolTypesRequest = (function() { + v1.AggregatedListSecurityPoliciesRequest = (function() { /** - * Properties of an AggregatedListStoragePoolTypesRequest. + * Properties of an AggregatedListSecurityPoliciesRequest. * @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 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 AggregatedListStoragePoolTypesRequest. + * Constructs a new AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListStoragePoolTypesRequest. - * @implements IAggregatedListStoragePoolTypesRequest + * @classdesc Represents an AggregatedListSecurityPoliciesRequest. + * @implements IAggregatedListSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolTypesRequest(properties) { + function AggregatedListSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30117,136 +30117,136 @@ } /** - * AggregatedListStoragePoolTypesRequest filter. + * AggregatedListSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.filter = null; + AggregatedListSecurityPoliciesRequest.prototype.filter = null; /** - * AggregatedListStoragePoolTypesRequest includeAllScopes. + * AggregatedListSecurityPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; + AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolTypesRequest maxResults. + * AggregatedListSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; + AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolTypesRequest orderBy. + * AggregatedListSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; + AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolTypesRequest pageToken. + * AggregatedListSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; + AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolTypesRequest project. + * AggregatedListSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.project = ""; + AggregatedListSecurityPoliciesRequest.prototype.project = ""; /** - * AggregatedListStoragePoolTypesRequest returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolTypesRequest serviceProjectNumber. + * AggregatedListSecurityPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListStoragePoolTypesRequest.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(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. + * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance */ - AggregatedListStoragePoolTypesRequest.create = function create(properties) { - return new AggregatedListStoragePoolTypesRequest(properties); + AggregatedListSecurityPoliciesRequest.create = function create(properties) { + return new AggregatedListSecurityPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.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.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest 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 */ - AggregatedListStoragePoolTypesRequest.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")) @@ -30269,33 +30269,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest.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.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest 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 */ - AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @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.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @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 */ - AggregatedListStoragePoolTypesRequest.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.AggregatedListStoragePoolTypesRequest(); + 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) @@ -30342,30 +30342,30 @@ }; /** - * Decodes an AggregatedListStoragePoolTypesRequest 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.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @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 */ - AggregatedListStoragePoolTypesRequest.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 AggregatedListStoragePoolTypesRequest message. + * Verifies an AggregatedListSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @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 */ - AggregatedListStoragePoolTypesRequest.verify = function verify(message) { + AggregatedListSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -30411,17 +30411,17 @@ }; /** - * Creates an AggregatedListStoragePoolTypesRequest 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.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest */ - AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest) + AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -30449,15 +30449,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolTypesRequest 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.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest + * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { + AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30507,59 +30507,59 @@ }; /** - * Converts this AggregatedListStoragePoolTypesRequest to JSON. + * Converts this AggregatedListSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListSecurityPoliciesRequest.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 AggregatedListSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; }; - return AggregatedListStoragePoolTypesRequest; + return AggregatedListSecurityPoliciesRequest; })(); - v1.AggregatedListStoragePoolsRequest = (function() { + v1.AggregatedListServiceAttachmentsRequest = (function() { /** - * Properties of an AggregatedListStoragePoolsRequest. + * Properties of an AggregatedListServiceAttachmentsRequest. * @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 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 AggregatedListStoragePoolsRequest. + * Constructs a new AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListStoragePoolsRequest. - * @implements IAggregatedListStoragePoolsRequest + * @classdesc Represents an AggregatedListServiceAttachmentsRequest. + * @implements IAggregatedListServiceAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListStoragePoolsRequest(properties) { + function AggregatedListServiceAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30567,136 +30567,136 @@ } /** - * AggregatedListStoragePoolsRequest filter. + * AggregatedListServiceAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.filter = null; + AggregatedListServiceAttachmentsRequest.prototype.filter = null; /** - * AggregatedListStoragePoolsRequest includeAllScopes. + * AggregatedListServiceAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; + AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListStoragePoolsRequest maxResults. + * AggregatedListServiceAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.maxResults = null; + AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListStoragePoolsRequest orderBy. + * AggregatedListServiceAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.orderBy = null; + AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListStoragePoolsRequest pageToken. + * AggregatedListServiceAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.pageToken = null; + AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListStoragePoolsRequest project. + * AggregatedListServiceAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.project = ""; + AggregatedListServiceAttachmentsRequest.prototype.project = ""; /** - * AggregatedListStoragePoolsRequest returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListStoragePoolsRequest serviceProjectNumber. + * AggregatedListServiceAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListStoragePoolsRequest.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(AggregatedListStoragePoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. + * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance */ - AggregatedListStoragePoolsRequest.create = function create(properties) { - return new AggregatedListStoragePoolsRequest(properties); + AggregatedListServiceAttachmentsRequest.create = function create(properties) { + return new AggregatedListServiceAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.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.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest 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 */ - AggregatedListStoragePoolsRequest.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")) @@ -30719,33 +30719,33 @@ }; /** - * Encodes the specified AggregatedListStoragePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListStoragePoolsRequest.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.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest 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 */ - AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @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.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @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 */ - AggregatedListStoragePoolsRequest.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.AggregatedListStoragePoolsRequest(); + 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) @@ -30792,30 +30792,30 @@ }; /** - * Decodes an AggregatedListStoragePoolsRequest 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.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @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 */ - AggregatedListStoragePoolsRequest.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 AggregatedListStoragePoolsRequest message. + * Verifies an AggregatedListServiceAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @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 */ - AggregatedListStoragePoolsRequest.verify = function verify(message) { + AggregatedListServiceAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -30861,17 +30861,17 @@ }; /** - * Creates an AggregatedListStoragePoolsRequest 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.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest */ - AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest) + AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -30899,15 +30899,15 @@ }; /** - * Creates a plain object from an AggregatedListStoragePoolsRequest 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.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest + * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { + AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30957,60 +30957,59 @@ }; /** - * Converts this AggregatedListStoragePoolsRequest to JSON. + * Converts this AggregatedListServiceAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListStoragePoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListServiceAttachmentsRequest.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 AggregatedListServiceAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; }; - return AggregatedListStoragePoolsRequest; + return AggregatedListServiceAttachmentsRequest; })(); - v1.AggregatedListSubnetworksRequest = (function() { + v1.AggregatedListSslCertificatesRequest = (function() { /** - * Properties of an AggregatedListSubnetworksRequest. + * Properties of an AggregatedListSslCertificatesRequest. * @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 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 AggregatedListSubnetworksRequest. + * Constructs a new AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSubnetworksRequest. - * @implements IAggregatedListSubnetworksRequest + * @classdesc Represents an AggregatedListSslCertificatesRequest. + * @implements IAggregatedListSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set */ - function AggregatedListSubnetworksRequest(properties) { + function AggregatedListSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31018,158 +31017,142 @@ } /** - * AggregatedListSubnetworksRequest filter. + * AggregatedListSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.filter = null; + AggregatedListSslCertificatesRequest.prototype.filter = null; /** - * AggregatedListSubnetworksRequest includeAllScopes. + * AggregatedListSslCertificatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; + AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSubnetworksRequest maxResults. + * AggregatedListSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.maxResults = null; + AggregatedListSslCertificatesRequest.prototype.maxResults = null; /** - * AggregatedListSubnetworksRequest orderBy. + * AggregatedListSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.orderBy = null; + AggregatedListSslCertificatesRequest.prototype.orderBy = null; /** - * AggregatedListSubnetworksRequest pageToken. + * AggregatedListSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.pageToken = null; + AggregatedListSslCertificatesRequest.prototype.pageToken = null; /** - * AggregatedListSubnetworksRequest project. + * AggregatedListSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.project = ""; + AggregatedListSslCertificatesRequest.prototype.project = ""; /** - * AggregatedListSubnetworksRequest returnPartialSuccess. + * AggregatedListSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; + AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListSubnetworksRequest serviceProjectNumber. + * AggregatedListSslCertificatesRequest 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.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.views = null; + AggregatedListSslCertificatesRequest.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(AggregatedListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslCertificatesRequest.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 AggregatedListSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance */ - AggregatedListSubnetworksRequest.create = function create(properties) { - return new AggregatedListSubnetworksRequest(properties); + AggregatedListSslCertificatesRequest.create = function create(properties) { + return new AggregatedListSslCertificatesRequest(properties); }; /** - * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest 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 */ - AggregatedListSubnetworksRequest.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")) 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")) @@ -31186,33 +31169,33 @@ }; /** - * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest 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 */ - AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @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.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @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 */ - AggregatedListSubnetworksRequest.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.AggregatedListSubnetworksRequest(); + 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) @@ -31250,10 +31233,6 @@ message.serviceProjectNumber = reader.int64(); break; } - case 112204398: { - message.views = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -31263,30 +31242,30 @@ }; /** - * Decodes an AggregatedListSubnetworksRequest 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.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @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 */ - AggregatedListSubnetworksRequest.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 AggregatedListSubnetworksRequest message. + * Verifies an AggregatedListSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @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 */ - AggregatedListSubnetworksRequest.verify = function verify(message) { + AggregatedListSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -31328,26 +31307,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 AggregatedListSslCertificatesRequest 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.AggregatedListSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest */ - AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) + AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -31371,21 +31345,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 AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest + * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { + AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31401,11 +31373,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) @@ -31440,75 +31407,59 @@ }; /** - * Converts this AggregatedListSubnetworksRequest to JSON. + * Converts this AggregatedListSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { + AggregatedListSslCertificatesRequest.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 AggregatedListSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; }; - /** - * 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 AggregatedListSslCertificatesRequest; })(); - v1.AggregatedListTargetHttpProxiesRequest = (function() { + v1.AggregatedListSslPoliciesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpProxiesRequest. + * Properties of an AggregatedListSslPoliciesRequest. * @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 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 AggregatedListTargetHttpProxiesRequest. + * Constructs a new AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. - * @implements IAggregatedListTargetHttpProxiesRequest + * @classdesc Represents an AggregatedListSslPoliciesRequest. + * @implements IAggregatedListSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpProxiesRequest(properties) { + function AggregatedListSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31516,136 +31467,136 @@ } /** - * AggregatedListTargetHttpProxiesRequest filter. + * AggregatedListSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.filter = null; + AggregatedListSslPoliciesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpProxiesRequest includeAllScopes. + * AggregatedListSslPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpProxiesRequest maxResults. + * AggregatedListSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; + AggregatedListSslPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpProxiesRequest orderBy. + * AggregatedListSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; + AggregatedListSslPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpProxiesRequest pageToken. + * AggregatedListSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; + AggregatedListSslPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpProxiesRequest project. + * AggregatedListSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.project = ""; + AggregatedListSslPoliciesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. + * AggregatedListSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. + * AggregatedListSslPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.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(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance */ - AggregatedListTargetHttpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpProxiesRequest(properties); + AggregatedListSslPoliciesRequest.create = function create(properties) { + return new AggregatedListSslPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.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.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest 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 */ - AggregatedListTargetHttpProxiesRequest.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")) @@ -31668,33 +31619,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.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.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest 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 */ - AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @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.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @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 */ - AggregatedListTargetHttpProxiesRequest.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.AggregatedListTargetHttpProxiesRequest(); + 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) @@ -31741,30 +31692,30 @@ }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest 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.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @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 */ - AggregatedListTargetHttpProxiesRequest.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 AggregatedListTargetHttpProxiesRequest message. + * Verifies an AggregatedListSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @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 */ - AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { + AggregatedListSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -31810,17 +31761,17 @@ }; /** - * Creates an AggregatedListTargetHttpProxiesRequest 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.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest */ - AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) + AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -31848,15 +31799,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpProxiesRequest 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.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -31906,59 +31857,59 @@ }; /** - * Converts this AggregatedListTargetHttpProxiesRequest to JSON. + * Converts this AggregatedListSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslPoliciesRequest.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 AggregatedListSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; }; - return AggregatedListTargetHttpProxiesRequest; + return AggregatedListSslPoliciesRequest; })(); - v1.AggregatedListTargetHttpsProxiesRequest = (function() { + v1.AggregatedListStoragePoolTypesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpsProxiesRequest. + * Properties of an AggregatedListStoragePoolTypesRequest. * @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 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 AggregatedListTargetHttpsProxiesRequest. + * Constructs a new AggregatedListStoragePoolTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. - * @implements IAggregatedListTargetHttpsProxiesRequest + * @classdesc Represents an AggregatedListStoragePoolTypesRequest. + * @implements IAggregatedListStoragePoolTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpsProxiesRequest(properties) { + function AggregatedListStoragePoolTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31966,136 +31917,136 @@ } /** - * AggregatedListTargetHttpsProxiesRequest filter. + * AggregatedListStoragePoolTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; + AggregatedListStoragePoolTypesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpsProxiesRequest includeAllScopes. + * AggregatedListStoragePoolTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpsProxiesRequest maxResults. + * AggregatedListStoragePoolTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; + AggregatedListStoragePoolTypesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpsProxiesRequest orderBy. + * AggregatedListStoragePoolTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; + AggregatedListStoragePoolTypesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpsProxiesRequest pageToken. + * AggregatedListStoragePoolTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; + AggregatedListStoragePoolTypesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpsProxiesRequest project. + * AggregatedListStoragePoolTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; + AggregatedListStoragePoolTypesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. + * AggregatedListStoragePoolTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. + * AggregatedListStoragePoolTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.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(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest instance */ - AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpsProxiesRequest(properties); + AggregatedListStoragePoolTypesRequest.create = function create(properties) { + return new AggregatedListStoragePoolTypesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.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.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest 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 */ - AggregatedListTargetHttpsProxiesRequest.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")) @@ -32118,33 +32069,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.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.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest 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 */ - AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @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.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @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 */ - AggregatedListTargetHttpsProxiesRequest.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.AggregatedListTargetHttpsProxiesRequest(); + 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) @@ -32191,30 +32142,30 @@ }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest 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.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @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 */ - AggregatedListTargetHttpsProxiesRequest.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 AggregatedListTargetHttpsProxiesRequest message. + * Verifies an AggregatedListStoragePoolTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @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 */ - AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { + AggregatedListStoragePoolTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -32260,17 +32211,17 @@ }; /** - * Creates an AggregatedListTargetHttpsProxiesRequest 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.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} AggregatedListStoragePoolTypesRequest */ - AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) + AggregatedListStoragePoolTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -32298,15 +32249,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest 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.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest} message AggregatedListStoragePoolTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -32356,59 +32307,59 @@ }; /** - * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. + * Converts this AggregatedListStoragePoolTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolTypesRequest.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 AggregatedListStoragePoolTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolTypesRequest"; }; - return AggregatedListTargetHttpsProxiesRequest; + return AggregatedListStoragePoolTypesRequest; })(); - v1.AggregatedListTargetInstancesRequest = (function() { + v1.AggregatedListStoragePoolsRequest = (function() { /** - * Properties of an AggregatedListTargetInstancesRequest. + * Properties of an AggregatedListStoragePoolsRequest. * @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 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 AggregatedListTargetInstancesRequest. + * Constructs a new AggregatedListStoragePoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetInstancesRequest. - * @implements IAggregatedListTargetInstancesRequest + * @classdesc Represents an AggregatedListStoragePoolsRequest. + * @implements IAggregatedListStoragePoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set */ - function AggregatedListTargetInstancesRequest(properties) { + function AggregatedListStoragePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32416,136 +32367,136 @@ } /** - * AggregatedListTargetInstancesRequest filter. + * AggregatedListStoragePoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.filter = null; + AggregatedListStoragePoolsRequest.prototype.filter = null; /** - * AggregatedListTargetInstancesRequest includeAllScopes. + * AggregatedListStoragePoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; + AggregatedListStoragePoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetInstancesRequest maxResults. + * AggregatedListStoragePoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.maxResults = null; + AggregatedListStoragePoolsRequest.prototype.maxResults = null; /** - * AggregatedListTargetInstancesRequest orderBy. + * AggregatedListStoragePoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.orderBy = null; + AggregatedListStoragePoolsRequest.prototype.orderBy = null; /** - * AggregatedListTargetInstancesRequest pageToken. + * AggregatedListStoragePoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.pageToken = null; + AggregatedListStoragePoolsRequest.prototype.pageToken = null; /** - * AggregatedListTargetInstancesRequest project. + * AggregatedListStoragePoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.project = ""; + AggregatedListStoragePoolsRequest.prototype.project = ""; /** - * AggregatedListTargetInstancesRequest returnPartialSuccess. + * AggregatedListStoragePoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListStoragePoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetInstancesRequest serviceProjectNumber. + * AggregatedListStoragePoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.serviceProjectNumber = null; + AggregatedListStoragePoolsRequest.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(AggregatedListStoragePoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListStoragePoolsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. + * Creates a new AggregatedListStoragePoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListStoragePoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest instance */ - AggregatedListTargetInstancesRequest.create = function create(properties) { - return new AggregatedListTargetInstancesRequest(properties); + AggregatedListStoragePoolsRequest.create = function create(properties) { + return new AggregatedListStoragePoolsRequest(properties); }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.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.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest 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 */ - AggregatedListTargetInstancesRequest.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")) @@ -32568,33 +32519,33 @@ }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.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.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest 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 */ - AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListStoragePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListStoragePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @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.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @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 */ - AggregatedListTargetInstancesRequest.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.AggregatedListTargetInstancesRequest(); + 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) @@ -32641,30 +32592,30 @@ }; /** - * Decodes an AggregatedListTargetInstancesRequest 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.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @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 */ - AggregatedListTargetInstancesRequest.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 AggregatedListTargetInstancesRequest message. + * Verifies an AggregatedListStoragePoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @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 */ - AggregatedListTargetInstancesRequest.verify = function verify(message) { + AggregatedListStoragePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -32710,17 +32661,17 @@ }; /** - * Creates an AggregatedListTargetInstancesRequest 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.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} AggregatedListStoragePoolsRequest */ - AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) + AggregatedListStoragePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListStoragePoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -32748,15 +32699,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetInstancesRequest 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.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest + * @param {google.cloud.compute.v1.AggregatedListStoragePoolsRequest} message AggregatedListStoragePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { + AggregatedListStoragePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -32806,59 +32757,60 @@ }; /** - * Converts this AggregatedListTargetInstancesRequest to JSON. + * Converts this AggregatedListStoragePoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListStoragePoolsRequest.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 AggregatedListStoragePoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListStoragePoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListStoragePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListStoragePoolsRequest"; }; - return AggregatedListTargetInstancesRequest; + return AggregatedListStoragePoolsRequest; })(); - v1.AggregatedListTargetPoolsRequest = (function() { + v1.AggregatedListSubnetworksRequest = (function() { /** - * Properties of an AggregatedListTargetPoolsRequest. + * Properties of an AggregatedListSubnetworksRequest. * @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 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 AggregatedListTargetPoolsRequest. + * Constructs a new AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetPoolsRequest. - * @implements IAggregatedListTargetPoolsRequest + * @classdesc Represents an AggregatedListSubnetworksRequest. + * @implements IAggregatedListSubnetworksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set */ - function AggregatedListTargetPoolsRequest(properties) { + function AggregatedListSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32866,142 +32818,158 @@ } /** - * AggregatedListTargetPoolsRequest filter. + * AggregatedListSubnetworksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.filter = null; + AggregatedListSubnetworksRequest.prototype.filter = null; /** - * AggregatedListTargetPoolsRequest includeAllScopes. + * AggregatedListSubnetworksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; + AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetPoolsRequest maxResults. + * AggregatedListSubnetworksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.maxResults = null; + AggregatedListSubnetworksRequest.prototype.maxResults = null; /** - * AggregatedListTargetPoolsRequest orderBy. + * AggregatedListSubnetworksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.orderBy = null; + AggregatedListSubnetworksRequest.prototype.orderBy = null; /** - * AggregatedListTargetPoolsRequest pageToken. + * AggregatedListSubnetworksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.pageToken = null; + AggregatedListSubnetworksRequest.prototype.pageToken = null; /** - * AggregatedListTargetPoolsRequest project. + * AggregatedListSubnetworksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.project = ""; + AggregatedListSubnetworksRequest.prototype.project = ""; /** - * AggregatedListTargetPoolsRequest returnPartialSuccess. + * AggregatedListSubnetworksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetPoolsRequest serviceProjectNumber. + * AggregatedListSubnetworksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetPoolsRequest.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(AggregatedListTargetPoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetPoolsRequest.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 AggregatedListTargetPoolsRequest instance using the specified properties. + * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance */ - AggregatedListTargetPoolsRequest.create = function create(properties) { - return new AggregatedListTargetPoolsRequest(properties); + AggregatedListSubnetworksRequest.create = function create(properties) { + return new AggregatedListSubnetworksRequest(properties); }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.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.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest 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 */ - AggregatedListTargetPoolsRequest.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")) @@ -33018,33 +32986,33 @@ }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.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.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest 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 */ - AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @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.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @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 */ - AggregatedListTargetPoolsRequest.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.AggregatedListTargetPoolsRequest(); + 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) @@ -33082,6 +33050,10 @@ message.serviceProjectNumber = reader.int64(); break; } + case 112204398: { + message.views = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -33091,30 +33063,30 @@ }; /** - * Decodes an AggregatedListTargetPoolsRequest 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.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @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 */ - AggregatedListTargetPoolsRequest.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 AggregatedListTargetPoolsRequest message. + * Verifies an AggregatedListSubnetworksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @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 */ - AggregatedListTargetPoolsRequest.verify = function verify(message) { + AggregatedListSubnetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -33156,21 +33128,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 AggregatedListTargetPoolsRequest 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.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest */ - AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) + AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -33194,19 +33171,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 AggregatedListTargetPoolsRequest 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.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { + AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -33222,6 +33201,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) @@ -33256,59 +33240,75 @@ }; /** - * Converts this AggregatedListTargetPoolsRequest to JSON. + * Converts this AggregatedListSubnetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListSubnetworksRequest.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 AggregatedListSubnetworksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; }; - return AggregatedListTargetPoolsRequest; + /** + * 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.AggregatedListTargetTcpProxiesRequest = (function() { + v1.AggregatedListTargetHttpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetTcpProxiesRequest. + * Properties of an AggregatedListTargetHttpProxiesRequest. * @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 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 AggregatedListTargetTcpProxiesRequest. + * Constructs a new AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. - * @implements IAggregatedListTargetTcpProxiesRequest + * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. + * @implements IAggregatedListTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetTcpProxiesRequest(properties) { + function AggregatedListTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33316,136 +33316,136 @@ } /** - * AggregatedListTargetTcpProxiesRequest filter. + * AggregatedListTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + AggregatedListTargetHttpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * AggregatedListTargetHttpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetTcpProxiesRequest maxResults. + * AggregatedListTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetTcpProxiesRequest orderBy. + * AggregatedListTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetTcpProxiesRequest pageToken. + * AggregatedListTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetTcpProxiesRequest project. + * AggregatedListTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + AggregatedListTargetHttpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. + * AggregatedListTargetHttpProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.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(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance */ - AggregatedListTargetTcpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetTcpProxiesRequest(properties); + AggregatedListTargetHttpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.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.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest 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 */ - AggregatedListTargetTcpProxiesRequest.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")) @@ -33468,33 +33468,33 @@ }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.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.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest 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 */ - AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @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.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @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 */ - AggregatedListTargetTcpProxiesRequest.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.AggregatedListTargetTcpProxiesRequest(); + 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) @@ -33541,30 +33541,30 @@ }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest 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.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @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 */ - AggregatedListTargetTcpProxiesRequest.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 AggregatedListTargetTcpProxiesRequest message. + * Verifies an AggregatedListTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @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 */ - AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { + AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -33610,17 +33610,17 @@ }; /** - * Creates an AggregatedListTargetTcpProxiesRequest 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.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest */ - AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) + AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -33648,15 +33648,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetTcpProxiesRequest 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.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -33706,59 +33706,59 @@ }; /** - * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * Converts this AggregatedListTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpProxiesRequest.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 AggregatedListTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; }; - return AggregatedListTargetTcpProxiesRequest; + return AggregatedListTargetHttpProxiesRequest; })(); - v1.AggregatedListTargetVpnGatewaysRequest = (function() { + v1.AggregatedListTargetHttpsProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetVpnGatewaysRequest. + * Properties of an AggregatedListTargetHttpsProxiesRequest. * @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 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 AggregatedListTargetVpnGatewaysRequest. + * Constructs a new AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. - * @implements IAggregatedListTargetVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. + * @implements IAggregatedListTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetVpnGatewaysRequest(properties) { + function AggregatedListTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33766,136 +33766,136 @@ } /** - * AggregatedListTargetVpnGatewaysRequest filter. + * AggregatedListTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetVpnGatewaysRequest maxResults. + * AggregatedListTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetVpnGatewaysRequest orderBy. + * AggregatedListTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetVpnGatewaysRequest pageToken. + * AggregatedListTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetVpnGatewaysRequest project. + * AggregatedListTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. + * AggregatedListTargetHttpsProxiesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.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(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance */ - AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListTargetVpnGatewaysRequest(properties); + AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.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.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest 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 */ - AggregatedListTargetVpnGatewaysRequest.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")) @@ -33918,33 +33918,33 @@ }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.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.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest 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 */ - AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @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.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @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 */ - AggregatedListTargetVpnGatewaysRequest.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.AggregatedListTargetVpnGatewaysRequest(); + 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) @@ -33991,30 +33991,30 @@ }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest 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.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @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 */ - AggregatedListTargetVpnGatewaysRequest.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 AggregatedListTargetVpnGatewaysRequest message. + * Verifies an AggregatedListTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @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 */ - AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { + AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34060,17 +34060,17 @@ }; /** - * Creates an AggregatedListTargetVpnGatewaysRequest 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.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest */ - AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) + AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34098,15 +34098,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest 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.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34156,59 +34156,59 @@ }; /** - * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. + * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpsProxiesRequest.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 AggregatedListTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; }; - return AggregatedListTargetVpnGatewaysRequest; + return AggregatedListTargetHttpsProxiesRequest; })(); - v1.AggregatedListUrlMapsRequest = (function() { + v1.AggregatedListTargetInstancesRequest = (function() { /** - * Properties of an AggregatedListUrlMapsRequest. + * Properties of an AggregatedListTargetInstancesRequest. * @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 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 AggregatedListUrlMapsRequest. + * Constructs a new AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListUrlMapsRequest. - * @implements IAggregatedListUrlMapsRequest + * @classdesc Represents an AggregatedListTargetInstancesRequest. + * @implements IAggregatedListTargetInstancesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set */ - function AggregatedListUrlMapsRequest(properties) { + function AggregatedListTargetInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34216,136 +34216,136 @@ } /** - * AggregatedListUrlMapsRequest filter. + * AggregatedListTargetInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.filter = null; + AggregatedListTargetInstancesRequest.prototype.filter = null; /** - * AggregatedListUrlMapsRequest includeAllScopes. + * AggregatedListTargetInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListUrlMapsRequest maxResults. + * AggregatedListTargetInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.maxResults = null; + AggregatedListTargetInstancesRequest.prototype.maxResults = null; /** - * AggregatedListUrlMapsRequest orderBy. + * AggregatedListTargetInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.orderBy = null; + AggregatedListTargetInstancesRequest.prototype.orderBy = null; /** - * AggregatedListUrlMapsRequest pageToken. + * AggregatedListTargetInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.pageToken = null; + AggregatedListTargetInstancesRequest.prototype.pageToken = null; /** - * AggregatedListUrlMapsRequest project. + * AggregatedListTargetInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.project = ""; + AggregatedListTargetInstancesRequest.prototype.project = ""; /** - * AggregatedListUrlMapsRequest returnPartialSuccess. + * AggregatedListTargetInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListUrlMapsRequest serviceProjectNumber. + * AggregatedListTargetInstancesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListUrlMapsRequest.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(AggregatedListUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance */ - AggregatedListUrlMapsRequest.create = function create(properties) { - return new AggregatedListUrlMapsRequest(properties); + AggregatedListTargetInstancesRequest.create = function create(properties) { + return new AggregatedListTargetInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.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.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest 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 */ - AggregatedListUrlMapsRequest.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")) @@ -34368,33 +34368,33 @@ }; /** - * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.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.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest 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 */ - AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @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.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @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 */ - AggregatedListUrlMapsRequest.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.AggregatedListUrlMapsRequest(); + 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) @@ -34441,30 +34441,30 @@ }; /** - * Decodes an AggregatedListUrlMapsRequest 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.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @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 */ - AggregatedListUrlMapsRequest.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 AggregatedListUrlMapsRequest message. + * Verifies an AggregatedListTargetInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @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 */ - AggregatedListUrlMapsRequest.verify = function verify(message) { + AggregatedListTargetInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -34510,17 +34510,17 @@ }; /** - * Creates an AggregatedListUrlMapsRequest 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.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest */ - AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -34548,15 +34548,15 @@ }; /** - * Creates a plain object from an AggregatedListUrlMapsRequest 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.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -34606,59 +34606,59 @@ }; /** - * Converts this AggregatedListUrlMapsRequest to JSON. + * Converts this AggregatedListTargetInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetInstancesRequest.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 AggregatedListTargetInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; }; - return AggregatedListUrlMapsRequest; + return AggregatedListTargetInstancesRequest; })(); - v1.AggregatedListVpnGatewaysRequest = (function() { + v1.AggregatedListTargetPoolsRequest = (function() { /** - * Properties of an AggregatedListVpnGatewaysRequest. + * Properties of an AggregatedListTargetPoolsRequest. * @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 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 AggregatedListVpnGatewaysRequest. + * Constructs a new AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListVpnGatewaysRequest. - * @implements IAggregatedListVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetPoolsRequest. + * @implements IAggregatedListTargetPoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set */ - function AggregatedListVpnGatewaysRequest(properties) { + function AggregatedListTargetPoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34666,136 +34666,1936 @@ } /** - * AggregatedListVpnGatewaysRequest filter. + * AggregatedListTargetPoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetPoolsRequest.prototype.filter = null; /** - * AggregatedListVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetPoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnGatewaysRequest maxResults. + * AggregatedListTargetPoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetPoolsRequest.prototype.maxResults = null; /** - * AggregatedListVpnGatewaysRequest orderBy. + * AggregatedListTargetPoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetPoolsRequest.prototype.orderBy = null; /** - * AggregatedListVpnGatewaysRequest pageToken. + * AggregatedListTargetPoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetPoolsRequest.prototype.pageToken = null; /** - * AggregatedListVpnGatewaysRequest project. + * AggregatedListTargetPoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetPoolsRequest.prototype.project = ""; /** - * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetPoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListVpnGatewaysRequest serviceProjectNumber. + * AggregatedListTargetPoolsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListVpnGatewaysRequest.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(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance */ - AggregatedListVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListVpnGatewaysRequest(properties); + AggregatedListTargetPoolsRequest.create = function create(properties) { + return new AggregatedListTargetPoolsRequest(properties); }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.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.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest 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 */ - AggregatedListVpnGatewaysRequest.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")) + 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 AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @static + * @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 + */ + AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * @function decode + * @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.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @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) { + 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(); + 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 AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListTargetPoolsRequest message. + * @function verify + * @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 + */ + AggregatedListTargetPoolsRequest.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 AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + */ + AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + 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 AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListTargetPoolsRequest.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 AggregatedListTargetPoolsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListTargetPoolsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; + }; + + return AggregatedListTargetPoolsRequest; + })(); + + v1.AggregatedListTargetTcpProxiesRequest = (function() { + + /** + * Properties of an AggregatedListTargetTcpProxiesRequest. + * @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 + */ + + /** + * Constructs a new AggregatedListTargetTcpProxiesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. + * @implements IAggregatedListTargetTcpProxiesRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + */ + function AggregatedListTargetTcpProxiesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListTargetTcpProxiesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + + /** + * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListTargetTcpProxiesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + + /** + * AggregatedListTargetTcpProxiesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + + /** + * AggregatedListTargetTcpProxiesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + + /** + * AggregatedListTargetTcpProxiesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + + /** + * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListTargetTcpProxiesRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + */ + AggregatedListTargetTcpProxiesRequest.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", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + */ + AggregatedListTargetTcpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetTcpProxiesRequest(properties); + }; + + /** + * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @static + * @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 + */ + AggregatedListTargetTcpProxiesRequest.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 AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @static + * @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 + */ + AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * @function decode + * @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.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @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) { + 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(); + 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 AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListTargetTcpProxiesRequest message. + * @function verify + * @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 + */ + AggregatedListTargetTcpProxiesRequest.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 AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + */ + AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + 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 AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListTargetTcpProxiesRequest.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 AggregatedListTargetTcpProxiesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListTargetTcpProxiesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; + }; + + return AggregatedListTargetTcpProxiesRequest; + })(); + + v1.AggregatedListTargetVpnGatewaysRequest = (function() { + + /** + * Properties of an AggregatedListTargetVpnGatewaysRequest. + * @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 + */ + + /** + * Constructs a new AggregatedListTargetVpnGatewaysRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. + * @implements IAggregatedListTargetVpnGatewaysRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + */ + function AggregatedListTargetVpnGatewaysRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListTargetVpnGatewaysRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + + /** + * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListTargetVpnGatewaysRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + + /** + * AggregatedListTargetVpnGatewaysRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + + /** + * AggregatedListTargetVpnGatewaysRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + + /** + * AggregatedListTargetVpnGatewaysRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + + /** + * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListTargetVpnGatewaysRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + */ + AggregatedListTargetVpnGatewaysRequest.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", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + */ + AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListTargetVpnGatewaysRequest(properties); + }; + + /** + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @static + * @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 + */ + AggregatedListTargetVpnGatewaysRequest.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 AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @static + * @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 + */ + AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * @function decode + * @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.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @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) { + 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(); + 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 AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListTargetVpnGatewaysRequest message. + * @function verify + * @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 + */ + AggregatedListTargetVpnGatewaysRequest.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 AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + */ + AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + 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 AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListTargetVpnGatewaysRequest.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 AggregatedListTargetVpnGatewaysRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListTargetVpnGatewaysRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; + }; + + return AggregatedListTargetVpnGatewaysRequest; + })(); + + v1.AggregatedListUrlMapsRequest = (function() { + + /** + * Properties of an AggregatedListUrlMapsRequest. + * @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 + */ + + /** + * Constructs a new AggregatedListUrlMapsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListUrlMapsRequest. + * @implements IAggregatedListUrlMapsRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + */ + function AggregatedListUrlMapsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListUrlMapsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.filter = null; + + /** + * AggregatedListUrlMapsRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListUrlMapsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.maxResults = null; + + /** + * AggregatedListUrlMapsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.orderBy = null; + + /** + * AggregatedListUrlMapsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.pageToken = null; + + /** + * AggregatedListUrlMapsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.project = ""; + + /** + * AggregatedListUrlMapsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListUrlMapsRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + */ + AggregatedListUrlMapsRequest.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", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + */ + AggregatedListUrlMapsRequest.create = function create(properties) { + return new AggregatedListUrlMapsRequest(properties); + }; + + /** + * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @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 + */ + AggregatedListUrlMapsRequest.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 AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @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 + */ + AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * @function decode + * @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.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @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) { + 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(); + 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 AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListUrlMapsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListUrlMapsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + 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 AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + */ + AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + 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 AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.project = ""; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.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 AggregatedListUrlMapsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListUrlMapsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + }; + + return AggregatedListUrlMapsRequest; + })(); + + v1.AggregatedListVpnGatewaysRequest = (function() { + + /** + * Properties of an AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1 + * @interface IAggregatedListVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListVpnGatewaysRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListVpnGatewaysRequest. + * @implements IAggregatedListVpnGatewaysRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + */ + function AggregatedListVpnGatewaysRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListVpnGatewaysRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.filter = null; + + /** + * AggregatedListVpnGatewaysRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListVpnGatewaysRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + + /** + * AggregatedListVpnGatewaysRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + + /** + * AggregatedListVpnGatewaysRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + + /** + * AggregatedListVpnGatewaysRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.project = ""; + + /** + * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListVpnGatewaysRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.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", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + */ + AggregatedListVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListVpnGatewaysRequest(properties); + }; + + /** + * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -75661,6 +77461,1703 @@ return CommitmentsScopedList; })(); + v1.CompositeHealthCheck = (function() { + + /** + * Properties of a CompositeHealthCheck. + * @memberof google.cloud.compute.v1 + * @interface ICompositeHealthCheck + * @property {string|null} [creationTimestamp] CompositeHealthCheck creationTimestamp + * @property {string|null} [description] CompositeHealthCheck description + * @property {string|null} [fingerprint] CompositeHealthCheck fingerprint + * @property {string|null} [healthDestination] CompositeHealthCheck healthDestination + * @property {Array.|null} [healthSources] CompositeHealthCheck healthSources + * @property {number|Long|null} [id] CompositeHealthCheck id + * @property {string|null} [kind] CompositeHealthCheck kind + * @property {string|null} [name] CompositeHealthCheck name + * @property {string|null} [region] CompositeHealthCheck region + * @property {string|null} [selfLink] CompositeHealthCheck selfLink + * @property {string|null} [selfLinkWithId] CompositeHealthCheck selfLinkWithId + */ + + /** + * Constructs a new CompositeHealthCheck. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CompositeHealthCheck. + * @implements ICompositeHealthCheck + * @constructor + * @param {google.cloud.compute.v1.ICompositeHealthCheck=} [properties] Properties to set + */ + function CompositeHealthCheck(properties) { + this.healthSources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompositeHealthCheck creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.creationTimestamp = null; + + /** + * CompositeHealthCheck description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.description = null; + + /** + * CompositeHealthCheck fingerprint. + * @member {string|null|undefined} fingerprint + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.fingerprint = null; + + /** + * CompositeHealthCheck healthDestination. + * @member {string|null|undefined} healthDestination + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.healthDestination = null; + + /** + * CompositeHealthCheck healthSources. + * @member {Array.} healthSources + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.healthSources = $util.emptyArray; + + /** + * CompositeHealthCheck id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.id = null; + + /** + * CompositeHealthCheck kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.kind = null; + + /** + * CompositeHealthCheck name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.name = null; + + /** + * CompositeHealthCheck region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.region = null; + + /** + * CompositeHealthCheck selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.selfLink = null; + + /** + * CompositeHealthCheck selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + */ + CompositeHealthCheck.prototype.selfLinkWithId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_fingerprint", { + get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_healthDestination", { + get: $util.oneOfGetter($oneOfFields = ["healthDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheck.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheck instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheck=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CompositeHealthCheck} CompositeHealthCheck instance + */ + CompositeHealthCheck.create = function create(properties) { + return new CompositeHealthCheck(properties); + }; + + /** + * Encodes the specified CompositeHealthCheck message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheck.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheck} message CompositeHealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheck.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.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.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) + writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.healthDestination != null && Object.hasOwnProperty.call(message, "healthDestination")) + writer.uint32(/* id 311098027, wireType 2 =*/2488784218).string(message.healthDestination); + if (message.healthSources != null && message.healthSources.length) + for (var i = 0; i < message.healthSources.length; ++i) + writer.uint32(/* id 397879509, wireType 2 =*/3183036074).string(message.healthSources[i]); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified CompositeHealthCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheck.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheck} message CompositeHealthCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheck.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @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.CompositeHealthCheck} CompositeHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheck.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.CompositeHealthCheck(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 234678500: { + message.fingerprint = reader.string(); + break; + } + case 311098027: { + message.healthDestination = reader.string(); + break; + } + case 397879509: { + if (!(message.healthSources && message.healthSources.length)) + message.healthSources = []; + message.healthSources.push(reader.string()); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthCheck message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CompositeHealthCheck} CompositeHealthCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheck.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheck message. + * @function verify + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheck.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + 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.fingerprint != null && message.hasOwnProperty("fingerprint")) { + properties._fingerprint = 1; + if (!$util.isString(message.fingerprint)) + return "fingerprint: string expected"; + } + if (message.healthDestination != null && message.hasOwnProperty("healthDestination")) { + properties._healthDestination = 1; + if (!$util.isString(message.healthDestination)) + return "healthDestination: string expected"; + } + if (message.healthSources != null && message.hasOwnProperty("healthSources")) { + if (!Array.isArray(message.healthSources)) + return "healthSources: array expected"; + for (var i = 0; i < message.healthSources.length; ++i) + if (!$util.isString(message.healthSources[i])) + return "healthSources: string[] expected"; + } + 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.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.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + return null; + }; + + /** + * Creates a CompositeHealthCheck message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CompositeHealthCheck} CompositeHealthCheck + */ + CompositeHealthCheck.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CompositeHealthCheck) + return object; + var message = new $root.google.cloud.compute.v1.CompositeHealthCheck(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.fingerprint != null) + message.fingerprint = String(object.fingerprint); + if (object.healthDestination != null) + message.healthDestination = String(object.healthDestination); + if (object.healthSources) { + if (!Array.isArray(object.healthSources)) + throw TypeError(".google.cloud.compute.v1.CompositeHealthCheck.healthSources: array expected"); + message.healthSources = []; + for (var i = 0; i < object.healthSources.length; ++i) + message.healthSources[i] = String(object.healthSources[i]); + } + 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.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.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheck message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {google.cloud.compute.v1.CompositeHealthCheck} message CompositeHealthCheck + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheck.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthSources = []; + 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.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.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + object.fingerprint = message.fingerprint; + if (options.oneofs) + object._fingerprint = "fingerprint"; + } + if (message.healthDestination != null && message.hasOwnProperty("healthDestination")) { + object.healthDestination = message.healthDestination; + if (options.oneofs) + object._healthDestination = "healthDestination"; + } + if (message.healthSources && message.healthSources.length) { + object.healthSources = []; + for (var j = 0; j < message.healthSources.length; ++j) + object.healthSources[j] = message.healthSources[j]; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this CompositeHealthCheck to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheck.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheck + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CompositeHealthCheck + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CompositeHealthCheck"; + }; + + return CompositeHealthCheck; + })(); + + v1.CompositeHealthCheckAggregatedList = (function() { + + /** + * Properties of a CompositeHealthCheckAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface ICompositeHealthCheckAggregatedList + * @property {string|null} [id] CompositeHealthCheckAggregatedList id + * @property {Object.|null} [items] CompositeHealthCheckAggregatedList items + * @property {string|null} [kind] CompositeHealthCheckAggregatedList kind + * @property {string|null} [nextPageToken] CompositeHealthCheckAggregatedList nextPageToken + * @property {string|null} [selfLink] CompositeHealthCheckAggregatedList selfLink + * @property {Array.|null} [unreachables] CompositeHealthCheckAggregatedList unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] CompositeHealthCheckAggregatedList warning + */ + + /** + * Constructs a new CompositeHealthCheckAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CompositeHealthCheckAggregatedList. + * @implements ICompositeHealthCheckAggregatedList + * @constructor + * @param {google.cloud.compute.v1.ICompositeHealthCheckAggregatedList=} [properties] Properties to set + */ + function CompositeHealthCheckAggregatedList(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]]; + } + + /** + * CompositeHealthCheckAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.id = null; + + /** + * CompositeHealthCheckAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.items = $util.emptyObject; + + /** + * CompositeHealthCheckAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.kind = null; + + /** + * CompositeHealthCheckAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.nextPageToken = null; + + /** + * CompositeHealthCheckAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.selfLink = null; + + /** + * CompositeHealthCheckAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * CompositeHealthCheckAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + */ + CompositeHealthCheckAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheckAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList instance + */ + CompositeHealthCheckAggregatedList.create = function create(properties) { + return new CompositeHealthCheckAggregatedList(properties); + }; + + /** + * Encodes the specified CompositeHealthCheckAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckAggregatedList} message CompositeHealthCheckAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckAggregatedList.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.CompositeHealthChecksScopedList.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 CompositeHealthCheckAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckAggregatedList} message CompositeHealthCheckAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @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.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckAggregatedList.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.CompositeHealthCheckAggregatedList(), 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.CompositeHealthChecksScopedList.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; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthCheckAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheckAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheckAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.CompositeHealthChecksScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.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 CompositeHealthCheckAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CompositeHealthCheckAggregatedList} CompositeHealthCheckAggregatedList + */ + CompositeHealthCheckAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CompositeHealthCheckAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.CompositeHealthCheckAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.CompositeHealthCheckAggregatedList.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.CompositeHealthCheckAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.CompositeHealthChecksScopedList.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.CompositeHealthCheckAggregatedList.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.CompositeHealthCheckAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheckAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {google.cloud.compute.v1.CompositeHealthCheckAggregatedList} message CompositeHealthCheckAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheckAggregatedList.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._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1.CompositeHealthChecksScopedList.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"; + } + return object; + }; + + /** + * Converts this CompositeHealthCheckAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheckAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheckAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CompositeHealthCheckAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheckAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CompositeHealthCheckAggregatedList"; + }; + + return CompositeHealthCheckAggregatedList; + })(); + + v1.CompositeHealthCheckList = (function() { + + /** + * Properties of a CompositeHealthCheckList. + * @memberof google.cloud.compute.v1 + * @interface ICompositeHealthCheckList + * @property {string|null} [id] CompositeHealthCheckList id + * @property {Array.|null} [items] CompositeHealthCheckList items + * @property {string|null} [kind] CompositeHealthCheckList kind + * @property {string|null} [nextPageToken] CompositeHealthCheckList nextPageToken + * @property {string|null} [selfLink] CompositeHealthCheckList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] CompositeHealthCheckList warning + */ + + /** + * Constructs a new CompositeHealthCheckList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CompositeHealthCheckList. + * @implements ICompositeHealthCheckList + * @constructor + * @param {google.cloud.compute.v1.ICompositeHealthCheckList=} [properties] Properties to set + */ + function CompositeHealthCheckList(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]]; + } + + /** + * CompositeHealthCheckList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.id = null; + + /** + * CompositeHealthCheckList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.items = $util.emptyArray; + + /** + * CompositeHealthCheckList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.kind = null; + + /** + * CompositeHealthCheckList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.nextPageToken = null; + + /** + * CompositeHealthCheckList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.selfLink = null; + + /** + * CompositeHealthCheckList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @instance + */ + CompositeHealthCheckList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthCheckList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthCheckList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CompositeHealthCheckList} CompositeHealthCheckList instance + */ + CompositeHealthCheckList.create = function create(properties) { + return new CompositeHealthCheckList(properties); + }; + + /** + * Encodes the specified CompositeHealthCheckList message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckList} message CompositeHealthCheckList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckList.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.CompositeHealthCheck.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 CompositeHealthCheckList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthCheckList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthCheckList} message CompositeHealthCheckList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthCheckList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthCheckList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @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.CompositeHealthCheckList} CompositeHealthCheckList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckList.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.CompositeHealthCheckList(); + 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.CompositeHealthCheck.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 CompositeHealthCheckList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CompositeHealthCheckList} CompositeHealthCheckList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthCheckList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthCheckList message. + * @function verify + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthCheckList.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.CompositeHealthCheck.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 CompositeHealthCheckList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CompositeHealthCheckList} CompositeHealthCheckList + */ + CompositeHealthCheckList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CompositeHealthCheckList) + return object; + var message = new $root.google.cloud.compute.v1.CompositeHealthCheckList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.CompositeHealthCheckList.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.CompositeHealthCheckList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.CompositeHealthCheck.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.CompositeHealthCheckList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a CompositeHealthCheckList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {google.cloud.compute.v1.CompositeHealthCheckList} message CompositeHealthCheckList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthCheckList.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.CompositeHealthCheck.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 CompositeHealthCheckList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthCheckList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthCheckList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CompositeHealthCheckList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthCheckList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CompositeHealthCheckList"; + }; + + return CompositeHealthCheckList; + })(); + + v1.CompositeHealthChecksScopedList = (function() { + + /** + * Properties of a CompositeHealthChecksScopedList. + * @memberof google.cloud.compute.v1 + * @interface ICompositeHealthChecksScopedList + * @property {Array.|null} [compositeHealthChecks] CompositeHealthChecksScopedList compositeHealthChecks + * @property {google.cloud.compute.v1.IWarning|null} [warning] CompositeHealthChecksScopedList warning + */ + + /** + * Constructs a new CompositeHealthChecksScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a CompositeHealthChecksScopedList. + * @implements ICompositeHealthChecksScopedList + * @constructor + * @param {google.cloud.compute.v1.ICompositeHealthChecksScopedList=} [properties] Properties to set + */ + function CompositeHealthChecksScopedList(properties) { + this.compositeHealthChecks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompositeHealthChecksScopedList compositeHealthChecks. + * @member {Array.} compositeHealthChecks + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @instance + */ + CompositeHealthChecksScopedList.prototype.compositeHealthChecks = $util.emptyArray; + + /** + * CompositeHealthChecksScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @instance + */ + CompositeHealthChecksScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(CompositeHealthChecksScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CompositeHealthChecksScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthChecksScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList instance + */ + CompositeHealthChecksScopedList.create = function create(properties) { + return new CompositeHealthChecksScopedList(properties); + }; + + /** + * Encodes the specified CompositeHealthChecksScopedList message. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthChecksScopedList} message CompositeHealthChecksScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksScopedList.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.compositeHealthChecks != null && message.compositeHealthChecks.length) + for (var i = 0; i < message.compositeHealthChecks.length; ++i) + $root.google.cloud.compute.v1.CompositeHealthCheck.encode(message.compositeHealthChecks[i], writer.uint32(/* id 517891062, wireType 2 =*/4143128498).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompositeHealthChecksScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.CompositeHealthChecksScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.ICompositeHealthChecksScopedList} message CompositeHealthChecksScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompositeHealthChecksScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @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.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksScopedList.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.CompositeHealthChecksScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 517891062: { + if (!(message.compositeHealthChecks && message.compositeHealthChecks.length)) + message.compositeHealthChecks = []; + message.compositeHealthChecks.push($root.google.cloud.compute.v1.CompositeHealthCheck.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompositeHealthChecksScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompositeHealthChecksScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompositeHealthChecksScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompositeHealthChecksScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.compositeHealthChecks != null && message.hasOwnProperty("compositeHealthChecks")) { + if (!Array.isArray(message.compositeHealthChecks)) + return "compositeHealthChecks: array expected"; + for (var i = 0; i < message.compositeHealthChecks.length; ++i) { + var error = $root.google.cloud.compute.v1.CompositeHealthCheck.verify(message.compositeHealthChecks[i]); + if (error) + return "compositeHealthChecks." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a CompositeHealthChecksScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.CompositeHealthChecksScopedList} CompositeHealthChecksScopedList + */ + CompositeHealthChecksScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.CompositeHealthChecksScopedList) + return object; + var message = new $root.google.cloud.compute.v1.CompositeHealthChecksScopedList(); + if (object.compositeHealthChecks) { + if (!Array.isArray(object.compositeHealthChecks)) + throw TypeError(".google.cloud.compute.v1.CompositeHealthChecksScopedList.compositeHealthChecks: array expected"); + message.compositeHealthChecks = []; + for (var i = 0; i < object.compositeHealthChecks.length; ++i) { + if (typeof object.compositeHealthChecks[i] !== "object") + throw TypeError(".google.cloud.compute.v1.CompositeHealthChecksScopedList.compositeHealthChecks: object expected"); + message.compositeHealthChecks[i] = $root.google.cloud.compute.v1.CompositeHealthCheck.fromObject(object.compositeHealthChecks[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.CompositeHealthChecksScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a CompositeHealthChecksScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.CompositeHealthChecksScopedList} message CompositeHealthChecksScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompositeHealthChecksScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.compositeHealthChecks = []; + 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.compositeHealthChecks && message.compositeHealthChecks.length) { + object.compositeHealthChecks = []; + for (var j = 0; j < message.compositeHealthChecks.length; ++j) + object.compositeHealthChecks[j] = $root.google.cloud.compute.v1.CompositeHealthCheck.toObject(message.compositeHealthChecks[j], options); + } + return object; + }; + + /** + * Converts this CompositeHealthChecksScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @instance + * @returns {Object.} JSON object + */ + CompositeHealthChecksScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CompositeHealthChecksScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.CompositeHealthChecksScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompositeHealthChecksScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.CompositeHealthChecksScopedList"; + }; + + return CompositeHealthChecksScopedList; + })(); + v1.ConfidentialInstanceConfig = (function() { /** @@ -96207,6 +99704,295 @@ return DeleteRegionBackendServiceRequest; })(); + v1.DeleteRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a DeleteRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] DeleteRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {string|null} [project] DeleteRegionCompositeHealthCheckRequest project + * @property {string|null} [region] DeleteRegionCompositeHealthCheckRequest region + * @property {string|null} [requestId] DeleteRegionCompositeHealthCheckRequest requestId + */ + + /** + * Constructs a new DeleteRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionCompositeHealthCheckRequest. + * @implements IDeleteRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function DeleteRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * DeleteRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * DeleteRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * DeleteRegionCompositeHealthCheckRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @instance + */ + DeleteRegionCompositeHealthCheckRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionCompositeHealthCheckRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest instance + */ + DeleteRegionCompositeHealthCheckRequest.create = function create(properties) { + return new DeleteRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest} message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionCompositeHealthCheckRequest.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.compositeHealthCheck != null && Object.hasOwnProperty.call(message, "compositeHealthCheck")) + writer.uint32(/* id 466984989, wireType 2 =*/3735879914).string(message.compositeHealthCheck); + return writer; + }; + + /** + * Encodes the specified DeleteRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest} message DeleteRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @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.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionCompositeHealthCheckRequest.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.DeleteRegionCompositeHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 466984989: { + message.compositeHealthCheck = 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 DeleteRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionCompositeHealthCheckRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + if (!$util.isString(message.compositeHealthCheck)) + return "compositeHealthCheck: 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 DeleteRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest} DeleteRegionCompositeHealthCheckRequest + */ + DeleteRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheck != null) + message.compositeHealthCheck = String(object.compositeHealthCheck); + 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 DeleteRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest} message DeleteRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.compositeHealthCheck = ""; + } + 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.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + object.compositeHealthCheck = message.compositeHealthCheck; + return object; + }; + + /** + * Converts this DeleteRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest"; + }; + + return DeleteRegionCompositeHealthCheckRequest; + })(); + v1.DeleteRegionDiskRequest = (function() { /** @@ -97363,6 +101149,295 @@ return DeleteRegionHealthCheckServiceRequest; })(); + v1.DeleteRegionHealthSourceRequest = (function() { + + /** + * Properties of a DeleteRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteRegionHealthSourceRequest + * @property {string|null} [healthSource] DeleteRegionHealthSourceRequest healthSource + * @property {string|null} [project] DeleteRegionHealthSourceRequest project + * @property {string|null} [region] DeleteRegionHealthSourceRequest region + * @property {string|null} [requestId] DeleteRegionHealthSourceRequest requestId + */ + + /** + * Constructs a new DeleteRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteRegionHealthSourceRequest. + * @implements IDeleteRegionHealthSourceRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteRegionHealthSourceRequest=} [properties] Properties to set + */ + function DeleteRegionHealthSourceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteRegionHealthSourceRequest healthSource. + * @member {string} healthSource + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @instance + */ + DeleteRegionHealthSourceRequest.prototype.healthSource = ""; + + /** + * DeleteRegionHealthSourceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @instance + */ + DeleteRegionHealthSourceRequest.prototype.project = ""; + + /** + * DeleteRegionHealthSourceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @instance + */ + DeleteRegionHealthSourceRequest.prototype.region = ""; + + /** + * DeleteRegionHealthSourceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @instance + */ + DeleteRegionHealthSourceRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DeleteRegionHealthSourceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteRegionHealthSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteRegionHealthSourceRequest} DeleteRegionHealthSourceRequest instance + */ + DeleteRegionHealthSourceRequest.create = function create(properties) { + return new DeleteRegionHealthSourceRequest(properties); + }; + + /** + * Encodes the specified DeleteRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionHealthSourceRequest} message DeleteRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionHealthSourceRequest.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.healthSource != null && Object.hasOwnProperty.call(message, "healthSource")) + writer.uint32(/* id 376521566, wireType 2 =*/3012172530).string(message.healthSource); + return writer; + }; + + /** + * Encodes the specified DeleteRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteRegionHealthSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IDeleteRegionHealthSourceRequest} message DeleteRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteRegionHealthSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @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.DeleteRegionHealthSourceRequest} DeleteRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionHealthSourceRequest.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.DeleteRegionHealthSourceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 376521566: { + message.healthSource = 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 DeleteRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteRegionHealthSourceRequest} DeleteRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteRegionHealthSourceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteRegionHealthSourceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + if (!$util.isString(message.healthSource)) + return "healthSource: 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 DeleteRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteRegionHealthSourceRequest} DeleteRegionHealthSourceRequest + */ + DeleteRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteRegionHealthSourceRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteRegionHealthSourceRequest(); + if (object.healthSource != null) + message.healthSource = String(object.healthSource); + 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 DeleteRegionHealthSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.DeleteRegionHealthSourceRequest} message DeleteRegionHealthSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteRegionHealthSourceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthSource = ""; + } + 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.healthSource != null && message.hasOwnProperty("healthSource")) + object.healthSource = message.healthSource; + return object; + }; + + /** + * Converts this DeleteRegionHealthSourceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteRegionHealthSourceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteRegionHealthSourceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteRegionHealthSourceRequest"; + }; + + return DeleteRegionHealthSourceRequest; + })(); + v1.DeleteRegionInstanceGroupManagerRequest = (function() { /** @@ -171143,6 +175218,258 @@ return GetRegionCommitmentRequest; })(); + v1.GetRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a GetRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] GetRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {string|null} [project] GetRegionCompositeHealthCheckRequest project + * @property {string|null} [region] GetRegionCompositeHealthCheckRequest region + */ + + /** + * Constructs a new GetRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionCompositeHealthCheckRequest. + * @implements IGetRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function GetRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @instance + */ + GetRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * GetRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @instance + */ + GetRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * GetRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @instance + */ + GetRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * Creates a new GetRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest instance + */ + GetRegionCompositeHealthCheckRequest.create = function create(properties) { + return new GetRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest} message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionCompositeHealthCheckRequest.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.compositeHealthCheck != null && Object.hasOwnProperty.call(message, "compositeHealthCheck")) + writer.uint32(/* id 466984989, wireType 2 =*/3735879914).string(message.compositeHealthCheck); + return writer; + }; + + /** + * Encodes the specified GetRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest} message GetRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @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.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionCompositeHealthCheckRequest.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.GetRegionCompositeHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 466984989: { + message.compositeHealthCheck = 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 GetRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionCompositeHealthCheckRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + if (!$util.isString(message.compositeHealthCheck)) + return "compositeHealthCheck: 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 GetRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest} GetRegionCompositeHealthCheckRequest + */ + GetRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheck != null) + message.compositeHealthCheck = String(object.compositeHealthCheck); + 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 GetRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest} message GetRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.compositeHealthCheck = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + object.compositeHealthCheck = message.compositeHealthCheck; + return object; + }; + + /** + * Converts this GetRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest"; + }; + + return GetRegionCompositeHealthCheckRequest; + })(); + v1.GetRegionDiskRequest = (function() { /** @@ -172403,6 +176730,258 @@ return GetRegionHealthCheckServiceRequest; })(); + v1.GetRegionHealthSourceRequest = (function() { + + /** + * Properties of a GetRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetRegionHealthSourceRequest + * @property {string|null} [healthSource] GetRegionHealthSourceRequest healthSource + * @property {string|null} [project] GetRegionHealthSourceRequest project + * @property {string|null} [region] GetRegionHealthSourceRequest region + */ + + /** + * Constructs a new GetRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetRegionHealthSourceRequest. + * @implements IGetRegionHealthSourceRequest + * @constructor + * @param {google.cloud.compute.v1.IGetRegionHealthSourceRequest=} [properties] Properties to set + */ + function GetRegionHealthSourceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetRegionHealthSourceRequest healthSource. + * @member {string} healthSource + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @instance + */ + GetRegionHealthSourceRequest.prototype.healthSource = ""; + + /** + * GetRegionHealthSourceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @instance + */ + GetRegionHealthSourceRequest.prototype.project = ""; + + /** + * GetRegionHealthSourceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @instance + */ + GetRegionHealthSourceRequest.prototype.region = ""; + + /** + * Creates a new GetRegionHealthSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetRegionHealthSourceRequest} GetRegionHealthSourceRequest instance + */ + GetRegionHealthSourceRequest.create = function create(properties) { + return new GetRegionHealthSourceRequest(properties); + }; + + /** + * Encodes the specified GetRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionHealthSourceRequest} message GetRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionHealthSourceRequest.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.healthSource != null && Object.hasOwnProperty.call(message, "healthSource")) + writer.uint32(/* id 376521566, wireType 2 =*/3012172530).string(message.healthSource); + return writer; + }; + + /** + * Encodes the specified GetRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetRegionHealthSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IGetRegionHealthSourceRequest} message GetRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetRegionHealthSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @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.GetRegionHealthSourceRequest} GetRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionHealthSourceRequest.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.GetRegionHealthSourceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 376521566: { + message.healthSource = 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 GetRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetRegionHealthSourceRequest} GetRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetRegionHealthSourceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetRegionHealthSourceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + if (!$util.isString(message.healthSource)) + return "healthSource: 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 GetRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetRegionHealthSourceRequest} GetRegionHealthSourceRequest + */ + GetRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetRegionHealthSourceRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetRegionHealthSourceRequest(); + if (object.healthSource != null) + message.healthSource = String(object.healthSource); + 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 GetRegionHealthSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.GetRegionHealthSourceRequest} message GetRegionHealthSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetRegionHealthSourceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthSource = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + object.healthSource = message.healthSource; + return object; + }; + + /** + * Converts this GetRegionHealthSourceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @instance + * @returns {Object.} JSON object + */ + GetRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetRegionHealthSourceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetRegionHealthSourceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetRegionHealthSourceRequest"; + }; + + return GetRegionHealthSourceRequest; + })(); + v1.GetRegionInstanceGroupManagerRequest = (function() { /** @@ -185904,6 +190483,1208 @@ return GetUrlMapRequest; })(); + v1.GetVersionOperationMetadata = (function() { + + /** + * Properties of a GetVersionOperationMetadata. + * @memberof google.cloud.compute.v1 + * @interface IGetVersionOperationMetadata + * @property {google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo|null} [inlineSbomInfo] GetVersionOperationMetadata inlineSbomInfo + */ + + /** + * Constructs a new GetVersionOperationMetadata. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetVersionOperationMetadata. + * @implements IGetVersionOperationMetadata + * @constructor + * @param {google.cloud.compute.v1.IGetVersionOperationMetadata=} [properties] Properties to set + */ + function GetVersionOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionOperationMetadata inlineSbomInfo. + * @member {google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo|null|undefined} inlineSbomInfo + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @instance + */ + GetVersionOperationMetadata.prototype.inlineSbomInfo = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetVersionOperationMetadata.prototype, "_inlineSbomInfo", { + get: $util.oneOfGetter($oneOfFields = ["inlineSbomInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetVersionOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1.IGetVersionOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetVersionOperationMetadata} GetVersionOperationMetadata instance + */ + GetVersionOperationMetadata.create = function create(properties) { + return new GetVersionOperationMetadata(properties); + }; + + /** + * Encodes the specified GetVersionOperationMetadata message. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1.IGetVersionOperationMetadata} message GetVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inlineSbomInfo != null && Object.hasOwnProperty.call(message, "inlineSbomInfo")) + $root.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.encode(message.inlineSbomInfo, writer.uint32(/* id 7079706, wireType 2 =*/56637650).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GetVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1.IGetVersionOperationMetadata} message GetVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @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.GetVersionOperationMetadata} GetVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadata.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.GetVersionOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 7079706: { + message.inlineSbomInfo = $root.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetVersionOperationMetadata} GetVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionOperationMetadata message. + * @function verify + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.inlineSbomInfo != null && message.hasOwnProperty("inlineSbomInfo")) { + properties._inlineSbomInfo = 1; + { + var error = $root.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.verify(message.inlineSbomInfo); + if (error) + return "inlineSbomInfo." + error; + } + } + return null; + }; + + /** + * Creates a GetVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetVersionOperationMetadata} GetVersionOperationMetadata + */ + GetVersionOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetVersionOperationMetadata) + return object; + var message = new $root.google.cloud.compute.v1.GetVersionOperationMetadata(); + if (object.inlineSbomInfo != null) { + if (typeof object.inlineSbomInfo !== "object") + throw TypeError(".google.cloud.compute.v1.GetVersionOperationMetadata.inlineSbomInfo: object expected"); + message.inlineSbomInfo = $root.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.fromObject(object.inlineSbomInfo); + } + return message; + }; + + /** + * Creates a plain object from a GetVersionOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1.GetVersionOperationMetadata} message GetVersionOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.inlineSbomInfo != null && message.hasOwnProperty("inlineSbomInfo")) { + object.inlineSbomInfo = $root.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.toObject(message.inlineSbomInfo, options); + if (options.oneofs) + object._inlineSbomInfo = "inlineSbomInfo"; + } + return object; + }; + + /** + * Converts this GetVersionOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + GetVersionOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetVersionOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetVersionOperationMetadata"; + }; + + return GetVersionOperationMetadata; + })(); + + v1.GetVersionOperationMetadataSbomInfo = (function() { + + /** + * Properties of a GetVersionOperationMetadataSbomInfo. + * @memberof google.cloud.compute.v1 + * @interface IGetVersionOperationMetadataSbomInfo + * @property {Object.|null} [currentComponentVersions] GetVersionOperationMetadataSbomInfo currentComponentVersions + * @property {Object.|null} [targetComponentVersions] GetVersionOperationMetadataSbomInfo targetComponentVersions + */ + + /** + * Constructs a new GetVersionOperationMetadataSbomInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetVersionOperationMetadataSbomInfo. + * @implements IGetVersionOperationMetadataSbomInfo + * @constructor + * @param {google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo=} [properties] Properties to set + */ + function GetVersionOperationMetadataSbomInfo(properties) { + this.currentComponentVersions = {}; + this.targetComponentVersions = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionOperationMetadataSbomInfo currentComponentVersions. + * @member {Object.} currentComponentVersions + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @instance + */ + GetVersionOperationMetadataSbomInfo.prototype.currentComponentVersions = $util.emptyObject; + + /** + * GetVersionOperationMetadataSbomInfo targetComponentVersions. + * @member {Object.} targetComponentVersions + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @instance + */ + GetVersionOperationMetadataSbomInfo.prototype.targetComponentVersions = $util.emptyObject; + + /** + * Creates a new GetVersionOperationMetadataSbomInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo instance + */ + GetVersionOperationMetadataSbomInfo.create = function create(properties) { + return new GetVersionOperationMetadataSbomInfo(properties); + }; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo} message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadataSbomInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.currentComponentVersions != null && Object.hasOwnProperty.call(message, "currentComponentVersions")) + for (var keys = Object.keys(message.currentComponentVersions), i = 0; i < keys.length; ++i) + writer.uint32(/* id 273325091, wireType 2 =*/2186600730).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.currentComponentVersions[keys[i]]).ldelim(); + if (message.targetComponentVersions != null && Object.hasOwnProperty.call(message, "targetComponentVersions")) + for (var keys = Object.keys(message.targetComponentVersions), i = 0; i < keys.length; ++i) + writer.uint32(/* id 345997579, wireType 2 =*/2767980634).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.targetComponentVersions[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1.IGetVersionOperationMetadataSbomInfo} message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadataSbomInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @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.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadataSbomInfo.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.GetVersionOperationMetadataSbomInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 273325091: { + if (message.currentComponentVersions === $util.emptyObject) + message.currentComponentVersions = {}; + 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.currentComponentVersions[key] = value; + break; + } + case 345997579: { + if (message.targetComponentVersions === $util.emptyObject) + message.targetComponentVersions = {}; + 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.targetComponentVersions[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadataSbomInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionOperationMetadataSbomInfo message. + * @function verify + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionOperationMetadataSbomInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.currentComponentVersions != null && message.hasOwnProperty("currentComponentVersions")) { + if (!$util.isObject(message.currentComponentVersions)) + return "currentComponentVersions: object expected"; + var key = Object.keys(message.currentComponentVersions); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.currentComponentVersions[key[i]])) + return "currentComponentVersions: string{k:string} expected"; + } + if (message.targetComponentVersions != null && message.hasOwnProperty("targetComponentVersions")) { + if (!$util.isObject(message.targetComponentVersions)) + return "targetComponentVersions: object expected"; + var key = Object.keys(message.targetComponentVersions); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.targetComponentVersions[key[i]])) + return "targetComponentVersions: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a GetVersionOperationMetadataSbomInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo + */ + GetVersionOperationMetadataSbomInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo) + return object; + var message = new $root.google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo(); + if (object.currentComponentVersions) { + if (typeof object.currentComponentVersions !== "object") + throw TypeError(".google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.currentComponentVersions: object expected"); + message.currentComponentVersions = {}; + for (var keys = Object.keys(object.currentComponentVersions), i = 0; i < keys.length; ++i) + message.currentComponentVersions[keys[i]] = String(object.currentComponentVersions[keys[i]]); + } + if (object.targetComponentVersions) { + if (typeof object.targetComponentVersions !== "object") + throw TypeError(".google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo.targetComponentVersions: object expected"); + message.targetComponentVersions = {}; + for (var keys = Object.keys(object.targetComponentVersions), i = 0; i < keys.length; ++i) + message.targetComponentVersions[keys[i]] = String(object.targetComponentVersions[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a GetVersionOperationMetadataSbomInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo} message GetVersionOperationMetadataSbomInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionOperationMetadataSbomInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.currentComponentVersions = {}; + object.targetComponentVersions = {}; + } + var keys2; + if (message.currentComponentVersions && (keys2 = Object.keys(message.currentComponentVersions)).length) { + object.currentComponentVersions = {}; + for (var j = 0; j < keys2.length; ++j) + object.currentComponentVersions[keys2[j]] = message.currentComponentVersions[keys2[j]]; + } + if (message.targetComponentVersions && (keys2 = Object.keys(message.targetComponentVersions)).length) { + object.targetComponentVersions = {}; + for (var j = 0; j < keys2.length; ++j) + object.targetComponentVersions[keys2[j]] = message.targetComponentVersions[keys2[j]]; + } + return object; + }; + + /** + * Converts this GetVersionOperationMetadataSbomInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @instance + * @returns {Object.} JSON object + */ + GetVersionOperationMetadataSbomInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionOperationMetadataSbomInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionOperationMetadataSbomInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetVersionOperationMetadataSbomInfo"; + }; + + return GetVersionOperationMetadataSbomInfo; + })(); + + v1.GetVersionReservationSlotRequest = (function() { + + /** + * Properties of a GetVersionReservationSlotRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetVersionReservationSlotRequest + * @property {string|null} [parentName] GetVersionReservationSlotRequest parentName + * @property {string|null} [project] GetVersionReservationSlotRequest project + * @property {string|null} [requestId] GetVersionReservationSlotRequest requestId + * @property {string|null} [reservationSlot] GetVersionReservationSlotRequest reservationSlot + * @property {google.cloud.compute.v1.IReservationSlotsGetVersionRequest|null} [reservationSlotsGetVersionRequestResource] GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource + * @property {string|null} [zone] GetVersionReservationSlotRequest zone + */ + + /** + * Constructs a new GetVersionReservationSlotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetVersionReservationSlotRequest. + * @implements IGetVersionReservationSlotRequest + * @constructor + * @param {google.cloud.compute.v1.IGetVersionReservationSlotRequest=} [properties] Properties to set + */ + function GetVersionReservationSlotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionReservationSlotRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.parentName = ""; + + /** + * GetVersionReservationSlotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.project = ""; + + /** + * GetVersionReservationSlotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.requestId = null; + + /** + * GetVersionReservationSlotRequest reservationSlot. + * @member {string} reservationSlot + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.reservationSlot = ""; + + /** + * GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource. + * @member {google.cloud.compute.v1.IReservationSlotsGetVersionRequest|null|undefined} reservationSlotsGetVersionRequestResource + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.reservationSlotsGetVersionRequestResource = null; + + /** + * GetVersionReservationSlotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetVersionReservationSlotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetVersionReservationSlotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IGetVersionReservationSlotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest instance + */ + GetVersionReservationSlotRequest.create = function create(properties) { + return new GetVersionReservationSlotRequest(properties); + }; + + /** + * Encodes the specified GetVersionReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSlotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IGetVersionReservationSlotRequest} message GetVersionReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSlotRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.reservationSlot != null && Object.hasOwnProperty.call(message, "reservationSlot")) + writer.uint32(/* id 277470865, wireType 2 =*/2219766922).string(message.reservationSlot); + if (message.reservationSlotsGetVersionRequestResource != null && Object.hasOwnProperty.call(message, "reservationSlotsGetVersionRequestResource")) + $root.google.cloud.compute.v1.ReservationSlotsGetVersionRequest.encode(message.reservationSlotsGetVersionRequestResource, writer.uint32(/* id 335316011, wireType 2 =*/2682528090).fork()).ldelim(); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + return writer; + }; + + /** + * Encodes the specified GetVersionReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSlotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.IGetVersionReservationSlotRequest} message GetVersionReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSlotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @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.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSlotRequest.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.GetVersionReservationSlotRequest(); + 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 37109963: { + message.requestId = reader.string(); + break; + } + case 277470865: { + message.reservationSlot = reader.string(); + break; + } + case 335316011: { + message.reservationSlotsGetVersionRequestResource = $root.google.cloud.compute.v1.ReservationSlotsGetVersionRequest.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSlotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionReservationSlotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionReservationSlotRequest.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.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + if (!$util.isString(message.reservationSlot)) + return "reservationSlot: string expected"; + if (message.reservationSlotsGetVersionRequestResource != null && message.hasOwnProperty("reservationSlotsGetVersionRequestResource")) { + var error = $root.google.cloud.compute.v1.ReservationSlotsGetVersionRequest.verify(message.reservationSlotsGetVersionRequestResource); + if (error) + return "reservationSlotsGetVersionRequestResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetVersionReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest + */ + GetVersionReservationSlotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetVersionReservationSlotRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetVersionReservationSlotRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.reservationSlot != null) + message.reservationSlot = String(object.reservationSlot); + if (object.reservationSlotsGetVersionRequestResource != null) { + if (typeof object.reservationSlotsGetVersionRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.GetVersionReservationSlotRequest.reservationSlotsGetVersionRequestResource: object expected"); + message.reservationSlotsGetVersionRequestResource = $root.google.cloud.compute.v1.ReservationSlotsGetVersionRequest.fromObject(object.reservationSlotsGetVersionRequestResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetVersionReservationSlotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1.GetVersionReservationSlotRequest} message GetVersionReservationSlotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionReservationSlotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.reservationSlot = ""; + object.reservationSlotsGetVersionRequestResource = null; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + object.reservationSlot = message.reservationSlot; + if (message.reservationSlotsGetVersionRequestResource != null && message.hasOwnProperty("reservationSlotsGetVersionRequestResource")) + object.reservationSlotsGetVersionRequestResource = $root.google.cloud.compute.v1.ReservationSlotsGetVersionRequest.toObject(message.reservationSlotsGetVersionRequestResource, options); + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + return object; + }; + + /** + * Converts this GetVersionReservationSlotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @instance + * @returns {Object.} JSON object + */ + GetVersionReservationSlotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionReservationSlotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetVersionReservationSlotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionReservationSlotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetVersionReservationSlotRequest"; + }; + + return GetVersionReservationSlotRequest; + })(); + + v1.GetVersionReservationSubBlockRequest = (function() { + + /** + * Properties of a GetVersionReservationSubBlockRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetVersionReservationSubBlockRequest + * @property {string|null} [parentName] GetVersionReservationSubBlockRequest parentName + * @property {string|null} [project] GetVersionReservationSubBlockRequest project + * @property {string|null} [requestId] GetVersionReservationSubBlockRequest requestId + * @property {string|null} [reservationSubBlock] GetVersionReservationSubBlockRequest reservationSubBlock + * @property {google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest|null} [reservationSubBlocksGetVersionRequestResource] GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource + * @property {string|null} [zone] GetVersionReservationSubBlockRequest zone + */ + + /** + * Constructs a new GetVersionReservationSubBlockRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetVersionReservationSubBlockRequest. + * @implements IGetVersionReservationSubBlockRequest + * @constructor + * @param {google.cloud.compute.v1.IGetVersionReservationSubBlockRequest=} [properties] Properties to set + */ + function GetVersionReservationSubBlockRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionReservationSubBlockRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.parentName = ""; + + /** + * GetVersionReservationSubBlockRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.project = ""; + + /** + * GetVersionReservationSubBlockRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.requestId = null; + + /** + * GetVersionReservationSubBlockRequest reservationSubBlock. + * @member {string} reservationSubBlock + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.reservationSubBlock = ""; + + /** + * GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource. + * @member {google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest|null|undefined} reservationSubBlocksGetVersionRequestResource + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.reservationSubBlocksGetVersionRequestResource = null; + + /** + * GetVersionReservationSubBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetVersionReservationSubBlockRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetVersionReservationSubBlockRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1.IGetVersionReservationSubBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest instance + */ + GetVersionReservationSubBlockRequest.create = function create(properties) { + return new GetVersionReservationSubBlockRequest(properties); + }; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1.IGetVersionReservationSubBlockRequest} message GetVersionReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSubBlockRequest.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.reservationSubBlock != null && Object.hasOwnProperty.call(message, "reservationSubBlock")) + writer.uint32(/* id 22750491, wireType 2 =*/182003930).string(message.reservationSubBlock); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.reservationSubBlocksGetVersionRequestResource != null && Object.hasOwnProperty.call(message, "reservationSubBlocksGetVersionRequestResource")) + $root.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.encode(message.reservationSubBlocksGetVersionRequestResource, writer.uint32(/* id 223034677, wireType 2 =*/1784277418).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + return writer; + }; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1.IGetVersionReservationSubBlockRequest} message GetVersionReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSubBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @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.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSubBlockRequest.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.GetVersionReservationSubBlockRequest(); + 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 37109963: { + message.requestId = reader.string(); + break; + } + case 22750491: { + message.reservationSubBlock = reader.string(); + break; + } + case 223034677: { + message.reservationSubBlocksGetVersionRequestResource = $root.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSubBlockRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionReservationSubBlockRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionReservationSubBlockRequest.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.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.reservationSubBlock != null && message.hasOwnProperty("reservationSubBlock")) + if (!$util.isString(message.reservationSubBlock)) + return "reservationSubBlock: string expected"; + if (message.reservationSubBlocksGetVersionRequestResource != null && message.hasOwnProperty("reservationSubBlocksGetVersionRequestResource")) { + var error = $root.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.verify(message.reservationSubBlocksGetVersionRequestResource); + if (error) + return "reservationSubBlocksGetVersionRequestResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetVersionReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest + */ + GetVersionReservationSubBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetVersionReservationSubBlockRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetVersionReservationSubBlockRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.reservationSubBlock != null) + message.reservationSubBlock = String(object.reservationSubBlock); + if (object.reservationSubBlocksGetVersionRequestResource != null) { + if (typeof object.reservationSubBlocksGetVersionRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.GetVersionReservationSubBlockRequest.reservationSubBlocksGetVersionRequestResource: object expected"); + message.reservationSubBlocksGetVersionRequestResource = $root.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.fromObject(object.reservationSubBlocksGetVersionRequestResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetVersionReservationSubBlockRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1.GetVersionReservationSubBlockRequest} message GetVersionReservationSubBlockRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionReservationSubBlockRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.reservationSubBlock = ""; + object.reservationSubBlocksGetVersionRequestResource = null; + object.project = ""; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.reservationSubBlock != null && message.hasOwnProperty("reservationSubBlock")) + object.reservationSubBlock = message.reservationSubBlock; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.reservationSubBlocksGetVersionRequestResource != null && message.hasOwnProperty("reservationSubBlocksGetVersionRequestResource")) + object.reservationSubBlocksGetVersionRequestResource = $root.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.toObject(message.reservationSubBlocksGetVersionRequestResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + return object; + }; + + /** + * Converts this GetVersionReservationSubBlockRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @instance + * @returns {Object.} JSON object + */ + GetVersionReservationSubBlockRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionReservationSubBlockRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetVersionReservationSubBlockRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionReservationSubBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetVersionReservationSubBlockRequest"; + }; + + return GetVersionReservationSubBlockRequest; + })(); + v1.GetVpnGatewayRequest = (function() { /** @@ -196460,6 +202241,468 @@ return HealthCheckService; })(); + v1.HealthCheckServiceAggregatedList = (function() { + + /** + * Properties of a HealthCheckServiceAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface IHealthCheckServiceAggregatedList + * @property {string|null} [id] HealthCheckServiceAggregatedList id + * @property {Object.|null} [items] HealthCheckServiceAggregatedList items + * @property {string|null} [kind] HealthCheckServiceAggregatedList kind + * @property {string|null} [nextPageToken] HealthCheckServiceAggregatedList nextPageToken + * @property {string|null} [selfLink] HealthCheckServiceAggregatedList selfLink + * @property {Array.|null} [unreachables] HealthCheckServiceAggregatedList unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthCheckServiceAggregatedList warning + */ + + /** + * Constructs a new HealthCheckServiceAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthCheckServiceAggregatedList. + * @implements IHealthCheckServiceAggregatedList + * @constructor + * @param {google.cloud.compute.v1.IHealthCheckServiceAggregatedList=} [properties] Properties to set + */ + function HealthCheckServiceAggregatedList(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]]; + } + + /** + * HealthCheckServiceAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.id = null; + + /** + * HealthCheckServiceAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.items = $util.emptyObject; + + /** + * HealthCheckServiceAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.kind = null; + + /** + * HealthCheckServiceAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.nextPageToken = null; + + /** + * HealthCheckServiceAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.selfLink = null; + + /** + * HealthCheckServiceAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * HealthCheckServiceAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthCheckServiceAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthCheckServiceAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList instance + */ + HealthCheckServiceAggregatedList.create = function create(properties) { + return new HealthCheckServiceAggregatedList(properties); + }; + + /** + * Encodes the specified HealthCheckServiceAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServiceAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthCheckServiceAggregatedList} message HealthCheckServiceAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServiceAggregatedList.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.HealthCheckServicesScopedList.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 HealthCheckServiceAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServiceAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthCheckServiceAggregatedList} message HealthCheckServiceAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServiceAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @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.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServiceAggregatedList.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.HealthCheckServiceAggregatedList(), 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.HealthCheckServicesScopedList.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; + } + } + return message; + }; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServiceAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthCheckServiceAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthCheckServiceAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthCheckServicesScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.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 HealthCheckServiceAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList + */ + HealthCheckServiceAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthCheckServiceAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.HealthCheckServiceAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheckServiceAggregatedList.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.HealthCheckServiceAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.HealthCheckServicesScopedList.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.HealthCheckServiceAggregatedList.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.HealthCheckServiceAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthCheckServiceAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1.HealthCheckServiceAggregatedList} message HealthCheckServiceAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthCheckServiceAggregatedList.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._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1.HealthCheckServicesScopedList.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"; + } + return object; + }; + + /** + * Converts this HealthCheckServiceAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @instance + * @returns {Object.} JSON object + */ + HealthCheckServiceAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthCheckServiceAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthCheckServiceAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthCheckServiceAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthCheckServiceAggregatedList"; + }; + + return HealthCheckServiceAggregatedList; + })(); + v1.HealthCheckServiceReference = (function() { /** @@ -197079,6 +203322,275 @@ return HealthCheckServicesList; })(); + v1.HealthCheckServicesScopedList = (function() { + + /** + * Properties of a HealthCheckServicesScopedList. + * @memberof google.cloud.compute.v1 + * @interface IHealthCheckServicesScopedList + * @property {Array.|null} [resources] HealthCheckServicesScopedList resources + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthCheckServicesScopedList warning + */ + + /** + * Constructs a new HealthCheckServicesScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthCheckServicesScopedList. + * @implements IHealthCheckServicesScopedList + * @constructor + * @param {google.cloud.compute.v1.IHealthCheckServicesScopedList=} [properties] Properties to set + */ + function HealthCheckServicesScopedList(properties) { + this.resources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthCheckServicesScopedList resources. + * @member {Array.} resources + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @instance + */ + HealthCheckServicesScopedList.prototype.resources = $util.emptyArray; + + /** + * HealthCheckServicesScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @instance + */ + HealthCheckServicesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServicesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthCheckServicesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthCheckServicesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthCheckServicesScopedList} HealthCheckServicesScopedList instance + */ + HealthCheckServicesScopedList.create = function create(properties) { + return new HealthCheckServicesScopedList(properties); + }; + + /** + * Encodes the specified HealthCheckServicesScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServicesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthCheckServicesScopedList} message HealthCheckServicesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServicesScopedList.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.resources != null && message.resources.length) + for (var i = 0; i < message.resources.length; ++i) + $root.google.cloud.compute.v1.HealthCheckService.encode(message.resources[i], writer.uint32(/* id 164412965, wireType 2 =*/1315303722).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthCheckServicesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthCheckServicesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthCheckServicesScopedList} message HealthCheckServicesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServicesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @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.HealthCheckServicesScopedList} HealthCheckServicesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServicesScopedList.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.HealthCheckServicesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 164412965: { + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push($root.google.cloud.compute.v1.HealthCheckService.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthCheckServicesScopedList} HealthCheckServicesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServicesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthCheckServicesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthCheckServicesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resources != null && message.hasOwnProperty("resources")) { + if (!Array.isArray(message.resources)) + return "resources: array expected"; + for (var i = 0; i < message.resources.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthCheckService.verify(message.resources[i]); + if (error) + return "resources." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthCheckServicesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthCheckServicesScopedList} HealthCheckServicesScopedList + */ + HealthCheckServicesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthCheckServicesScopedList) + return object; + var message = new $root.google.cloud.compute.v1.HealthCheckServicesScopedList(); + if (object.resources) { + if (!Array.isArray(object.resources)) + throw TypeError(".google.cloud.compute.v1.HealthCheckServicesScopedList.resources: array expected"); + message.resources = []; + for (var i = 0; i < object.resources.length; ++i) { + if (typeof object.resources[i] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheckServicesScopedList.resources: object expected"); + message.resources[i] = $root.google.cloud.compute.v1.HealthCheckService.fromObject(object.resources[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.HealthCheckServicesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthCheckServicesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1.HealthCheckServicesScopedList} message HealthCheckServicesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthCheckServicesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.resources = []; + 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.resources && message.resources.length) { + object.resources = []; + for (var j = 0; j < message.resources.length; ++j) + object.resources[j] = $root.google.cloud.compute.v1.HealthCheckService.toObject(message.resources[j], options); + } + return object; + }; + + /** + * Converts this HealthCheckServicesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @instance + * @returns {Object.} JSON object + */ + HealthCheckServicesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthCheckServicesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthCheckServicesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthCheckServicesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthCheckServicesScopedList"; + }; + + return HealthCheckServicesScopedList; + })(); + v1.HealthChecksAggregatedList = (function() { /** @@ -197497,7 +204009,1350 @@ 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.HealthChecksScopedList.toObject(message.items[keys2[j]], options); + object.items[keys2[j]] = $root.google.cloud.compute.v1.HealthChecksScopedList.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"; + } + return object; + }; + + /** + * Converts this HealthChecksAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthChecksAggregatedList + * @instance + * @returns {Object.} JSON object + */ + HealthChecksAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthChecksAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthChecksAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthChecksAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthChecksAggregatedList"; + }; + + return HealthChecksAggregatedList; + })(); + + v1.HealthChecksScopedList = (function() { + + /** + * Properties of a HealthChecksScopedList. + * @memberof google.cloud.compute.v1 + * @interface IHealthChecksScopedList + * @property {Array.|null} [healthChecks] HealthChecksScopedList healthChecks + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthChecksScopedList warning + */ + + /** + * Constructs a new HealthChecksScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthChecksScopedList. + * @implements IHealthChecksScopedList + * @constructor + * @param {google.cloud.compute.v1.IHealthChecksScopedList=} [properties] Properties to set + */ + function HealthChecksScopedList(properties) { + this.healthChecks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthChecksScopedList healthChecks. + * @member {Array.} healthChecks + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @instance + */ + HealthChecksScopedList.prototype.healthChecks = $util.emptyArray; + + /** + * HealthChecksScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @instance + */ + HealthChecksScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthChecksScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthChecksScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.IHealthChecksScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthChecksScopedList} HealthChecksScopedList instance + */ + HealthChecksScopedList.create = function create(properties) { + return new HealthChecksScopedList(properties); + }; + + /** + * Encodes the specified HealthChecksScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthChecksScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.IHealthChecksScopedList} message HealthChecksScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthChecksScopedList.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.healthChecks != null && message.healthChecks.length) + for (var i = 0; i < message.healthChecks.length; ++i) + $root.google.cloud.compute.v1.HealthCheck.encode(message.healthChecks[i], writer.uint32(/* id 448370606, wireType 2 =*/3586964850).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthChecksScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthChecksScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.IHealthChecksScopedList} message HealthChecksScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthChecksScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthChecksScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @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.HealthChecksScopedList} HealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthChecksScopedList.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.HealthChecksScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 448370606: { + if (!(message.healthChecks && message.healthChecks.length)) + message.healthChecks = []; + message.healthChecks.push($root.google.cloud.compute.v1.HealthCheck.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthChecksScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthChecksScopedList} HealthChecksScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthChecksScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthChecksScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthChecksScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthChecks != null && message.hasOwnProperty("healthChecks")) { + if (!Array.isArray(message.healthChecks)) + return "healthChecks: array expected"; + for (var i = 0; i < message.healthChecks.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthCheck.verify(message.healthChecks[i]); + if (error) + return "healthChecks." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthChecksScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthChecksScopedList} HealthChecksScopedList + */ + HealthChecksScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthChecksScopedList) + return object; + var message = new $root.google.cloud.compute.v1.HealthChecksScopedList(); + if (object.healthChecks) { + if (!Array.isArray(object.healthChecks)) + throw TypeError(".google.cloud.compute.v1.HealthChecksScopedList.healthChecks: array expected"); + message.healthChecks = []; + for (var i = 0; i < object.healthChecks.length; ++i) { + if (typeof object.healthChecks[i] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthChecksScopedList.healthChecks: object expected"); + message.healthChecks[i] = $root.google.cloud.compute.v1.HealthCheck.fromObject(object.healthChecks[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.HealthChecksScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthChecksScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {google.cloud.compute.v1.HealthChecksScopedList} message HealthChecksScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthChecksScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthChecks = []; + 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.healthChecks && message.healthChecks.length) { + object.healthChecks = []; + for (var j = 0; j < message.healthChecks.length; ++j) + object.healthChecks[j] = $root.google.cloud.compute.v1.HealthCheck.toObject(message.healthChecks[j], options); + } + return object; + }; + + /** + * Converts this HealthChecksScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @instance + * @returns {Object.} JSON object + */ + HealthChecksScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthChecksScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthChecksScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthChecksScopedList"; + }; + + return HealthChecksScopedList; + })(); + + v1.HealthSource = (function() { + + /** + * Properties of a HealthSource. + * @memberof google.cloud.compute.v1 + * @interface IHealthSource + * @property {string|null} [creationTimestamp] HealthSource creationTimestamp + * @property {string|null} [description] HealthSource description + * @property {string|null} [fingerprint] HealthSource fingerprint + * @property {string|null} [healthAggregationPolicy] HealthSource healthAggregationPolicy + * @property {number|Long|null} [id] HealthSource id + * @property {string|null} [kind] HealthSource kind + * @property {string|null} [name] HealthSource name + * @property {string|null} [region] HealthSource region + * @property {string|null} [selfLink] HealthSource selfLink + * @property {string|null} [selfLinkWithId] HealthSource selfLinkWithId + * @property {string|null} [sourceType] HealthSource sourceType + * @property {Array.|null} [sources] HealthSource sources + */ + + /** + * Constructs a new HealthSource. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthSource. + * @implements IHealthSource + * @constructor + * @param {google.cloud.compute.v1.IHealthSource=} [properties] Properties to set + */ + function HealthSource(properties) { + this.sources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthSource creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.creationTimestamp = null; + + /** + * HealthSource description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.description = null; + + /** + * HealthSource fingerprint. + * @member {string|null|undefined} fingerprint + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.fingerprint = null; + + /** + * HealthSource healthAggregationPolicy. + * @member {string|null|undefined} healthAggregationPolicy + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.healthAggregationPolicy = null; + + /** + * HealthSource id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.id = null; + + /** + * HealthSource kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.kind = null; + + /** + * HealthSource name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.name = null; + + /** + * HealthSource region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.region = null; + + /** + * HealthSource selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.selfLink = null; + + /** + * HealthSource selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.selfLinkWithId = null; + + /** + * HealthSource sourceType. + * @member {string|null|undefined} sourceType + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.sourceType = null; + + /** + * HealthSource sources. + * @member {Array.} sources + * @memberof google.cloud.compute.v1.HealthSource + * @instance + */ + HealthSource.prototype.sources = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_fingerprint", { + get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_healthAggregationPolicy", { + get: $util.oneOfGetter($oneOfFields = ["healthAggregationPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSource.prototype, "_sourceType", { + get: $util.oneOfGetter($oneOfFields = ["sourceType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSource instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {google.cloud.compute.v1.IHealthSource=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthSource} HealthSource instance + */ + HealthSource.create = function create(properties) { + return new HealthSource(properties); + }; + + /** + * Encodes the specified HealthSource message. Does not implicitly {@link google.cloud.compute.v1.HealthSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {google.cloud.compute.v1.IHealthSource} message HealthSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSource.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.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.sources != null && message.sources.length) + for (var i = 0; i < message.sources.length; ++i) + writer.uint32(/* id 125606840, wireType 2 =*/1004854722).string(message.sources[i]); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) + writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.healthAggregationPolicy != null && Object.hasOwnProperty.call(message, "healthAggregationPolicy")) + writer.uint32(/* id 240314354, wireType 2 =*/1922514834).string(message.healthAggregationPolicy); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.sourceType != null && Object.hasOwnProperty.call(message, "sourceType")) + writer.uint32(/* id 452245726, wireType 2 =*/3617965810).string(message.sourceType); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified HealthSource message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {google.cloud.compute.v1.IHealthSource} message HealthSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthSource + * @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.HealthSource} HealthSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSource.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.HealthSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 234678500: { + message.fingerprint = reader.string(); + break; + } + case 240314354: { + message.healthAggregationPolicy = reader.string(); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 452245726: { + message.sourceType = reader.string(); + break; + } + case 125606840: { + if (!(message.sources && message.sources.length)) + message.sources = []; + message.sources.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthSource} HealthSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSource message. + * @function verify + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + 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.fingerprint != null && message.hasOwnProperty("fingerprint")) { + properties._fingerprint = 1; + if (!$util.isString(message.fingerprint)) + return "fingerprint: string expected"; + } + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) { + properties._healthAggregationPolicy = 1; + if (!$util.isString(message.healthAggregationPolicy)) + return "healthAggregationPolicy: string expected"; + } + 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.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.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.sourceType != null && message.hasOwnProperty("sourceType")) { + properties._sourceType = 1; + if (!$util.isString(message.sourceType)) + return "sourceType: string expected"; + } + if (message.sources != null && message.hasOwnProperty("sources")) { + if (!Array.isArray(message.sources)) + return "sources: array expected"; + for (var i = 0; i < message.sources.length; ++i) + if (!$util.isString(message.sources[i])) + return "sources: string[] expected"; + } + return null; + }; + + /** + * Creates a HealthSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthSource} HealthSource + */ + HealthSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthSource) + return object; + var message = new $root.google.cloud.compute.v1.HealthSource(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.fingerprint != null) + message.fingerprint = String(object.fingerprint); + if (object.healthAggregationPolicy != null) + message.healthAggregationPolicy = String(object.healthAggregationPolicy); + 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.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.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.sourceType != null) + message.sourceType = String(object.sourceType); + if (object.sources) { + if (!Array.isArray(object.sources)) + throw TypeError(".google.cloud.compute.v1.HealthSource.sources: array expected"); + message.sources = []; + for (var i = 0; i < object.sources.length; ++i) + message.sources[i] = String(object.sources[i]); + } + return message; + }; + + /** + * Creates a plain object from a HealthSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {google.cloud.compute.v1.HealthSource} message HealthSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sources = []; + 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.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.sources && message.sources.length) { + object.sources = []; + for (var j = 0; j < message.sources.length; ++j) + object.sources[j] = message.sources[j]; + } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + object.fingerprint = message.fingerprint; + if (options.oneofs) + object._fingerprint = "fingerprint"; + } + if (message.healthAggregationPolicy != null && message.hasOwnProperty("healthAggregationPolicy")) { + object.healthAggregationPolicy = message.healthAggregationPolicy; + if (options.oneofs) + object._healthAggregationPolicy = "healthAggregationPolicy"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.sourceType != null && message.hasOwnProperty("sourceType")) { + object.sourceType = message.sourceType; + if (options.oneofs) + object._sourceType = "sourceType"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this HealthSource to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthSource + * @instance + * @returns {Object.} JSON object + */ + HealthSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSource + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthSource"; + }; + + /** + * SourceType enum. + * @name google.cloud.compute.v1.HealthSource.SourceType + * @enum {number} + * @property {number} UNDEFINED_SOURCE_TYPE=0 UNDEFINED_SOURCE_TYPE value + * @property {number} BACKEND_SERVICE=285792202 BACKEND_SERVICE value + */ + HealthSource.SourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SOURCE_TYPE"] = 0; + values[valuesById[285792202] = "BACKEND_SERVICE"] = 285792202; + return values; + })(); + + return HealthSource; + })(); + + v1.HealthSourceAggregatedList = (function() { + + /** + * Properties of a HealthSourceAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface IHealthSourceAggregatedList + * @property {string|null} [id] HealthSourceAggregatedList id + * @property {Object.|null} [items] HealthSourceAggregatedList items + * @property {string|null} [kind] HealthSourceAggregatedList kind + * @property {string|null} [nextPageToken] HealthSourceAggregatedList nextPageToken + * @property {string|null} [selfLink] HealthSourceAggregatedList selfLink + * @property {Array.|null} [unreachables] HealthSourceAggregatedList unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthSourceAggregatedList warning + */ + + /** + * Constructs a new HealthSourceAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthSourceAggregatedList. + * @implements IHealthSourceAggregatedList + * @constructor + * @param {google.cloud.compute.v1.IHealthSourceAggregatedList=} [properties] Properties to set + */ + function HealthSourceAggregatedList(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]]; + } + + /** + * HealthSourceAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.id = null; + + /** + * HealthSourceAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.items = $util.emptyObject; + + /** + * HealthSourceAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.kind = null; + + /** + * HealthSourceAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.nextPageToken = null; + + /** + * HealthSourceAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.selfLink = null; + + /** + * HealthSourceAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * HealthSourceAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @instance + */ + HealthSourceAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourceAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthSourceAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthSourceAggregatedList} HealthSourceAggregatedList instance + */ + HealthSourceAggregatedList.create = function create(properties) { + return new HealthSourceAggregatedList(properties); + }; + + /** + * Encodes the specified HealthSourceAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.HealthSourceAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthSourceAggregatedList} message HealthSourceAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourceAggregatedList.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.HealthSourcesScopedList.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 HealthSourceAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourceAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @static + * @param {google.cloud.compute.v1.IHealthSourceAggregatedList} message HealthSourceAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourceAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourceAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @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.HealthSourceAggregatedList} HealthSourceAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourceAggregatedList.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.HealthSourceAggregatedList(), 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.HealthSourcesScopedList.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; + } + } + return message; + }; + + /** + * Decodes a HealthSourceAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthSourceAggregatedList} HealthSourceAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourceAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourceAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourceAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthSourcesScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.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 HealthSourceAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthSourceAggregatedList} HealthSourceAggregatedList + */ + HealthSourceAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthSourceAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.HealthSourceAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.HealthSourceAggregatedList.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.HealthSourceAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.HealthSourcesScopedList.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.HealthSourceAggregatedList.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.HealthSourceAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthSourceAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList + * @static + * @param {google.cloud.compute.v1.HealthSourceAggregatedList} message HealthSourceAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourceAggregatedList.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._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1.HealthSourcesScopedList.toObject(message.items[keys2[j]], options); } if (message.unreachables && message.unreachables.length) { object.unreachables = []; @@ -197513,54 +205368,58 @@ }; /** - * Converts this HealthChecksAggregatedList to JSON. + * Converts this HealthSourceAggregatedList to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.HealthChecksAggregatedList + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList * @instance * @returns {Object.} JSON object */ - HealthChecksAggregatedList.prototype.toJSON = function toJSON() { + HealthSourceAggregatedList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HealthChecksAggregatedList + * Gets the default type url for HealthSourceAggregatedList * @function getTypeUrl - * @memberof google.cloud.compute.v1.HealthChecksAggregatedList + * @memberof google.cloud.compute.v1.HealthSourceAggregatedList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HealthChecksAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HealthSourceAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.HealthChecksAggregatedList"; + return typeUrlPrefix + "/google.cloud.compute.v1.HealthSourceAggregatedList"; }; - return HealthChecksAggregatedList; + return HealthSourceAggregatedList; })(); - v1.HealthChecksScopedList = (function() { + v1.HealthSourceList = (function() { /** - * Properties of a HealthChecksScopedList. + * Properties of a HealthSourceList. * @memberof google.cloud.compute.v1 - * @interface IHealthChecksScopedList - * @property {Array.|null} [healthChecks] HealthChecksScopedList healthChecks - * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthChecksScopedList warning + * @interface IHealthSourceList + * @property {string|null} [id] HealthSourceList id + * @property {Array.|null} [items] HealthSourceList items + * @property {string|null} [kind] HealthSourceList kind + * @property {string|null} [nextPageToken] HealthSourceList nextPageToken + * @property {string|null} [selfLink] HealthSourceList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthSourceList warning */ /** - * Constructs a new HealthChecksScopedList. + * Constructs a new HealthSourceList. * @memberof google.cloud.compute.v1 - * @classdesc Represents a HealthChecksScopedList. - * @implements IHealthChecksScopedList + * @classdesc Represents a HealthSourceList. + * @implements IHealthSourceList * @constructor - * @param {google.cloud.compute.v1.IHealthChecksScopedList=} [properties] Properties to set + * @param {google.cloud.compute.v1.IHealthSourceList=} [properties] Properties to set */ - function HealthChecksScopedList(properties) { - this.healthChecks = []; + function HealthSourceList(properties) { + this.items = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197568,99 +205427,179 @@ } /** - * HealthChecksScopedList healthChecks. - * @member {Array.} healthChecks - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * HealthSourceList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.HealthSourceList * @instance */ - HealthChecksScopedList.prototype.healthChecks = $util.emptyArray; + HealthSourceList.prototype.id = null; /** - * HealthChecksScopedList warning. + * HealthSourceList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.HealthSourceList + * @instance + */ + HealthSourceList.prototype.items = $util.emptyArray; + + /** + * HealthSourceList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.HealthSourceList + * @instance + */ + HealthSourceList.prototype.kind = null; + + /** + * HealthSourceList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.HealthSourceList + * @instance + */ + HealthSourceList.prototype.nextPageToken = null; + + /** + * HealthSourceList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.HealthSourceList + * @instance + */ + HealthSourceList.prototype.selfLink = null; + + /** + * HealthSourceList warning. * @member {google.cloud.compute.v1.IWarning|null|undefined} warning - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @instance */ - HealthChecksScopedList.prototype.warning = null; + HealthSourceList.prototype.warning = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(HealthChecksScopedList.prototype, "_warning", { + Object.defineProperty(HealthSourceList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourceList.prototype, "_warning", { get: $util.oneOfGetter($oneOfFields = ["warning"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new HealthChecksScopedList instance using the specified properties. + * Creates a new HealthSourceList instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static - * @param {google.cloud.compute.v1.IHealthChecksScopedList=} [properties] Properties to set - * @returns {google.cloud.compute.v1.HealthChecksScopedList} HealthChecksScopedList instance + * @param {google.cloud.compute.v1.IHealthSourceList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthSourceList} HealthSourceList instance */ - HealthChecksScopedList.create = function create(properties) { - return new HealthChecksScopedList(properties); + HealthSourceList.create = function create(properties) { + return new HealthSourceList(properties); }; /** - * Encodes the specified HealthChecksScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthChecksScopedList.verify|verify} messages. + * Encodes the specified HealthSourceList message. Does not implicitly {@link google.cloud.compute.v1.HealthSourceList.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static - * @param {google.cloud.compute.v1.IHealthChecksScopedList} message HealthChecksScopedList message or plain object to encode + * @param {google.cloud.compute.v1.IHealthSourceList} message HealthSourceList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HealthChecksScopedList.encode = function encode(message, writer) { + HealthSourceList.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.healthChecks != null && message.healthChecks.length) - for (var i = 0; i < message.healthChecks.length; ++i) - $root.google.cloud.compute.v1.HealthCheck.encode(message.healthChecks[i], writer.uint32(/* id 448370606, wireType 2 =*/3586964850).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.HealthSource.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 HealthChecksScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthChecksScopedList.verify|verify} messages. + * Encodes the specified HealthSourceList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourceList.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static - * @param {google.cloud.compute.v1.IHealthChecksScopedList} message HealthChecksScopedList message or plain object to encode + * @param {google.cloud.compute.v1.IHealthSourceList} message HealthSourceList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HealthChecksScopedList.encodeDelimited = function encodeDelimited(message, writer) { + HealthSourceList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HealthChecksScopedList message from the specified reader or buffer. + * Decodes a HealthSourceList message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @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.HealthChecksScopedList} HealthChecksScopedList + * @returns {google.cloud.compute.v1.HealthSourceList} HealthSourceList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HealthChecksScopedList.decode = function decode(reader, length, error) { + HealthSourceList.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.HealthChecksScopedList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.HealthSourceList(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 448370606: { - if (!(message.healthChecks && message.healthChecks.length)) - message.healthChecks = []; - message.healthChecks.push($root.google.cloud.compute.v1.HealthCheck.decode(reader, reader.uint32())); + 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.HealthSource.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: { @@ -197676,42 +205615,62 @@ }; /** - * Decodes a HealthChecksScopedList message from the specified reader or buffer, length delimited. + * Decodes a HealthSourceList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.HealthChecksScopedList} HealthChecksScopedList + * @returns {google.cloud.compute.v1.HealthSourceList} HealthSourceList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HealthChecksScopedList.decodeDelimited = function decodeDelimited(reader) { + HealthSourceList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HealthChecksScopedList message. + * Verifies a HealthSourceList message. * @function verify - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HealthChecksScopedList.verify = function verify(message) { + HealthSourceList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.healthChecks != null && message.hasOwnProperty("healthChecks")) { - if (!Array.isArray(message.healthChecks)) - return "healthChecks: array expected"; - for (var i = 0; i < message.healthChecks.length; ++i) { - var error = $root.google.cloud.compute.v1.HealthCheck.verify(message.healthChecks[i]); + 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.HealthSource.verify(message.items[i]); if (error) - return "healthChecks." + 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; { @@ -197724,90 +205683,387 @@ }; /** - * Creates a HealthChecksScopedList message from a plain object. Also converts values to their respective internal types. + * Creates a HealthSourceList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.HealthChecksScopedList} HealthChecksScopedList + * @returns {google.cloud.compute.v1.HealthSourceList} HealthSourceList */ - HealthChecksScopedList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.HealthChecksScopedList) + HealthSourceList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthSourceList) return object; - var message = new $root.google.cloud.compute.v1.HealthChecksScopedList(); - if (object.healthChecks) { - if (!Array.isArray(object.healthChecks)) - throw TypeError(".google.cloud.compute.v1.HealthChecksScopedList.healthChecks: array expected"); - message.healthChecks = []; - for (var i = 0; i < object.healthChecks.length; ++i) { - if (typeof object.healthChecks[i] !== "object") - throw TypeError(".google.cloud.compute.v1.HealthChecksScopedList.healthChecks: object expected"); - message.healthChecks[i] = $root.google.cloud.compute.v1.HealthCheck.fromObject(object.healthChecks[i]); + var message = new $root.google.cloud.compute.v1.HealthSourceList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.HealthSourceList.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.HealthSourceList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.HealthSource.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.HealthChecksScopedList.warning: object expected"); + throw TypeError(".google.cloud.compute.v1.HealthSourceList.warning: object expected"); message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); } return message; }; /** - * Creates a plain object from a HealthChecksScopedList message. Also converts values to other types if specified. + * Creates a plain object from a HealthSourceList message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static - * @param {google.cloud.compute.v1.HealthChecksScopedList} message HealthChecksScopedList + * @param {google.cloud.compute.v1.HealthSourceList} message HealthSourceList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HealthChecksScopedList.toObject = function toObject(message, options) { + HealthSourceList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.healthChecks = []; + 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.healthChecks && message.healthChecks.length) { - object.healthChecks = []; - for (var j = 0; j < message.healthChecks.length; ++j) - object.healthChecks[j] = $root.google.cloud.compute.v1.HealthCheck.toObject(message.healthChecks[j], options); + 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.HealthSource.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 HealthChecksScopedList to JSON. + * Converts this HealthSourceList to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @instance * @returns {Object.} JSON object */ - HealthChecksScopedList.prototype.toJSON = function toJSON() { + HealthSourceList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for HealthChecksScopedList + * Gets the default type url for HealthSourceList * @function getTypeUrl - * @memberof google.cloud.compute.v1.HealthChecksScopedList + * @memberof google.cloud.compute.v1.HealthSourceList * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - HealthChecksScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + HealthSourceList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.HealthChecksScopedList"; + return typeUrlPrefix + "/google.cloud.compute.v1.HealthSourceList"; }; - return HealthChecksScopedList; + return HealthSourceList; + })(); + + v1.HealthSourcesScopedList = (function() { + + /** + * Properties of a HealthSourcesScopedList. + * @memberof google.cloud.compute.v1 + * @interface IHealthSourcesScopedList + * @property {Array.|null} [healthSources] HealthSourcesScopedList healthSources + * @property {google.cloud.compute.v1.IWarning|null} [warning] HealthSourcesScopedList warning + */ + + /** + * Constructs a new HealthSourcesScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a HealthSourcesScopedList. + * @implements IHealthSourcesScopedList + * @constructor + * @param {google.cloud.compute.v1.IHealthSourcesScopedList=} [properties] Properties to set + */ + function HealthSourcesScopedList(properties) { + this.healthSources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthSourcesScopedList healthSources. + * @member {Array.} healthSources + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @instance + */ + HealthSourcesScopedList.prototype.healthSources = $util.emptyArray; + + /** + * HealthSourcesScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @instance + */ + HealthSourcesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthSourcesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthSourcesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthSourcesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.HealthSourcesScopedList} HealthSourcesScopedList instance + */ + HealthSourcesScopedList.create = function create(properties) { + return new HealthSourcesScopedList(properties); + }; + + /** + * Encodes the specified HealthSourcesScopedList message. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthSourcesScopedList} message HealthSourcesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesScopedList.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.healthSources != null && message.healthSources.length) + for (var i = 0; i < message.healthSources.length; ++i) + $root.google.cloud.compute.v1.HealthSource.encode(message.healthSources[i], writer.uint32(/* id 397879509, wireType 2 =*/3183036074).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthSourcesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.HealthSourcesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {google.cloud.compute.v1.IHealthSourcesScopedList} message HealthSourcesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthSourcesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthSourcesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @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.HealthSourcesScopedList} HealthSourcesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesScopedList.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.HealthSourcesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 397879509: { + if (!(message.healthSources && message.healthSources.length)) + message.healthSources = []; + message.healthSources.push($root.google.cloud.compute.v1.HealthSource.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthSourcesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.HealthSourcesScopedList} HealthSourcesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthSourcesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthSourcesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthSourcesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthSources != null && message.hasOwnProperty("healthSources")) { + if (!Array.isArray(message.healthSources)) + return "healthSources: array expected"; + for (var i = 0; i < message.healthSources.length; ++i) { + var error = $root.google.cloud.compute.v1.HealthSource.verify(message.healthSources[i]); + if (error) + return "healthSources." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthSourcesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.HealthSourcesScopedList} HealthSourcesScopedList + */ + HealthSourcesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.HealthSourcesScopedList) + return object; + var message = new $root.google.cloud.compute.v1.HealthSourcesScopedList(); + if (object.healthSources) { + if (!Array.isArray(object.healthSources)) + throw TypeError(".google.cloud.compute.v1.HealthSourcesScopedList.healthSources: array expected"); + message.healthSources = []; + for (var i = 0; i < object.healthSources.length; ++i) { + if (typeof object.healthSources[i] !== "object") + throw TypeError(".google.cloud.compute.v1.HealthSourcesScopedList.healthSources: object expected"); + message.healthSources[i] = $root.google.cloud.compute.v1.HealthSource.fromObject(object.healthSources[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.HealthSourcesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthSourcesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {google.cloud.compute.v1.HealthSourcesScopedList} message HealthSourcesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthSourcesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.healthSources = []; + 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.healthSources && message.healthSources.length) { + object.healthSources = []; + for (var j = 0; j < message.healthSources.length; ++j) + object.healthSources[j] = $root.google.cloud.compute.v1.HealthSource.toObject(message.healthSources[j], options); + } + return object; + }; + + /** + * Converts this HealthSourcesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @instance + * @returns {Object.} JSON object + */ + HealthSourcesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthSourcesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.HealthSourcesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthSourcesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.HealthSourcesScopedList"; + }; + + return HealthSourcesScopedList; })(); v1.HealthStatus = (function() { @@ -219212,6 +227468,300 @@ return InsertRegionCommitmentRequest; })(); + v1.InsertRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of an InsertRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionCompositeHealthCheckRequest + * @property {google.cloud.compute.v1.ICompositeHealthCheck|null} [compositeHealthCheckResource] InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource + * @property {string|null} [project] InsertRegionCompositeHealthCheckRequest project + * @property {string|null} [region] InsertRegionCompositeHealthCheckRequest region + * @property {string|null} [requestId] InsertRegionCompositeHealthCheckRequest requestId + */ + + /** + * Constructs a new InsertRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionCompositeHealthCheckRequest. + * @implements IInsertRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function InsertRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionCompositeHealthCheckRequest compositeHealthCheckResource. + * @member {google.cloud.compute.v1.ICompositeHealthCheck|null|undefined} compositeHealthCheckResource + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @instance + */ + InsertRegionCompositeHealthCheckRequest.prototype.compositeHealthCheckResource = null; + + /** + * InsertRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @instance + */ + InsertRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * InsertRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @instance + */ + InsertRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * InsertRegionCompositeHealthCheckRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @instance + */ + InsertRegionCompositeHealthCheckRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionCompositeHealthCheckRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest instance + */ + InsertRegionCompositeHealthCheckRequest.create = function create(properties) { + return new InsertRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified InsertRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest} message InsertRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionCompositeHealthCheckRequest.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.compositeHealthCheckResource != null && Object.hasOwnProperty.call(message, "compositeHealthCheckResource")) + $root.google.cloud.compute.v1.CompositeHealthCheck.encode(message.compositeHealthCheckResource, writer.uint32(/* id 132195824, wireType 2 =*/1057566594).fork()).ldelim(); + 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); + return writer; + }; + + /** + * Encodes the specified InsertRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest} message InsertRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @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.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionCompositeHealthCheckRequest.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.InsertRegionCompositeHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 132195824: { + message.compositeHealthCheckResource = $root.google.cloud.compute.v1.CompositeHealthCheck.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 InsertRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionCompositeHealthCheckRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) { + var error = $root.google.cloud.compute.v1.CompositeHealthCheck.verify(message.compositeHealthCheckResource); + if (error) + return "compositeHealthCheckResource." + 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 InsertRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest} InsertRegionCompositeHealthCheckRequest + */ + InsertRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheckResource != null) { + if (typeof object.compositeHealthCheckResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest.compositeHealthCheckResource: object expected"); + message.compositeHealthCheckResource = $root.google.cloud.compute.v1.CompositeHealthCheck.fromObject(object.compositeHealthCheckResource); + } + 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 InsertRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest} message InsertRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.compositeHealthCheckResource = null; + object.region = ""; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) + object.compositeHealthCheckResource = $root.google.cloud.compute.v1.CompositeHealthCheck.toObject(message.compositeHealthCheckResource, options); + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this InsertRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest"; + }; + + return InsertRegionCompositeHealthCheckRequest; + })(); + v1.InsertRegionDiskRequest = (function() { /** @@ -220421,6 +228971,300 @@ return InsertRegionHealthCheckServiceRequest; })(); + v1.InsertRegionHealthSourceRequest = (function() { + + /** + * Properties of an InsertRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertRegionHealthSourceRequest + * @property {google.cloud.compute.v1.IHealthSource|null} [healthSourceResource] InsertRegionHealthSourceRequest healthSourceResource + * @property {string|null} [project] InsertRegionHealthSourceRequest project + * @property {string|null} [region] InsertRegionHealthSourceRequest region + * @property {string|null} [requestId] InsertRegionHealthSourceRequest requestId + */ + + /** + * Constructs a new InsertRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertRegionHealthSourceRequest. + * @implements IInsertRegionHealthSourceRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertRegionHealthSourceRequest=} [properties] Properties to set + */ + function InsertRegionHealthSourceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InsertRegionHealthSourceRequest healthSourceResource. + * @member {google.cloud.compute.v1.IHealthSource|null|undefined} healthSourceResource + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @instance + */ + InsertRegionHealthSourceRequest.prototype.healthSourceResource = null; + + /** + * InsertRegionHealthSourceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @instance + */ + InsertRegionHealthSourceRequest.prototype.project = ""; + + /** + * InsertRegionHealthSourceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @instance + */ + InsertRegionHealthSourceRequest.prototype.region = ""; + + /** + * InsertRegionHealthSourceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @instance + */ + InsertRegionHealthSourceRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InsertRegionHealthSourceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertRegionHealthSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertRegionHealthSourceRequest} InsertRegionHealthSourceRequest instance + */ + InsertRegionHealthSourceRequest.create = function create(properties) { + return new InsertRegionHealthSourceRequest(properties); + }; + + /** + * Encodes the specified InsertRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionHealthSourceRequest} message InsertRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionHealthSourceRequest.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.healthSourceResource != null && Object.hasOwnProperty.call(message, "healthSourceResource")) + $root.google.cloud.compute.v1.HealthSource.encode(message.healthSourceResource, writer.uint32(/* id 357735375, wireType 2 =*/2861883002).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertRegionHealthSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IInsertRegionHealthSourceRequest} message InsertRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertRegionHealthSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @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.InsertRegionHealthSourceRequest} InsertRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionHealthSourceRequest.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.InsertRegionHealthSourceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 357735375: { + message.healthSourceResource = $root.google.cloud.compute.v1.HealthSource.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 InsertRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertRegionHealthSourceRequest} InsertRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertRegionHealthSourceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertRegionHealthSourceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthSourceResource != null && message.hasOwnProperty("healthSourceResource")) { + var error = $root.google.cloud.compute.v1.HealthSource.verify(message.healthSourceResource); + if (error) + return "healthSourceResource." + 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 InsertRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertRegionHealthSourceRequest} InsertRegionHealthSourceRequest + */ + InsertRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertRegionHealthSourceRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertRegionHealthSourceRequest(); + if (object.healthSourceResource != null) { + if (typeof object.healthSourceResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertRegionHealthSourceRequest.healthSourceResource: object expected"); + message.healthSourceResource = $root.google.cloud.compute.v1.HealthSource.fromObject(object.healthSourceResource); + } + 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 InsertRegionHealthSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.InsertRegionHealthSourceRequest} message InsertRegionHealthSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertRegionHealthSourceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthSourceResource = 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.healthSourceResource != null && message.hasOwnProperty("healthSourceResource")) + object.healthSourceResource = $root.google.cloud.compute.v1.HealthSource.toObject(message.healthSourceResource, options); + return object; + }; + + /** + * Converts this InsertRegionHealthSourceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @instance + * @returns {Object.} JSON object + */ + InsertRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertRegionHealthSourceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertRegionHealthSourceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertRegionHealthSourceRequest"; + }; + + return InsertRegionHealthSourceRequest; + })(); + v1.InsertRegionInstanceGroupManagerRequest = (function() { /** @@ -235963,6 +244807,7 @@ * @property {google.cloud.compute.v1.IInstanceGroupManagerStatus|null} [status] InstanceGroupManager status * @property {Array.|null} [targetPools] InstanceGroupManager targetPools * @property {number|null} [targetSize] InstanceGroupManager targetSize + * @property {google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy|null} [targetSizePolicy] InstanceGroupManager targetSizePolicy * @property {number|null} [targetStoppedSize] InstanceGroupManager targetStoppedSize * @property {number|null} [targetSuspendedSize] InstanceGroupManager targetSuspendedSize * @property {google.cloud.compute.v1.IInstanceGroupManagerUpdatePolicy|null} [updatePolicy] InstanceGroupManager updatePolicy @@ -236205,6 +245050,14 @@ */ InstanceGroupManager.prototype.targetSize = null; + /** + * InstanceGroupManager targetSizePolicy. + * @member {google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy|null|undefined} targetSizePolicy + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + InstanceGroupManager.prototype.targetSizePolicy = null; + /** * InstanceGroupManager targetStoppedSize. * @member {number|null|undefined} targetStoppedSize @@ -236392,6 +245245,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManager.prototype, "_targetSizePolicy", { + get: $util.oneOfGetter($oneOfFields = ["targetSizePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstanceGroupManager.prototype, "_targetStoppedSize", { get: $util.oneOfGetter($oneOfFields = ["targetStoppedSize"]), @@ -236464,6 +245323,8 @@ writer.uint32(/* id 81095253, wireType 2 =*/648762026).string(message.instanceGroup); if (message.allInstancesConfig != null && Object.hasOwnProperty.call(message, "allInstancesConfig")) $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.encode(message.allInstancesConfig, writer.uint32(/* id 112596737, wireType 2 =*/900773898).fork()).ldelim(); + if (message.targetSizePolicy != null && Object.hasOwnProperty.call(message, "targetSizePolicy")) + $root.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.encode(message.targetSizePolicy, writer.uint32(/* id 128773506, wireType 2 =*/1030188050).fork()).ldelim(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.versions != null && message.versions.length) @@ -236658,6 +245519,10 @@ message.targetSize = reader.int32(); break; } + case 128773506: { + message.targetSizePolicy = $root.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.decode(reader, reader.uint32()); + break; + } case 2419489: { message.targetStoppedSize = reader.int32(); break; @@ -236888,6 +245753,14 @@ if (!$util.isInteger(message.targetSize)) return "targetSize: integer expected"; } + if (message.targetSizePolicy != null && message.hasOwnProperty("targetSizePolicy")) { + properties._targetSizePolicy = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.verify(message.targetSizePolicy); + if (error) + return "targetSizePolicy." + error; + } + } if (message.targetStoppedSize != null && message.hasOwnProperty("targetStoppedSize")) { properties._targetStoppedSize = 1; if (!$util.isInteger(message.targetStoppedSize)) @@ -237044,6 +245917,11 @@ } if (object.targetSize != null) message.targetSize = object.targetSize | 0; + if (object.targetSizePolicy != null) { + if (typeof object.targetSizePolicy !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManager.targetSizePolicy: object expected"); + message.targetSizePolicy = $root.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.fromObject(object.targetSizePolicy); + } if (object.targetStoppedSize != null) message.targetStoppedSize = object.targetStoppedSize | 0; if (object.targetSuspendedSize != null) @@ -237150,6 +246028,11 @@ if (options.oneofs) object._allInstancesConfig = "allInstancesConfig"; } + if (message.targetSizePolicy != null && message.hasOwnProperty("targetSizePolicy")) { + object.targetSizePolicy = $root.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.toObject(message.targetSizePolicy, options); + if (options.oneofs) + object._targetSizePolicy = "targetSizePolicy"; + } if (message.region != null && message.hasOwnProperty("region")) { object.region = message.region; if (options.oneofs) @@ -242092,7 +250975,9 @@ * @memberof google.cloud.compute.v1 * @interface IInstanceGroupManagerStatus * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig|null} [allInstancesConfig] InstanceGroupManagerStatus allInstancesConfig + * @property {Array.|null} [appliedAcceleratorTopologies] InstanceGroupManagerStatus appliedAcceleratorTopologies * @property {string|null} [autoscaler] InstanceGroupManagerStatus autoscaler + * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation|null} [bulkInstanceOperation] InstanceGroupManagerStatus bulkInstanceOperation * @property {boolean|null} [isStable] InstanceGroupManagerStatus isStable * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusStateful|null} [stateful] InstanceGroupManagerStatus stateful * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusVersionTarget|null} [versionTarget] InstanceGroupManagerStatus versionTarget @@ -242107,6 +250992,7 @@ * @param {google.cloud.compute.v1.IInstanceGroupManagerStatus=} [properties] Properties to set */ function InstanceGroupManagerStatus(properties) { + this.appliedAcceleratorTopologies = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -242121,6 +251007,14 @@ */ InstanceGroupManagerStatus.prototype.allInstancesConfig = null; + /** + * InstanceGroupManagerStatus appliedAcceleratorTopologies. + * @member {Array.} appliedAcceleratorTopologies + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatus + * @instance + */ + InstanceGroupManagerStatus.prototype.appliedAcceleratorTopologies = $util.emptyArray; + /** * InstanceGroupManagerStatus autoscaler. * @member {string|null|undefined} autoscaler @@ -242129,6 +251023,14 @@ */ InstanceGroupManagerStatus.prototype.autoscaler = null; + /** + * InstanceGroupManagerStatus bulkInstanceOperation. + * @member {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation|null|undefined} bulkInstanceOperation + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatus + * @instance + */ + InstanceGroupManagerStatus.prototype.bulkInstanceOperation = null; + /** * InstanceGroupManagerStatus isStable. * @member {boolean|null|undefined} isStable @@ -242168,6 +251070,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatus.prototype, "_bulkInstanceOperation", { + get: $util.oneOfGetter($oneOfFields = ["bulkInstanceOperation"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(InstanceGroupManagerStatus.prototype, "_isStable", { get: $util.oneOfGetter($oneOfFields = ["isStable"]), @@ -242218,6 +251126,11 @@ $root.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.encode(message.stateful, writer.uint32(/* id 244462412, wireType 2 =*/1955699298).fork()).ldelim(); if (message.versionTarget != null && Object.hasOwnProperty.call(message, "versionTarget")) $root.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.encode(message.versionTarget, writer.uint32(/* id 289386200, wireType 2 =*/2315089602).fork()).ldelim(); + if (message.appliedAcceleratorTopologies != null && message.appliedAcceleratorTopologies.length) + for (var i = 0; i < message.appliedAcceleratorTopologies.length; ++i) + $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.encode(message.appliedAcceleratorTopologies[i], writer.uint32(/* id 481392547, wireType 2 =*/3851140378).fork()).ldelim(); + if (message.bulkInstanceOperation != null && Object.hasOwnProperty.call(message, "bulkInstanceOperation")) + $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.encode(message.bulkInstanceOperation, writer.uint32(/* id 501667466, wireType 2 =*/4013339730).fork()).ldelim(); if (message.autoscaler != null && Object.hasOwnProperty.call(message, "autoscaler")) writer.uint32(/* id 517258967, wireType 2 =*/4138071738).string(message.autoscaler); return writer; @@ -242260,10 +251173,20 @@ message.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.decode(reader, reader.uint32()); break; } + case 481392547: { + if (!(message.appliedAcceleratorTopologies && message.appliedAcceleratorTopologies.length)) + message.appliedAcceleratorTopologies = []; + message.appliedAcceleratorTopologies.push($root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.decode(reader, reader.uint32())); + break; + } case 517258967: { message.autoscaler = reader.string(); break; } + case 501667466: { + message.bulkInstanceOperation = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.decode(reader, reader.uint32()); + break; + } case 108410864: { message.isStable = reader.bool(); break; @@ -242320,11 +251243,28 @@ return "allInstancesConfig." + error; } } + if (message.appliedAcceleratorTopologies != null && message.hasOwnProperty("appliedAcceleratorTopologies")) { + if (!Array.isArray(message.appliedAcceleratorTopologies)) + return "appliedAcceleratorTopologies: array expected"; + for (var i = 0; i < message.appliedAcceleratorTopologies.length; ++i) { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.verify(message.appliedAcceleratorTopologies[i]); + if (error) + return "appliedAcceleratorTopologies." + error; + } + } if (message.autoscaler != null && message.hasOwnProperty("autoscaler")) { properties._autoscaler = 1; if (!$util.isString(message.autoscaler)) return "autoscaler: string expected"; } + if (message.bulkInstanceOperation != null && message.hasOwnProperty("bulkInstanceOperation")) { + properties._bulkInstanceOperation = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.verify(message.bulkInstanceOperation); + if (error) + return "bulkInstanceOperation." + error; + } + } if (message.isStable != null && message.hasOwnProperty("isStable")) { properties._isStable = 1; if (typeof message.isStable !== "boolean") @@ -242366,8 +251306,23 @@ throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatus.allInstancesConfig: object expected"); message.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.fromObject(object.allInstancesConfig); } + if (object.appliedAcceleratorTopologies) { + if (!Array.isArray(object.appliedAcceleratorTopologies)) + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatus.appliedAcceleratorTopologies: array expected"); + message.appliedAcceleratorTopologies = []; + for (var i = 0; i < object.appliedAcceleratorTopologies.length; ++i) { + if (typeof object.appliedAcceleratorTopologies[i] !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatus.appliedAcceleratorTopologies: object expected"); + message.appliedAcceleratorTopologies[i] = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.fromObject(object.appliedAcceleratorTopologies[i]); + } + } if (object.autoscaler != null) message.autoscaler = String(object.autoscaler); + if (object.bulkInstanceOperation != null) { + if (typeof object.bulkInstanceOperation !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatus.bulkInstanceOperation: object expected"); + message.bulkInstanceOperation = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.fromObject(object.bulkInstanceOperation); + } if (object.isStable != null) message.isStable = Boolean(object.isStable); if (object.stateful != null) { @@ -242396,6 +251351,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.appliedAcceleratorTopologies = []; if (message.isStable != null && message.hasOwnProperty("isStable")) { object.isStable = message.isStable; if (options.oneofs) @@ -242416,6 +251373,16 @@ if (options.oneofs) object._versionTarget = "versionTarget"; } + if (message.appliedAcceleratorTopologies && message.appliedAcceleratorTopologies.length) { + object.appliedAcceleratorTopologies = []; + for (var j = 0; j < message.appliedAcceleratorTopologies.length; ++j) + object.appliedAcceleratorTopologies[j] = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.toObject(message.appliedAcceleratorTopologies[j], options); + } + if (message.bulkInstanceOperation != null && message.hasOwnProperty("bulkInstanceOperation")) { + object.bulkInstanceOperation = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.toObject(message.bulkInstanceOperation, options); + if (options.oneofs) + object._bulkInstanceOperation = "bulkInstanceOperation"; + } if (message.autoscaler != null && message.hasOwnProperty("autoscaler")) { object.autoscaler = message.autoscaler; if (options.oneofs) @@ -242453,6 +251420,577 @@ return InstanceGroupManagerStatus; })(); + v1.InstanceGroupManagerStatusAcceleratorTopology = (function() { + + /** + * Properties of an InstanceGroupManagerStatusAcceleratorTopology. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerStatusAcceleratorTopology + * @property {string|null} [acceleratorTopology] InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology + * @property {string|null} [state] InstanceGroupManagerStatusAcceleratorTopology state + * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null} [stateDetails] InstanceGroupManagerStatusAcceleratorTopology stateDetails + */ + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopology. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerStatusAcceleratorTopology. + * @implements IInstanceGroupManagerStatusAcceleratorTopology + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology=} [properties] Properties to set + */ + function InstanceGroupManagerStatusAcceleratorTopology(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology. + * @member {string|null|undefined} acceleratorTopology + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.acceleratorTopology = null; + + /** + * InstanceGroupManagerStatusAcceleratorTopology state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.state = null; + + /** + * InstanceGroupManagerStatusAcceleratorTopology stateDetails. + * @member {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null|undefined} stateDetails + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.stateDetails = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopology.prototype, "_acceleratorTopology", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopology.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopology.prototype, "_stateDetails", { + get: $util.oneOfGetter($oneOfFields = ["stateDetails"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopology instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology instance + */ + InstanceGroupManagerStatusAcceleratorTopology.create = function create(properties) { + return new InstanceGroupManagerStatusAcceleratorTopology(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology} message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopology.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) + $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.encode(message.stateDetails, writer.uint32(/* id 95566996, wireType 2 =*/764535970).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + if (message.acceleratorTopology != null && Object.hasOwnProperty.call(message, "acceleratorTopology")) + writer.uint32(/* id 389323203, wireType 2 =*/3114585626).string(message.acceleratorTopology); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopology} message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopology.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @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.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopology.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.InstanceGroupManagerStatusAcceleratorTopology(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 389323203: { + message.acceleratorTopology = reader.string(); + break; + } + case 109757585: { + message.state = reader.string(); + break; + } + case 95566996: { + message.stateDetails = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopology.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopology message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusAcceleratorTopology.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + properties._acceleratorTopology = 1; + if (!$util.isString(message.acceleratorTopology)) + return "acceleratorTopology: string expected"; + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) { + properties._stateDetails = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify(message.stateDetails); + if (error) + return "stateDetails." + error; + } + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusAcceleratorTopology message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology + */ + InstanceGroupManagerStatusAcceleratorTopology.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology(); + if (object.acceleratorTopology != null) + message.acceleratorTopology = String(object.acceleratorTopology); + if (object.state != null) + message.state = String(object.state); + if (object.stateDetails != null) { + if (typeof object.stateDetails !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.stateDetails: object expected"); + message.stateDetails = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.fromObject(object.stateDetails); + } + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopology message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology} message InstanceGroupManagerStatusAcceleratorTopology + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusAcceleratorTopology.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) { + object.stateDetails = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.toObject(message.stateDetails, options); + if (options.oneofs) + object._stateDetails = "stateDetails"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + object.acceleratorTopology = message.acceleratorTopology; + if (options.oneofs) + object._acceleratorTopology = "acceleratorTopology"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopology to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopology + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusAcceleratorTopology.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopology.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} ACTIVATING=378825968 ACTIVATING value + * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} DEACTIVATING=57182257 DEACTIVATING value + * @property {number} FAILED=455706685 FAILED value + * @property {number} INCOMPLETE=11941214 INCOMPLETE value + * @property {number} REACTIVATING=253727587 REACTIVATING value + */ + InstanceGroupManagerStatusAcceleratorTopology.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[378825968] = "ACTIVATING"] = 378825968; + values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[57182257] = "DEACTIVATING"] = 57182257; + values[valuesById[455706685] = "FAILED"] = 455706685; + values[valuesById[11941214] = "INCOMPLETE"] = 11941214; + values[valuesById[253727587] = "REACTIVATING"] = 253727587; + return values; + })(); + + return InstanceGroupManagerStatusAcceleratorTopology; + })(); + + v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails = (function() { + + /** + * Properties of an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @property {google.cloud.compute.v1.IError|null} [error] InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error + * @property {string|null} [timestamp] InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp + */ + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @implements IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails=} [properties] Properties to set + */ + function InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error. + * @member {google.cloud.compute.v1.IError|null|undefined} error + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype.error = null; + + /** + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp. + * @member {string|null|undefined} timestamp + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype.timestamp = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype, "_error", { + get: $util.oneOfGetter($oneOfFields = ["error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype, "_timestamp", { + get: $util.oneOfGetter($oneOfFields = ["timestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.create = function create(properties) { + return new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 55126294, wireType 2 =*/441010354).string(message.timestamp); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.cloud.compute.v1.Error.encode(message.error, writer.uint32(/* id 96784904, wireType 2 =*/774279234).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @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.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.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.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 96784904: { + message.error = $root.google.cloud.compute.v1.Error.decode(reader, reader.uint32()); + break; + } + case 55126294: { + message.timestamp = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.error != null && message.hasOwnProperty("error")) { + properties._error = 1; + { + var error = $root.google.cloud.compute.v1.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + properties._timestamp = 1; + if (!$util.isString(message.timestamp)) + return "timestamp: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.error: object expected"); + message.error = $root.google.cloud.compute.v1.Error.fromObject(object.error); + } + if (object.timestamp != null) + message.timestamp = String(object.timestamp); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + object.timestamp = message.timestamp; + if (options.oneofs) + object._timestamp = "timestamp"; + } + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.cloud.compute.v1.Error.toObject(message.error, options); + if (options.oneofs) + object._error = "error"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails"; + }; + + return InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + })(); + v1.InstanceGroupManagerStatusAllInstancesConfig = (function() { /** @@ -242704,6 +252242,520 @@ return InstanceGroupManagerStatusAllInstancesConfig; })(); + v1.InstanceGroupManagerStatusBulkInstanceOperation = (function() { + + /** + * Properties of an InstanceGroupManagerStatusBulkInstanceOperation. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerStatusBulkInstanceOperation + * @property {boolean|null} [inProgress] InstanceGroupManagerStatusBulkInstanceOperation inProgress + * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck|null} [lastProgressCheck] InstanceGroupManagerStatusBulkInstanceOperation lastProgressCheck + */ + + /** + * Constructs a new InstanceGroupManagerStatusBulkInstanceOperation. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerStatusBulkInstanceOperation. + * @implements IInstanceGroupManagerStatusBulkInstanceOperation + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation=} [properties] Properties to set + */ + function InstanceGroupManagerStatusBulkInstanceOperation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusBulkInstanceOperation inProgress. + * @member {boolean|null|undefined} inProgress + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @instance + */ + InstanceGroupManagerStatusBulkInstanceOperation.prototype.inProgress = null; + + /** + * InstanceGroupManagerStatusBulkInstanceOperation lastProgressCheck. + * @member {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck|null|undefined} lastProgressCheck + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @instance + */ + InstanceGroupManagerStatusBulkInstanceOperation.prototype.lastProgressCheck = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusBulkInstanceOperation.prototype, "_inProgress", { + get: $util.oneOfGetter($oneOfFields = ["inProgress"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusBulkInstanceOperation.prototype, "_lastProgressCheck", { + get: $util.oneOfGetter($oneOfFields = ["lastProgressCheck"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusBulkInstanceOperation instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation} InstanceGroupManagerStatusBulkInstanceOperation instance + */ + InstanceGroupManagerStatusBulkInstanceOperation.create = function create(properties) { + return new InstanceGroupManagerStatusBulkInstanceOperation(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperation message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation} message InstanceGroupManagerStatusBulkInstanceOperation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusBulkInstanceOperation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.lastProgressCheck != null && Object.hasOwnProperty.call(message, "lastProgressCheck")) + $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.encode(message.lastProgressCheck, writer.uint32(/* id 208638271, wireType 2 =*/1669106170).fork()).ldelim(); + if (message.inProgress != null && Object.hasOwnProperty.call(message, "inProgress")) + writer.uint32(/* id 320200711, wireType 0 =*/2561605688).bool(message.inProgress); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperation} message InstanceGroupManagerStatusBulkInstanceOperation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusBulkInstanceOperation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @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.InstanceGroupManagerStatusBulkInstanceOperation} InstanceGroupManagerStatusBulkInstanceOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusBulkInstanceOperation.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.InstanceGroupManagerStatusBulkInstanceOperation(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 320200711: { + message.inProgress = reader.bool(); + break; + } + case 208638271: { + message.lastProgressCheck = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation} InstanceGroupManagerStatusBulkInstanceOperation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusBulkInstanceOperation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusBulkInstanceOperation message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusBulkInstanceOperation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.inProgress != null && message.hasOwnProperty("inProgress")) { + properties._inProgress = 1; + if (typeof message.inProgress !== "boolean") + return "inProgress: boolean expected"; + } + if (message.lastProgressCheck != null && message.hasOwnProperty("lastProgressCheck")) { + properties._lastProgressCheck = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.verify(message.lastProgressCheck); + if (error) + return "lastProgressCheck." + error; + } + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusBulkInstanceOperation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation} InstanceGroupManagerStatusBulkInstanceOperation + */ + InstanceGroupManagerStatusBulkInstanceOperation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation(); + if (object.inProgress != null) + message.inProgress = Boolean(object.inProgress); + if (object.lastProgressCheck != null) { + if (typeof object.lastProgressCheck !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation.lastProgressCheck: object expected"); + message.lastProgressCheck = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.fromObject(object.lastProgressCheck); + } + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusBulkInstanceOperation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation} message InstanceGroupManagerStatusBulkInstanceOperation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusBulkInstanceOperation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.lastProgressCheck != null && message.hasOwnProperty("lastProgressCheck")) { + object.lastProgressCheck = $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.toObject(message.lastProgressCheck, options); + if (options.oneofs) + object._lastProgressCheck = "lastProgressCheck"; + } + if (message.inProgress != null && message.hasOwnProperty("inProgress")) { + object.inProgress = message.inProgress; + if (options.oneofs) + object._inProgress = "inProgress"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusBulkInstanceOperation to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusBulkInstanceOperation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusBulkInstanceOperation + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusBulkInstanceOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperation"; + }; + + return InstanceGroupManagerStatusBulkInstanceOperation; + })(); + + v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck = (function() { + + /** + * Properties of an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @property {google.cloud.compute.v1.IError|null} [error] InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck error + * @property {string|null} [timestamp] InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck timestamp + */ + + /** + * Constructs a new InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck. + * @implements IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck=} [properties] Properties to set + */ + function InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck error. + * @member {google.cloud.compute.v1.IError|null|undefined} error + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @instance + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.prototype.error = null; + + /** + * InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck timestamp. + * @member {string|null|undefined} timestamp + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @instance + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.prototype.timestamp = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.prototype, "_error", { + get: $util.oneOfGetter($oneOfFields = ["error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.prototype, "_timestamp", { + get: $util.oneOfGetter($oneOfFields = ["timestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck} InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck instance + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.create = function create(properties) { + return new InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck} message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 55126294, wireType 2 =*/441010354).string(message.timestamp); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.cloud.compute.v1.Error.encode(message.error, writer.uint32(/* id 96784904, wireType 2 =*/774279234).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck} message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @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.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck} InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.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.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 96784904: { + message.error = $root.google.cloud.compute.v1.Error.decode(reader, reader.uint32()); + break; + } + case 55126294: { + message.timestamp = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck} InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.error != null && message.hasOwnProperty("error")) { + properties._error = 1; + { + var error = $root.google.cloud.compute.v1.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + properties._timestamp = 1; + if (!$util.isString(message.timestamp)) + return "timestamp: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck} InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.error: object expected"); + message.error = $root.google.cloud.compute.v1.Error.fromObject(object.error); + } + if (object.timestamp != null) + message.timestamp = String(object.timestamp); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck} message InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + object.timestamp = message.timestamp; + if (options.oneofs) + object._timestamp = "timestamp"; + } + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.cloud.compute.v1.Error.toObject(message.error, options); + if (options.oneofs) + object._error = "error"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck"; + }; + + return InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck; + })(); + v1.InstanceGroupManagerStatusStateful = (function() { /** @@ -243397,6 +253449,242 @@ return InstanceGroupManagerStatusVersionTarget; })(); + v1.InstanceGroupManagerTargetSizePolicy = (function() { + + /** + * Properties of an InstanceGroupManagerTargetSizePolicy. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerTargetSizePolicy + * @property {string|null} [mode] InstanceGroupManagerTargetSizePolicy mode + */ + + /** + * Constructs a new InstanceGroupManagerTargetSizePolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerTargetSizePolicy. + * @implements IInstanceGroupManagerTargetSizePolicy + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy=} [properties] Properties to set + */ + function InstanceGroupManagerTargetSizePolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerTargetSizePolicy mode. + * @member {string|null|undefined} mode + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @instance + */ + InstanceGroupManagerTargetSizePolicy.prototype.mode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerTargetSizePolicy.prototype, "_mode", { + get: $util.oneOfGetter($oneOfFields = ["mode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerTargetSizePolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy} InstanceGroupManagerTargetSizePolicy instance + */ + InstanceGroupManagerTargetSizePolicy.create = function create(properties) { + return new InstanceGroupManagerTargetSizePolicy(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerTargetSizePolicy message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy} message InstanceGroupManagerTargetSizePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerTargetSizePolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) + writer.uint32(/* id 3357091, wireType 2 =*/26856730).string(message.mode); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerTargetSizePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerTargetSizePolicy} message InstanceGroupManagerTargetSizePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerTargetSizePolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerTargetSizePolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @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.InstanceGroupManagerTargetSizePolicy} InstanceGroupManagerTargetSizePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerTargetSizePolicy.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.InstanceGroupManagerTargetSizePolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 3357091: { + message.mode = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerTargetSizePolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy} InstanceGroupManagerTargetSizePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerTargetSizePolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerTargetSizePolicy message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerTargetSizePolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.mode != null && message.hasOwnProperty("mode")) { + properties._mode = 1; + if (!$util.isString(message.mode)) + return "mode: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerTargetSizePolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy} InstanceGroupManagerTargetSizePolicy + */ + InstanceGroupManagerTargetSizePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy(); + if (object.mode != null) + message.mode = String(object.mode); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerTargetSizePolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy} message InstanceGroupManagerTargetSizePolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerTargetSizePolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.mode != null && message.hasOwnProperty("mode")) { + object.mode = message.mode; + if (options.oneofs) + object._mode = "mode"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerTargetSizePolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerTargetSizePolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerTargetSizePolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerTargetSizePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy"; + }; + + /** + * Mode enum. + * @name google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy.Mode + * @enum {number} + * @property {number} UNDEFINED_MODE=0 UNDEFINED_MODE value + * @property {number} BULK=2050322 BULK value + * @property {number} INDIVIDUAL=438800025 INDIVIDUAL value + * @property {number} UNSPECIFIED_MODE=53715403 UNSPECIFIED_MODE value + */ + InstanceGroupManagerTargetSizePolicy.Mode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_MODE"] = 0; + values[valuesById[2050322] = "BULK"] = 2050322; + values[valuesById[438800025] = "INDIVIDUAL"] = 438800025; + values[valuesById[53715403] = "UNSPECIFIED_MODE"] = 53715403; + return values; + })(); + + return InstanceGroupManagerTargetSizePolicy; + })(); + v1.InstanceGroupManagerUpdatePolicy = (function() { /** @@ -322254,30 +332542,849 @@ }; /** - * Decodes a ListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPublicDelegatedPrefixesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPublicDelegatedPrefixesRequest.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.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"; + } + return null; + }; + + /** + * Creates a ListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + */ + ListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest(); + 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.region != null) + message.region = String(object.region); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @static + * @param {google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + 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.region != null && message.hasOwnProperty("region")) + object.region = message.region; + 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 ListPublicDelegatedPrefixesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPublicDelegatedPrefixesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest"; + }; + + return ListPublicDelegatedPrefixesRequest; + })(); + + v1.ListReferrersInstancesRequest = (function() { + + /** + * Properties of a ListReferrersInstancesRequest. + * @memberof google.cloud.compute.v1 + * @interface IListReferrersInstancesRequest + * @property {string|null} [filter] ListReferrersInstancesRequest filter + * @property {string|null} [instance] ListReferrersInstancesRequest instance + * @property {number|null} [maxResults] ListReferrersInstancesRequest maxResults + * @property {string|null} [orderBy] ListReferrersInstancesRequest orderBy + * @property {string|null} [pageToken] ListReferrersInstancesRequest pageToken + * @property {string|null} [project] ListReferrersInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] ListReferrersInstancesRequest returnPartialSuccess + * @property {string|null} [zone] ListReferrersInstancesRequest zone + */ + + /** + * Constructs a new ListReferrersInstancesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListReferrersInstancesRequest. + * @implements IListReferrersInstancesRequest + * @constructor + * @param {google.cloud.compute.v1.IListReferrersInstancesRequest=} [properties] Properties to set + */ + function ListReferrersInstancesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListReferrersInstancesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.filter = null; + + /** + * ListReferrersInstancesRequest instance. + * @member {string} instance + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.instance = ""; + + /** + * ListReferrersInstancesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.maxResults = null; + + /** + * ListReferrersInstancesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.orderBy = null; + + /** + * ListReferrersInstancesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.pageToken = null; + + /** + * ListReferrersInstancesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.project = ""; + + /** + * ListReferrersInstancesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.returnPartialSuccess = null; + + /** + * ListReferrersInstancesRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + */ + ListReferrersInstancesRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListReferrersInstancesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListReferrersInstancesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1.IListReferrersInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListReferrersInstancesRequest} ListReferrersInstancesRequest instance + */ + ListReferrersInstancesRequest.create = function create(properties) { + return new ListReferrersInstancesRequest(properties); + }; + + /** + * Encodes the specified ListReferrersInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReferrersInstancesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReferrersInstancesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); + if (message.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 ListReferrersInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReferrersInstancesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListReferrersInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @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.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReferrersInstancesRequest.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.ListReferrersInstancesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 18257045: { + message.instance = 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; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListReferrersInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListReferrersInstancesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListReferrersInstancesRequest.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.instance != null && message.hasOwnProperty("instance")) + if (!$util.isString(message.instance)) + return "instance: 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"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a ListReferrersInstancesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListReferrersInstancesRequest} ListReferrersInstancesRequest + */ + ListReferrersInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListReferrersInstancesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListReferrersInstancesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.instance != null) + message.instance = String(object.instance); + 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.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a ListReferrersInstancesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {google.cloud.compute.v1.ListReferrersInstancesRequest} message ListReferrersInstancesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListReferrersInstancesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instance = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = message.instance; + 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 ListReferrersInstancesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @instance + * @returns {Object.} JSON object + */ + ListReferrersInstancesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListReferrersInstancesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListReferrersInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListReferrersInstancesRequest"; + }; + + return ListReferrersInstancesRequest; + })(); + + v1.ListRegionAutoscalersRequest = (function() { + + /** + * Properties of a ListRegionAutoscalersRequest. + * @memberof google.cloud.compute.v1 + * @interface IListRegionAutoscalersRequest + * @property {string|null} [filter] ListRegionAutoscalersRequest filter + * @property {number|null} [maxResults] ListRegionAutoscalersRequest maxResults + * @property {string|null} [orderBy] ListRegionAutoscalersRequest orderBy + * @property {string|null} [pageToken] ListRegionAutoscalersRequest pageToken + * @property {string|null} [project] ListRegionAutoscalersRequest project + * @property {string|null} [region] ListRegionAutoscalersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionAutoscalersRequest returnPartialSuccess + */ + + /** + * Constructs a new ListRegionAutoscalersRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListRegionAutoscalersRequest. + * @implements IListRegionAutoscalersRequest + * @constructor + * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest=} [properties] Properties to set + */ + function ListRegionAutoscalersRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRegionAutoscalersRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.filter = null; + + /** + * ListRegionAutoscalersRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.maxResults = null; + + /** + * ListRegionAutoscalersRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.orderBy = null; + + /** + * ListRegionAutoscalersRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.pageToken = null; + + /** + * ListRegionAutoscalersRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.project = ""; + + /** + * ListRegionAutoscalersRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.region = ""; + + /** + * ListRegionAutoscalersRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + */ + ListRegionAutoscalersRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRegionAutoscalersRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @static + * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest instance + */ + ListRegionAutoscalersRequest.create = function create(properties) { + return new ListRegionAutoscalersRequest(properties); + }; + + /** + * Encodes the specified ListRegionAutoscalersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionAutoscalersRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @static + * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionAutoscalersRequest.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")) + 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 ListRegionAutoscalersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionAutoscalersRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @static + * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionAutoscalersRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @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.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionAutoscalersRequest.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.ListRegionAutoscalersRequest(); + 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 138946292: { + message.region = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionAutoscalersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPublicDelegatedPrefixesRequest message. + * Verifies a ListRegionAutoscalersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPublicDelegatedPrefixesRequest.verify = function verify(message) { + ListRegionAutoscalersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -322316,17 +333423,17 @@ }; /** - * Creates a ListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionAutoscalersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest} ListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest */ - ListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest) + ListRegionAutoscalersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionAutoscalersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionAutoscalersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -322345,15 +333452,15 @@ }; /** - * Creates a plain object from a ListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionAutoscalersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest * @static - * @param {google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest} message ListPublicDelegatedPrefixesRequest + * @param {google.cloud.compute.v1.ListRegionAutoscalersRequest} message ListRegionAutoscalersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + ListRegionAutoscalersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -322394,59 +333501,58 @@ }; /** - * Converts this ListPublicDelegatedPrefixesRequest to JSON. + * Converts this ListRegionAutoscalersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest * @instance * @returns {Object.} JSON object */ - ListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPublicDelegatedPrefixesRequest + * Gets the default type url for ListRegionAutoscalersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionAutoscalersRequest"; }; - return ListPublicDelegatedPrefixesRequest; + return ListRegionAutoscalersRequest; })(); - v1.ListReferrersInstancesRequest = (function() { + v1.ListRegionBackendServicesRequest = (function() { /** - * Properties of a ListReferrersInstancesRequest. + * Properties of a ListRegionBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IListReferrersInstancesRequest - * @property {string|null} [filter] ListReferrersInstancesRequest filter - * @property {string|null} [instance] ListReferrersInstancesRequest instance - * @property {number|null} [maxResults] ListReferrersInstancesRequest maxResults - * @property {string|null} [orderBy] ListReferrersInstancesRequest orderBy - * @property {string|null} [pageToken] ListReferrersInstancesRequest pageToken - * @property {string|null} [project] ListReferrersInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] ListReferrersInstancesRequest returnPartialSuccess - * @property {string|null} [zone] ListReferrersInstancesRequest zone + * @interface IListRegionBackendServicesRequest + * @property {string|null} [filter] ListRegionBackendServicesRequest filter + * @property {number|null} [maxResults] ListRegionBackendServicesRequest maxResults + * @property {string|null} [orderBy] ListRegionBackendServicesRequest orderBy + * @property {string|null} [pageToken] ListRegionBackendServicesRequest pageToken + * @property {string|null} [project] ListRegionBackendServicesRequest project + * @property {string|null} [region] ListRegionBackendServicesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionBackendServicesRequest returnPartialSuccess */ /** - * Constructs a new ListReferrersInstancesRequest. + * Constructs a new ListRegionBackendServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListReferrersInstancesRequest. - * @implements IListReferrersInstancesRequest + * @classdesc Represents a ListRegionBackendServicesRequest. + * @implements IListRegionBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListReferrersInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set */ - function ListReferrersInstancesRequest(properties) { + function ListRegionBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -322454,134 +333560,124 @@ } /** - * ListReferrersInstancesRequest filter. + * ListRegionBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest - * @instance - */ - ListReferrersInstancesRequest.prototype.filter = null; - - /** - * ListReferrersInstancesRequest instance. - * @member {string} instance - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.instance = ""; + ListRegionBackendServicesRequest.prototype.filter = null; /** - * ListReferrersInstancesRequest maxResults. + * ListRegionBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.maxResults = null; + ListRegionBackendServicesRequest.prototype.maxResults = null; /** - * ListReferrersInstancesRequest orderBy. + * ListRegionBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.orderBy = null; + ListRegionBackendServicesRequest.prototype.orderBy = null; /** - * ListReferrersInstancesRequest pageToken. + * ListRegionBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.pageToken = null; + ListRegionBackendServicesRequest.prototype.pageToken = null; /** - * ListReferrersInstancesRequest project. + * ListRegionBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.project = ""; + ListRegionBackendServicesRequest.prototype.project = ""; /** - * ListReferrersInstancesRequest returnPartialSuccess. - * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * ListRegionBackendServicesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.returnPartialSuccess = null; + ListRegionBackendServicesRequest.prototype.region = ""; /** - * ListReferrersInstancesRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * ListRegionBackendServicesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance */ - ListReferrersInstancesRequest.prototype.zone = ""; + ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListReferrersInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListReferrersInstancesRequest instance using the specified properties. + * Creates a new ListRegionBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListReferrersInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListReferrersInstancesRequest} ListReferrersInstancesRequest instance + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance */ - ListReferrersInstancesRequest.create = function create(properties) { - return new ListReferrersInstancesRequest(properties); + ListRegionBackendServicesRequest.create = function create(properties) { + return new ListRegionBackendServicesRequest(properties); }; /** - * Encodes the specified ListReferrersInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListReferrersInstancesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReferrersInstancesRequest.encode = function encode(message, writer) { + ListRegionBackendServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); - if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); if (message.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")) @@ -322594,33 +333690,33 @@ }; /** - * Encodes the specified ListReferrersInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListReferrersInstancesRequest.verify|verify} messages. + * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.IListReferrersInstancesRequest} message ListReferrersInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListReferrersInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer. + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @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.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReferrersInstancesRequest.decode = function decode(reader, length, error) { + ListRegionBackendServicesRequest.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.ListReferrersInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -322630,10 +333726,6 @@ message.filter = reader.string(); break; } - case 18257045: { - message.instance = reader.string(); - break; - } case 54715419: { message.maxResults = reader.uint32(); break; @@ -322650,12 +333742,12 @@ message.project = reader.string(); break; } - case 517198390: { - message.returnPartialSuccess = reader.bool(); + case 138946292: { + message.region = reader.string(); break; } - case 3744684: { - message.zone = reader.string(); + case 517198390: { + message.returnPartialSuccess = reader.bool(); break; } default: @@ -322667,30 +333759,30 @@ }; /** - * Decodes a ListReferrersInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListReferrersInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListReferrersInstancesRequest message. + * Verifies a ListRegionBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListReferrersInstancesRequest.verify = function verify(message) { + ListRegionBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -322699,9 +333791,6 @@ if (!$util.isString(message.filter)) return "filter: string expected"; } - if (message.instance != null && message.hasOwnProperty("instance")) - if (!$util.isString(message.instance)) - return "instance: string expected"; if (message.maxResults != null && message.hasOwnProperty("maxResults")) { properties._maxResults = 1; if (!$util.isInteger(message.maxResults)) @@ -322720,33 +333809,31 @@ 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 ListReferrersInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListReferrersInstancesRequest} ListReferrersInstancesRequest + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest */ - ListReferrersInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListReferrersInstancesRequest) + ListRegionBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListReferrersInstancesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); - if (object.instance != null) - message.instance = String(object.instance); if (object.maxResults != null) message.maxResults = object.maxResults >>> 0; if (object.orderBy != null) @@ -322755,35 +333842,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); - if (object.zone != null) - message.zone = String(object.zone); return message; }; /** - * Creates a plain object from a ListReferrersInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionBackendServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static - * @param {google.cloud.compute.v1.ListReferrersInstancesRequest} message ListReferrersInstancesRequest + * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListReferrersInstancesRequest.toObject = function toObject(message, options) { + ListRegionBackendServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.zone = ""; - object.instance = ""; + object.region = ""; object.project = ""; } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = message.instance; if (message.pageToken != null && message.hasOwnProperty("pageToken")) { object.pageToken = message.pageToken; if (options.oneofs) @@ -322794,6 +333876,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) @@ -322815,58 +333899,58 @@ }; /** - * Converts this ListReferrersInstancesRequest to JSON. + * Converts this ListRegionBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListReferrersInstancesRequest.prototype.toJSON = function toJSON() { + ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListReferrersInstancesRequest + * Gets the default type url for ListRegionBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListReferrersInstancesRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListReferrersInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListReferrersInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; }; - return ListReferrersInstancesRequest; + return ListRegionBackendServicesRequest; })(); - v1.ListRegionAutoscalersRequest = (function() { + v1.ListRegionCommitmentsRequest = (function() { /** - * Properties of a ListRegionAutoscalersRequest. + * Properties of a ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionAutoscalersRequest - * @property {string|null} [filter] ListRegionAutoscalersRequest filter - * @property {number|null} [maxResults] ListRegionAutoscalersRequest maxResults - * @property {string|null} [orderBy] ListRegionAutoscalersRequest orderBy - * @property {string|null} [pageToken] ListRegionAutoscalersRequest pageToken - * @property {string|null} [project] ListRegionAutoscalersRequest project - * @property {string|null} [region] ListRegionAutoscalersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionAutoscalersRequest returnPartialSuccess + * @interface IListRegionCommitmentsRequest + * @property {string|null} [filter] ListRegionCommitmentsRequest filter + * @property {number|null} [maxResults] ListRegionCommitmentsRequest maxResults + * @property {string|null} [orderBy] ListRegionCommitmentsRequest orderBy + * @property {string|null} [pageToken] ListRegionCommitmentsRequest pageToken + * @property {string|null} [project] ListRegionCommitmentsRequest project + * @property {string|null} [region] ListRegionCommitmentsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionCommitmentsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionAutoscalersRequest. + * Constructs a new ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionAutoscalersRequest. - * @implements IListRegionAutoscalersRequest + * @classdesc Represents a ListRegionCommitmentsRequest. + * @implements IListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set */ - function ListRegionAutoscalersRequest(properties) { + function ListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -322874,116 +333958,116 @@ } /** - * ListRegionAutoscalersRequest filter. + * ListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.filter = null; + ListRegionCommitmentsRequest.prototype.filter = null; /** - * ListRegionAutoscalersRequest maxResults. + * ListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.maxResults = null; + ListRegionCommitmentsRequest.prototype.maxResults = null; /** - * ListRegionAutoscalersRequest orderBy. + * ListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.orderBy = null; + ListRegionCommitmentsRequest.prototype.orderBy = null; /** - * ListRegionAutoscalersRequest pageToken. + * ListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.pageToken = null; + ListRegionCommitmentsRequest.prototype.pageToken = null; /** - * ListRegionAutoscalersRequest project. + * ListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.project = ""; + ListRegionCommitmentsRequest.prototype.project = ""; /** - * ListRegionAutoscalersRequest region. + * ListRegionCommitmentsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.region = ""; + ListRegionCommitmentsRequest.prototype.region = ""; /** - * ListRegionAutoscalersRequest returnPartialSuccess. + * ListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionAutoscalersRequest.prototype.returnPartialSuccess = null; + ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionAutoscalersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionAutoscalersRequest instance using the specified properties. + * Creates a new ListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest instance + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance */ - ListRegionAutoscalersRequest.create = function create(properties) { - return new ListRegionAutoscalersRequest(properties); + ListRegionCommitmentsRequest.create = function create(properties) { + return new ListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified ListRegionAutoscalersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionAutoscalersRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionAutoscalersRequest.encode = function encode(message, writer) { + ListRegionCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -323004,33 +334088,33 @@ }; /** - * Encodes the specified ListRegionAutoscalersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionAutoscalersRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionAutoscalersRequest} message ListRegionAutoscalersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionAutoscalersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @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.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionAutoscalersRequest.decode = function decode(reader, length, error) { + ListRegionCommitmentsRequest.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.ListRegionAutoscalersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -323073,30 +334157,30 @@ }; /** - * Decodes a ListRegionAutoscalersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionAutoscalersRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionAutoscalersRequest message. + * Verifies a ListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionAutoscalersRequest.verify = function verify(message) { + ListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -323135,17 +334219,17 @@ }; /** - * Creates a ListRegionAutoscalersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionAutoscalersRequest} ListRegionAutoscalersRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest */ - ListRegionAutoscalersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionAutoscalersRequest) + ListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionAutoscalersRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -323164,15 +334248,15 @@ }; /** - * Creates a plain object from a ListRegionAutoscalersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.ListRegionAutoscalersRequest} message ListRegionAutoscalersRequest + * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionAutoscalersRequest.toObject = function toObject(message, options) { + ListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -323213,58 +334297,58 @@ }; /** - * Converts this ListRegionAutoscalersRequest to JSON. + * Converts this ListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { + ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionAutoscalersRequest + * Gets the default type url for ListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionAutoscalersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; }; - return ListRegionAutoscalersRequest; + return ListRegionCommitmentsRequest; })(); - v1.ListRegionBackendServicesRequest = (function() { + v1.ListRegionCompositeHealthChecksRequest = (function() { /** - * Properties of a ListRegionBackendServicesRequest. + * Properties of a ListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionBackendServicesRequest - * @property {string|null} [filter] ListRegionBackendServicesRequest filter - * @property {number|null} [maxResults] ListRegionBackendServicesRequest maxResults - * @property {string|null} [orderBy] ListRegionBackendServicesRequest orderBy - * @property {string|null} [pageToken] ListRegionBackendServicesRequest pageToken - * @property {string|null} [project] ListRegionBackendServicesRequest project - * @property {string|null} [region] ListRegionBackendServicesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionBackendServicesRequest returnPartialSuccess + * @interface IListRegionCompositeHealthChecksRequest + * @property {string|null} [filter] ListRegionCompositeHealthChecksRequest filter + * @property {number|null} [maxResults] ListRegionCompositeHealthChecksRequest maxResults + * @property {string|null} [orderBy] ListRegionCompositeHealthChecksRequest orderBy + * @property {string|null} [pageToken] ListRegionCompositeHealthChecksRequest pageToken + * @property {string|null} [project] ListRegionCompositeHealthChecksRequest project + * @property {string|null} [region] ListRegionCompositeHealthChecksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionCompositeHealthChecksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionBackendServicesRequest. + * Constructs a new ListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionBackendServicesRequest. - * @implements IListRegionBackendServicesRequest + * @classdesc Represents a ListRegionCompositeHealthChecksRequest. + * @implements IListRegionCompositeHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set */ - function ListRegionBackendServicesRequest(properties) { + function ListRegionCompositeHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -323272,116 +334356,116 @@ } /** - * ListRegionBackendServicesRequest filter. + * ListRegionCompositeHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.filter = null; + ListRegionCompositeHealthChecksRequest.prototype.filter = null; /** - * ListRegionBackendServicesRequest maxResults. + * ListRegionCompositeHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.maxResults = null; + ListRegionCompositeHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionBackendServicesRequest orderBy. + * ListRegionCompositeHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.orderBy = null; + ListRegionCompositeHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionBackendServicesRequest pageToken. + * ListRegionCompositeHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.pageToken = null; + ListRegionCompositeHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionBackendServicesRequest project. + * ListRegionCompositeHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.project = ""; + ListRegionCompositeHealthChecksRequest.prototype.project = ""; /** - * ListRegionBackendServicesRequest region. + * ListRegionCompositeHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.region = ""; + ListRegionCompositeHealthChecksRequest.prototype.region = ""; /** - * ListRegionBackendServicesRequest returnPartialSuccess. + * ListRegionCompositeHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance */ - ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; + ListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionBackendServicesRequest instance using the specified properties. + * Creates a new ListRegionCompositeHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest instance */ - ListRegionBackendServicesRequest.create = function create(properties) { - return new ListRegionBackendServicesRequest(properties); + ListRegionCompositeHealthChecksRequest.create = function create(properties) { + return new ListRegionCompositeHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.encode = function encode(message, writer) { + ListRegionCompositeHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -323402,33 +334486,33 @@ }; /** - * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @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.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionBackendServicesRequest.decode = function decode(reader, length, error) { + ListRegionCompositeHealthChecksRequest.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.ListRegionBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -323471,30 +334555,30 @@ }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionCompositeHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionBackendServicesRequest message. + * Verifies a ListRegionCompositeHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionBackendServicesRequest.verify = function verify(message) { + ListRegionCompositeHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -323533,17 +334617,17 @@ }; /** - * Creates a ListRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} ListRegionCompositeHealthChecksRequest */ - ListRegionBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) + ListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -323562,15 +334646,15 @@ }; /** - * Creates a plain object from a ListRegionBackendServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest + * @param {google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest} message ListRegionCompositeHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionBackendServicesRequest.toObject = function toObject(message, options) { + ListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -323611,58 +334695,58 @@ }; /** - * Converts this ListRegionBackendServicesRequest to JSON. + * Converts this ListRegionCompositeHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { + ListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionBackendServicesRequest + * Gets the default type url for ListRegionCompositeHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest"; }; - return ListRegionBackendServicesRequest; + return ListRegionCompositeHealthChecksRequest; })(); - v1.ListRegionCommitmentsRequest = (function() { + v1.ListRegionDiskTypesRequest = (function() { /** - * Properties of a ListRegionCommitmentsRequest. + * Properties of a ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionCommitmentsRequest - * @property {string|null} [filter] ListRegionCommitmentsRequest filter - * @property {number|null} [maxResults] ListRegionCommitmentsRequest maxResults - * @property {string|null} [orderBy] ListRegionCommitmentsRequest orderBy - * @property {string|null} [pageToken] ListRegionCommitmentsRequest pageToken - * @property {string|null} [project] ListRegionCommitmentsRequest project - * @property {string|null} [region] ListRegionCommitmentsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionCommitmentsRequest returnPartialSuccess + * @interface IListRegionDiskTypesRequest + * @property {string|null} [filter] ListRegionDiskTypesRequest filter + * @property {number|null} [maxResults] ListRegionDiskTypesRequest maxResults + * @property {string|null} [orderBy] ListRegionDiskTypesRequest orderBy + * @property {string|null} [pageToken] ListRegionDiskTypesRequest pageToken + * @property {string|null} [project] ListRegionDiskTypesRequest project + * @property {string|null} [region] ListRegionDiskTypesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDiskTypesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionCommitmentsRequest. + * Constructs a new ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionCommitmentsRequest. - * @implements IListRegionCommitmentsRequest + * @classdesc Represents a ListRegionDiskTypesRequest. + * @implements IListRegionDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set */ - function ListRegionCommitmentsRequest(properties) { + function ListRegionDiskTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -323670,116 +334754,116 @@ } /** - * ListRegionCommitmentsRequest filter. + * ListRegionDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.filter = null; + ListRegionDiskTypesRequest.prototype.filter = null; /** - * ListRegionCommitmentsRequest maxResults. + * ListRegionDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.maxResults = null; + ListRegionDiskTypesRequest.prototype.maxResults = null; /** - * ListRegionCommitmentsRequest orderBy. + * ListRegionDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.orderBy = null; + ListRegionDiskTypesRequest.prototype.orderBy = null; /** - * ListRegionCommitmentsRequest pageToken. + * ListRegionDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.pageToken = null; + ListRegionDiskTypesRequest.prototype.pageToken = null; /** - * ListRegionCommitmentsRequest project. + * ListRegionDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.project = ""; + ListRegionDiskTypesRequest.prototype.project = ""; /** - * ListRegionCommitmentsRequest region. + * ListRegionDiskTypesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.region = ""; + ListRegionDiskTypesRequest.prototype.region = ""; /** - * ListRegionCommitmentsRequest returnPartialSuccess. + * ListRegionDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionCommitmentsRequest instance using the specified properties. + * Creates a new ListRegionDiskTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance */ - ListRegionCommitmentsRequest.create = function create(properties) { - return new ListRegionCommitmentsRequest(properties); + ListRegionDiskTypesRequest.create = function create(properties) { + return new ListRegionDiskTypesRequest(properties); }; /** - * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encode = function encode(message, writer) { + ListRegionDiskTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -323800,33 +334884,33 @@ }; /** - * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @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.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCommitmentsRequest.decode = function decode(reader, length, error) { + ListRegionDiskTypesRequest.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.ListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -323869,30 +334953,30 @@ }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionCommitmentsRequest message. + * Verifies a ListRegionDiskTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionCommitmentsRequest.verify = function verify(message) { + ListRegionDiskTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -323931,17 +335015,17 @@ }; /** - * Creates a ListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest */ - ListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) + ListRegionDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -323960,15 +335044,15 @@ }; /** - * Creates a plain object from a ListRegionCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest + * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionCommitmentsRequest.toObject = function toObject(message, options) { + ListRegionDiskTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -324009,58 +335093,58 @@ }; /** - * Converts this ListRegionCommitmentsRequest to JSON. + * Converts this ListRegionDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance * @returns {Object.} JSON object */ - ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionCommitmentsRequest + * Gets the default type url for ListRegionDiskTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; }; - return ListRegionCommitmentsRequest; + return ListRegionDiskTypesRequest; })(); - v1.ListRegionDiskTypesRequest = (function() { + v1.ListRegionDisksRequest = (function() { /** - * Properties of a ListRegionDiskTypesRequest. + * Properties of a ListRegionDisksRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionDiskTypesRequest - * @property {string|null} [filter] ListRegionDiskTypesRequest filter - * @property {number|null} [maxResults] ListRegionDiskTypesRequest maxResults - * @property {string|null} [orderBy] ListRegionDiskTypesRequest orderBy - * @property {string|null} [pageToken] ListRegionDiskTypesRequest pageToken - * @property {string|null} [project] ListRegionDiskTypesRequest project - * @property {string|null} [region] ListRegionDiskTypesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionDiskTypesRequest returnPartialSuccess + * @interface IListRegionDisksRequest + * @property {string|null} [filter] ListRegionDisksRequest filter + * @property {number|null} [maxResults] ListRegionDisksRequest maxResults + * @property {string|null} [orderBy] ListRegionDisksRequest orderBy + * @property {string|null} [pageToken] ListRegionDisksRequest pageToken + * @property {string|null} [project] ListRegionDisksRequest project + * @property {string|null} [region] ListRegionDisksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDisksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionDiskTypesRequest. + * Constructs a new ListRegionDisksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDiskTypesRequest. - * @implements IListRegionDiskTypesRequest + * @classdesc Represents a ListRegionDisksRequest. + * @implements IListRegionDisksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set */ - function ListRegionDiskTypesRequest(properties) { + function ListRegionDisksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -324068,116 +335152,116 @@ } /** - * ListRegionDiskTypesRequest filter. + * ListRegionDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.filter = null; + ListRegionDisksRequest.prototype.filter = null; /** - * ListRegionDiskTypesRequest maxResults. + * ListRegionDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.maxResults = null; + ListRegionDisksRequest.prototype.maxResults = null; /** - * ListRegionDiskTypesRequest orderBy. + * ListRegionDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.orderBy = null; + ListRegionDisksRequest.prototype.orderBy = null; /** - * ListRegionDiskTypesRequest pageToken. + * ListRegionDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.pageToken = null; + ListRegionDisksRequest.prototype.pageToken = null; /** - * ListRegionDiskTypesRequest project. + * ListRegionDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.project = ""; + ListRegionDisksRequest.prototype.project = ""; /** - * ListRegionDiskTypesRequest region. + * ListRegionDisksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.region = ""; + ListRegionDisksRequest.prototype.region = ""; /** - * ListRegionDiskTypesRequest returnPartialSuccess. + * ListRegionDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; + ListRegionDisksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDiskTypesRequest instance using the specified properties. + * Creates a new ListRegionDisksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance */ - ListRegionDiskTypesRequest.create = function create(properties) { - return new ListRegionDiskTypesRequest(properties); + ListRegionDisksRequest.create = function create(properties) { + return new ListRegionDisksRequest(properties); }; /** - * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.encode = function encode(message, writer) { + ListRegionDisksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -324198,33 +335282,33 @@ }; /** - * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @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.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDiskTypesRequest.decode = function decode(reader, length, error) { + ListRegionDisksRequest.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.ListRegionDiskTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -324267,30 +335351,30 @@ }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDisksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDiskTypesRequest message. + * Verifies a ListRegionDisksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionDiskTypesRequest.verify = function verify(message) { + ListRegionDisksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -324329,17 +335413,17 @@ }; /** - * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDisksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest */ - ListRegionDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) + ListRegionDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -324358,15 +335442,15 @@ }; /** - * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDisksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest + * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDiskTypesRequest.toObject = function toObject(message, options) { + ListRegionDisksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -324407,58 +335491,58 @@ }; /** - * Converts this ListRegionDiskTypesRequest to JSON. + * Converts this ListRegionDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance * @returns {Object.} JSON object */ - ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { + ListRegionDisksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionDiskTypesRequest + * Gets the default type url for ListRegionDisksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; }; - return ListRegionDiskTypesRequest; + return ListRegionDisksRequest; })(); - v1.ListRegionDisksRequest = (function() { + v1.ListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of a ListRegionDisksRequest. + * Properties of a ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionDisksRequest - * @property {string|null} [filter] ListRegionDisksRequest filter - * @property {number|null} [maxResults] ListRegionDisksRequest maxResults - * @property {string|null} [orderBy] ListRegionDisksRequest orderBy - * @property {string|null} [pageToken] ListRegionDisksRequest pageToken - * @property {string|null} [project] ListRegionDisksRequest project - * @property {string|null} [region] ListRegionDisksRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionDisksRequest 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 ListRegionDisksRequest. + * Constructs a new ListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDisksRequest. - * @implements IListRegionDisksRequest + * @classdesc Represents a ListRegionHealthAggregationPoliciesRequest. + * @implements IListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function ListRegionDisksRequest(properties) { + function ListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -324466,116 +335550,116 @@ } /** - * ListRegionDisksRequest filter. + * ListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.filter = null; + ListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * ListRegionDisksRequest maxResults. + * ListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.maxResults = null; + ListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * ListRegionDisksRequest orderBy. + * ListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.orderBy = null; + ListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * ListRegionDisksRequest pageToken. + * ListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.pageToken = null; + ListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * ListRegionDisksRequest project. + * ListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.project = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * ListRegionDisksRequest region. + * ListRegionHealthAggregationPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.prototype.region = ""; + ListRegionHealthAggregationPoliciesRequest.prototype.region = ""; /** - * ListRegionDisksRequest returnPartialSuccess. + * ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance */ - ListRegionDisksRequest.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(ListRegionDisksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDisksRequest instance using the specified properties. + * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest instance */ - ListRegionDisksRequest.create = function create(properties) { - return new ListRegionDisksRequest(properties); + ListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new ListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest 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 */ - ListRegionDisksRequest.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")) @@ -324596,33 +335680,33 @@ }; /** - * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest 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 */ - ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDisksRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @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.ListRegionDisksRequest} ListRegionDisksRequest + * @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 */ - ListRegionDisksRequest.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.ListRegionDisksRequest(); + 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) @@ -324665,30 +335749,30 @@ }; /** - * Decodes a ListRegionDisksRequest 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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @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 */ - ListRegionDisksRequest.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 ListRegionDisksRequest message. + * Verifies a ListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @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 */ - ListRegionDisksRequest.verify = function verify(message) { + ListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -324727,17 +335811,17 @@ }; /** - * Creates a ListRegionDisksRequest 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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest */ - ListRegionDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) + ListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -324756,15 +335840,15 @@ }; /** - * Creates a plain object from a ListRegionDisksRequest 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.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest + * @param {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDisksRequest.toObject = function toObject(message, options) { + ListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -324805,58 +335889,58 @@ }; /** - * Converts this ListRegionDisksRequest to JSON. + * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionDisksRequest.prototype.toJSON = function toJSON() { + ListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionDisksRequest + * Gets the default type url for ListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest"; }; - return ListRegionDisksRequest; + return ListRegionHealthAggregationPoliciesRequest; })(); - v1.ListRegionHealthAggregationPoliciesRequest = (function() { + v1.ListRegionHealthCheckServicesRequest = (function() { /** - * Properties of a ListRegionHealthAggregationPoliciesRequest. + * Properties of a ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @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 + * @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 ListRegionHealthAggregationPoliciesRequest. + * Constructs a new ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthAggregationPoliciesRequest. - * @implements IListRegionHealthAggregationPoliciesRequest + * @classdesc Represents a ListRegionHealthCheckServicesRequest. + * @implements IListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function ListRegionHealthAggregationPoliciesRequest(properties) { + function ListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -324864,116 +335948,116 @@ } /** - * ListRegionHealthAggregationPoliciesRequest filter. + * ListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.filter = null; + ListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * ListRegionHealthAggregationPoliciesRequest maxResults. + * ListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; + ListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * ListRegionHealthAggregationPoliciesRequest orderBy. + * ListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; + ListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * ListRegionHealthAggregationPoliciesRequest pageToken. + * ListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; + ListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * ListRegionHealthAggregationPoliciesRequest project. + * ListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.project = ""; + ListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * ListRegionHealthAggregationPoliciesRequest region. + * ListRegionHealthCheckServicesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.prototype.region = ""; + ListRegionHealthCheckServicesRequest.prototype.region = ""; /** - * ListRegionHealthAggregationPoliciesRequest returnPartialSuccess. + * ListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionHealthAggregationPoliciesRequest.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(ListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance */ - ListRegionHealthAggregationPoliciesRequest.create = function create(properties) { - return new ListRegionHealthAggregationPoliciesRequest(properties); + ListRegionHealthCheckServicesRequest.create = function create(properties) { + return new ListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified ListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.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.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest 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 */ - ListRegionHealthAggregationPoliciesRequest.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")) @@ -324994,33 +336078,33 @@ }; /** - * Encodes the specified ListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest.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.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest 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 */ - ListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @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.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest + * @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 */ - ListRegionHealthAggregationPoliciesRequest.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.ListRegionHealthAggregationPoliciesRequest(); + 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) @@ -325063,30 +336147,30 @@ }; /** - * Decodes a ListRegionHealthAggregationPoliciesRequest 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.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest + * @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 */ - ListRegionHealthAggregationPoliciesRequest.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 ListRegionHealthAggregationPoliciesRequest message. + * Verifies a ListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @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 */ - ListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { + ListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -325125,17 +336209,17 @@ }; /** - * Creates a ListRegionHealthAggregationPoliciesRequest 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.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} ListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest */ - ListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest) + ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -325154,15 +336238,15 @@ }; /** - * Creates a plain object from a ListRegionHealthAggregationPoliciesRequest 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.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest} message ListRegionHealthAggregationPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { + ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -325203,58 +336287,58 @@ }; /** - * Converts this ListRegionHealthAggregationPoliciesRequest to JSON. + * Converts this ListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthAggregationPoliciesRequest + * Gets the default type url for ListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthAggregationPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; }; - return ListRegionHealthAggregationPoliciesRequest; + return ListRegionHealthCheckServicesRequest; })(); - v1.ListRegionHealthCheckServicesRequest = (function() { + v1.ListRegionHealthChecksRequest = (function() { /** - * Properties of a ListRegionHealthCheckServicesRequest. + * Properties of a ListRegionHealthChecksRequest. * @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 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 ListRegionHealthCheckServicesRequest. + * Constructs a new ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthCheckServicesRequest. - * @implements IListRegionHealthCheckServicesRequest + * @classdesc Represents a ListRegionHealthChecksRequest. + * @implements IListRegionHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set */ - function ListRegionHealthCheckServicesRequest(properties) { + function ListRegionHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -325262,116 +336346,116 @@ } /** - * ListRegionHealthCheckServicesRequest filter. + * ListRegionHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.filter = null; + ListRegionHealthChecksRequest.prototype.filter = null; /** - * ListRegionHealthCheckServicesRequest maxResults. + * ListRegionHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.maxResults = null; + ListRegionHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionHealthCheckServicesRequest orderBy. + * ListRegionHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.orderBy = null; + ListRegionHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionHealthCheckServicesRequest pageToken. + * ListRegionHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.pageToken = null; + ListRegionHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionHealthCheckServicesRequest project. + * ListRegionHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.project = ""; + ListRegionHealthChecksRequest.prototype.project = ""; /** - * ListRegionHealthCheckServicesRequest region. + * ListRegionHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.region = ""; + ListRegionHealthChecksRequest.prototype.region = ""; /** - * ListRegionHealthCheckServicesRequest returnPartialSuccess. + * ListRegionHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.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(ListRegionHealthCheckServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. + * Creates a new ListRegionHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance */ - ListRegionHealthCheckServicesRequest.create = function create(properties) { - return new ListRegionHealthCheckServicesRequest(properties); + ListRegionHealthChecksRequest.create = function create(properties) { + return new ListRegionHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest 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 */ - ListRegionHealthCheckServicesRequest.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")) @@ -325392,33 +336476,33 @@ }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest 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 */ - ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @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.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @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 */ - ListRegionHealthCheckServicesRequest.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.ListRegionHealthCheckServicesRequest(); + 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) @@ -325461,30 +336545,30 @@ }; /** - * Decodes a ListRegionHealthCheckServicesRequest 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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @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 */ - ListRegionHealthCheckServicesRequest.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 ListRegionHealthCheckServicesRequest message. + * Verifies a ListRegionHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @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 */ - ListRegionHealthCheckServicesRequest.verify = function verify(message) { + ListRegionHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -325523,17 +336607,17 @@ }; /** - * Creates a ListRegionHealthCheckServicesRequest 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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest */ - ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) + ListRegionHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -325552,15 +336636,15 @@ }; /** - * Creates a plain object from a ListRegionHealthCheckServicesRequest 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.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest + * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { + ListRegionHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -325601,58 +336685,58 @@ }; /** - * Converts this ListRegionHealthCheckServicesRequest to JSON. + * Converts this ListRegionHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { + ListRegionHealthChecksRequest.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 ListRegionHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; }; - return ListRegionHealthCheckServicesRequest; + return ListRegionHealthChecksRequest; })(); - v1.ListRegionHealthChecksRequest = (function() { + v1.ListRegionHealthSourcesRequest = (function() { /** - * Properties of a ListRegionHealthChecksRequest. + * Properties of a ListRegionHealthSourcesRequest. * @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 IListRegionHealthSourcesRequest + * @property {string|null} [filter] ListRegionHealthSourcesRequest filter + * @property {number|null} [maxResults] ListRegionHealthSourcesRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthSourcesRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthSourcesRequest pageToken + * @property {string|null} [project] ListRegionHealthSourcesRequest project + * @property {string|null} [region] ListRegionHealthSourcesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthSourcesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionHealthChecksRequest. + * Constructs a new ListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthChecksRequest. - * @implements IListRegionHealthChecksRequest + * @classdesc Represents a ListRegionHealthSourcesRequest. + * @implements IListRegionHealthSourcesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest=} [properties] Properties to set */ - function ListRegionHealthChecksRequest(properties) { + function ListRegionHealthSourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -325660,116 +336744,116 @@ } /** - * ListRegionHealthChecksRequest filter. + * ListRegionHealthSourcesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.filter = null; + ListRegionHealthSourcesRequest.prototype.filter = null; /** - * ListRegionHealthChecksRequest maxResults. + * ListRegionHealthSourcesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.maxResults = null; + ListRegionHealthSourcesRequest.prototype.maxResults = null; /** - * ListRegionHealthChecksRequest orderBy. + * ListRegionHealthSourcesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.orderBy = null; + ListRegionHealthSourcesRequest.prototype.orderBy = null; /** - * ListRegionHealthChecksRequest pageToken. + * ListRegionHealthSourcesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.pageToken = null; + ListRegionHealthSourcesRequest.prototype.pageToken = null; /** - * ListRegionHealthChecksRequest project. + * ListRegionHealthSourcesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.project = ""; + ListRegionHealthSourcesRequest.prototype.project = ""; /** - * ListRegionHealthChecksRequest region. + * ListRegionHealthSourcesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.region = ""; + ListRegionHealthSourcesRequest.prototype.region = ""; /** - * ListRegionHealthChecksRequest returnPartialSuccess. + * ListRegionHealthSourcesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance */ - ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; + ListRegionHealthSourcesRequest.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(ListRegionHealthSourcesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthChecksRequest instance using the specified properties. + * Creates a new ListRegionHealthSourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest instance */ - ListRegionHealthChecksRequest.create = function create(properties) { - return new ListRegionHealthChecksRequest(properties); + ListRegionHealthSourcesRequest.create = function create(properties) { + return new ListRegionHealthSourcesRequest(properties); }; /** - * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encode = function encode(message, writer) { + ListRegionHealthSourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -325790,33 +336874,33 @@ }; /** - * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthSourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @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.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest * @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) { + ListRegionHealthSourcesRequest.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.ListRegionHealthSourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -325859,30 +336943,30 @@ }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest * @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) { + ListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionHealthChecksRequest message. + * Verifies a ListRegionHealthSourcesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @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) { + ListRegionHealthSourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -325921,17 +337005,17 @@ }; /** - * Creates a ListRegionHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthSourcesRequest 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.ListRegionHealthSourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthSourcesRequest} ListRegionHealthSourcesRequest */ - ListRegionHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) + ListRegionHealthSourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -325950,15 +337034,15 @@ }; /** - * Creates a plain object from a ListRegionHealthChecksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthSourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest + * @param {google.cloud.compute.v1.ListRegionHealthSourcesRequest} message ListRegionHealthSourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthChecksRequest.toObject = function toObject(message, options) { + ListRegionHealthSourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -325999,32 +337083,32 @@ }; /** - * Converts this ListRegionHealthChecksRequest to JSON. + * Converts this ListRegionHealthSourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { + ListRegionHealthSourcesRequest.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 ListRegionHealthSourcesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthSourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthSourcesRequest"; }; - return ListRegionHealthChecksRequest; + return ListRegionHealthSourcesRequest; })(); v1.ListRegionInstanceGroupManagersRequest = (function() { @@ -385651,6 +396735,468 @@ return NotificationEndpoint; })(); + v1.NotificationEndpointAggregatedList = (function() { + + /** + * Properties of a NotificationEndpointAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface INotificationEndpointAggregatedList + * @property {string|null} [id] NotificationEndpointAggregatedList id + * @property {Object.|null} [items] NotificationEndpointAggregatedList items + * @property {string|null} [kind] NotificationEndpointAggregatedList kind + * @property {string|null} [nextPageToken] NotificationEndpointAggregatedList nextPageToken + * @property {string|null} [selfLink] NotificationEndpointAggregatedList selfLink + * @property {Array.|null} [unreachables] NotificationEndpointAggregatedList unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] NotificationEndpointAggregatedList warning + */ + + /** + * Constructs a new NotificationEndpointAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NotificationEndpointAggregatedList. + * @implements INotificationEndpointAggregatedList + * @constructor + * @param {google.cloud.compute.v1.INotificationEndpointAggregatedList=} [properties] Properties to set + */ + function NotificationEndpointAggregatedList(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]]; + } + + /** + * NotificationEndpointAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.id = null; + + /** + * NotificationEndpointAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.items = $util.emptyObject; + + /** + * NotificationEndpointAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.kind = null; + + /** + * NotificationEndpointAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.nextPageToken = null; + + /** + * NotificationEndpointAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.selfLink = null; + + /** + * NotificationEndpointAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * NotificationEndpointAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NotificationEndpointAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1.INotificationEndpointAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList instance + */ + NotificationEndpointAggregatedList.create = function create(properties) { + return new NotificationEndpointAggregatedList(properties); + }; + + /** + * Encodes the specified NotificationEndpointAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1.INotificationEndpointAggregatedList} message NotificationEndpointAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointAggregatedList.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.NotificationEndpointsScopedList.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 NotificationEndpointAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1.INotificationEndpointAggregatedList} message NotificationEndpointAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @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.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointAggregatedList.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.NotificationEndpointAggregatedList(), 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.NotificationEndpointsScopedList.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; + } + } + return message; + }; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NotificationEndpointAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationEndpointAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.NotificationEndpointsScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.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 NotificationEndpointAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList + */ + NotificationEndpointAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NotificationEndpointAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.NotificationEndpointAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.NotificationEndpointAggregatedList.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.NotificationEndpointAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.NotificationEndpointsScopedList.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.NotificationEndpointAggregatedList.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.NotificationEndpointAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a NotificationEndpointAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1.NotificationEndpointAggregatedList} message NotificationEndpointAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationEndpointAggregatedList.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._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1.NotificationEndpointsScopedList.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"; + } + return object; + }; + + /** + * Converts this NotificationEndpointAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @instance + * @returns {Object.} JSON object + */ + NotificationEndpointAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationEndpointAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.NotificationEndpointAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationEndpointAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.NotificationEndpointAggregatedList"; + }; + + return NotificationEndpointAggregatedList; + })(); + v1.NotificationEndpointGrpcSettings = (function() { /** @@ -386408,6 +397954,275 @@ return NotificationEndpointList; })(); + v1.NotificationEndpointsScopedList = (function() { + + /** + * Properties of a NotificationEndpointsScopedList. + * @memberof google.cloud.compute.v1 + * @interface INotificationEndpointsScopedList + * @property {Array.|null} [resources] NotificationEndpointsScopedList resources + * @property {google.cloud.compute.v1.IWarning|null} [warning] NotificationEndpointsScopedList warning + */ + + /** + * Constructs a new NotificationEndpointsScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NotificationEndpointsScopedList. + * @implements INotificationEndpointsScopedList + * @constructor + * @param {google.cloud.compute.v1.INotificationEndpointsScopedList=} [properties] Properties to set + */ + function NotificationEndpointsScopedList(properties) { + this.resources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationEndpointsScopedList resources. + * @member {Array.} resources + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @instance + */ + NotificationEndpointsScopedList.prototype.resources = $util.emptyArray; + + /** + * NotificationEndpointsScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @instance + */ + NotificationEndpointsScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointsScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NotificationEndpointsScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1.INotificationEndpointsScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NotificationEndpointsScopedList} NotificationEndpointsScopedList instance + */ + NotificationEndpointsScopedList.create = function create(properties) { + return new NotificationEndpointsScopedList(properties); + }; + + /** + * Encodes the specified NotificationEndpointsScopedList message. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointsScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1.INotificationEndpointsScopedList} message NotificationEndpointsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointsScopedList.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.resources != null && message.resources.length) + for (var i = 0; i < message.resources.length; ++i) + $root.google.cloud.compute.v1.NotificationEndpoint.encode(message.resources[i], writer.uint32(/* id 164412965, wireType 2 =*/1315303722).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NotificationEndpointsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NotificationEndpointsScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1.INotificationEndpointsScopedList} message NotificationEndpointsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointsScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @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.NotificationEndpointsScopedList} NotificationEndpointsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointsScopedList.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.NotificationEndpointsScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 164412965: { + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push($root.google.cloud.compute.v1.NotificationEndpoint.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NotificationEndpointsScopedList} NotificationEndpointsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointsScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NotificationEndpointsScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationEndpointsScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resources != null && message.hasOwnProperty("resources")) { + if (!Array.isArray(message.resources)) + return "resources: array expected"; + for (var i = 0; i < message.resources.length; ++i) { + var error = $root.google.cloud.compute.v1.NotificationEndpoint.verify(message.resources[i]); + if (error) + return "resources." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a NotificationEndpointsScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NotificationEndpointsScopedList} NotificationEndpointsScopedList + */ + NotificationEndpointsScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NotificationEndpointsScopedList) + return object; + var message = new $root.google.cloud.compute.v1.NotificationEndpointsScopedList(); + if (object.resources) { + if (!Array.isArray(object.resources)) + throw TypeError(".google.cloud.compute.v1.NotificationEndpointsScopedList.resources: array expected"); + message.resources = []; + for (var i = 0; i < object.resources.length; ++i) { + if (typeof object.resources[i] !== "object") + throw TypeError(".google.cloud.compute.v1.NotificationEndpointsScopedList.resources: object expected"); + message.resources[i] = $root.google.cloud.compute.v1.NotificationEndpoint.fromObject(object.resources[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.NotificationEndpointsScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a NotificationEndpointsScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1.NotificationEndpointsScopedList} message NotificationEndpointsScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationEndpointsScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.resources = []; + 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.resources && message.resources.length) { + object.resources = []; + for (var j = 0; j < message.resources.length; ++j) + object.resources[j] = $root.google.cloud.compute.v1.NotificationEndpoint.toObject(message.resources[j], options); + } + return object; + }; + + /** + * Converts this NotificationEndpointsScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @instance + * @returns {Object.} JSON object + */ + NotificationEndpointsScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationEndpointsScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.NotificationEndpointsScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationEndpointsScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.NotificationEndpointsScopedList"; + }; + + return NotificationEndpointsScopedList; + })(); + v1.Operation = (function() { /** @@ -386419,6 +398234,7 @@ * @property {string|null} [description] Operation description * @property {string|null} [endTime] Operation endTime * @property {google.cloud.compute.v1.IError|null} [error] Operation error + * @property {google.cloud.compute.v1.IGetVersionOperationMetadata|null} [getVersionOperationMetadata] Operation getVersionOperationMetadata * @property {string|null} [httpErrorMessage] Operation httpErrorMessage * @property {number|null} [httpErrorStatusCode] Operation httpErrorStatusCode * @property {number|Long|null} [id] Operation id @@ -386498,6 +398314,14 @@ */ Operation.prototype.error = null; + /** + * Operation getVersionOperationMetadata. + * @member {google.cloud.compute.v1.IGetVersionOperationMetadata|null|undefined} getVersionOperationMetadata + * @memberof google.cloud.compute.v1.Operation + * @instance + */ + Operation.prototype.getVersionOperationMetadata = null; + /** * Operation httpErrorMessage. * @member {string|null|undefined} httpErrorMessage @@ -386699,6 +398523,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Operation.prototype, "_getVersionOperationMetadata", { + get: $util.oneOfGetter($oneOfFields = ["getVersionOperationMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Operation.prototype, "_httpErrorMessage", { get: $util.oneOfGetter($oneOfFields = ["httpErrorMessage"]), @@ -386871,6 +398701,8 @@ writer.uint32(/* id 114938801, wireType 2 =*/919510410).string(message.endTime); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.getVersionOperationMetadata != null && Object.hasOwnProperty.call(message, "getVersionOperationMetadata")) + $root.google.cloud.compute.v1.GetVersionOperationMetadata.encode(message.getVersionOperationMetadata, writer.uint32(/* id 173230167, wireType 2 =*/1385841338).fork()).ldelim(); if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) writer.uint32(/* id 177650450, wireType 2 =*/1421203602).string(message.operationType); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -386952,6 +398784,10 @@ message.error = $root.google.cloud.compute.v1.Error.decode(reader, reader.uint32()); break; } + case 173230167: { + message.getVersionOperationMetadata = $root.google.cloud.compute.v1.GetVersionOperationMetadata.decode(reader, reader.uint32()); + break; + } case 202521945: { message.httpErrorMessage = reader.string(); break; @@ -387102,6 +398938,14 @@ return "error." + error; } } + if (message.getVersionOperationMetadata != null && message.hasOwnProperty("getVersionOperationMetadata")) { + properties._getVersionOperationMetadata = 1; + { + var error = $root.google.cloud.compute.v1.GetVersionOperationMetadata.verify(message.getVersionOperationMetadata); + if (error) + return "getVersionOperationMetadata." + error; + } + } if (message.httpErrorMessage != null && message.hasOwnProperty("httpErrorMessage")) { properties._httpErrorMessage = 1; if (!$util.isString(message.httpErrorMessage)) @@ -387252,6 +399096,11 @@ throw TypeError(".google.cloud.compute.v1.Operation.error: object expected"); message.error = $root.google.cloud.compute.v1.Error.fromObject(object.error); } + if (object.getVersionOperationMetadata != null) { + if (typeof object.getVersionOperationMetadata !== "object") + throw TypeError(".google.cloud.compute.v1.Operation.getVersionOperationMetadata: object expected"); + message.getVersionOperationMetadata = $root.google.cloud.compute.v1.GetVersionOperationMetadata.fromObject(object.getVersionOperationMetadata); + } if (object.httpErrorMessage != null) message.httpErrorMessage = String(object.httpErrorMessage); if (object.httpErrorStatusCode != null) @@ -387435,6 +399284,11 @@ if (options.oneofs) object._region = "region"; } + if (message.getVersionOperationMetadata != null && message.hasOwnProperty("getVersionOperationMetadata")) { + object.getVersionOperationMetadata = $root.google.cloud.compute.v1.GetVersionOperationMetadata.toObject(message.getVersionOperationMetadata, options); + if (options.oneofs) + object._getVersionOperationMetadata = "getVersionOperationMetadata"; + } if (message.operationType != null && message.hasOwnProperty("operationType")) { object.operationType = message.operationType; if (options.oneofs) @@ -403043,6 +414897,323 @@ return PatchRegionBackendServiceRequest; })(); + v1.PatchRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a PatchRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @interface IPatchRegionCompositeHealthCheckRequest + * @property {string|null} [compositeHealthCheck] PatchRegionCompositeHealthCheckRequest compositeHealthCheck + * @property {google.cloud.compute.v1.ICompositeHealthCheck|null} [compositeHealthCheckResource] PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource + * @property {string|null} [project] PatchRegionCompositeHealthCheckRequest project + * @property {string|null} [region] PatchRegionCompositeHealthCheckRequest region + * @property {string|null} [requestId] PatchRegionCompositeHealthCheckRequest requestId + */ + + /** + * Constructs a new PatchRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a PatchRegionCompositeHealthCheckRequest. + * @implements IPatchRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function PatchRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PatchRegionCompositeHealthCheckRequest compositeHealthCheck. + * @member {string} compositeHealthCheck + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.compositeHealthCheck = ""; + + /** + * PatchRegionCompositeHealthCheckRequest compositeHealthCheckResource. + * @member {google.cloud.compute.v1.ICompositeHealthCheck|null|undefined} compositeHealthCheckResource + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.compositeHealthCheckResource = null; + + /** + * PatchRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * PatchRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * PatchRegionCompositeHealthCheckRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @instance + */ + PatchRegionCompositeHealthCheckRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionCompositeHealthCheckRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest instance + */ + PatchRegionCompositeHealthCheckRequest.create = function create(properties) { + return new PatchRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest} message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionCompositeHealthCheckRequest.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.compositeHealthCheckResource != null && Object.hasOwnProperty.call(message, "compositeHealthCheckResource")) + $root.google.cloud.compute.v1.CompositeHealthCheck.encode(message.compositeHealthCheckResource, writer.uint32(/* id 132195824, wireType 2 =*/1057566594).fork()).ldelim(); + 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.compositeHealthCheck != null && Object.hasOwnProperty.call(message, "compositeHealthCheck")) + writer.uint32(/* id 466984989, wireType 2 =*/3735879914).string(message.compositeHealthCheck); + return writer; + }; + + /** + * Encodes the specified PatchRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest} message PatchRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @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.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionCompositeHealthCheckRequest.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.PatchRegionCompositeHealthCheckRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 466984989: { + message.compositeHealthCheck = reader.string(); + break; + } + case 132195824: { + message.compositeHealthCheckResource = $root.google.cloud.compute.v1.CompositeHealthCheck.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 PatchRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchRegionCompositeHealthCheckRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + if (!$util.isString(message.compositeHealthCheck)) + return "compositeHealthCheck: string expected"; + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) { + var error = $root.google.cloud.compute.v1.CompositeHealthCheck.verify(message.compositeHealthCheckResource); + if (error) + return "compositeHealthCheckResource." + 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 PatchRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest} PatchRegionCompositeHealthCheckRequest + */ + PatchRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest(); + if (object.compositeHealthCheck != null) + message.compositeHealthCheck = String(object.compositeHealthCheck); + if (object.compositeHealthCheckResource != null) { + if (typeof object.compositeHealthCheckResource !== "object") + throw TypeError(".google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest.compositeHealthCheckResource: object expected"); + message.compositeHealthCheckResource = $root.google.cloud.compute.v1.CompositeHealthCheck.fromObject(object.compositeHealthCheckResource); + } + 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 PatchRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest} message PatchRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchRegionCompositeHealthCheckRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.compositeHealthCheckResource = null; + object.region = ""; + object.project = ""; + object.compositeHealthCheck = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.compositeHealthCheckResource != null && message.hasOwnProperty("compositeHealthCheckResource")) + object.compositeHealthCheckResource = $root.google.cloud.compute.v1.CompositeHealthCheck.toObject(message.compositeHealthCheckResource, options); + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.compositeHealthCheck != null && message.hasOwnProperty("compositeHealthCheck")) + object.compositeHealthCheck = message.compositeHealthCheck; + return object; + }; + + /** + * Converts this PatchRegionCompositeHealthCheckRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @instance + * @returns {Object.} JSON object + */ + PatchRegionCompositeHealthCheckRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchRegionCompositeHealthCheckRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest"; + }; + + return PatchRegionCompositeHealthCheckRequest; + })(); + v1.PatchRegionHealthAggregationPolicyRequest = (function() { /** @@ -403994,6 +416165,323 @@ return PatchRegionHealthCheckServiceRequest; })(); + v1.PatchRegionHealthSourceRequest = (function() { + + /** + * Properties of a PatchRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @interface IPatchRegionHealthSourceRequest + * @property {string|null} [healthSource] PatchRegionHealthSourceRequest healthSource + * @property {google.cloud.compute.v1.IHealthSource|null} [healthSourceResource] PatchRegionHealthSourceRequest healthSourceResource + * @property {string|null} [project] PatchRegionHealthSourceRequest project + * @property {string|null} [region] PatchRegionHealthSourceRequest region + * @property {string|null} [requestId] PatchRegionHealthSourceRequest requestId + */ + + /** + * Constructs a new PatchRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a PatchRegionHealthSourceRequest. + * @implements IPatchRegionHealthSourceRequest + * @constructor + * @param {google.cloud.compute.v1.IPatchRegionHealthSourceRequest=} [properties] Properties to set + */ + function PatchRegionHealthSourceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PatchRegionHealthSourceRequest healthSource. + * @member {string} healthSource + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @instance + */ + PatchRegionHealthSourceRequest.prototype.healthSource = ""; + + /** + * PatchRegionHealthSourceRequest healthSourceResource. + * @member {google.cloud.compute.v1.IHealthSource|null|undefined} healthSourceResource + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @instance + */ + PatchRegionHealthSourceRequest.prototype.healthSourceResource = null; + + /** + * PatchRegionHealthSourceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @instance + */ + PatchRegionHealthSourceRequest.prototype.project = ""; + + /** + * PatchRegionHealthSourceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @instance + */ + PatchRegionHealthSourceRequest.prototype.region = ""; + + /** + * PatchRegionHealthSourceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @instance + */ + PatchRegionHealthSourceRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(PatchRegionHealthSourceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PatchRegionHealthSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.PatchRegionHealthSourceRequest} PatchRegionHealthSourceRequest instance + */ + PatchRegionHealthSourceRequest.create = function create(properties) { + return new PatchRegionHealthSourceRequest(properties); + }; + + /** + * Encodes the specified PatchRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionHealthSourceRequest} message PatchRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionHealthSourceRequest.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.healthSourceResource != null && Object.hasOwnProperty.call(message, "healthSourceResource")) + $root.google.cloud.compute.v1.HealthSource.encode(message.healthSourceResource, writer.uint32(/* id 357735375, wireType 2 =*/2861883002).fork()).ldelim(); + if (message.healthSource != null && Object.hasOwnProperty.call(message, "healthSource")) + writer.uint32(/* id 376521566, wireType 2 =*/3012172530).string(message.healthSource); + return writer; + }; + + /** + * Encodes the specified PatchRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PatchRegionHealthSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.IPatchRegionHealthSourceRequest} message PatchRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PatchRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PatchRegionHealthSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @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.PatchRegionHealthSourceRequest} PatchRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionHealthSourceRequest.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.PatchRegionHealthSourceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 376521566: { + message.healthSource = reader.string(); + break; + } + case 357735375: { + message.healthSourceResource = $root.google.cloud.compute.v1.HealthSource.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 PatchRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.PatchRegionHealthSourceRequest} PatchRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PatchRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PatchRegionHealthSourceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PatchRegionHealthSourceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + if (!$util.isString(message.healthSource)) + return "healthSource: string expected"; + if (message.healthSourceResource != null && message.hasOwnProperty("healthSourceResource")) { + var error = $root.google.cloud.compute.v1.HealthSource.verify(message.healthSourceResource); + if (error) + return "healthSourceResource." + 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 PatchRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.PatchRegionHealthSourceRequest} PatchRegionHealthSourceRequest + */ + PatchRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.PatchRegionHealthSourceRequest) + return object; + var message = new $root.google.cloud.compute.v1.PatchRegionHealthSourceRequest(); + if (object.healthSource != null) + message.healthSource = String(object.healthSource); + if (object.healthSourceResource != null) { + if (typeof object.healthSourceResource !== "object") + throw TypeError(".google.cloud.compute.v1.PatchRegionHealthSourceRequest.healthSourceResource: object expected"); + message.healthSourceResource = $root.google.cloud.compute.v1.HealthSource.fromObject(object.healthSourceResource); + } + 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 PatchRegionHealthSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.PatchRegionHealthSourceRequest} message PatchRegionHealthSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PatchRegionHealthSourceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.healthSourceResource = null; + object.healthSource = ""; + } + 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.healthSourceResource != null && message.hasOwnProperty("healthSourceResource")) + object.healthSourceResource = $root.google.cloud.compute.v1.HealthSource.toObject(message.healthSourceResource, options); + if (message.healthSource != null && message.hasOwnProperty("healthSource")) + object.healthSource = message.healthSource; + return object; + }; + + /** + * Converts this PatchRegionHealthSourceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @instance + * @returns {Object.} JSON object + */ + PatchRegionHealthSourceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PatchRegionHealthSourceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.PatchRegionHealthSourceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PatchRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.PatchRegionHealthSourceRequest"; + }; + + return PatchRegionHealthSourceRequest; + })(); + v1.PatchRegionInstanceGroupManagerRequest = (function() { /** @@ -452758,6 +465246,245 @@ return ReservationSlotsGetResponse; })(); + v1.ReservationSlotsGetVersionRequest = (function() { + + /** + * Properties of a ReservationSlotsGetVersionRequest. + * @memberof google.cloud.compute.v1 + * @interface IReservationSlotsGetVersionRequest + * @property {Array.|null} [sbomSelections] ReservationSlotsGetVersionRequest sbomSelections + */ + + /** + * Constructs a new ReservationSlotsGetVersionRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSlotsGetVersionRequest. + * @implements IReservationSlotsGetVersionRequest + * @constructor + * @param {google.cloud.compute.v1.IReservationSlotsGetVersionRequest=} [properties] Properties to set + */ + function ReservationSlotsGetVersionRequest(properties) { + this.sbomSelections = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotsGetVersionRequest sbomSelections. + * @member {Array.} sbomSelections + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @instance + */ + ReservationSlotsGetVersionRequest.prototype.sbomSelections = $util.emptyArray; + + /** + * Creates a new ReservationSlotsGetVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1.IReservationSlotsGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest instance + */ + ReservationSlotsGetVersionRequest.create = function create(properties) { + return new ReservationSlotsGetVersionRequest(properties); + }; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1.IReservationSlotsGetVersionRequest} message ReservationSlotsGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sbomSelections != null && message.sbomSelections.length) + for (var i = 0; i < message.sbomSelections.length; ++i) + writer.uint32(/* id 69155705, wireType 2 =*/553245642).string(message.sbomSelections[i]); + return writer; + }; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1.IReservationSlotsGetVersionRequest} message ReservationSlotsGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @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.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetVersionRequest.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.ReservationSlotsGetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 69155705: { + if (!(message.sbomSelections && message.sbomSelections.length)) + message.sbomSelections = []; + message.sbomSelections.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotsGetVersionRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotsGetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sbomSelections != null && message.hasOwnProperty("sbomSelections")) { + if (!Array.isArray(message.sbomSelections)) + return "sbomSelections: array expected"; + for (var i = 0; i < message.sbomSelections.length; ++i) + if (!$util.isString(message.sbomSelections[i])) + return "sbomSelections: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationSlotsGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest + */ + ReservationSlotsGetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSlotsGetVersionRequest) + return object; + var message = new $root.google.cloud.compute.v1.ReservationSlotsGetVersionRequest(); + if (object.sbomSelections) { + if (!Array.isArray(object.sbomSelections)) + throw TypeError(".google.cloud.compute.v1.ReservationSlotsGetVersionRequest.sbomSelections: array expected"); + message.sbomSelections = []; + for (var i = 0; i < object.sbomSelections.length; ++i) + message.sbomSelections[i] = String(object.sbomSelections[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotsGetVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1.ReservationSlotsGetVersionRequest} message ReservationSlotsGetVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotsGetVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sbomSelections = []; + if (message.sbomSelections && message.sbomSelections.length) { + object.sbomSelections = []; + for (var j = 0; j < message.sbomSelections.length; ++j) + object.sbomSelections[j] = message.sbomSelections[j]; + } + return object; + }; + + /** + * Converts this ReservationSlotsGetVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotsGetVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotsGetVersionRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationSlotsGetVersionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotsGetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationSlotsGetVersionRequest"; + }; + + /** + * SbomSelections enum. + * @name google.cloud.compute.v1.ReservationSlotsGetVersionRequest.SbomSelections + * @enum {number} + * @property {number} UNDEFINED_SBOM_SELECTIONS=0 UNDEFINED_SBOM_SELECTIONS value + * @property {number} SBOM_SELECTION_CURRENT=423856692 SBOM_SELECTION_CURRENT value + * @property {number} SBOM_SELECTION_TARGET=152837462 SBOM_SELECTION_TARGET value + * @property {number} SBOM_SELECTION_UNSPECIFIED=379615858 SBOM_SELECTION_UNSPECIFIED value + */ + ReservationSlotsGetVersionRequest.SbomSelections = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SBOM_SELECTIONS"] = 0; + values[valuesById[423856692] = "SBOM_SELECTION_CURRENT"] = 423856692; + values[valuesById[152837462] = "SBOM_SELECTION_TARGET"] = 152837462; + values[valuesById[379615858] = "SBOM_SELECTION_UNSPECIFIED"] = 379615858; + return values; + })(); + + return ReservationSlotsGetVersionRequest; + })(); + v1.ReservationSlotsListResponse = (function() { /** @@ -454769,6 +467496,245 @@ return ReservationSubBlocksGetResponse; })(); + v1.ReservationSubBlocksGetVersionRequest = (function() { + + /** + * Properties of a ReservationSubBlocksGetVersionRequest. + * @memberof google.cloud.compute.v1 + * @interface IReservationSubBlocksGetVersionRequest + * @property {Array.|null} [sbomSelections] ReservationSubBlocksGetVersionRequest sbomSelections + */ + + /** + * Constructs a new ReservationSubBlocksGetVersionRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ReservationSubBlocksGetVersionRequest. + * @implements IReservationSubBlocksGetVersionRequest + * @constructor + * @param {google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest=} [properties] Properties to set + */ + function ReservationSubBlocksGetVersionRequest(properties) { + this.sbomSelections = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSubBlocksGetVersionRequest sbomSelections. + * @member {Array.} sbomSelections + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @instance + */ + ReservationSubBlocksGetVersionRequest.prototype.sbomSelections = $util.emptyArray; + + /** + * Creates a new ReservationSubBlocksGetVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest instance + */ + ReservationSubBlocksGetVersionRequest.create = function create(properties) { + return new ReservationSubBlocksGetVersionRequest(properties); + }; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest} message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlocksGetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sbomSelections != null && message.sbomSelections.length) + for (var i = 0; i < message.sbomSelections.length; ++i) + writer.uint32(/* id 69155705, wireType 2 =*/553245642).string(message.sbomSelections[i]); + return writer; + }; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1.IReservationSubBlocksGetVersionRequest} message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlocksGetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @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.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlocksGetVersionRequest.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.ReservationSubBlocksGetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 69155705: { + if (!(message.sbomSelections && message.sbomSelections.length)) + message.sbomSelections = []; + message.sbomSelections.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlocksGetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSubBlocksGetVersionRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSubBlocksGetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sbomSelections != null && message.hasOwnProperty("sbomSelections")) { + if (!Array.isArray(message.sbomSelections)) + return "sbomSelections: array expected"; + for (var i = 0; i < message.sbomSelections.length; ++i) + if (!$util.isString(message.sbomSelections[i])) + return "sbomSelections: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationSubBlocksGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest + */ + ReservationSubBlocksGetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest) + return object; + var message = new $root.google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest(); + if (object.sbomSelections) { + if (!Array.isArray(object.sbomSelections)) + throw TypeError(".google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.sbomSelections: array expected"); + message.sbomSelections = []; + for (var i = 0; i < object.sbomSelections.length; ++i) + message.sbomSelections[i] = String(object.sbomSelections[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSubBlocksGetVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest} message ReservationSubBlocksGetVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSubBlocksGetVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sbomSelections = []; + if (message.sbomSelections && message.sbomSelections.length) { + object.sbomSelections = []; + for (var j = 0; j < message.sbomSelections.length; ++j) + object.sbomSelections[j] = message.sbomSelections[j]; + } + return object; + }; + + /** + * Converts this ReservationSubBlocksGetVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @instance + * @returns {Object.} JSON object + */ + ReservationSubBlocksGetVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSubBlocksGetVersionRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSubBlocksGetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest"; + }; + + /** + * SbomSelections enum. + * @name google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest.SbomSelections + * @enum {number} + * @property {number} UNDEFINED_SBOM_SELECTIONS=0 UNDEFINED_SBOM_SELECTIONS value + * @property {number} SBOM_SELECTION_CURRENT=423856692 SBOM_SELECTION_CURRENT value + * @property {number} SBOM_SELECTION_TARGET=152837462 SBOM_SELECTION_TARGET value + * @property {number} SBOM_SELECTION_UNSPECIFIED=379615858 SBOM_SELECTION_UNSPECIFIED value + */ + ReservationSubBlocksGetVersionRequest.SbomSelections = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SBOM_SELECTIONS"] = 0; + values[valuesById[423856692] = "SBOM_SELECTION_CURRENT"] = 423856692; + values[valuesById[152837462] = "SBOM_SELECTION_TARGET"] = 152837462; + values[valuesById[379615858] = "SBOM_SELECTION_UNSPECIFIED"] = 379615858; + return values; + })(); + + return ReservationSubBlocksGetVersionRequest; + })(); + v1.ReservationSubBlocksListResponse = (function() { /** @@ -465007,6 +477973,7 @@ * @memberof google.cloud.compute.v1 * @interface IResourcePolicyWorkloadPolicy * @property {string|null} [acceleratorTopology] ResourcePolicyWorkloadPolicy acceleratorTopology + * @property {string|null} [acceleratorTopologyMode] ResourcePolicyWorkloadPolicy acceleratorTopologyMode * @property {string|null} [maxTopologyDistance] ResourcePolicyWorkloadPolicy maxTopologyDistance * @property {string|null} [type] ResourcePolicyWorkloadPolicy type */ @@ -465034,6 +478001,14 @@ */ ResourcePolicyWorkloadPolicy.prototype.acceleratorTopology = null; + /** + * ResourcePolicyWorkloadPolicy acceleratorTopologyMode. + * @member {string|null|undefined} acceleratorTopologyMode + * @memberof google.cloud.compute.v1.ResourcePolicyWorkloadPolicy + * @instance + */ + ResourcePolicyWorkloadPolicy.prototype.acceleratorTopologyMode = null; + /** * ResourcePolicyWorkloadPolicy maxTopologyDistance. * @member {string|null|undefined} maxTopologyDistance @@ -465059,6 +478034,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ResourcePolicyWorkloadPolicy.prototype, "_acceleratorTopologyMode", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopologyMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ResourcePolicyWorkloadPolicy.prototype, "_maxTopologyDistance", { get: $util.oneOfGetter($oneOfFields = ["maxTopologyDistance"]), @@ -465099,6 +478080,8 @@ writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); if (message.maxTopologyDistance != null && Object.hasOwnProperty.call(message, "maxTopologyDistance")) writer.uint32(/* id 7521706, wireType 2 =*/60173650).string(message.maxTopologyDistance); + if (message.acceleratorTopologyMode != null && Object.hasOwnProperty.call(message, "acceleratorTopologyMode")) + writer.uint32(/* id 284293791, wireType 2 =*/2274350330).string(message.acceleratorTopologyMode); if (message.acceleratorTopology != null && Object.hasOwnProperty.call(message, "acceleratorTopology")) writer.uint32(/* id 389323203, wireType 2 =*/3114585626).string(message.acceleratorTopology); return writer; @@ -465141,6 +478124,10 @@ message.acceleratorTopology = reader.string(); break; } + case 284293791: { + message.acceleratorTopologyMode = reader.string(); + break; + } case 7521706: { message.maxTopologyDistance = reader.string(); break; @@ -465190,6 +478177,11 @@ if (!$util.isString(message.acceleratorTopology)) return "acceleratorTopology: string expected"; } + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + properties._acceleratorTopologyMode = 1; + if (!$util.isString(message.acceleratorTopologyMode)) + return "acceleratorTopologyMode: string expected"; + } if (message.maxTopologyDistance != null && message.hasOwnProperty("maxTopologyDistance")) { properties._maxTopologyDistance = 1; if (!$util.isString(message.maxTopologyDistance)) @@ -465217,6 +478209,8 @@ var message = new $root.google.cloud.compute.v1.ResourcePolicyWorkloadPolicy(); if (object.acceleratorTopology != null) message.acceleratorTopology = String(object.acceleratorTopology); + if (object.acceleratorTopologyMode != null) + message.acceleratorTopologyMode = String(object.acceleratorTopologyMode); if (object.maxTopologyDistance != null) message.maxTopologyDistance = String(object.maxTopologyDistance); if (object.type != null) @@ -465247,6 +478241,11 @@ if (options.oneofs) object._maxTopologyDistance = "maxTopologyDistance"; } + if (message.acceleratorTopologyMode != null && message.hasOwnProperty("acceleratorTopologyMode")) { + object.acceleratorTopologyMode = message.acceleratorTopologyMode; + if (options.oneofs) + object._acceleratorTopologyMode = "acceleratorTopologyMode"; + } if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { object.acceleratorTopology = message.acceleratorTopology; if (options.oneofs) @@ -465281,6 +478280,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1.ResourcePolicyWorkloadPolicy"; }; + /** + * AcceleratorTopologyMode enum. + * @name google.cloud.compute.v1.ResourcePolicyWorkloadPolicy.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 + */ + ResourcePolicyWorkloadPolicy.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; + })(); + /** * MaxTopologyDistance enum. * @name google.cloud.compute.v1.ResourcePolicyWorkloadPolicy.MaxTopologyDistance @@ -499906,6 +512921,7 @@ * @interface IServiceAttachmentConnectedEndpoint * @property {string|null} [consumerNetwork] ServiceAttachmentConnectedEndpoint consumerNetwork * @property {string|null} [endpoint] ServiceAttachmentConnectedEndpoint endpoint + * @property {string|null} [endpointWithId] ServiceAttachmentConnectedEndpoint endpointWithId * @property {Array.|null} [natIps] ServiceAttachmentConnectedEndpoint natIps * @property {number|null} [propagatedConnectionCount] ServiceAttachmentConnectedEndpoint propagatedConnectionCount * @property {number|Long|null} [pscConnectionId] ServiceAttachmentConnectedEndpoint pscConnectionId @@ -499944,6 +512960,14 @@ */ ServiceAttachmentConnectedEndpoint.prototype.endpoint = null; + /** + * ServiceAttachmentConnectedEndpoint endpointWithId. + * @member {string|null|undefined} endpointWithId + * @memberof google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint + * @instance + */ + ServiceAttachmentConnectedEndpoint.prototype.endpointWithId = null; + /** * ServiceAttachmentConnectedEndpoint natIps. * @member {Array.} natIps @@ -499991,6 +513015,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ServiceAttachmentConnectedEndpoint.prototype, "_endpointWithId", { + get: $util.oneOfGetter($oneOfFields = ["endpointWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ServiceAttachmentConnectedEndpoint.prototype, "_propagatedConnectionCount", { get: $util.oneOfGetter($oneOfFields = ["propagatedConnectionCount"]), @@ -500046,6 +513076,8 @@ writer.uint32(/* id 292082397, wireType 0 =*/2336659176).uint64(message.pscConnectionId); if (message.propagatedConnectionCount != null && Object.hasOwnProperty.call(message, "propagatedConnectionCount")) writer.uint32(/* id 324594130, wireType 0 =*/2596753040).uint32(message.propagatedConnectionCount); + if (message.endpointWithId != null && Object.hasOwnProperty.call(message, "endpointWithId")) + writer.uint32(/* id 444867210, wireType 2 =*/3558937682).string(message.endpointWithId); return writer; }; @@ -500090,6 +513122,10 @@ message.endpoint = reader.string(); break; } + case 444867210: { + message.endpointWithId = reader.string(); + break; + } case 117635086: { if (!(message.natIps && message.natIps.length)) message.natIps = []; @@ -500154,6 +513190,11 @@ if (!$util.isString(message.endpoint)) return "endpoint: string expected"; } + if (message.endpointWithId != null && message.hasOwnProperty("endpointWithId")) { + properties._endpointWithId = 1; + if (!$util.isString(message.endpointWithId)) + return "endpointWithId: string expected"; + } if (message.natIps != null && message.hasOwnProperty("natIps")) { if (!Array.isArray(message.natIps)) return "natIps: array expected"; @@ -500195,6 +513236,8 @@ message.consumerNetwork = String(object.consumerNetwork); if (object.endpoint != null) message.endpoint = String(object.endpoint); + if (object.endpointWithId != null) + message.endpointWithId = String(object.endpointWithId); if (object.natIps) { if (!Array.isArray(object.natIps)) throw TypeError(".google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint.natIps: array expected"); @@ -500266,6 +513309,11 @@ if (options.oneofs) object._propagatedConnectionCount = "propagatedConnectionCount"; } + if (message.endpointWithId != null && message.hasOwnProperty("endpointWithId")) { + object.endpointWithId = message.endpointWithId; + if (options.oneofs) + object._endpointWithId = "endpointWithId"; + } return object; }; @@ -500329,6 +513377,7 @@ * @memberof google.cloud.compute.v1 * @interface IServiceAttachmentConsumerProjectLimit * @property {number|null} [connectionLimit] ServiceAttachmentConsumerProjectLimit connectionLimit + * @property {string|null} [endpointUrl] ServiceAttachmentConsumerProjectLimit endpointUrl * @property {string|null} [networkUrl] ServiceAttachmentConsumerProjectLimit networkUrl * @property {string|null} [projectIdOrNum] ServiceAttachmentConsumerProjectLimit projectIdOrNum */ @@ -500356,6 +513405,14 @@ */ ServiceAttachmentConsumerProjectLimit.prototype.connectionLimit = null; + /** + * ServiceAttachmentConsumerProjectLimit endpointUrl. + * @member {string|null|undefined} endpointUrl + * @memberof google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit + * @instance + */ + ServiceAttachmentConsumerProjectLimit.prototype.endpointUrl = null; + /** * ServiceAttachmentConsumerProjectLimit networkUrl. * @member {string|null|undefined} networkUrl @@ -500381,6 +513438,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ServiceAttachmentConsumerProjectLimit.prototype, "_endpointUrl", { + get: $util.oneOfGetter($oneOfFields = ["endpointUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(ServiceAttachmentConsumerProjectLimit.prototype, "_networkUrl", { get: $util.oneOfGetter($oneOfFields = ["networkUrl"]), @@ -500421,6 +513484,8 @@ writer.uint32(/* id 131403546, wireType 0 =*/1051228368).uint32(message.connectionLimit); if (message.networkUrl != null && Object.hasOwnProperty.call(message, "networkUrl")) writer.uint32(/* id 207194078, wireType 2 =*/1657552626).string(message.networkUrl); + if (message.endpointUrl != null && Object.hasOwnProperty.call(message, "endpointUrl")) + writer.uint32(/* id 223428549, wireType 2 =*/1787428394).string(message.endpointUrl); if (message.projectIdOrNum != null && Object.hasOwnProperty.call(message, "projectIdOrNum")) writer.uint32(/* id 349783336, wireType 2 =*/2798266690).string(message.projectIdOrNum); return writer; @@ -500463,6 +513528,10 @@ message.connectionLimit = reader.uint32(); break; } + case 223428549: { + message.endpointUrl = reader.string(); + break; + } case 207194078: { message.networkUrl = reader.string(); break; @@ -500512,6 +513581,11 @@ if (!$util.isInteger(message.connectionLimit)) return "connectionLimit: integer expected"; } + if (message.endpointUrl != null && message.hasOwnProperty("endpointUrl")) { + properties._endpointUrl = 1; + if (!$util.isString(message.endpointUrl)) + return "endpointUrl: string expected"; + } if (message.networkUrl != null && message.hasOwnProperty("networkUrl")) { properties._networkUrl = 1; if (!$util.isString(message.networkUrl)) @@ -500539,6 +513613,8 @@ var message = new $root.google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit(); if (object.connectionLimit != null) message.connectionLimit = object.connectionLimit >>> 0; + if (object.endpointUrl != null) + message.endpointUrl = String(object.endpointUrl); if (object.networkUrl != null) message.networkUrl = String(object.networkUrl); if (object.projectIdOrNum != null) @@ -500569,6 +513645,11 @@ if (options.oneofs) object._networkUrl = "networkUrl"; } + if (message.endpointUrl != null && message.hasOwnProperty("endpointUrl")) { + object.endpointUrl = message.endpointUrl; + if (options.oneofs) + object._endpointUrl = "endpointUrl"; + } if (message.projectIdOrNum != null && message.hasOwnProperty("projectIdOrNum")) { object.projectIdOrNum = message.projectIdOrNum; if (options.oneofs) @@ -585324,32 +598405,312 @@ }; /** - * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. + * Converts this TestIamPermissionsRegionBackendServiceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionBackendServiceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest"; + }; + + return TestIamPermissionsRegionBackendServiceRequest; + })(); + + v1.TestIamPermissionsRegionCompositeHealthCheckRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsRegionCompositeHealthCheckRequest + * @property {string|null} [project] TestIamPermissionsRegionCompositeHealthCheckRequest project + * @property {string|null} [region] TestIamPermissionsRegionCompositeHealthCheckRequest region + * @property {string|null} [resource] TestIamPermissionsRegionCompositeHealthCheckRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionCompositeHealthCheckRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionCompositeHealthCheckRequest. + * @implements ITestIamPermissionsRegionCompositeHealthCheckRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionCompositeHealthCheckRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionCompositeHealthCheckRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @instance + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionCompositeHealthCheckRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @instance + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionCompositeHealthCheckRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @instance + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionCompositeHealthCheckRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @instance + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionCompositeHealthCheckRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest instance + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.create = function create(properties) { + return new TestIamPermissionsRegionCompositeHealthCheckRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionCompositeHealthCheckRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.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 TestIamPermissionsRegionCompositeHealthCheckRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @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.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.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.TestIamPermissionsRegionCompositeHealthCheckRequest(); + 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 TestIamPermissionsRegionCompositeHealthCheckRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionCompositeHealthCheckRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.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 TestIamPermissionsRegionCompositeHealthCheckRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} TestIamPermissionsRegionCompositeHealthCheckRequest + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest(); + 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.TestIamPermissionsRegionCompositeHealthCheckRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionCompositeHealthCheckRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest} message TestIamPermissionsRegionCompositeHealthCheckRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionCompositeHealthCheckRequest.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 TestIamPermissionsRegionCompositeHealthCheckRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionBackendServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionCompositeHealthCheckRequest.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 TestIamPermissionsRegionCompositeHealthCheckRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionBackendServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionCompositeHealthCheckRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionBackendServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest"; }; - return TestIamPermissionsRegionBackendServiceRequest; + return TestIamPermissionsRegionCompositeHealthCheckRequest; })(); v1.TestIamPermissionsRegionDiskRequest = (function() { @@ -586444,32 +599805,312 @@ }; /** - * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. + * Converts this TestIamPermissionsRegionHealthCheckServiceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest"; + }; + + return TestIamPermissionsRegionHealthCheckServiceRequest; + })(); + + v1.TestIamPermissionsRegionHealthSourceRequest = (function() { + + /** + * Properties of a TestIamPermissionsRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsRegionHealthSourceRequest + * @property {string|null} [project] TestIamPermissionsRegionHealthSourceRequest project + * @property {string|null} [region] TestIamPermissionsRegionHealthSourceRequest region + * @property {string|null} [resource] TestIamPermissionsRegionHealthSourceRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsRegionHealthSourceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsRegionHealthSourceRequest. + * @implements ITestIamPermissionsRegionHealthSourceRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + */ + function TestIamPermissionsRegionHealthSourceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsRegionHealthSourceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @instance + */ + TestIamPermissionsRegionHealthSourceRequest.prototype.project = ""; + + /** + * TestIamPermissionsRegionHealthSourceRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @instance + */ + TestIamPermissionsRegionHealthSourceRequest.prototype.region = ""; + + /** + * TestIamPermissionsRegionHealthSourceRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @instance + */ + TestIamPermissionsRegionHealthSourceRequest.prototype.resource = ""; + + /** + * TestIamPermissionsRegionHealthSourceRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @instance + */ + TestIamPermissionsRegionHealthSourceRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsRegionHealthSourceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest instance + */ + TestIamPermissionsRegionHealthSourceRequest.create = function create(properties) { + return new TestIamPermissionsRegionHealthSourceRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsRegionHealthSourceRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionHealthSourceRequest.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 TestIamPermissionsRegionHealthSourceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsRegionHealthSourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @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.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionHealthSourceRequest.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.TestIamPermissionsRegionHealthSourceRequest(); + 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 TestIamPermissionsRegionHealthSourceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsRegionHealthSourceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsRegionHealthSourceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsRegionHealthSourceRequest.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 TestIamPermissionsRegionHealthSourceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} TestIamPermissionsRegionHealthSourceRequest + */ + TestIamPermissionsRegionHealthSourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest(); + 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.TestIamPermissionsRegionHealthSourceRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsRegionHealthSourceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest} message TestIamPermissionsRegionHealthSourceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsRegionHealthSourceRequest.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 TestIamPermissionsRegionHealthSourceRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsRegionHealthCheckServiceRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsRegionHealthSourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsRegionHealthCheckServiceRequest + * Gets the default type url for TestIamPermissionsRegionHealthSourceRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsRegionHealthCheckServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsRegionHealthSourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthCheckServiceRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest"; }; - return TestIamPermissionsRegionHealthCheckServiceRequest; + return TestIamPermissionsRegionHealthSourceRequest; })(); v1.TestIamPermissionsRegionInstanceGroupRequest = (function() { @@ -595875,6 +609516,7 @@ * Properties of an UpdateInstanceRequest. * @memberof google.cloud.compute.v1 * @interface IUpdateInstanceRequest + * @property {boolean|null} [discardLocalSsd] UpdateInstanceRequest discardLocalSsd * @property {string|null} [instance] UpdateInstanceRequest instance * @property {google.cloud.compute.v1.IInstance|null} [instanceResource] UpdateInstanceRequest instanceResource * @property {string|null} [minimalAction] UpdateInstanceRequest minimalAction @@ -595899,6 +609541,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * UpdateInstanceRequest discardLocalSsd. + * @member {boolean|null|undefined} discardLocalSsd + * @memberof google.cloud.compute.v1.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.discardLocalSsd = null; + /** * UpdateInstanceRequest instance. * @member {string} instance @@ -595958,6 +609608,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateInstanceRequest.prototype, "_discardLocalSsd", { + get: $util.oneOfGetter($oneOfFields = ["discardLocalSsd"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateInstanceRequest.prototype, "_minimalAction", { get: $util.oneOfGetter($oneOfFields = ["minimalAction"]), @@ -596014,6 +609670,8 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.minimalAction != null && Object.hasOwnProperty.call(message, "minimalAction")) writer.uint32(/* id 270567060, wireType 2 =*/2164536482).string(message.minimalAction); + if (message.discardLocalSsd != null && Object.hasOwnProperty.call(message, "discardLocalSsd")) + writer.uint32(/* id 319517903, wireType 0 =*/2556143224).bool(message.discardLocalSsd); return writer; }; @@ -596050,6 +609708,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 319517903: { + message.discardLocalSsd = reader.bool(); + break; + } case 18257045: { message.instance = reader.string(); break; @@ -596114,6 +609776,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + properties._discardLocalSsd = 1; + if (typeof message.discardLocalSsd !== "boolean") + return "discardLocalSsd: boolean expected"; + } if (message.instance != null && message.hasOwnProperty("instance")) if (!$util.isString(message.instance)) return "instance: string expected"; @@ -596158,6 +609825,8 @@ if (object instanceof $root.google.cloud.compute.v1.UpdateInstanceRequest) return object; var message = new $root.google.cloud.compute.v1.UpdateInstanceRequest(); + if (object.discardLocalSsd != null) + message.discardLocalSsd = Boolean(object.discardLocalSsd); if (object.instance != null) message.instance = String(object.instance); if (object.instanceResource != null) { @@ -596220,6 +609889,11 @@ if (options.oneofs) object._minimalAction = "minimalAction"; } + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + object.discardLocalSsd = message.discardLocalSsd; + if (options.oneofs) + object._discardLocalSsd = "discardLocalSsd"; + } return object; }; @@ -644690,6 +658364,272 @@ return RegionCommitments; })(); + v1.RegionCompositeHealthChecks = (function() { + + /** + * Constructs a new RegionCompositeHealthChecks service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionCompositeHealthChecks + * @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 RegionCompositeHealthChecks(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionCompositeHealthChecks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionCompositeHealthChecks; + + /** + * Creates new RegionCompositeHealthChecks service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @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 {RegionCompositeHealthChecks} RPC service. Useful where requests and/or responses are streamed. + */ + RegionCompositeHealthChecks.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|aggregatedList}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.CompositeHealthCheckAggregatedList} [response] CompositeHealthCheckAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.AggregatedListCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheckAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest, $root.google.cloud.compute.v1.CompositeHealthCheckAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest} request AggregatedListRegionCompositeHealthChecksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|delete_}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @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.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest} request DeleteRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest} request DeleteRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|get}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.CompositeHealthCheck} [response] CompositeHealthCheck + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest} request GetRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.GetCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheck + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1.CompositeHealthCheck, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest} request GetRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|insert}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @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.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest} request InsertRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest} request InsertRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|list}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.CompositeHealthCheckList} [response] CompositeHealthCheckList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} request ListRegionCompositeHealthChecksRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.ListCallback} callback Node-style callback called with the error, if any, and CompositeHealthCheckList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest, $root.google.cloud.compute.v1.CompositeHealthCheckList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest} request ListRegionCompositeHealthChecksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|patch}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @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.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest} request PatchRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.PatchCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.patch = function patch(request, callback) { + return this.rpcCall(patch, $root.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest} request PatchRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCompositeHealthChecks|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @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.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @param {google.cloud.compute.v1.RegionCompositeHealthChecks.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCompositeHealthChecks.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionCompositeHealthChecks + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest} request TestIamPermissionsRegionCompositeHealthCheckRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionCompositeHealthChecks; + })(); + v1.RegionDiskTypes = (function() { /** @@ -645685,6 +659625,39 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthCheckServices|aggregatedList}. + * @memberof google.cloud.compute.v1.RegionHealthCheckServices + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthCheckServiceAggregatedList} [response] HealthCheckServiceAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionHealthCheckServices + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthCheckServices.AggregatedListCallback} callback Node-style callback called with the error, if any, and HealthCheckServiceAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthCheckServices.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest, $root.google.cloud.compute.v1.HealthCheckServiceAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionHealthCheckServices + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest} request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.RegionHealthCheckServices|delete_}. * @memberof google.cloud.compute.v1.RegionHealthCheckServices @@ -646152,6 +660125,272 @@ return RegionHealthChecks; })(); + v1.RegionHealthSources = (function() { + + /** + * Constructs a new RegionHealthSources service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionHealthSources + * @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 RegionHealthSources(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionHealthSources.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionHealthSources; + + /** + * Creates new RegionHealthSources service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionHealthSources + * @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 {RegionHealthSources} RPC service. Useful where requests and/or responses are streamed. + */ + RegionHealthSources.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|aggregatedList}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthSourceAggregatedList} [response] HealthSourceAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} request AggregatedListRegionHealthSourcesRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.AggregatedListCallback} callback Node-style callback called with the error, if any, and HealthSourceAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest, $root.google.cloud.compute.v1.HealthSourceAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest} request AggregatedListRegionHealthSourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|delete_}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @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.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionHealthSourceRequest} request DeleteRegionHealthSourceRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteRegionHealthSourceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IDeleteRegionHealthSourceRequest} request DeleteRegionHealthSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|get}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthSource} [response] HealthSource + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IGetRegionHealthSourceRequest} request GetRegionHealthSourceRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.GetCallback} callback Node-style callback called with the error, if any, and HealthSource + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetRegionHealthSourceRequest, $root.google.cloud.compute.v1.HealthSource, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IGetRegionHealthSourceRequest} request GetRegionHealthSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|insert}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @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.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IInsertRegionHealthSourceRequest} request InsertRegionHealthSourceRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertRegionHealthSourceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IInsertRegionHealthSourceRequest} request InsertRegionHealthSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|list}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.HealthSourceList} [response] HealthSourceList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} request ListRegionHealthSourcesRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.ListCallback} callback Node-style callback called with the error, if any, and HealthSourceList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionHealthSourcesRequest, $root.google.cloud.compute.v1.HealthSourceList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IListRegionHealthSourcesRequest} request ListRegionHealthSourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|patch}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @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.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IPatchRegionHealthSourceRequest} request PatchRegionHealthSourceRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.PatchCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.patch = function patch(request, callback) { + return this.rpcCall(patch, $root.google.cloud.compute.v1.PatchRegionHealthSourceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Patch" }); + + /** + * Calls Patch. + * @function patch + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.IPatchRegionHealthSourceRequest} request PatchRegionHealthSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionHealthSources|testIamPermissions}. + * @memberof google.cloud.compute.v1.RegionHealthSources + * @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.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} request TestIamPermissionsRegionHealthSourceRequest message or plain object + * @param {google.cloud.compute.v1.RegionHealthSources.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthSources.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.RegionHealthSources + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest} request TestIamPermissionsRegionHealthSourceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionHealthSources; + })(); + v1.RegionInstanceGroupManagers = (function() { /** @@ -648574,6 +662813,39 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; + /** + * Callback as used by {@link google.cloud.compute.v1.RegionNotificationEndpoints|aggregatedList}. + * @memberof google.cloud.compute.v1.RegionNotificationEndpoints + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.NotificationEndpointAggregatedList} [response] NotificationEndpointAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionNotificationEndpoints + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @param {google.cloud.compute.v1.RegionNotificationEndpoints.AggregatedListCallback} callback Node-style callback called with the error, if any, and NotificationEndpointAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionNotificationEndpoints.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest, $root.google.cloud.compute.v1.NotificationEndpointAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.RegionNotificationEndpoints + * @instance + * @param {google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest} request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.RegionNotificationEndpoints|delete_}. * @memberof google.cloud.compute.v1.RegionNotificationEndpoints @@ -651040,6 +665312,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSlots|getVersion}. + * @memberof google.cloud.compute.v1.ReservationSlots + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IGetVersionReservationSlotRequest} request GetVersionReservationSlotRequest message or plain object + * @param {google.cloud.compute.v1.ReservationSlots.GetVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.cloud.compute.v1.GetVersionReservationSlotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "GetVersion" }); + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1.ReservationSlots + * @instance + * @param {google.cloud.compute.v1.IGetVersionReservationSlotRequest} request GetVersionReservationSlotRequest 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 @@ -651207,6 +665512,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.ReservationSubBlocks|getVersion}. + * @memberof google.cloud.compute.v1.ReservationSubBlocks + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1.IGetVersionReservationSubBlockRequest} request GetVersionReservationSubBlockRequest message or plain object + * @param {google.cloud.compute.v1.ReservationSubBlocks.GetVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSubBlocks.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.cloud.compute.v1.GetVersionReservationSubBlockRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "GetVersion" }); + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1.IGetVersionReservationSubBlockRequest} request GetVersionReservationSubBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.ReservationSubBlocks|list}. * @memberof google.cloud.compute.v1.ReservationSubBlocks @@ -675724,59 +690062,959 @@ }; /** - * Converts this AggregatedListAddressesRequest to JSON. + * Converts this AggregatedListAddressesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AggregatedListAddressesRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListAddressesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListAddressesRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AggregatedListAddressesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListAddressesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListAddressesRequest"; + }; + + return AggregatedListAddressesRequest; + })(); + + v1beta.AggregatedListAutoscalersRequest = (function() { + + /** + * Properties of an AggregatedListAutoscalersRequest. + * @memberof google.cloud.compute.v1beta + * @interface IAggregatedListAutoscalersRequest + * @property {string|null} [filter] AggregatedListAutoscalersRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListAutoscalersRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListAutoscalersRequest maxResults + * @property {string|null} [orderBy] AggregatedListAutoscalersRequest orderBy + * @property {string|null} [pageToken] AggregatedListAutoscalersRequest pageToken + * @property {string|null} [project] AggregatedListAutoscalersRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListAutoscalersRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListAutoscalersRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListAutoscalersRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AggregatedListAutoscalersRequest. + * @implements IAggregatedListAutoscalersRequest + * @constructor + * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest=} [properties] Properties to set + */ + function AggregatedListAutoscalersRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListAutoscalersRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.filter = null; + + /** + * AggregatedListAutoscalersRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListAutoscalersRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.maxResults = null; + + /** + * AggregatedListAutoscalersRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.orderBy = null; + + /** + * AggregatedListAutoscalersRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.pageToken = null; + + /** + * AggregatedListAutoscalersRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.project = ""; + + /** + * AggregatedListAutoscalersRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListAutoscalersRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + */ + AggregatedListAutoscalersRequest.prototype.serviceProjectNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListAutoscalersRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest instance + */ + AggregatedListAutoscalersRequest.create = function create(properties) { + return new AggregatedListAutoscalersRequest(properties); + }; + + /** + * Encodes the specified AggregatedListAutoscalersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListAutoscalersRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest} message AggregatedListAutoscalersRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListAutoscalersRequest.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 AggregatedListAutoscalersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListAutoscalersRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest} message AggregatedListAutoscalersRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListAutoscalersRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListAutoscalersRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListAutoscalersRequest.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.v1beta.AggregatedListAutoscalersRequest(); + 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 AggregatedListAutoscalersRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListAutoscalersRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListAutoscalersRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListAutoscalersRequest.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 AggregatedListAutoscalersRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest + */ + AggregatedListAutoscalersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListAutoscalersRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.AggregatedListAutoscalersRequest(); + 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 AggregatedListAutoscalersRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} message AggregatedListAutoscalersRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListAutoscalersRequest.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 AggregatedListAutoscalersRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListAutoscalersRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListAutoscalersRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListAutoscalersRequest"; + }; + + return AggregatedListAutoscalersRequest; + })(); + + v1beta.AggregatedListBackendBucketsRequest = (function() { + + /** + * Properties of an AggregatedListBackendBucketsRequest. + * @memberof google.cloud.compute.v1beta + * @interface IAggregatedListBackendBucketsRequest + * @property {string|null} [filter] AggregatedListBackendBucketsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListBackendBucketsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListBackendBucketsRequest maxResults + * @property {string|null} [orderBy] AggregatedListBackendBucketsRequest orderBy + * @property {string|null} [pageToken] AggregatedListBackendBucketsRequest pageToken + * @property {string|null} [project] AggregatedListBackendBucketsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListBackendBucketsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListBackendBucketsRequest serviceProjectNumber + */ + + /** + * Constructs a new AggregatedListBackendBucketsRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an AggregatedListBackendBucketsRequest. + * @implements IAggregatedListBackendBucketsRequest + * @constructor + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest=} [properties] Properties to set + */ + function AggregatedListBackendBucketsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AggregatedListBackendBucketsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.filter = null; + + /** + * AggregatedListBackendBucketsRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListBackendBucketsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.maxResults = null; + + /** + * AggregatedListBackendBucketsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.orderBy = null; + + /** + * AggregatedListBackendBucketsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.pageToken = null; + + /** + * AggregatedListBackendBucketsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.project = ""; + + /** + * AggregatedListBackendBucketsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.returnPartialSuccess = null; + + /** + * AggregatedListBackendBucketsRequest serviceProjectNumber. + * @member {number|Long|null|undefined} serviceProjectNumber + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @instance + */ + AggregatedListBackendBucketsRequest.prototype.serviceProjectNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_serviceProjectNumber", { + get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListBackendBucketsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest instance + */ + AggregatedListBackendBucketsRequest.create = function create(properties) { + return new AggregatedListBackendBucketsRequest(properties); + }; + + /** + * Encodes the specified AggregatedListBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListBackendBucketsRequest.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 AggregatedListBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListBackendBucketsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListBackendBucketsRequest.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.v1beta.AggregatedListBackendBucketsRequest(); + 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 AggregatedListBackendBucketsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListBackendBucketsRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListBackendBucketsRequest.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 AggregatedListBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest + */ + AggregatedListBackendBucketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest(); + 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 AggregatedListBackendBucketsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @static + * @param {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListBackendBucketsRequest.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 AggregatedListBackendBucketsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListAddressesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListAddressesRequest.prototype.toJSON = function toJSON() { + AggregatedListBackendBucketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListAddressesRequest + * Gets the default type url for AggregatedListBackendBucketsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListAddressesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListAddressesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListAddressesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest"; }; - return AggregatedListAddressesRequest; + return AggregatedListBackendBucketsRequest; })(); - v1beta.AggregatedListAutoscalersRequest = (function() { + v1beta.AggregatedListBackendServicesRequest = (function() { /** - * Properties of an AggregatedListAutoscalersRequest. + * Properties of an AggregatedListBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListAutoscalersRequest - * @property {string|null} [filter] AggregatedListAutoscalersRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListAutoscalersRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListAutoscalersRequest maxResults - * @property {string|null} [orderBy] AggregatedListAutoscalersRequest orderBy - * @property {string|null} [pageToken] AggregatedListAutoscalersRequest pageToken - * @property {string|null} [project] AggregatedListAutoscalersRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListAutoscalersRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListAutoscalersRequest serviceProjectNumber + * @interface IAggregatedListBackendServicesRequest + * @property {string|null} [filter] AggregatedListBackendServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListBackendServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListBackendServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListBackendServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListBackendServicesRequest pageToken + * @property {string|null} [project] AggregatedListBackendServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListBackendServicesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListBackendServicesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListAutoscalersRequest. + * Constructs a new AggregatedListBackendServicesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListAutoscalersRequest. - * @implements IAggregatedListAutoscalersRequest + * @classdesc Represents an AggregatedListBackendServicesRequest. + * @implements IAggregatedListBackendServicesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set */ - function AggregatedListAutoscalersRequest(properties) { + function AggregatedListBackendServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -675784,136 +691022,136 @@ } /** - * AggregatedListAutoscalersRequest filter. + * AggregatedListBackendServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.filter = null; + AggregatedListBackendServicesRequest.prototype.filter = null; /** - * AggregatedListAutoscalersRequest includeAllScopes. + * AggregatedListBackendServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.includeAllScopes = null; + AggregatedListBackendServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListAutoscalersRequest maxResults. + * AggregatedListBackendServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.maxResults = null; + AggregatedListBackendServicesRequest.prototype.maxResults = null; /** - * AggregatedListAutoscalersRequest orderBy. + * AggregatedListBackendServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.orderBy = null; + AggregatedListBackendServicesRequest.prototype.orderBy = null; /** - * AggregatedListAutoscalersRequest pageToken. + * AggregatedListBackendServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.pageToken = null; + AggregatedListBackendServicesRequest.prototype.pageToken = null; /** - * AggregatedListAutoscalersRequest project. + * AggregatedListBackendServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.project = ""; + AggregatedListBackendServicesRequest.prototype.project = ""; /** - * AggregatedListAutoscalersRequest returnPartialSuccess. + * AggregatedListBackendServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.returnPartialSuccess = null; + AggregatedListBackendServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListAutoscalersRequest serviceProjectNumber. + * AggregatedListBackendServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance */ - AggregatedListAutoscalersRequest.prototype.serviceProjectNumber = null; + AggregatedListBackendServicesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListAutoscalersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListAutoscalersRequest instance using the specified properties. + * Creates a new AggregatedListBackendServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest instance */ - AggregatedListAutoscalersRequest.create = function create(properties) { - return new AggregatedListAutoscalersRequest(properties); + AggregatedListBackendServicesRequest.create = function create(properties) { + return new AggregatedListBackendServicesRequest(properties); }; /** - * Encodes the specified AggregatedListAutoscalersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListAutoscalersRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest} message AggregatedListAutoscalersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListAutoscalersRequest.encode = function encode(message, writer) { + AggregatedListBackendServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -675936,33 +691174,33 @@ }; /** - * Encodes the specified AggregatedListAutoscalersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListAutoscalersRequest.verify|verify} messages. + * Encodes the specified AggregatedListBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListAutoscalersRequest} message AggregatedListAutoscalersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListAutoscalersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListAutoscalersRequest message from the specified reader or buffer. + * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListAutoscalersRequest.decode = function decode(reader, length, error) { + AggregatedListBackendServicesRequest.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.v1beta.AggregatedListAutoscalersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -676009,30 +691247,30 @@ }; /** - * Decodes an AggregatedListAutoscalersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListAutoscalersRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListAutoscalersRequest message. + * Verifies an AggregatedListBackendServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListAutoscalersRequest.verify = function verify(message) { + AggregatedListBackendServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -676078,17 +691316,17 @@ }; /** - * Creates an AggregatedListAutoscalersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListBackendServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} AggregatedListAutoscalersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest */ - AggregatedListAutoscalersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListAutoscalersRequest) + AggregatedListBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListAutoscalersRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -676116,15 +691354,15 @@ }; /** - * Creates a plain object from an AggregatedListAutoscalersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListBackendServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListAutoscalersRequest} message AggregatedListAutoscalersRequest + * @param {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListAutoscalersRequest.toObject = function toObject(message, options) { + AggregatedListBackendServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -676174,59 +691412,59 @@ }; /** - * Converts this AggregatedListAutoscalersRequest to JSON. + * Converts this AggregatedListBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListAutoscalersRequest.prototype.toJSON = function toJSON() { + AggregatedListBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListAutoscalersRequest + * Gets the default type url for AggregatedListBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListAutoscalersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListAutoscalersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListBackendServicesRequest"; }; - return AggregatedListAutoscalersRequest; + return AggregatedListBackendServicesRequest; })(); - v1beta.AggregatedListBackendBucketsRequest = (function() { + v1beta.AggregatedListDiskTypesRequest = (function() { /** - * Properties of an AggregatedListBackendBucketsRequest. + * Properties of an AggregatedListDiskTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListBackendBucketsRequest - * @property {string|null} [filter] AggregatedListBackendBucketsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListBackendBucketsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListBackendBucketsRequest maxResults - * @property {string|null} [orderBy] AggregatedListBackendBucketsRequest orderBy - * @property {string|null} [pageToken] AggregatedListBackendBucketsRequest pageToken - * @property {string|null} [project] AggregatedListBackendBucketsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListBackendBucketsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListBackendBucketsRequest serviceProjectNumber + * @interface IAggregatedListDiskTypesRequest + * @property {string|null} [filter] AggregatedListDiskTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListDiskTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListDiskTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListDiskTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListDiskTypesRequest pageToken + * @property {string|null} [project] AggregatedListDiskTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListDiskTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListDiskTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListBackendBucketsRequest. + * Constructs a new AggregatedListDiskTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListBackendBucketsRequest. - * @implements IAggregatedListBackendBucketsRequest + * @classdesc Represents an AggregatedListDiskTypesRequest. + * @implements IAggregatedListDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set */ - function AggregatedListBackendBucketsRequest(properties) { + function AggregatedListDiskTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -676234,136 +691472,136 @@ } /** - * AggregatedListBackendBucketsRequest filter. + * AggregatedListDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.filter = null; + AggregatedListDiskTypesRequest.prototype.filter = null; /** - * AggregatedListBackendBucketsRequest includeAllScopes. + * AggregatedListDiskTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.includeAllScopes = null; + AggregatedListDiskTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListBackendBucketsRequest maxResults. + * AggregatedListDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.maxResults = null; + AggregatedListDiskTypesRequest.prototype.maxResults = null; /** - * AggregatedListBackendBucketsRequest orderBy. + * AggregatedListDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.orderBy = null; + AggregatedListDiskTypesRequest.prototype.orderBy = null; /** - * AggregatedListBackendBucketsRequest pageToken. + * AggregatedListDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.pageToken = null; + AggregatedListDiskTypesRequest.prototype.pageToken = null; /** - * AggregatedListBackendBucketsRequest project. + * AggregatedListDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.project = ""; + AggregatedListDiskTypesRequest.prototype.project = ""; /** - * AggregatedListBackendBucketsRequest returnPartialSuccess. + * AggregatedListDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.returnPartialSuccess = null; + AggregatedListDiskTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListBackendBucketsRequest serviceProjectNumber. + * AggregatedListDiskTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance */ - AggregatedListBackendBucketsRequest.prototype.serviceProjectNumber = null; + AggregatedListDiskTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendBucketsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListBackendBucketsRequest instance using the specified properties. + * Creates a new AggregatedListDiskTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest instance */ - AggregatedListBackendBucketsRequest.create = function create(properties) { - return new AggregatedListBackendBucketsRequest(properties); + AggregatedListDiskTypesRequest.create = function create(properties) { + return new AggregatedListDiskTypesRequest(properties); }; /** - * Encodes the specified AggregatedListBackendBucketsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. + * Encodes the specified AggregatedListDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListBackendBucketsRequest.encode = function encode(message, writer) { + AggregatedListDiskTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -676386,33 +691624,33 @@ }; /** - * Encodes the specified AggregatedListBackendBucketsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest.verify|verify} messages. + * Encodes the specified AggregatedListDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListBackendBucketsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListBackendBucketsRequest message from the specified reader or buffer. + * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListBackendBucketsRequest.decode = function decode(reader, length, error) { + AggregatedListDiskTypesRequest.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.v1beta.AggregatedListBackendBucketsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -676459,30 +691697,30 @@ }; /** - * Decodes an AggregatedListBackendBucketsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListBackendBucketsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListBackendBucketsRequest message. + * Verifies an AggregatedListDiskTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListBackendBucketsRequest.verify = function verify(message) { + AggregatedListDiskTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -676528,17 +691766,17 @@ }; /** - * Creates an AggregatedListBackendBucketsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListDiskTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} AggregatedListBackendBucketsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest */ - AggregatedListBackendBucketsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest) + AggregatedListDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -676566,15 +691804,15 @@ }; /** - * Creates a plain object from an AggregatedListBackendBucketsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListDiskTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest} message AggregatedListBackendBucketsRequest + * @param {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListBackendBucketsRequest.toObject = function toObject(message, options) { + AggregatedListDiskTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -676624,59 +691862,59 @@ }; /** - * Converts this AggregatedListBackendBucketsRequest to JSON. + * Converts this AggregatedListDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListBackendBucketsRequest.prototype.toJSON = function toJSON() { + AggregatedListDiskTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListBackendBucketsRequest + * Gets the default type url for AggregatedListDiskTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListBackendBucketsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListBackendBucketsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDiskTypesRequest"; }; - return AggregatedListBackendBucketsRequest; + return AggregatedListDiskTypesRequest; })(); - v1beta.AggregatedListBackendServicesRequest = (function() { + v1beta.AggregatedListDisksRequest = (function() { /** - * Properties of an AggregatedListBackendServicesRequest. + * Properties of an AggregatedListDisksRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListBackendServicesRequest - * @property {string|null} [filter] AggregatedListBackendServicesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListBackendServicesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListBackendServicesRequest maxResults - * @property {string|null} [orderBy] AggregatedListBackendServicesRequest orderBy - * @property {string|null} [pageToken] AggregatedListBackendServicesRequest pageToken - * @property {string|null} [project] AggregatedListBackendServicesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListBackendServicesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListBackendServicesRequest serviceProjectNumber + * @interface IAggregatedListDisksRequest + * @property {string|null} [filter] AggregatedListDisksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListDisksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListDisksRequest maxResults + * @property {string|null} [orderBy] AggregatedListDisksRequest orderBy + * @property {string|null} [pageToken] AggregatedListDisksRequest pageToken + * @property {string|null} [project] AggregatedListDisksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListDisksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListDisksRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListBackendServicesRequest. + * Constructs a new AggregatedListDisksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListBackendServicesRequest. - * @implements IAggregatedListBackendServicesRequest + * @classdesc Represents an AggregatedListDisksRequest. + * @implements IAggregatedListDisksRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set */ - function AggregatedListBackendServicesRequest(properties) { + function AggregatedListDisksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -676684,136 +691922,136 @@ } /** - * AggregatedListBackendServicesRequest filter. + * AggregatedListDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.filter = null; + AggregatedListDisksRequest.prototype.filter = null; /** - * AggregatedListBackendServicesRequest includeAllScopes. + * AggregatedListDisksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.includeAllScopes = null; + AggregatedListDisksRequest.prototype.includeAllScopes = null; /** - * AggregatedListBackendServicesRequest maxResults. + * AggregatedListDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.maxResults = null; + AggregatedListDisksRequest.prototype.maxResults = null; /** - * AggregatedListBackendServicesRequest orderBy. + * AggregatedListDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.orderBy = null; + AggregatedListDisksRequest.prototype.orderBy = null; /** - * AggregatedListBackendServicesRequest pageToken. + * AggregatedListDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.pageToken = null; + AggregatedListDisksRequest.prototype.pageToken = null; /** - * AggregatedListBackendServicesRequest project. + * AggregatedListDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.project = ""; + AggregatedListDisksRequest.prototype.project = ""; /** - * AggregatedListBackendServicesRequest returnPartialSuccess. + * AggregatedListDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListDisksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListBackendServicesRequest serviceProjectNumber. + * AggregatedListDisksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance */ - AggregatedListBackendServicesRequest.prototype.serviceProjectNumber = null; + AggregatedListDisksRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListBackendServicesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListDisksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListBackendServicesRequest instance using the specified properties. + * Creates a new AggregatedListDisksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest instance */ - AggregatedListBackendServicesRequest.create = function create(properties) { - return new AggregatedListBackendServicesRequest(properties); + AggregatedListDisksRequest.create = function create(properties) { + return new AggregatedListDisksRequest(properties); }; /** - * Encodes the specified AggregatedListBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListDisksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListBackendServicesRequest.encode = function encode(message, writer) { + AggregatedListDisksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -676836,33 +692074,33 @@ }; /** - * Encodes the specified AggregatedListBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListBackendServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListDisksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListBackendServicesRequest.decode = function decode(reader, length, error) { + AggregatedListDisksRequest.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.v1beta.AggregatedListBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -676909,30 +692147,30 @@ }; /** - * Decodes an AggregatedListBackendServicesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListDisksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListDisksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListBackendServicesRequest message. + * Verifies an AggregatedListDisksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListBackendServicesRequest.verify = function verify(message) { + AggregatedListDisksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -676978,17 +692216,17 @@ }; /** - * Creates an AggregatedListBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListDisksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} AggregatedListBackendServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest */ - AggregatedListBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest) + AggregatedListDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDisksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -677016,15 +692254,15 @@ }; /** - * Creates a plain object from an AggregatedListBackendServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListDisksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListBackendServicesRequest} message AggregatedListBackendServicesRequest + * @param {google.cloud.compute.v1beta.AggregatedListDisksRequest} message AggregatedListDisksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListBackendServicesRequest.toObject = function toObject(message, options) { + AggregatedListDisksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -677074,59 +692312,59 @@ }; /** - * Converts this AggregatedListBackendServicesRequest to JSON. + * Converts this AggregatedListDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListBackendServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListDisksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListBackendServicesRequest + * Gets the default type url for AggregatedListDisksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListBackendServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDisksRequest"; }; - return AggregatedListBackendServicesRequest; + return AggregatedListDisksRequest; })(); - v1beta.AggregatedListDiskTypesRequest = (function() { + v1beta.AggregatedListForwardingRulesRequest = (function() { /** - * Properties of an AggregatedListDiskTypesRequest. + * Properties of an AggregatedListForwardingRulesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListDiskTypesRequest - * @property {string|null} [filter] AggregatedListDiskTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListDiskTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListDiskTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListDiskTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListDiskTypesRequest pageToken - * @property {string|null} [project] AggregatedListDiskTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListDiskTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListDiskTypesRequest serviceProjectNumber + * @interface IAggregatedListForwardingRulesRequest + * @property {string|null} [filter] AggregatedListForwardingRulesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListForwardingRulesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListForwardingRulesRequest maxResults + * @property {string|null} [orderBy] AggregatedListForwardingRulesRequest orderBy + * @property {string|null} [pageToken] AggregatedListForwardingRulesRequest pageToken + * @property {string|null} [project] AggregatedListForwardingRulesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListForwardingRulesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListForwardingRulesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListDiskTypesRequest. + * Constructs a new AggregatedListForwardingRulesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListDiskTypesRequest. - * @implements IAggregatedListDiskTypesRequest + * @classdesc Represents an AggregatedListForwardingRulesRequest. + * @implements IAggregatedListForwardingRulesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set */ - function AggregatedListDiskTypesRequest(properties) { + function AggregatedListForwardingRulesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -677134,136 +692372,136 @@ } /** - * AggregatedListDiskTypesRequest filter. + * AggregatedListForwardingRulesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.filter = null; + AggregatedListForwardingRulesRequest.prototype.filter = null; /** - * AggregatedListDiskTypesRequest includeAllScopes. + * AggregatedListForwardingRulesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.includeAllScopes = null; + AggregatedListForwardingRulesRequest.prototype.includeAllScopes = null; /** - * AggregatedListDiskTypesRequest maxResults. + * AggregatedListForwardingRulesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.maxResults = null; + AggregatedListForwardingRulesRequest.prototype.maxResults = null; /** - * AggregatedListDiskTypesRequest orderBy. + * AggregatedListForwardingRulesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.orderBy = null; + AggregatedListForwardingRulesRequest.prototype.orderBy = null; /** - * AggregatedListDiskTypesRequest pageToken. + * AggregatedListForwardingRulesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.pageToken = null; + AggregatedListForwardingRulesRequest.prototype.pageToken = null; /** - * AggregatedListDiskTypesRequest project. + * AggregatedListForwardingRulesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.project = ""; + AggregatedListForwardingRulesRequest.prototype.project = ""; /** - * AggregatedListDiskTypesRequest returnPartialSuccess. + * AggregatedListForwardingRulesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListForwardingRulesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListDiskTypesRequest serviceProjectNumber. + * AggregatedListForwardingRulesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance */ - AggregatedListDiskTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListForwardingRulesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDiskTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListDiskTypesRequest instance using the specified properties. + * Creates a new AggregatedListForwardingRulesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest instance */ - AggregatedListDiskTypesRequest.create = function create(properties) { - return new AggregatedListDiskTypesRequest(properties); + AggregatedListForwardingRulesRequest.create = function create(properties) { + return new AggregatedListForwardingRulesRequest(properties); }; /** - * Encodes the specified AggregatedListDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListForwardingRulesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDiskTypesRequest.encode = function encode(message, writer) { + AggregatedListForwardingRulesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -677286,33 +692524,33 @@ }; /** - * Encodes the specified AggregatedListDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDiskTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListForwardingRulesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListForwardingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDiskTypesRequest.decode = function decode(reader, length, error) { + AggregatedListForwardingRulesRequest.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.v1beta.AggregatedListDiskTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -677359,30 +692597,30 @@ }; /** - * Decodes an AggregatedListDiskTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListForwardingRulesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListDiskTypesRequest message. + * Verifies an AggregatedListForwardingRulesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListDiskTypesRequest.verify = function verify(message) { + AggregatedListForwardingRulesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -677428,17 +692666,17 @@ }; /** - * Creates an AggregatedListDiskTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListForwardingRulesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} AggregatedListDiskTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest */ - AggregatedListDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest) + AggregatedListForwardingRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -677466,15 +692704,15 @@ }; /** - * Creates a plain object from an AggregatedListDiskTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListForwardingRulesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListDiskTypesRequest} message AggregatedListDiskTypesRequest + * @param {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListDiskTypesRequest.toObject = function toObject(message, options) { + AggregatedListForwardingRulesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -677524,59 +692762,59 @@ }; /** - * Converts this AggregatedListDiskTypesRequest to JSON. + * Converts this AggregatedListForwardingRulesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListDiskTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListForwardingRulesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListDiskTypesRequest + * Gets the default type url for AggregatedListForwardingRulesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListDiskTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListForwardingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest"; }; - return AggregatedListDiskTypesRequest; + return AggregatedListForwardingRulesRequest; })(); - v1beta.AggregatedListDisksRequest = (function() { + v1beta.AggregatedListFutureReservationsRequest = (function() { /** - * Properties of an AggregatedListDisksRequest. + * Properties of an AggregatedListFutureReservationsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListDisksRequest - * @property {string|null} [filter] AggregatedListDisksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListDisksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListDisksRequest maxResults - * @property {string|null} [orderBy] AggregatedListDisksRequest orderBy - * @property {string|null} [pageToken] AggregatedListDisksRequest pageToken - * @property {string|null} [project] AggregatedListDisksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListDisksRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListDisksRequest serviceProjectNumber + * @interface IAggregatedListFutureReservationsRequest + * @property {string|null} [filter] AggregatedListFutureReservationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListFutureReservationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListFutureReservationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListFutureReservationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListFutureReservationsRequest pageToken + * @property {string|null} [project] AggregatedListFutureReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListFutureReservationsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListFutureReservationsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListDisksRequest. + * Constructs a new AggregatedListFutureReservationsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListDisksRequest. - * @implements IAggregatedListDisksRequest + * @classdesc Represents an AggregatedListFutureReservationsRequest. + * @implements IAggregatedListFutureReservationsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set */ - function AggregatedListDisksRequest(properties) { + function AggregatedListFutureReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -677584,136 +692822,136 @@ } /** - * AggregatedListDisksRequest filter. + * AggregatedListFutureReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.filter = null; + AggregatedListFutureReservationsRequest.prototype.filter = null; /** - * AggregatedListDisksRequest includeAllScopes. + * AggregatedListFutureReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.includeAllScopes = null; + AggregatedListFutureReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListDisksRequest maxResults. + * AggregatedListFutureReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.maxResults = null; + AggregatedListFutureReservationsRequest.prototype.maxResults = null; /** - * AggregatedListDisksRequest orderBy. + * AggregatedListFutureReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.orderBy = null; + AggregatedListFutureReservationsRequest.prototype.orderBy = null; /** - * AggregatedListDisksRequest pageToken. + * AggregatedListFutureReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.pageToken = null; + AggregatedListFutureReservationsRequest.prototype.pageToken = null; /** - * AggregatedListDisksRequest project. + * AggregatedListFutureReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.project = ""; + AggregatedListFutureReservationsRequest.prototype.project = ""; /** - * AggregatedListDisksRequest returnPartialSuccess. + * AggregatedListFutureReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.returnPartialSuccess = null; + AggregatedListFutureReservationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListDisksRequest serviceProjectNumber. + * AggregatedListFutureReservationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance */ - AggregatedListDisksRequest.prototype.serviceProjectNumber = null; + AggregatedListFutureReservationsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListDisksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListDisksRequest instance using the specified properties. + * Creates a new AggregatedListFutureReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest instance */ - AggregatedListDisksRequest.create = function create(properties) { - return new AggregatedListDisksRequest(properties); + AggregatedListFutureReservationsRequest.create = function create(properties) { + return new AggregatedListFutureReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListDisksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. + * Encodes the specified AggregatedListFutureReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDisksRequest.encode = function encode(message, writer) { + AggregatedListFutureReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -677736,33 +692974,33 @@ }; /** - * Encodes the specified AggregatedListDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListDisksRequest.verify|verify} messages. + * Encodes the specified AggregatedListFutureReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListDisksRequest} message AggregatedListDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListFutureReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListDisksRequest message from the specified reader or buffer. + * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDisksRequest.decode = function decode(reader, length, error) { + AggregatedListFutureReservationsRequest.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.v1beta.AggregatedListDisksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -677809,30 +693047,30 @@ }; /** - * Decodes an AggregatedListDisksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListDisksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListFutureReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListDisksRequest message. + * Verifies an AggregatedListFutureReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListDisksRequest.verify = function verify(message) { + AggregatedListFutureReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -677878,17 +693116,17 @@ }; /** - * Creates an AggregatedListDisksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListFutureReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListDisksRequest} AggregatedListDisksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest */ - AggregatedListDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListDisksRequest) + AggregatedListFutureReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListDisksRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -677916,15 +693154,15 @@ }; /** - * Creates a plain object from an AggregatedListDisksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListFutureReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListDisksRequest} message AggregatedListDisksRequest + * @param {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListDisksRequest.toObject = function toObject(message, options) { + AggregatedListFutureReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -677974,59 +693212,59 @@ }; /** - * Converts this AggregatedListDisksRequest to JSON. + * Converts this AggregatedListFutureReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListDisksRequest.prototype.toJSON = function toJSON() { + AggregatedListFutureReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListDisksRequest + * Gets the default type url for AggregatedListFutureReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListDisksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListFutureReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest"; }; - return AggregatedListDisksRequest; + return AggregatedListFutureReservationsRequest; })(); - v1beta.AggregatedListForwardingRulesRequest = (function() { + v1beta.AggregatedListGlobalOperationsRequest = (function() { /** - * Properties of an AggregatedListForwardingRulesRequest. + * Properties of an AggregatedListGlobalOperationsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListForwardingRulesRequest - * @property {string|null} [filter] AggregatedListForwardingRulesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListForwardingRulesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListForwardingRulesRequest maxResults - * @property {string|null} [orderBy] AggregatedListForwardingRulesRequest orderBy - * @property {string|null} [pageToken] AggregatedListForwardingRulesRequest pageToken - * @property {string|null} [project] AggregatedListForwardingRulesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListForwardingRulesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListForwardingRulesRequest serviceProjectNumber + * @interface IAggregatedListGlobalOperationsRequest + * @property {string|null} [filter] AggregatedListGlobalOperationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListGlobalOperationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListGlobalOperationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListGlobalOperationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListGlobalOperationsRequest pageToken + * @property {string|null} [project] AggregatedListGlobalOperationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListGlobalOperationsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListGlobalOperationsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListForwardingRulesRequest. + * Constructs a new AggregatedListGlobalOperationsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListForwardingRulesRequest. - * @implements IAggregatedListForwardingRulesRequest + * @classdesc Represents an AggregatedListGlobalOperationsRequest. + * @implements IAggregatedListGlobalOperationsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set */ - function AggregatedListForwardingRulesRequest(properties) { + function AggregatedListGlobalOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -678034,136 +693272,136 @@ } /** - * AggregatedListForwardingRulesRequest filter. + * AggregatedListGlobalOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.filter = null; + AggregatedListGlobalOperationsRequest.prototype.filter = null; /** - * AggregatedListForwardingRulesRequest includeAllScopes. + * AggregatedListGlobalOperationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.includeAllScopes = null; + AggregatedListGlobalOperationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListForwardingRulesRequest maxResults. + * AggregatedListGlobalOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.maxResults = null; + AggregatedListGlobalOperationsRequest.prototype.maxResults = null; /** - * AggregatedListForwardingRulesRequest orderBy. + * AggregatedListGlobalOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.orderBy = null; + AggregatedListGlobalOperationsRequest.prototype.orderBy = null; /** - * AggregatedListForwardingRulesRequest pageToken. + * AggregatedListGlobalOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.pageToken = null; + AggregatedListGlobalOperationsRequest.prototype.pageToken = null; /** - * AggregatedListForwardingRulesRequest project. + * AggregatedListGlobalOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.project = ""; + AggregatedListGlobalOperationsRequest.prototype.project = ""; /** - * AggregatedListForwardingRulesRequest returnPartialSuccess. + * AggregatedListGlobalOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.returnPartialSuccess = null; + AggregatedListGlobalOperationsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListForwardingRulesRequest serviceProjectNumber. + * AggregatedListGlobalOperationsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance */ - AggregatedListForwardingRulesRequest.prototype.serviceProjectNumber = null; + AggregatedListGlobalOperationsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListForwardingRulesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListForwardingRulesRequest instance using the specified properties. + * Creates a new AggregatedListGlobalOperationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest instance */ - AggregatedListForwardingRulesRequest.create = function create(properties) { - return new AggregatedListForwardingRulesRequest(properties); + AggregatedListGlobalOperationsRequest.create = function create(properties) { + return new AggregatedListGlobalOperationsRequest(properties); }; /** - * Encodes the specified AggregatedListForwardingRulesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListForwardingRulesRequest.encode = function encode(message, writer) { + AggregatedListGlobalOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -678186,33 +693424,33 @@ }; /** - * Encodes the specified AggregatedListForwardingRulesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListForwardingRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListGlobalOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer. + * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListForwardingRulesRequest.decode = function decode(reader, length, error) { + AggregatedListGlobalOperationsRequest.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.v1beta.AggregatedListForwardingRulesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -678259,30 +693497,30 @@ }; /** - * Decodes an AggregatedListForwardingRulesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListForwardingRulesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListGlobalOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListForwardingRulesRequest message. + * Verifies an AggregatedListGlobalOperationsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListForwardingRulesRequest.verify = function verify(message) { + AggregatedListGlobalOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -678328,17 +693566,17 @@ }; /** - * Creates an AggregatedListForwardingRulesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListGlobalOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} AggregatedListForwardingRulesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest */ - AggregatedListForwardingRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest) + AggregatedListGlobalOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -678366,15 +693604,15 @@ }; /** - * Creates a plain object from an AggregatedListForwardingRulesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListGlobalOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest} message AggregatedListForwardingRulesRequest + * @param {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListForwardingRulesRequest.toObject = function toObject(message, options) { + AggregatedListGlobalOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -678424,59 +693662,59 @@ }; /** - * Converts this AggregatedListForwardingRulesRequest to JSON. + * Converts this AggregatedListGlobalOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListForwardingRulesRequest.prototype.toJSON = function toJSON() { + AggregatedListGlobalOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListForwardingRulesRequest + * Gets the default type url for AggregatedListGlobalOperationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListForwardingRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListGlobalOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListForwardingRulesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest"; }; - return AggregatedListForwardingRulesRequest; + return AggregatedListGlobalOperationsRequest; })(); - v1beta.AggregatedListFutureReservationsRequest = (function() { + v1beta.AggregatedListGlobalVmExtensionPoliciesRequest = (function() { /** - * Properties of an AggregatedListFutureReservationsRequest. + * Properties of an AggregatedListGlobalVmExtensionPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListFutureReservationsRequest - * @property {string|null} [filter] AggregatedListFutureReservationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListFutureReservationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListFutureReservationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListFutureReservationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListFutureReservationsRequest pageToken - * @property {string|null} [project] AggregatedListFutureReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListFutureReservationsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListFutureReservationsRequest serviceProjectNumber + * @interface IAggregatedListGlobalVmExtensionPoliciesRequest + * @property {string|null} [filter] AggregatedListGlobalVmExtensionPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListGlobalVmExtensionPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListGlobalVmExtensionPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListGlobalVmExtensionPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListGlobalVmExtensionPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListFutureReservationsRequest. + * Constructs a new AggregatedListGlobalVmExtensionPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListFutureReservationsRequest. - * @implements IAggregatedListFutureReservationsRequest + * @classdesc Represents an AggregatedListGlobalVmExtensionPoliciesRequest. + * @implements IAggregatedListGlobalVmExtensionPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest=} [properties] Properties to set */ - function AggregatedListFutureReservationsRequest(properties) { + function AggregatedListGlobalVmExtensionPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -678484,136 +693722,136 @@ } /** - * AggregatedListFutureReservationsRequest filter. + * AggregatedListGlobalVmExtensionPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.filter = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.filter = null; /** - * AggregatedListFutureReservationsRequest includeAllScopes. + * AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.includeAllScopes = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListFutureReservationsRequest maxResults. + * AggregatedListGlobalVmExtensionPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.maxResults = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListFutureReservationsRequest orderBy. + * AggregatedListGlobalVmExtensionPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.orderBy = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListFutureReservationsRequest pageToken. + * AggregatedListGlobalVmExtensionPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.pageToken = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListFutureReservationsRequest project. + * AggregatedListGlobalVmExtensionPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.project = ""; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.project = ""; /** - * AggregatedListFutureReservationsRequest returnPartialSuccess. + * AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListFutureReservationsRequest serviceProjectNumber. + * AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance */ - AggregatedListFutureReservationsRequest.prototype.serviceProjectNumber = null; + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListFutureReservationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListFutureReservationsRequest instance using the specified properties. + * Creates a new AggregatedListGlobalVmExtensionPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest instance */ - AggregatedListFutureReservationsRequest.create = function create(properties) { - return new AggregatedListFutureReservationsRequest(properties); + AggregatedListGlobalVmExtensionPoliciesRequest.create = function create(properties) { + return new AggregatedListGlobalVmExtensionPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListFutureReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListFutureReservationsRequest.encode = function encode(message, writer) { + AggregatedListGlobalVmExtensionPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -678636,33 +693874,33 @@ }; /** - * Encodes the specified AggregatedListFutureReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListFutureReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListGlobalVmExtensionPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListFutureReservationsRequest.decode = function decode(reader, length, error) { + AggregatedListGlobalVmExtensionPoliciesRequest.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.v1beta.AggregatedListFutureReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -678709,30 +693947,30 @@ }; /** - * Decodes an AggregatedListFutureReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListFutureReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListGlobalVmExtensionPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListFutureReservationsRequest message. + * Verifies an AggregatedListGlobalVmExtensionPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListFutureReservationsRequest.verify = function verify(message) { + AggregatedListGlobalVmExtensionPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -678778,17 +694016,17 @@ }; /** - * Creates an AggregatedListFutureReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListGlobalVmExtensionPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} AggregatedListFutureReservationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest */ - AggregatedListFutureReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest) + AggregatedListGlobalVmExtensionPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -678816,15 +694054,15 @@ }; /** - * Creates a plain object from an AggregatedListFutureReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListGlobalVmExtensionPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest} message AggregatedListFutureReservationsRequest + * @param {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListFutureReservationsRequest.toObject = function toObject(message, options) { + AggregatedListGlobalVmExtensionPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -678874,59 +694112,59 @@ }; /** - * Converts this AggregatedListFutureReservationsRequest to JSON. + * Converts this AggregatedListGlobalVmExtensionPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListFutureReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListGlobalVmExtensionPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListFutureReservationsRequest + * Gets the default type url for AggregatedListGlobalVmExtensionPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListFutureReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListGlobalVmExtensionPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListFutureReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest"; }; - return AggregatedListFutureReservationsRequest; + return AggregatedListGlobalVmExtensionPoliciesRequest; })(); - v1beta.AggregatedListGlobalOperationsRequest = (function() { + v1beta.AggregatedListHealthChecksRequest = (function() { /** - * Properties of an AggregatedListGlobalOperationsRequest. + * Properties of an AggregatedListHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListGlobalOperationsRequest - * @property {string|null} [filter] AggregatedListGlobalOperationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListGlobalOperationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListGlobalOperationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListGlobalOperationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListGlobalOperationsRequest pageToken - * @property {string|null} [project] AggregatedListGlobalOperationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListGlobalOperationsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListGlobalOperationsRequest serviceProjectNumber + * @interface IAggregatedListHealthChecksRequest + * @property {string|null} [filter] AggregatedListHealthChecksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListHealthChecksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListHealthChecksRequest maxResults + * @property {string|null} [orderBy] AggregatedListHealthChecksRequest orderBy + * @property {string|null} [pageToken] AggregatedListHealthChecksRequest pageToken + * @property {string|null} [project] AggregatedListHealthChecksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListHealthChecksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListHealthChecksRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListGlobalOperationsRequest. + * Constructs a new AggregatedListHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListGlobalOperationsRequest. - * @implements IAggregatedListGlobalOperationsRequest + * @classdesc Represents an AggregatedListHealthChecksRequest. + * @implements IAggregatedListHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set */ - function AggregatedListGlobalOperationsRequest(properties) { + function AggregatedListHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -678934,136 +694172,136 @@ } /** - * AggregatedListGlobalOperationsRequest filter. + * AggregatedListHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.filter = null; + AggregatedListHealthChecksRequest.prototype.filter = null; /** - * AggregatedListGlobalOperationsRequest includeAllScopes. + * AggregatedListHealthChecksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.includeAllScopes = null; + AggregatedListHealthChecksRequest.prototype.includeAllScopes = null; /** - * AggregatedListGlobalOperationsRequest maxResults. + * AggregatedListHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.maxResults = null; + AggregatedListHealthChecksRequest.prototype.maxResults = null; /** - * AggregatedListGlobalOperationsRequest orderBy. + * AggregatedListHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.orderBy = null; + AggregatedListHealthChecksRequest.prototype.orderBy = null; /** - * AggregatedListGlobalOperationsRequest pageToken. + * AggregatedListHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.pageToken = null; + AggregatedListHealthChecksRequest.prototype.pageToken = null; /** - * AggregatedListGlobalOperationsRequest project. + * AggregatedListHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.project = ""; + AggregatedListHealthChecksRequest.prototype.project = ""; /** - * AggregatedListGlobalOperationsRequest returnPartialSuccess. + * AggregatedListHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.returnPartialSuccess = null; + AggregatedListHealthChecksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListGlobalOperationsRequest serviceProjectNumber. + * AggregatedListHealthChecksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance */ - AggregatedListGlobalOperationsRequest.prototype.serviceProjectNumber = null; + AggregatedListHealthChecksRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalOperationsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListGlobalOperationsRequest instance using the specified properties. + * Creates a new AggregatedListHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest instance */ - AggregatedListGlobalOperationsRequest.create = function create(properties) { - return new AggregatedListGlobalOperationsRequest(properties); + AggregatedListHealthChecksRequest.create = function create(properties) { + return new AggregatedListHealthChecksRequest(properties); }; /** - * Encodes the specified AggregatedListGlobalOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListGlobalOperationsRequest.encode = function encode(message, writer) { + AggregatedListHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -679086,33 +694324,33 @@ }; /** - * Encodes the specified AggregatedListGlobalOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListGlobalOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListGlobalOperationsRequest.decode = function decode(reader, length, error) { + AggregatedListHealthChecksRequest.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.v1beta.AggregatedListGlobalOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -679159,30 +694397,30 @@ }; /** - * Decodes an AggregatedListGlobalOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListGlobalOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListGlobalOperationsRequest message. + * Verifies an AggregatedListHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListGlobalOperationsRequest.verify = function verify(message) { + AggregatedListHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -679228,17 +694466,17 @@ }; /** - * Creates an AggregatedListGlobalOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} AggregatedListGlobalOperationsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest */ - AggregatedListGlobalOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest) + AggregatedListHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -679266,15 +694504,15 @@ }; /** - * Creates a plain object from an AggregatedListGlobalOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest} message AggregatedListGlobalOperationsRequest + * @param {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListGlobalOperationsRequest.toObject = function toObject(message, options) { + AggregatedListHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -679324,59 +694562,59 @@ }; /** - * Converts this AggregatedListGlobalOperationsRequest to JSON. + * Converts this AggregatedListHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListGlobalOperationsRequest.prototype.toJSON = function toJSON() { + AggregatedListHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListGlobalOperationsRequest + * Gets the default type url for AggregatedListHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListGlobalOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListGlobalOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListHealthChecksRequest"; }; - return AggregatedListGlobalOperationsRequest; + return AggregatedListHealthChecksRequest; })(); - v1beta.AggregatedListGlobalVmExtensionPoliciesRequest = (function() { + v1beta.AggregatedListInstanceGroupManagersRequest = (function() { /** - * Properties of an AggregatedListGlobalVmExtensionPoliciesRequest. + * Properties of an AggregatedListInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListGlobalVmExtensionPoliciesRequest - * @property {string|null} [filter] AggregatedListGlobalVmExtensionPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListGlobalVmExtensionPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListGlobalVmExtensionPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListGlobalVmExtensionPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListGlobalVmExtensionPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber + * @interface IAggregatedListInstanceGroupManagersRequest + * @property {string|null} [filter] AggregatedListInstanceGroupManagersRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupManagersRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstanceGroupManagersRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstanceGroupManagersRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstanceGroupManagersRequest pageToken + * @property {string|null} [project] AggregatedListInstanceGroupManagersRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupManagersRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupManagersRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListGlobalVmExtensionPoliciesRequest. + * Constructs a new AggregatedListInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListGlobalVmExtensionPoliciesRequest. - * @implements IAggregatedListGlobalVmExtensionPoliciesRequest + * @classdesc Represents an AggregatedListInstanceGroupManagersRequest. + * @implements IAggregatedListInstanceGroupManagersRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set */ - function AggregatedListGlobalVmExtensionPoliciesRequest(properties) { + function AggregatedListInstanceGroupManagersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -679384,136 +694622,136 @@ } /** - * AggregatedListGlobalVmExtensionPoliciesRequest filter. + * AggregatedListInstanceGroupManagersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.filter = null; + AggregatedListInstanceGroupManagersRequest.prototype.filter = null; /** - * AggregatedListGlobalVmExtensionPoliciesRequest includeAllScopes. + * AggregatedListInstanceGroupManagersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListInstanceGroupManagersRequest.prototype.includeAllScopes = null; /** - * AggregatedListGlobalVmExtensionPoliciesRequest maxResults. + * AggregatedListInstanceGroupManagersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.maxResults = null; + AggregatedListInstanceGroupManagersRequest.prototype.maxResults = null; /** - * AggregatedListGlobalVmExtensionPoliciesRequest orderBy. + * AggregatedListInstanceGroupManagersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.orderBy = null; + AggregatedListInstanceGroupManagersRequest.prototype.orderBy = null; /** - * AggregatedListGlobalVmExtensionPoliciesRequest pageToken. + * AggregatedListInstanceGroupManagersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.pageToken = null; + AggregatedListInstanceGroupManagersRequest.prototype.pageToken = null; /** - * AggregatedListGlobalVmExtensionPoliciesRequest project. + * AggregatedListInstanceGroupManagersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.project = ""; + AggregatedListInstanceGroupManagersRequest.prototype.project = ""; /** - * AggregatedListGlobalVmExtensionPoliciesRequest returnPartialSuccess. + * AggregatedListInstanceGroupManagersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListGlobalVmExtensionPoliciesRequest serviceProjectNumber. + * AggregatedListInstanceGroupManagersRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListInstanceGroupManagersRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListGlobalVmExtensionPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListGlobalVmExtensionPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListInstanceGroupManagersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest instance */ - AggregatedListGlobalVmExtensionPoliciesRequest.create = function create(properties) { - return new AggregatedListGlobalVmExtensionPoliciesRequest(properties); + AggregatedListInstanceGroupManagersRequest.create = function create(properties) { + return new AggregatedListInstanceGroupManagersRequest(properties); }; /** - * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListGlobalVmExtensionPoliciesRequest.encode = function encode(message, writer) { + AggregatedListInstanceGroupManagersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -679536,33 +694774,33 @@ }; /** - * Encodes the specified AggregatedListGlobalVmExtensionPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListGlobalVmExtensionPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListGlobalVmExtensionPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListInstanceGroupManagersRequest.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.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -679609,30 +694847,30 @@ }; /** - * Decodes an AggregatedListGlobalVmExtensionPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListGlobalVmExtensionPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListGlobalVmExtensionPoliciesRequest message. + * Verifies an AggregatedListInstanceGroupManagersRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListGlobalVmExtensionPoliciesRequest.verify = function verify(message) { + AggregatedListInstanceGroupManagersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -679678,17 +694916,17 @@ }; /** - * Creates an AggregatedListGlobalVmExtensionPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} AggregatedListGlobalVmExtensionPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest */ - AggregatedListGlobalVmExtensionPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest) + AggregatedListInstanceGroupManagersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -679716,15 +694954,15 @@ }; /** - * Creates a plain object from an AggregatedListGlobalVmExtensionPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstanceGroupManagersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest} message AggregatedListGlobalVmExtensionPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListGlobalVmExtensionPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListInstanceGroupManagersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -679774,59 +695012,59 @@ }; /** - * Converts this AggregatedListGlobalVmExtensionPoliciesRequest to JSON. + * Converts this AggregatedListInstanceGroupManagersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListGlobalVmExtensionPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListGlobalVmExtensionPoliciesRequest + * Gets the default type url for AggregatedListInstanceGroupManagersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListGlobalVmExtensionPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListGlobalVmExtensionPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest"; }; - return AggregatedListGlobalVmExtensionPoliciesRequest; + return AggregatedListInstanceGroupManagersRequest; })(); - v1beta.AggregatedListHealthChecksRequest = (function() { + v1beta.AggregatedListInstanceGroupsRequest = (function() { /** - * Properties of an AggregatedListHealthChecksRequest. + * Properties of an AggregatedListInstanceGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListHealthChecksRequest - * @property {string|null} [filter] AggregatedListHealthChecksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListHealthChecksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListHealthChecksRequest maxResults - * @property {string|null} [orderBy] AggregatedListHealthChecksRequest orderBy - * @property {string|null} [pageToken] AggregatedListHealthChecksRequest pageToken - * @property {string|null} [project] AggregatedListHealthChecksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListHealthChecksRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListHealthChecksRequest serviceProjectNumber + * @interface IAggregatedListInstanceGroupsRequest + * @property {string|null} [filter] AggregatedListInstanceGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstanceGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstanceGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstanceGroupsRequest pageToken + * @property {string|null} [project] AggregatedListInstanceGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListHealthChecksRequest. + * Constructs a new AggregatedListInstanceGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListHealthChecksRequest. - * @implements IAggregatedListHealthChecksRequest + * @classdesc Represents an AggregatedListInstanceGroupsRequest. + * @implements IAggregatedListInstanceGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set */ - function AggregatedListHealthChecksRequest(properties) { + function AggregatedListInstanceGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -679834,136 +695072,136 @@ } /** - * AggregatedListHealthChecksRequest filter. + * AggregatedListInstanceGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.filter = null; + AggregatedListInstanceGroupsRequest.prototype.filter = null; /** - * AggregatedListHealthChecksRequest includeAllScopes. + * AggregatedListInstanceGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.includeAllScopes = null; + AggregatedListInstanceGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListHealthChecksRequest maxResults. + * AggregatedListInstanceGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.maxResults = null; + AggregatedListInstanceGroupsRequest.prototype.maxResults = null; /** - * AggregatedListHealthChecksRequest orderBy. + * AggregatedListInstanceGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.orderBy = null; + AggregatedListInstanceGroupsRequest.prototype.orderBy = null; /** - * AggregatedListHealthChecksRequest pageToken. + * AggregatedListInstanceGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.pageToken = null; + AggregatedListInstanceGroupsRequest.prototype.pageToken = null; /** - * AggregatedListHealthChecksRequest project. + * AggregatedListInstanceGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.project = ""; + AggregatedListInstanceGroupsRequest.prototype.project = ""; /** - * AggregatedListHealthChecksRequest returnPartialSuccess. + * AggregatedListInstanceGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListHealthChecksRequest serviceProjectNumber. + * AggregatedListInstanceGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance */ - AggregatedListHealthChecksRequest.prototype.serviceProjectNumber = null; + AggregatedListInstanceGroupsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListHealthChecksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListHealthChecksRequest instance using the specified properties. + * Creates a new AggregatedListInstanceGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest instance */ - AggregatedListHealthChecksRequest.create = function create(properties) { - return new AggregatedListHealthChecksRequest(properties); + AggregatedListInstanceGroupsRequest.create = function create(properties) { + return new AggregatedListInstanceGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListHealthChecksRequest.encode = function encode(message, writer) { + AggregatedListInstanceGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -679986,33 +695224,33 @@ }; /** - * Encodes the specified AggregatedListHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListHealthChecksRequest.decode = function decode(reader, length, error) { + AggregatedListInstanceGroupsRequest.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.v1beta.AggregatedListHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -680059,30 +695297,30 @@ }; /** - * Decodes an AggregatedListHealthChecksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListHealthChecksRequest message. + * Verifies an AggregatedListInstanceGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListHealthChecksRequest.verify = function verify(message) { + AggregatedListInstanceGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -680128,17 +695366,17 @@ }; /** - * Creates an AggregatedListHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} AggregatedListHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest */ - AggregatedListHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest) + AggregatedListInstanceGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -680166,15 +695404,15 @@ }; /** - * Creates a plain object from an AggregatedListHealthChecksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstanceGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListHealthChecksRequest} message AggregatedListHealthChecksRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListHealthChecksRequest.toObject = function toObject(message, options) { + AggregatedListInstanceGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -680224,59 +695462,59 @@ }; /** - * Converts this AggregatedListHealthChecksRequest to JSON. + * Converts this AggregatedListInstanceGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListHealthChecksRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListHealthChecksRequest + * Gets the default type url for AggregatedListInstanceGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest"; }; - return AggregatedListHealthChecksRequest; + return AggregatedListInstanceGroupsRequest; })(); - v1beta.AggregatedListInstanceGroupManagersRequest = (function() { + v1beta.AggregatedListInstanceTemplatesRequest = (function() { /** - * Properties of an AggregatedListInstanceGroupManagersRequest. + * Properties of an AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstanceGroupManagersRequest - * @property {string|null} [filter] AggregatedListInstanceGroupManagersRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupManagersRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstanceGroupManagersRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstanceGroupManagersRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstanceGroupManagersRequest pageToken - * @property {string|null} [project] AggregatedListInstanceGroupManagersRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupManagersRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupManagersRequest serviceProjectNumber + * @interface IAggregatedListInstanceTemplatesRequest + * @property {string|null} [filter] AggregatedListInstanceTemplatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstanceTemplatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstanceTemplatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstanceTemplatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstanceTemplatesRequest pageToken + * @property {string|null} [project] AggregatedListInstanceTemplatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceTemplatesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceTemplatesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstanceGroupManagersRequest. + * Constructs a new AggregatedListInstanceTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstanceGroupManagersRequest. - * @implements IAggregatedListInstanceGroupManagersRequest + * @classdesc Represents an AggregatedListInstanceTemplatesRequest. + * @implements IAggregatedListInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set */ - function AggregatedListInstanceGroupManagersRequest(properties) { + function AggregatedListInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -680284,136 +695522,136 @@ } /** - * AggregatedListInstanceGroupManagersRequest filter. + * AggregatedListInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.filter = null; + AggregatedListInstanceTemplatesRequest.prototype.filter = null; /** - * AggregatedListInstanceGroupManagersRequest includeAllScopes. + * AggregatedListInstanceTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.includeAllScopes = null; + AggregatedListInstanceTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceGroupManagersRequest maxResults. + * AggregatedListInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.maxResults = null; + AggregatedListInstanceTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListInstanceGroupManagersRequest orderBy. + * AggregatedListInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.orderBy = null; + AggregatedListInstanceTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListInstanceGroupManagersRequest pageToken. + * AggregatedListInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.pageToken = null; + AggregatedListInstanceTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListInstanceGroupManagersRequest project. + * AggregatedListInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.project = ""; + AggregatedListInstanceTemplatesRequest.prototype.project = ""; /** - * AggregatedListInstanceGroupManagersRequest returnPartialSuccess. + * AggregatedListInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; + AggregatedListInstanceTemplatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceGroupManagersRequest serviceProjectNumber. + * AggregatedListInstanceTemplatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance */ - AggregatedListInstanceGroupManagersRequest.prototype.serviceProjectNumber = null; + AggregatedListInstanceTemplatesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupManagersRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceGroupManagersRequest instance using the specified properties. + * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest instance */ - AggregatedListInstanceGroupManagersRequest.create = function create(properties) { - return new AggregatedListInstanceGroupManagersRequest(properties); + AggregatedListInstanceTemplatesRequest.create = function create(properties) { + return new AggregatedListInstanceTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupManagersRequest.encode = function encode(message, writer) { + AggregatedListInstanceTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -680436,33 +695674,33 @@ }; /** - * Encodes the specified AggregatedListInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupManagersRequest.decode = function decode(reader, length, error) { + AggregatedListInstanceTemplatesRequest.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.v1beta.AggregatedListInstanceGroupManagersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -680509,30 +695747,30 @@ }; /** - * Decodes an AggregatedListInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceGroupManagersRequest message. + * Verifies an AggregatedListInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstanceGroupManagersRequest.verify = function verify(message) { + AggregatedListInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -680578,17 +695816,17 @@ }; /** - * Creates an AggregatedListInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} AggregatedListInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest */ - AggregatedListInstanceGroupManagersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest) + AggregatedListInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -680616,15 +695854,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceGroupManagersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstanceTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest} message AggregatedListInstanceGroupManagersRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceGroupManagersRequest.toObject = function toObject(message, options) { + AggregatedListInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -680674,59 +695912,59 @@ }; /** - * Converts this AggregatedListInstanceGroupManagersRequest to JSON. + * Converts this AggregatedListInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { + AggregatedListInstanceTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstanceGroupManagersRequest + * Gets the default type url for AggregatedListInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupManagersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest"; }; - return AggregatedListInstanceGroupManagersRequest; + return AggregatedListInstanceTemplatesRequest; })(); - v1beta.AggregatedListInstanceGroupsRequest = (function() { + v1beta.AggregatedListInstancesRequest = (function() { /** - * Properties of an AggregatedListInstanceGroupsRequest. + * Properties of an AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstanceGroupsRequest - * @property {string|null} [filter] AggregatedListInstanceGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstanceGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstanceGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstanceGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstanceGroupsRequest pageToken - * @property {string|null} [project] AggregatedListInstanceGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceGroupsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceGroupsRequest serviceProjectNumber + * @interface IAggregatedListInstancesRequest + * @property {string|null} [filter] AggregatedListInstancesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstancesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstancesRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstancesRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstancesRequest pageToken + * @property {string|null} [project] AggregatedListInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstancesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstancesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstanceGroupsRequest. + * Constructs a new AggregatedListInstancesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstanceGroupsRequest. - * @implements IAggregatedListInstanceGroupsRequest + * @classdesc Represents an AggregatedListInstancesRequest. + * @implements IAggregatedListInstancesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set */ - function AggregatedListInstanceGroupsRequest(properties) { + function AggregatedListInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -680734,136 +695972,136 @@ } /** - * AggregatedListInstanceGroupsRequest filter. + * AggregatedListInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.filter = null; + AggregatedListInstancesRequest.prototype.filter = null; /** - * AggregatedListInstanceGroupsRequest includeAllScopes. + * AggregatedListInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.includeAllScopes = null; + AggregatedListInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceGroupsRequest maxResults. + * AggregatedListInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.maxResults = null; + AggregatedListInstancesRequest.prototype.maxResults = null; /** - * AggregatedListInstanceGroupsRequest orderBy. + * AggregatedListInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.orderBy = null; + AggregatedListInstancesRequest.prototype.orderBy = null; /** - * AggregatedListInstanceGroupsRequest pageToken. + * AggregatedListInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.pageToken = null; + AggregatedListInstancesRequest.prototype.pageToken = null; /** - * AggregatedListInstanceGroupsRequest project. + * AggregatedListInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.project = ""; + AggregatedListInstancesRequest.prototype.project = ""; /** - * AggregatedListInstanceGroupsRequest returnPartialSuccess. + * AggregatedListInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceGroupsRequest serviceProjectNumber. + * AggregatedListInstancesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance */ - AggregatedListInstanceGroupsRequest.prototype.serviceProjectNumber = null; + AggregatedListInstancesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstancesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceGroupsRequest instance using the specified properties. + * Creates a new AggregatedListInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance */ - AggregatedListInstanceGroupsRequest.create = function create(properties) { - return new AggregatedListInstanceGroupsRequest(properties); + AggregatedListInstancesRequest.create = function create(properties) { + return new AggregatedListInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupsRequest.encode = function encode(message, writer) { + AggregatedListInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -680886,33 +696124,33 @@ }; /** - * Encodes the specified AggregatedListInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupsRequest.decode = function decode(reader, length, error) { + AggregatedListInstancesRequest.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.v1beta.AggregatedListInstanceGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -680959,30 +696197,30 @@ }; /** - * Decodes an AggregatedListInstanceGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceGroupsRequest message. + * Verifies an AggregatedListInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstanceGroupsRequest.verify = function verify(message) { + AggregatedListInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -681028,17 +696266,17 @@ }; /** - * Creates an AggregatedListInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} AggregatedListInstanceGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest */ - AggregatedListInstanceGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest) + AggregatedListInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -681066,15 +696304,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest} message AggregatedListInstanceGroupsRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstancesRequest} message AggregatedListInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceGroupsRequest.toObject = function toObject(message, options) { + AggregatedListInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -681124,59 +696362,59 @@ }; /** - * Converts this AggregatedListInstanceGroupsRequest to JSON. + * Converts this AggregatedListInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstanceGroupsRequest + * Gets the default type url for AggregatedListInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstancesRequest"; }; - return AggregatedListInstanceGroupsRequest; + return AggregatedListInstancesRequest; })(); - v1beta.AggregatedListInstanceTemplatesRequest = (function() { + v1beta.AggregatedListInstantSnapshotsRequest = (function() { /** - * Properties of an AggregatedListInstanceTemplatesRequest. + * Properties of an AggregatedListInstantSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstanceTemplatesRequest - * @property {string|null} [filter] AggregatedListInstanceTemplatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstanceTemplatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstanceTemplatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstanceTemplatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstanceTemplatesRequest pageToken - * @property {string|null} [project] AggregatedListInstanceTemplatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstanceTemplatesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstanceTemplatesRequest serviceProjectNumber + * @interface IAggregatedListInstantSnapshotsRequest + * @property {string|null} [filter] AggregatedListInstantSnapshotsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInstantSnapshotsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInstantSnapshotsRequest maxResults + * @property {string|null} [orderBy] AggregatedListInstantSnapshotsRequest orderBy + * @property {string|null} [pageToken] AggregatedListInstantSnapshotsRequest pageToken + * @property {string|null} [project] AggregatedListInstantSnapshotsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInstantSnapshotsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstantSnapshotsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstanceTemplatesRequest. + * Constructs a new AggregatedListInstantSnapshotsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstanceTemplatesRequest. - * @implements IAggregatedListInstanceTemplatesRequest + * @classdesc Represents an AggregatedListInstantSnapshotsRequest. + * @implements IAggregatedListInstantSnapshotsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set */ - function AggregatedListInstanceTemplatesRequest(properties) { + function AggregatedListInstantSnapshotsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -681184,136 +696422,136 @@ } /** - * AggregatedListInstanceTemplatesRequest filter. + * AggregatedListInstantSnapshotsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.filter = null; + AggregatedListInstantSnapshotsRequest.prototype.filter = null; /** - * AggregatedListInstanceTemplatesRequest includeAllScopes. + * AggregatedListInstantSnapshotsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListInstantSnapshotsRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstanceTemplatesRequest maxResults. + * AggregatedListInstantSnapshotsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.maxResults = null; + AggregatedListInstantSnapshotsRequest.prototype.maxResults = null; /** - * AggregatedListInstanceTemplatesRequest orderBy. + * AggregatedListInstantSnapshotsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.orderBy = null; + AggregatedListInstantSnapshotsRequest.prototype.orderBy = null; /** - * AggregatedListInstanceTemplatesRequest pageToken. + * AggregatedListInstantSnapshotsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.pageToken = null; + AggregatedListInstantSnapshotsRequest.prototype.pageToken = null; /** - * AggregatedListInstanceTemplatesRequest project. + * AggregatedListInstantSnapshotsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.project = ""; + AggregatedListInstantSnapshotsRequest.prototype.project = ""; /** - * AggregatedListInstanceTemplatesRequest returnPartialSuccess. + * AggregatedListInstantSnapshotsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListInstantSnapshotsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstanceTemplatesRequest serviceProjectNumber. + * AggregatedListInstantSnapshotsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance */ - AggregatedListInstanceTemplatesRequest.prototype.serviceProjectNumber = null; + AggregatedListInstantSnapshotsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstanceTemplatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstanceTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListInstantSnapshotsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest instance */ - AggregatedListInstanceTemplatesRequest.create = function create(properties) { - return new AggregatedListInstanceTemplatesRequest(properties); + AggregatedListInstantSnapshotsRequest.create = function create(properties) { + return new AggregatedListInstantSnapshotsRequest(properties); }; /** - * Encodes the specified AggregatedListInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceTemplatesRequest.encode = function encode(message, writer) { + AggregatedListInstantSnapshotsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -681336,33 +696574,33 @@ }; /** - * Encodes the specified AggregatedListInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceTemplatesRequest.decode = function decode(reader, length, error) { + AggregatedListInstantSnapshotsRequest.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.v1beta.AggregatedListInstanceTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -681409,30 +696647,30 @@ }; /** - * Decodes an AggregatedListInstanceTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstanceTemplatesRequest message. + * Verifies an AggregatedListInstantSnapshotsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstanceTemplatesRequest.verify = function verify(message) { + AggregatedListInstantSnapshotsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -681478,17 +696716,17 @@ }; /** - * Creates an AggregatedListInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} AggregatedListInstanceTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest */ - AggregatedListInstanceTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest) + AggregatedListInstantSnapshotsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -681516,15 +696754,15 @@ }; /** - * Creates a plain object from an AggregatedListInstanceTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInstantSnapshotsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest} message AggregatedListInstanceTemplatesRequest + * @param {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstanceTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListInstantSnapshotsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -681574,59 +696812,59 @@ }; /** - * Converts this AggregatedListInstanceTemplatesRequest to JSON. + * Converts this AggregatedListInstantSnapshotsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstanceTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListInstantSnapshotsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstanceTemplatesRequest + * Gets the default type url for AggregatedListInstantSnapshotsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstanceTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest"; }; - return AggregatedListInstanceTemplatesRequest; + return AggregatedListInstantSnapshotsRequest; })(); - v1beta.AggregatedListInstancesRequest = (function() { + v1beta.AggregatedListInterconnectAttachmentsRequest = (function() { /** - * Properties of an AggregatedListInstancesRequest. + * Properties of an AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstancesRequest - * @property {string|null} [filter] AggregatedListInstancesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstancesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstancesRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstancesRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstancesRequest pageToken - * @property {string|null} [project] AggregatedListInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstancesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstancesRequest serviceProjectNumber + * @interface IAggregatedListInterconnectAttachmentsRequest + * @property {string|null} [filter] AggregatedListInterconnectAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListInterconnectAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListInterconnectAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListInterconnectAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListInterconnectAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListInterconnectAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListInterconnectAttachmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListInterconnectAttachmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstancesRequest. + * Constructs a new AggregatedListInterconnectAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstancesRequest. - * @implements IAggregatedListInstancesRequest + * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. + * @implements IAggregatedListInterconnectAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListInstancesRequest(properties) { + function AggregatedListInterconnectAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -681634,136 +696872,136 @@ } /** - * AggregatedListInstancesRequest filter. + * AggregatedListInterconnectAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.filter = null; + AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; /** - * AggregatedListInstancesRequest includeAllScopes. + * AggregatedListInterconnectAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.includeAllScopes = null; + AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstancesRequest maxResults. + * AggregatedListInterconnectAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.maxResults = null; + AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListInstancesRequest orderBy. + * AggregatedListInterconnectAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.orderBy = null; + AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListInstancesRequest pageToken. + * AggregatedListInterconnectAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.pageToken = null; + AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListInstancesRequest project. + * AggregatedListInterconnectAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.project = ""; + AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; /** - * AggregatedListInstancesRequest returnPartialSuccess. + * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstancesRequest serviceProjectNumber. + * AggregatedListInterconnectAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance */ - AggregatedListInstancesRequest.prototype.serviceProjectNumber = null; + AggregatedListInterconnectAttachmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstancesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstancesRequest instance using the specified properties. + * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance */ - AggregatedListInstancesRequest.create = function create(properties) { - return new AggregatedListInstancesRequest(properties); + AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { + return new AggregatedListInterconnectAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.encode = function encode(message, writer) { + AggregatedListInterconnectAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -681786,33 +697024,33 @@ }; /** - * Encodes the specified AggregatedListInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstancesRequest} message AggregatedListInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstancesRequest.decode = function decode(reader, length, error) { + AggregatedListInterconnectAttachmentsRequest.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.v1beta.AggregatedListInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -681859,30 +697097,30 @@ }; /** - * Decodes an AggregatedListInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListInterconnectAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstancesRequest message. + * Verifies an AggregatedListInterconnectAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstancesRequest.verify = function verify(message) { + AggregatedListInterconnectAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -681928,17 +697166,17 @@ }; /** - * Creates an AggregatedListInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListInterconnectAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstancesRequest} AggregatedListInstancesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest */ - AggregatedListInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest) + AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstancesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -681966,15 +697204,15 @@ }; /** - * Creates a plain object from an AggregatedListInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListInterconnectAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstancesRequest} message AggregatedListInstancesRequest + * @param {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstancesRequest.toObject = function toObject(message, options) { + AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -682024,59 +697262,59 @@ }; /** - * Converts this AggregatedListInstancesRequest to JSON. + * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListInterconnectAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstancesRequest + * Gets the default type url for AggregatedListInterconnectAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstancesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest"; }; - return AggregatedListInstancesRequest; + return AggregatedListInterconnectAttachmentsRequest; })(); - v1beta.AggregatedListInstantSnapshotsRequest = (function() { + v1beta.AggregatedListMachineTypesRequest = (function() { /** - * Properties of an AggregatedListInstantSnapshotsRequest. + * Properties of an AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInstantSnapshotsRequest - * @property {string|null} [filter] AggregatedListInstantSnapshotsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInstantSnapshotsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInstantSnapshotsRequest maxResults - * @property {string|null} [orderBy] AggregatedListInstantSnapshotsRequest orderBy - * @property {string|null} [pageToken] AggregatedListInstantSnapshotsRequest pageToken - * @property {string|null} [project] AggregatedListInstantSnapshotsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInstantSnapshotsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInstantSnapshotsRequest serviceProjectNumber + * @interface IAggregatedListMachineTypesRequest + * @property {string|null} [filter] AggregatedListMachineTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListMachineTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListMachineTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListMachineTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListMachineTypesRequest pageToken + * @property {string|null} [project] AggregatedListMachineTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListMachineTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListMachineTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInstantSnapshotsRequest. + * Constructs a new AggregatedListMachineTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInstantSnapshotsRequest. - * @implements IAggregatedListInstantSnapshotsRequest + * @classdesc Represents an AggregatedListMachineTypesRequest. + * @implements IAggregatedListMachineTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set */ - function AggregatedListInstantSnapshotsRequest(properties) { + function AggregatedListMachineTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -682084,136 +697322,136 @@ } /** - * AggregatedListInstantSnapshotsRequest filter. + * AggregatedListMachineTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.filter = null; + AggregatedListMachineTypesRequest.prototype.filter = null; /** - * AggregatedListInstantSnapshotsRequest includeAllScopes. + * AggregatedListMachineTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.includeAllScopes = null; + AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListInstantSnapshotsRequest maxResults. + * AggregatedListMachineTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.maxResults = null; + AggregatedListMachineTypesRequest.prototype.maxResults = null; /** - * AggregatedListInstantSnapshotsRequest orderBy. + * AggregatedListMachineTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.orderBy = null; + AggregatedListMachineTypesRequest.prototype.orderBy = null; /** - * AggregatedListInstantSnapshotsRequest pageToken. + * AggregatedListMachineTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.pageToken = null; + AggregatedListMachineTypesRequest.prototype.pageToken = null; /** - * AggregatedListInstantSnapshotsRequest project. + * AggregatedListMachineTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.project = ""; + AggregatedListMachineTypesRequest.prototype.project = ""; /** - * AggregatedListInstantSnapshotsRequest returnPartialSuccess. + * AggregatedListMachineTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.returnPartialSuccess = null; + AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInstantSnapshotsRequest serviceProjectNumber. + * AggregatedListMachineTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance */ - AggregatedListInstantSnapshotsRequest.prototype.serviceProjectNumber = null; + AggregatedListMachineTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInstantSnapshotsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInstantSnapshotsRequest instance using the specified properties. + * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance */ - AggregatedListInstantSnapshotsRequest.create = function create(properties) { - return new AggregatedListInstantSnapshotsRequest(properties); + AggregatedListMachineTypesRequest.create = function create(properties) { + return new AggregatedListMachineTypesRequest(properties); }; /** - * Encodes the specified AggregatedListInstantSnapshotsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstantSnapshotsRequest.encode = function encode(message, writer) { + AggregatedListMachineTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -682236,33 +697474,33 @@ }; /** - * Encodes the specified AggregatedListInstantSnapshotsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest.verify|verify} messages. + * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInstantSnapshotsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer. + * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstantSnapshotsRequest.decode = function decode(reader, length, error) { + AggregatedListMachineTypesRequest.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.v1beta.AggregatedListInstantSnapshotsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -682309,30 +697547,30 @@ }; /** - * Decodes an AggregatedListInstantSnapshotsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInstantSnapshotsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListMachineTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInstantSnapshotsRequest message. + * Verifies an AggregatedListMachineTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInstantSnapshotsRequest.verify = function verify(message) { + AggregatedListMachineTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -682378,17 +697616,17 @@ }; /** - * Creates an AggregatedListInstantSnapshotsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListMachineTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} AggregatedListInstantSnapshotsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest */ - AggregatedListInstantSnapshotsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest) + AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -682416,15 +697654,15 @@ }; /** - * Creates a plain object from an AggregatedListInstantSnapshotsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListMachineTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest} message AggregatedListInstantSnapshotsRequest + * @param {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInstantSnapshotsRequest.toObject = function toObject(message, options) { + AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -682474,59 +697712,59 @@ }; /** - * Converts this AggregatedListInstantSnapshotsRequest to JSON. + * Converts this AggregatedListMachineTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInstantSnapshotsRequest.prototype.toJSON = function toJSON() { + AggregatedListMachineTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInstantSnapshotsRequest + * Gets the default type url for AggregatedListMachineTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInstantSnapshotsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInstantSnapshotsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListMachineTypesRequest"; }; - return AggregatedListInstantSnapshotsRequest; + return AggregatedListMachineTypesRequest; })(); - v1beta.AggregatedListInterconnectAttachmentsRequest = (function() { + v1beta.AggregatedListNetworkAttachmentsRequest = (function() { /** - * Properties of an AggregatedListInterconnectAttachmentsRequest. + * Properties of an AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListInterconnectAttachmentsRequest - * @property {string|null} [filter] AggregatedListInterconnectAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListInterconnectAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListInterconnectAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListInterconnectAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListInterconnectAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListInterconnectAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListInterconnectAttachmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListInterconnectAttachmentsRequest serviceProjectNumber + * @interface IAggregatedListNetworkAttachmentsRequest + * @property {string|null} [filter] AggregatedListNetworkAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkAttachmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkAttachmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListInterconnectAttachmentsRequest. + * Constructs a new AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListInterconnectAttachmentsRequest. - * @implements IAggregatedListInterconnectAttachmentsRequest + * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. + * @implements IAggregatedListNetworkAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListInterconnectAttachmentsRequest(properties) { + function AggregatedListNetworkAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -682534,136 +697772,136 @@ } /** - * AggregatedListInterconnectAttachmentsRequest filter. + * AggregatedListNetworkAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.filter = null; + AggregatedListNetworkAttachmentsRequest.prototype.filter = null; /** - * AggregatedListInterconnectAttachmentsRequest includeAllScopes. + * AggregatedListNetworkAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListInterconnectAttachmentsRequest maxResults. + * AggregatedListNetworkAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.maxResults = null; + AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListInterconnectAttachmentsRequest orderBy. + * AggregatedListNetworkAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.orderBy = null; + AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListInterconnectAttachmentsRequest pageToken. + * AggregatedListNetworkAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.pageToken = null; + AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListInterconnectAttachmentsRequest project. + * AggregatedListNetworkAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.project = ""; + AggregatedListNetworkAttachmentsRequest.prototype.project = ""; /** - * AggregatedListInterconnectAttachmentsRequest returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListInterconnectAttachmentsRequest serviceProjectNumber. + * AggregatedListNetworkAttachmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListInterconnectAttachmentsRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkAttachmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListInterconnectAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListInterconnectAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance */ - AggregatedListInterconnectAttachmentsRequest.create = function create(properties) { - return new AggregatedListInterconnectAttachmentsRequest(properties); + AggregatedListNetworkAttachmentsRequest.create = function create(properties) { + return new AggregatedListNetworkAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListNetworkAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -682686,33 +697924,33 @@ }; /** - * Encodes the specified AggregatedListInterconnectAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListInterconnectAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInterconnectAttachmentsRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkAttachmentsRequest.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.v1beta.AggregatedListInterconnectAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -682759,30 +697997,30 @@ }; /** - * Decodes an AggregatedListInterconnectAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListInterconnectAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListInterconnectAttachmentsRequest message. + * Verifies an AggregatedListNetworkAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListInterconnectAttachmentsRequest.verify = function verify(message) { + AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -682828,17 +698066,17 @@ }; /** - * Creates an AggregatedListInterconnectAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} AggregatedListInterconnectAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest */ - AggregatedListInterconnectAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest) + AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -682866,15 +698104,15 @@ }; /** - * Creates a plain object from an AggregatedListInterconnectAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest} message AggregatedListInterconnectAttachmentsRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListInterconnectAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -682924,59 +698162,59 @@ }; /** - * Converts this AggregatedListInterconnectAttachmentsRequest to JSON. + * Converts this AggregatedListNetworkAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListInterconnectAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListInterconnectAttachmentsRequest + * Gets the default type url for AggregatedListNetworkAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListInterconnectAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListInterconnectAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest"; }; - return AggregatedListInterconnectAttachmentsRequest; + return AggregatedListNetworkAttachmentsRequest; })(); - v1beta.AggregatedListMachineTypesRequest = (function() { + v1beta.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { /** - * Properties of an AggregatedListMachineTypesRequest. + * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListMachineTypesRequest - * @property {string|null} [filter] AggregatedListMachineTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListMachineTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListMachineTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListMachineTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListMachineTypesRequest pageToken - * @property {string|null} [project] AggregatedListMachineTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListMachineTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListMachineTypesRequest serviceProjectNumber + * @interface IAggregatedListNetworkEdgeSecurityServicesRequest + * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListMachineTypesRequest. + * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListMachineTypesRequest. - * @implements IAggregatedListMachineTypesRequest + * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. + * @implements IAggregatedListNetworkEdgeSecurityServicesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set */ - function AggregatedListMachineTypesRequest(properties) { + function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -682984,136 +698222,136 @@ } /** - * AggregatedListMachineTypesRequest filter. + * AggregatedListNetworkEdgeSecurityServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.filter = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; /** - * AggregatedListMachineTypesRequest includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListMachineTypesRequest maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.maxResults = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; /** - * AggregatedListMachineTypesRequest orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.orderBy = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; /** - * AggregatedListMachineTypesRequest pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.pageToken = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; /** - * AggregatedListMachineTypesRequest project. + * AggregatedListNetworkEdgeSecurityServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.project = ""; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; /** - * AggregatedListMachineTypesRequest returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListMachineTypesRequest serviceProjectNumber. + * AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListMachineTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListMachineTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListMachineTypesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance */ - AggregatedListMachineTypesRequest.create = function create(properties) { - return new AggregatedListMachineTypesRequest(properties); + AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { + return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); }; /** - * Encodes the specified AggregatedListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.encode = function encode(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -683136,33 +698374,33 @@ }; /** - * Encodes the specified AggregatedListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListMachineTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListMachineTypesRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkEdgeSecurityServicesRequest.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.v1beta.AggregatedListMachineTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -683209,30 +698447,30 @@ }; /** - * Decodes an AggregatedListMachineTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListMachineTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListMachineTypesRequest message. + * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListMachineTypesRequest.verify = function verify(message) { + AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -683278,17 +698516,17 @@ }; /** - * Creates an AggregatedListMachineTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} AggregatedListMachineTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest */ - AggregatedListMachineTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest) + AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListMachineTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -683316,15 +698554,15 @@ }; /** - * Creates a plain object from an AggregatedListMachineTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListMachineTypesRequest} message AggregatedListMachineTypesRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListMachineTypesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -683374,59 +698612,59 @@ }; /** - * Converts this AggregatedListMachineTypesRequest to JSON. + * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListMachineTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListMachineTypesRequest + * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListMachineTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListMachineTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListMachineTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest"; }; - return AggregatedListMachineTypesRequest; + return AggregatedListNetworkEdgeSecurityServicesRequest; })(); - v1beta.AggregatedListNetworkAttachmentsRequest = (function() { + v1beta.AggregatedListNetworkEndpointGroupsRequest = (function() { /** - * Properties of an AggregatedListNetworkAttachmentsRequest. + * Properties of an AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkAttachmentsRequest - * @property {string|null} [filter] AggregatedListNetworkAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListNetworkAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkAttachmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkAttachmentsRequest serviceProjectNumber + * @interface IAggregatedListNetworkEndpointGroupsRequest + * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkAttachmentsRequest. + * Constructs a new AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. - * @implements IAggregatedListNetworkAttachmentsRequest + * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. + * @implements IAggregatedListNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function AggregatedListNetworkAttachmentsRequest(properties) { + function AggregatedListNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -683434,136 +698672,136 @@ } /** - * AggregatedListNetworkAttachmentsRequest filter. + * AggregatedListNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.filter = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; /** - * AggregatedListNetworkAttachmentsRequest includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkAttachmentsRequest maxResults. + * AggregatedListNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkAttachmentsRequest orderBy. + * AggregatedListNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkAttachmentsRequest pageToken. + * AggregatedListNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkAttachmentsRequest project. + * AggregatedListNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.project = ""; + AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; /** - * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkAttachmentsRequest serviceProjectNumber. + * AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNetworkAttachmentsRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance */ - AggregatedListNetworkAttachmentsRequest.create = function create(properties) { - return new AggregatedListNetworkAttachmentsRequest(properties); + AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { + return new AggregatedListNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -683586,33 +698824,33 @@ }; /** - * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkAttachmentsRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkEndpointGroupsRequest.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.v1beta.AggregatedListNetworkAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -683659,30 +698897,30 @@ }; /** - * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkAttachmentsRequest message. + * Verifies an AggregatedListNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { + AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -683728,17 +698966,17 @@ }; /** - * Creates an AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest */ - AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest) + AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -683766,15 +699004,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -683824,59 +699062,59 @@ }; /** - * Converts this AggregatedListNetworkAttachmentsRequest to JSON. + * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkAttachmentsRequest + * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest"; }; - return AggregatedListNetworkAttachmentsRequest; + return AggregatedListNetworkEndpointGroupsRequest; })(); - v1beta.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { + v1beta.AggregatedListNetworkFirewallPoliciesRequest = (function() { /** - * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. + * Properties of an AggregatedListNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkEdgeSecurityServicesRequest - * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber + * @interface IAggregatedListNetworkFirewallPoliciesRequest + * @property {string|null} [filter] AggregatedListNetworkFirewallPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkFirewallPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkFirewallPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkFirewallPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkFirewallPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListNetworkFirewallPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. + * Constructs a new AggregatedListNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. - * @implements IAggregatedListNetworkEdgeSecurityServicesRequest + * @classdesc Represents an AggregatedListNetworkFirewallPoliciesRequest. + * @implements IAggregatedListNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { + function AggregatedListNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -683884,136 +699122,136 @@ } /** - * AggregatedListNetworkEdgeSecurityServicesRequest filter. + * AggregatedListNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. + * AggregatedListNetworkFirewallPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. + * AggregatedListNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. + * AggregatedListNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. + * AggregatedListNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest project. + * AggregatedListNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; + AggregatedListNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. + * AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest serviceProjectNumber. + * AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.serviceProjectNumber = null; + AggregatedListNetworkFirewallPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { - return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); + AggregatedListNetworkFirewallPoliciesRequest.create = function create(properties) { + return new AggregatedListNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { + AggregatedListNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -684036,33 +699274,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decode = function decode(reader, length, error) { + AggregatedListNetworkFirewallPoliciesRequest.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.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -684109,30 +699347,30 @@ }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. + * Verifies an AggregatedListNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { + AggregatedListNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -684178,17 +699416,17 @@ }; /** - * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest */ - AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest) + AggregatedListNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -684216,15 +699454,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest + * @param {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -684274,59 +699512,59 @@ }; /** - * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. + * Converts this AggregatedListNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest + * Gets the default type url for AggregatedListNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEdgeSecurityServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest"; }; - return AggregatedListNetworkEdgeSecurityServicesRequest; + return AggregatedListNetworkFirewallPoliciesRequest; })(); - v1beta.AggregatedListNetworkEndpointGroupsRequest = (function() { + v1beta.AggregatedListNodeGroupsRequest = (function() { /** - * Properties of an AggregatedListNetworkEndpointGroupsRequest. + * Properties of an AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkEndpointGroupsRequest - * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber + * @interface IAggregatedListNodeGroupsRequest + * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNodeGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeGroupsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkEndpointGroupsRequest. + * Constructs a new AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. - * @implements IAggregatedListNetworkEndpointGroupsRequest + * @classdesc Represents an AggregatedListNodeGroupsRequest. + * @implements IAggregatedListNodeGroupsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set */ - function AggregatedListNetworkEndpointGroupsRequest(properties) { + function AggregatedListNodeGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -684334,136 +699572,136 @@ } /** - * AggregatedListNetworkEndpointGroupsRequest filter. + * AggregatedListNodeGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; + AggregatedListNodeGroupsRequest.prototype.filter = null; /** - * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. + * AggregatedListNodeGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEndpointGroupsRequest maxResults. + * AggregatedListNodeGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; + AggregatedListNodeGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEndpointGroupsRequest orderBy. + * AggregatedListNodeGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; + AggregatedListNodeGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEndpointGroupsRequest pageToken. + * AggregatedListNodeGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; + AggregatedListNodeGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEndpointGroupsRequest project. + * AggregatedListNodeGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; + AggregatedListNodeGroupsRequest.prototype.project = ""; /** - * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. + * AggregatedListNodeGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkEndpointGroupsRequest serviceProjectNumber. + * AggregatedListNodeGroupsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.serviceProjectNumber = null; + AggregatedListNodeGroupsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance */ - AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { - return new AggregatedListNetworkEndpointGroupsRequest(properties); + AggregatedListNodeGroupsRequest.create = function create(properties) { + return new AggregatedListNodeGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -684486,33 +699724,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decode = function decode(reader, length, error) { + AggregatedListNodeGroupsRequest.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.v1beta.AggregatedListNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -684559,30 +699797,30 @@ }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEndpointGroupsRequest message. + * Verifies an AggregatedListNodeGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { + AggregatedListNodeGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -684628,17 +699866,17 @@ }; /** - * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest */ - AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest) + AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -684666,15 +699904,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -684724,59 +699962,59 @@ }; /** - * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. + * Converts this AggregatedListNodeGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest + * Gets the default type url for AggregatedListNodeGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest"; }; - return AggregatedListNetworkEndpointGroupsRequest; + return AggregatedListNodeGroupsRequest; })(); - v1beta.AggregatedListNetworkFirewallPoliciesRequest = (function() { + v1beta.AggregatedListNodeTemplatesRequest = (function() { /** - * Properties of an AggregatedListNetworkFirewallPoliciesRequest. + * Properties of an AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNetworkFirewallPoliciesRequest - * @property {string|null} [filter] AggregatedListNetworkFirewallPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkFirewallPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkFirewallPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkFirewallPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkFirewallPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListNetworkFirewallPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber + * @interface IAggregatedListNodeTemplatesRequest + * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTemplatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTemplatesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNetworkFirewallPoliciesRequest. + * Constructs a new AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNetworkFirewallPoliciesRequest. - * @implements IAggregatedListNetworkFirewallPoliciesRequest + * @classdesc Represents an AggregatedListNodeTemplatesRequest. + * @implements IAggregatedListNodeTemplatesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set */ - function AggregatedListNetworkFirewallPoliciesRequest(properties) { + function AggregatedListNodeTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -684784,136 +700022,136 @@ } /** - * AggregatedListNetworkFirewallPoliciesRequest filter. + * AggregatedListNodeTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.filter = null; + AggregatedListNodeTemplatesRequest.prototype.filter = null; /** - * AggregatedListNetworkFirewallPoliciesRequest includeAllScopes. + * AggregatedListNodeTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkFirewallPoliciesRequest maxResults. + * AggregatedListNodeTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.maxResults = null; + AggregatedListNodeTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkFirewallPoliciesRequest orderBy. + * AggregatedListNodeTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.orderBy = null; + AggregatedListNodeTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkFirewallPoliciesRequest pageToken. + * AggregatedListNodeTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.pageToken = null; + AggregatedListNodeTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkFirewallPoliciesRequest project. + * AggregatedListNodeTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.project = ""; + AggregatedListNodeTemplatesRequest.prototype.project = ""; /** - * AggregatedListNetworkFirewallPoliciesRequest returnPartialSuccess. + * AggregatedListNodeTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNetworkFirewallPoliciesRequest serviceProjectNumber. + * AggregatedListNodeTemplatesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListNodeTemplatesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNetworkFirewallPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance */ - AggregatedListNetworkFirewallPoliciesRequest.create = function create(properties) { - return new AggregatedListNetworkFirewallPoliciesRequest(properties); + AggregatedListNodeTemplatesRequest.create = function create(properties) { + return new AggregatedListNodeTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { + AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -684936,33 +700174,33 @@ }; /** - * Encodes the specified AggregatedListNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkFirewallPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListNodeTemplatesRequest.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.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -685009,30 +700247,30 @@ }; /** - * Decodes an AggregatedListNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkFirewallPoliciesRequest message. + * Verifies an AggregatedListNodeTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkFirewallPoliciesRequest.verify = function verify(message) { + AggregatedListNodeTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -685078,17 +700316,17 @@ }; /** - * Creates an AggregatedListNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} AggregatedListNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest */ - AggregatedListNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest) + AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -685116,15 +700354,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest} message AggregatedListNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -685174,59 +700412,59 @@ }; /** - * Converts this AggregatedListNetworkFirewallPoliciesRequest to JSON. + * Converts this AggregatedListNodeTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkFirewallPoliciesRequest + * Gets the default type url for AggregatedListNodeTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest"; }; - return AggregatedListNetworkFirewallPoliciesRequest; + return AggregatedListNodeTemplatesRequest; })(); - v1beta.AggregatedListNodeGroupsRequest = (function() { + v1beta.AggregatedListNodeTypesRequest = (function() { /** - * Properties of an AggregatedListNodeGroupsRequest. + * Properties of an AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNodeGroupsRequest - * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNodeGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeGroupsRequest serviceProjectNumber + * @interface IAggregatedListNodeTypesRequest + * @property {string|null} [filter] AggregatedListNodeTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTypesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNodeGroupsRequest. + * Constructs a new AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNodeGroupsRequest. - * @implements IAggregatedListNodeGroupsRequest + * @classdesc Represents an AggregatedListNodeTypesRequest. + * @implements IAggregatedListNodeTypesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set */ - function AggregatedListNodeGroupsRequest(properties) { + function AggregatedListNodeTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -685234,136 +700472,136 @@ } /** - * AggregatedListNodeGroupsRequest filter. + * AggregatedListNodeTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.filter = null; + AggregatedListNodeTypesRequest.prototype.filter = null; /** - * AggregatedListNodeGroupsRequest includeAllScopes. + * AggregatedListNodeTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeGroupsRequest maxResults. + * AggregatedListNodeTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.maxResults = null; + AggregatedListNodeTypesRequest.prototype.maxResults = null; /** - * AggregatedListNodeGroupsRequest orderBy. + * AggregatedListNodeTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.orderBy = null; + AggregatedListNodeTypesRequest.prototype.orderBy = null; /** - * AggregatedListNodeGroupsRequest pageToken. + * AggregatedListNodeTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.pageToken = null; + AggregatedListNodeTypesRequest.prototype.pageToken = null; /** - * AggregatedListNodeGroupsRequest project. + * AggregatedListNodeTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.project = ""; + AggregatedListNodeTypesRequest.prototype.project = ""; /** - * AggregatedListNodeGroupsRequest returnPartialSuccess. + * AggregatedListNodeTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeGroupsRequest serviceProjectNumber. + * AggregatedListNodeTypesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.serviceProjectNumber = null; + AggregatedListNodeTypesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance */ - AggregatedListNodeGroupsRequest.create = function create(properties) { - return new AggregatedListNodeGroupsRequest(properties); + AggregatedListNodeTypesRequest.create = function create(properties) { + return new AggregatedListNodeTypesRequest(properties); }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { + AggregatedListNodeTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -685386,33 +700624,33 @@ }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decode = function decode(reader, length, error) { + AggregatedListNodeTypesRequest.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.v1beta.AggregatedListNodeGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -685459,30 +700697,30 @@ }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeGroupsRequest message. + * Verifies an AggregatedListNodeTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeGroupsRequest.verify = function verify(message) { + AggregatedListNodeTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -685528,17 +700766,17 @@ }; /** - * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest */ - AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest) + AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -685566,15 +700804,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest + * @param {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -685624,59 +700862,59 @@ }; /** - * Converts this AggregatedListNodeGroupsRequest to JSON. + * Converts this AggregatedListNodeTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeGroupsRequest + * Gets the default type url for AggregatedListNodeTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTypesRequest"; }; - return AggregatedListNodeGroupsRequest; + return AggregatedListNodeTypesRequest; })(); - v1beta.AggregatedListNodeTemplatesRequest = (function() { + v1beta.AggregatedListPacketMirroringsRequest = (function() { /** - * Properties of an AggregatedListNodeTemplatesRequest. + * Properties of an AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNodeTemplatesRequest - * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTemplatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTemplatesRequest serviceProjectNumber + * @interface IAggregatedListPacketMirroringsRequest + * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults + * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy + * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken + * @property {string|null} [project] AggregatedListPacketMirroringsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListPacketMirroringsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNodeTemplatesRequest. + * Constructs a new AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNodeTemplatesRequest. - * @implements IAggregatedListNodeTemplatesRequest + * @classdesc Represents an AggregatedListPacketMirroringsRequest. + * @implements IAggregatedListPacketMirroringsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set */ - function AggregatedListNodeTemplatesRequest(properties) { + function AggregatedListPacketMirroringsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -685684,136 +700922,136 @@ } /** - * AggregatedListNodeTemplatesRequest filter. + * AggregatedListPacketMirroringsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.filter = null; + AggregatedListPacketMirroringsRequest.prototype.filter = null; /** - * AggregatedListNodeTemplatesRequest includeAllScopes. + * AggregatedListPacketMirroringsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTemplatesRequest maxResults. + * AggregatedListPacketMirroringsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.maxResults = null; + AggregatedListPacketMirroringsRequest.prototype.maxResults = null; /** - * AggregatedListNodeTemplatesRequest orderBy. + * AggregatedListPacketMirroringsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.orderBy = null; + AggregatedListPacketMirroringsRequest.prototype.orderBy = null; /** - * AggregatedListNodeTemplatesRequest pageToken. + * AggregatedListPacketMirroringsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.pageToken = null; + AggregatedListPacketMirroringsRequest.prototype.pageToken = null; /** - * AggregatedListNodeTemplatesRequest project. + * AggregatedListPacketMirroringsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.project = ""; + AggregatedListPacketMirroringsRequest.prototype.project = ""; /** - * AggregatedListNodeTemplatesRequest returnPartialSuccess. + * AggregatedListPacketMirroringsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeTemplatesRequest serviceProjectNumber. + * AggregatedListPacketMirroringsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.serviceProjectNumber = null; + AggregatedListPacketMirroringsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance */ - AggregatedListNodeTemplatesRequest.create = function create(properties) { - return new AggregatedListNodeTemplatesRequest(properties); + AggregatedListPacketMirroringsRequest.create = function create(properties) { + return new AggregatedListPacketMirroringsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { + AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -685836,33 +701074,33 @@ }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decode = function decode(reader, length, error) { + AggregatedListPacketMirroringsRequest.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.v1beta.AggregatedListNodeTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -685909,30 +701147,30 @@ }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTemplatesRequest message. + * Verifies an AggregatedListPacketMirroringsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTemplatesRequest.verify = function verify(message) { + AggregatedListPacketMirroringsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -685978,17 +701216,17 @@ }; /** - * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest */ - AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest) + AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -686016,15 +701254,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest + * @param {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -686074,59 +701312,59 @@ }; /** - * Converts this AggregatedListNodeTemplatesRequest to JSON. + * Converts this AggregatedListPacketMirroringsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTemplatesRequest + * Gets the default type url for AggregatedListPacketMirroringsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest"; }; - return AggregatedListNodeTemplatesRequest; + return AggregatedListPacketMirroringsRequest; })(); - v1beta.AggregatedListNodeTypesRequest = (function() { + v1beta.AggregatedListPublicDelegatedPrefixesRequest = (function() { /** - * Properties of an AggregatedListNodeTypesRequest. + * Properties of an AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListNodeTypesRequest - * @property {string|null} [filter] AggregatedListNodeTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListNodeTypesRequest serviceProjectNumber + * @interface IAggregatedListPublicDelegatedPrefixesRequest + * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults + * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy + * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken + * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListNodeTypesRequest. + * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListNodeTypesRequest. - * @implements IAggregatedListNodeTypesRequest + * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. + * @implements IAggregatedListPublicDelegatedPrefixesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set */ - function AggregatedListNodeTypesRequest(properties) { + function AggregatedListPublicDelegatedPrefixesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -686134,136 +701372,136 @@ } /** - * AggregatedListNodeTypesRequest filter. + * AggregatedListPublicDelegatedPrefixesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.filter = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; /** - * AggregatedListNodeTypesRequest includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTypesRequest maxResults. + * AggregatedListPublicDelegatedPrefixesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.maxResults = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; /** - * AggregatedListNodeTypesRequest orderBy. + * AggregatedListPublicDelegatedPrefixesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.orderBy = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; /** - * AggregatedListNodeTypesRequest pageToken. + * AggregatedListPublicDelegatedPrefixesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.pageToken = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; /** - * AggregatedListNodeTypesRequest project. + * AggregatedListPublicDelegatedPrefixesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.project = ""; + AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; /** - * AggregatedListNodeTypesRequest returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListNodeTypesRequest serviceProjectNumber. + * AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.serviceProjectNumber = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. + * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance */ - AggregatedListNodeTypesRequest.create = function create(properties) { - return new AggregatedListNodeTypesRequest(properties); + AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { + return new AggregatedListPublicDelegatedPrefixesRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encode = function encode(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -686286,33 +701524,33 @@ }; /** - * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decode = function decode(reader, length, error) { + AggregatedListPublicDelegatedPrefixesRequest.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.v1beta.AggregatedListNodeTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -686359,30 +701597,30 @@ }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTypesRequest message. + * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTypesRequest.verify = function verify(message) { + AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -686428,17 +701666,17 @@ }; /** - * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest */ - AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest) + AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListNodeTypesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -686466,15 +701704,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest + * @param {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { + AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -686524,59 +701762,59 @@ }; /** - * Converts this AggregatedListNodeTypesRequest to JSON. + * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTypesRequest + * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListNodeTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest"; }; - return AggregatedListNodeTypesRequest; + return AggregatedListPublicDelegatedPrefixesRequest; })(); - v1beta.AggregatedListPacketMirroringsRequest = (function() { + v1beta.AggregatedListRegionCommitmentsRequest = (function() { /** - * Properties of an AggregatedListPacketMirroringsRequest. + * Properties of an AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListPacketMirroringsRequest - * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults - * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy - * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken - * @property {string|null} [project] AggregatedListPacketMirroringsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListPacketMirroringsRequest serviceProjectNumber + * @interface IAggregatedListRegionCommitmentsRequest + * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken + * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCommitmentsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListPacketMirroringsRequest. + * Constructs a new AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListPacketMirroringsRequest. - * @implements IAggregatedListPacketMirroringsRequest + * @classdesc Represents an AggregatedListRegionCommitmentsRequest. + * @implements IAggregatedListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set */ - function AggregatedListPacketMirroringsRequest(properties) { + function AggregatedListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -686584,136 +701822,136 @@ } /** - * AggregatedListPacketMirroringsRequest filter. + * AggregatedListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.filter = null; + AggregatedListRegionCommitmentsRequest.prototype.filter = null; /** - * AggregatedListPacketMirroringsRequest includeAllScopes. + * AggregatedListRegionCommitmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; + AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListPacketMirroringsRequest maxResults. + * AggregatedListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.maxResults = null; + AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; /** - * AggregatedListPacketMirroringsRequest orderBy. + * AggregatedListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.orderBy = null; + AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; /** - * AggregatedListPacketMirroringsRequest pageToken. + * AggregatedListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.pageToken = null; + AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; /** - * AggregatedListPacketMirroringsRequest project. + * AggregatedListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.project = ""; + AggregatedListRegionCommitmentsRequest.prototype.project = ""; /** - * AggregatedListPacketMirroringsRequest returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListPacketMirroringsRequest serviceProjectNumber. + * AggregatedListRegionCommitmentsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionCommitmentsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. + * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance */ - AggregatedListPacketMirroringsRequest.create = function create(properties) { - return new AggregatedListPacketMirroringsRequest(properties); + AggregatedListRegionCommitmentsRequest.create = function create(properties) { + return new AggregatedListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { + AggregatedListRegionCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -686736,33 +701974,33 @@ }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decode = function decode(reader, length, error) { + AggregatedListRegionCommitmentsRequest.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.v1beta.AggregatedListPacketMirroringsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -686809,30 +702047,30 @@ }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPacketMirroringsRequest message. + * Verifies an AggregatedListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPacketMirroringsRequest.verify = function verify(message) { + AggregatedListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -686878,17 +702116,17 @@ }; /** - * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest */ - AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest) + AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -686916,15 +702154,15 @@ }; /** - * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { + AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -686974,59 +702212,59 @@ }; /** - * Converts this AggregatedListPacketMirroringsRequest to JSON. + * Converts this AggregatedListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPacketMirroringsRequest + * Gets the default type url for AggregatedListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPacketMirroringsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest"; }; - return AggregatedListPacketMirroringsRequest; + return AggregatedListRegionCommitmentsRequest; })(); - v1beta.AggregatedListPublicDelegatedPrefixesRequest = (function() { + v1beta.AggregatedListRegionCompositeHealthChecksRequest = (function() { /** - * Properties of an AggregatedListPublicDelegatedPrefixesRequest. + * Properties of an AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListPublicDelegatedPrefixesRequest - * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults - * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy - * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken - * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber + * @interface IAggregatedListRegionCompositeHealthChecksRequest + * @property {string|null} [filter] AggregatedListRegionCompositeHealthChecksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionCompositeHealthChecksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionCompositeHealthChecksRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionCompositeHealthChecksRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionCompositeHealthChecksRequest pageToken + * @property {string|null} [project] AggregatedListRegionCompositeHealthChecksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. + * Constructs a new AggregatedListRegionCompositeHealthChecksRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. - * @implements IAggregatedListPublicDelegatedPrefixesRequest + * @classdesc Represents an AggregatedListRegionCompositeHealthChecksRequest. + * @implements IAggregatedListRegionCompositeHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set */ - function AggregatedListPublicDelegatedPrefixesRequest(properties) { + function AggregatedListRegionCompositeHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -687034,136 +702272,136 @@ } /** - * AggregatedListPublicDelegatedPrefixesRequest filter. + * AggregatedListRegionCompositeHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.filter = null; /** - * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. + * AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.includeAllScopes = null; /** - * AggregatedListPublicDelegatedPrefixesRequest maxResults. + * AggregatedListRegionCompositeHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.maxResults = null; /** - * AggregatedListPublicDelegatedPrefixesRequest orderBy. + * AggregatedListRegionCompositeHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.orderBy = null; /** - * AggregatedListPublicDelegatedPrefixesRequest pageToken. + * AggregatedListRegionCompositeHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.pageToken = null; /** - * AggregatedListPublicDelegatedPrefixesRequest project. + * AggregatedListRegionCompositeHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; + AggregatedListRegionCompositeHealthChecksRequest.prototype.project = ""; /** - * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. + * AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListPublicDelegatedPrefixesRequest serviceProjectNumber. + * AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionCompositeHealthChecksRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. + * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest instance */ - AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { - return new AggregatedListPublicDelegatedPrefixesRequest(properties); + AggregatedListRegionCompositeHealthChecksRequest.create = function create(properties) { + return new AggregatedListRegionCompositeHealthChecksRequest(properties); }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { + AggregatedListRegionCompositeHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -687186,33 +702424,33 @@ }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionCompositeHealthChecksRequest.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.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -687259,30 +702497,30 @@ }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionCompositeHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. + * Verifies an AggregatedListRegionCompositeHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { + AggregatedListRegionCompositeHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -687328,17 +702566,17 @@ }; /** - * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest */ - AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest) + AggregatedListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -687366,15 +702604,15 @@ }; /** - * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + AggregatedListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -687424,59 +702662,59 @@ }; /** - * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. + * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest + * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListPublicDelegatedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest"; }; - return AggregatedListPublicDelegatedPrefixesRequest; + return AggregatedListRegionCompositeHealthChecksRequest; })(); - v1beta.AggregatedListRegionCommitmentsRequest = (function() { + v1beta.AggregatedListRegionHealthAggregationPoliciesRequest = (function() { /** - * Properties of an AggregatedListRegionCommitmentsRequest. + * Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRegionCommitmentsRequest - * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken - * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCommitmentsRequest 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 AggregatedListRegionCommitmentsRequest. + * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionCommitmentsRequest. - * @implements IAggregatedListRegionCommitmentsRequest + * @classdesc Represents an AggregatedListRegionHealthAggregationPoliciesRequest. + * @implements IAggregatedListRegionHealthAggregationPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set */ - function AggregatedListRegionCommitmentsRequest(properties) { + function AggregatedListRegionHealthAggregationPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -687484,136 +702722,136 @@ } /** - * AggregatedListRegionCommitmentsRequest filter. + * AggregatedListRegionHealthAggregationPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.filter = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.filter = null; /** - * AggregatedListRegionCommitmentsRequest includeAllScopes. + * AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionCommitmentsRequest maxResults. + * AggregatedListRegionHealthAggregationPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListRegionCommitmentsRequest orderBy. + * AggregatedListRegionHealthAggregationPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListRegionCommitmentsRequest pageToken. + * AggregatedListRegionHealthAggregationPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListRegionCommitmentsRequest project. + * AggregatedListRegionHealthAggregationPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.project = ""; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.project = ""; /** - * AggregatedListRegionCommitmentsRequest returnPartialSuccess. + * AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionCommitmentsRequest serviceProjectNumber. + * AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.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(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest instance */ - AggregatedListRegionCommitmentsRequest.create = function create(properties) { - return new AggregatedListRegionCommitmentsRequest(properties); + AggregatedListRegionHealthAggregationPoliciesRequest.create = function create(properties) { + return new AggregatedListRegionHealthAggregationPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.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")) @@ -687636,33 +702874,33 @@ }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.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.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decode = function decode(reader, length, 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.v1beta.AggregatedListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -687709,30 +702947,30 @@ }; /** - * Decodes an AggregatedListRegionCommitmentsRequest 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.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionHealthAggregationPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionCommitmentsRequest message. + * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionCommitmentsRequest.verify = function verify(message) { + AggregatedListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -687778,17 +703016,17 @@ }; /** - * Creates an AggregatedListRegionCommitmentsRequest 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.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest */ - AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest) + AggregatedListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -687816,15 +703054,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionCommitmentsRequest 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.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -687874,59 +703112,59 @@ }; /** - * Converts this AggregatedListRegionCommitmentsRequest to JSON. + * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionCommitmentsRequest + * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest"; }; - return AggregatedListRegionCommitmentsRequest; + return AggregatedListRegionHealthAggregationPoliciesRequest; })(); - v1beta.AggregatedListRegionCompositeHealthChecksRequest = (function() { + v1beta.AggregatedListRegionHealthCheckServicesRequest = (function() { /** - * Properties of an AggregatedListRegionCompositeHealthChecksRequest. + * Properties of an AggregatedListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRegionCompositeHealthChecksRequest - * @property {string|null} [filter] AggregatedListRegionCompositeHealthChecksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionCompositeHealthChecksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionCompositeHealthChecksRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionCompositeHealthChecksRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionCompositeHealthChecksRequest pageToken - * @property {string|null} [project] AggregatedListRegionCompositeHealthChecksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber + * @interface IAggregatedListRegionHealthCheckServicesRequest + * @property {string|null} [filter] AggregatedListRegionHealthCheckServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthCheckServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthCheckServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthCheckServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthCheckServicesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthCheckServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionCompositeHealthChecksRequest. + * Constructs a new AggregatedListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionCompositeHealthChecksRequest. - * @implements IAggregatedListRegionCompositeHealthChecksRequest + * @classdesc Represents an AggregatedListRegionHealthCheckServicesRequest. + * @implements IAggregatedListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function AggregatedListRegionCompositeHealthChecksRequest(properties) { + function AggregatedListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -687934,136 +703172,136 @@ } /** - * AggregatedListRegionCompositeHealthChecksRequest filter. + * AggregatedListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.filter = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * AggregatedListRegionCompositeHealthChecksRequest includeAllScopes. + * AggregatedListRegionHealthCheckServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionCompositeHealthChecksRequest maxResults. + * AggregatedListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.maxResults = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * AggregatedListRegionCompositeHealthChecksRequest orderBy. + * AggregatedListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.orderBy = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * AggregatedListRegionCompositeHealthChecksRequest pageToken. + * AggregatedListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.pageToken = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * AggregatedListRegionCompositeHealthChecksRequest project. + * AggregatedListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.project = ""; + AggregatedListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * AggregatedListRegionCompositeHealthChecksRequest returnPartialSuccess. + * AggregatedListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionCompositeHealthChecksRequest serviceProjectNumber. + * AggregatedListRegionHealthCheckServicesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthCheckServicesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionCompositeHealthChecksRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthCheckServicesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionCompositeHealthChecksRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest instance */ - AggregatedListRegionCompositeHealthChecksRequest.create = function create(properties) { - return new AggregatedListRegionCompositeHealthChecksRequest(properties); + AggregatedListRegionHealthCheckServicesRequest.create = function create(properties) { + return new AggregatedListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCompositeHealthChecksRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthCheckServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -688086,33 +703324,33 @@ }; /** - * Encodes the specified AggregatedListRegionCompositeHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCompositeHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCompositeHealthChecksRequest.decode = function decode(reader, length, error) { + AggregatedListRegionHealthCheckServicesRequest.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.v1beta.AggregatedListRegionCompositeHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -688159,30 +703397,30 @@ }; /** - * Decodes an AggregatedListRegionCompositeHealthChecksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCompositeHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionCompositeHealthChecksRequest message. + * Verifies an AggregatedListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionCompositeHealthChecksRequest.verify = function verify(message) { + AggregatedListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -688228,17 +703466,17 @@ }; /** - * Creates an AggregatedListRegionCompositeHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} AggregatedListRegionCompositeHealthChecksRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest} AggregatedListRegionHealthCheckServicesRequest */ - AggregatedListRegionCompositeHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest) + AggregatedListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -688266,15 +703504,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionCompositeHealthChecksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest} message AggregatedListRegionCompositeHealthChecksRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest} message AggregatedListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionCompositeHealthChecksRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -688324,59 +703562,59 @@ }; /** - * Converts this AggregatedListRegionCompositeHealthChecksRequest to JSON. + * Converts this AggregatedListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionCompositeHealthChecksRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionCompositeHealthChecksRequest + * Gets the default type url for AggregatedListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionCompositeHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionCompositeHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest"; }; - return AggregatedListRegionCompositeHealthChecksRequest; + return AggregatedListRegionHealthCheckServicesRequest; })(); - v1beta.AggregatedListRegionHealthAggregationPoliciesRequest = (function() { + v1beta.AggregatedListRegionHealthSourcesRequest = (function() { /** - * Properties of an AggregatedListRegionHealthAggregationPoliciesRequest. + * Properties of an AggregatedListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1beta - * @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 + * @interface IAggregatedListRegionHealthSourcesRequest + * @property {string|null} [filter] AggregatedListRegionHealthSourcesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthSourcesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionHealthSourcesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionHealthSourcesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionHealthSourcesRequest pageToken + * @property {string|null} [project] AggregatedListRegionHealthSourcesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthSourcesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthSourcesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionHealthAggregationPoliciesRequest. + * Constructs a new AggregatedListRegionHealthSourcesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionHealthAggregationPoliciesRequest. - * @implements IAggregatedListRegionHealthAggregationPoliciesRequest + * @classdesc Represents an AggregatedListRegionHealthSourcesRequest. + * @implements IAggregatedListRegionHealthSourcesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set */ - function AggregatedListRegionHealthAggregationPoliciesRequest(properties) { + function AggregatedListRegionHealthSourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -688384,136 +703622,136 @@ } /** - * AggregatedListRegionHealthAggregationPoliciesRequest filter. + * AggregatedListRegionHealthSourcesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.filter = null; + AggregatedListRegionHealthSourcesRequest.prototype.filter = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest includeAllScopes. + * AggregatedListRegionHealthSourcesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionHealthSourcesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest maxResults. + * AggregatedListRegionHealthSourcesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.maxResults = null; + AggregatedListRegionHealthSourcesRequest.prototype.maxResults = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest orderBy. + * AggregatedListRegionHealthSourcesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.orderBy = null; + AggregatedListRegionHealthSourcesRequest.prototype.orderBy = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest pageToken. + * AggregatedListRegionHealthSourcesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.pageToken = null; + AggregatedListRegionHealthSourcesRequest.prototype.pageToken = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest project. + * AggregatedListRegionHealthSourcesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.project = ""; + AggregatedListRegionHealthSourcesRequest.prototype.project = ""; /** - * AggregatedListRegionHealthAggregationPoliciesRequest returnPartialSuccess. + * AggregatedListRegionHealthSourcesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionHealthAggregationPoliciesRequest serviceProjectNumber. + * AggregatedListRegionHealthSourcesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionHealthSourcesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthAggregationPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionHealthAggregationPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest instance */ - AggregatedListRegionHealthAggregationPoliciesRequest.create = function create(properties) { - return new AggregatedListRegionHealthAggregationPoliciesRequest(properties); + AggregatedListRegionHealthSourcesRequest.create = function create(properties) { + return new AggregatedListRegionHealthSourcesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthAggregationPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionHealthSourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -688536,33 +703774,33 @@ }; /** - * Encodes the specified AggregatedListRegionHealthAggregationPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthAggregationPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthAggregationPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionHealthSourcesRequest.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.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -688609,30 +703847,30 @@ }; /** - * Decodes an AggregatedListRegionHealthAggregationPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthAggregationPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionHealthAggregationPoliciesRequest message. + * Verifies an AggregatedListRegionHealthSourcesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionHealthAggregationPoliciesRequest.verify = function verify(message) { + AggregatedListRegionHealthSourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -688678,17 +703916,17 @@ }; /** - * Creates an AggregatedListRegionHealthAggregationPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} AggregatedListRegionHealthAggregationPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest */ - AggregatedListRegionHealthAggregationPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest) + AggregatedListRegionHealthSourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -688716,15 +703954,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionHealthAggregationPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionHealthSourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest} message AggregatedListRegionHealthAggregationPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionHealthAggregationPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionHealthSourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -688774,59 +704012,59 @@ }; /** - * Converts this AggregatedListRegionHealthAggregationPoliciesRequest to JSON. + * Converts this AggregatedListRegionHealthSourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionHealthAggregationPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionHealthAggregationPoliciesRequest + * Gets the default type url for AggregatedListRegionHealthSourcesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionHealthAggregationPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthAggregationPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest"; }; - return AggregatedListRegionHealthAggregationPoliciesRequest; + return AggregatedListRegionHealthSourcesRequest; })(); - v1beta.AggregatedListRegionHealthSourcesRequest = (function() { + v1beta.AggregatedListRegionNetworkPoliciesRequest = (function() { /** - * Properties of an AggregatedListRegionHealthSourcesRequest. + * Properties of an AggregatedListRegionNetworkPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRegionHealthSourcesRequest - * @property {string|null} [filter] AggregatedListRegionHealthSourcesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionHealthSourcesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionHealthSourcesRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionHealthSourcesRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionHealthSourcesRequest pageToken - * @property {string|null} [project] AggregatedListRegionHealthSourcesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionHealthSourcesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionHealthSourcesRequest serviceProjectNumber + * @interface IAggregatedListRegionNetworkPoliciesRequest + * @property {string|null} [filter] AggregatedListRegionNetworkPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionNetworkPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionNetworkPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionNetworkPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionNetworkPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListRegionNetworkPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionHealthSourcesRequest. + * Constructs a new AggregatedListRegionNetworkPoliciesRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionHealthSourcesRequest. - * @implements IAggregatedListRegionHealthSourcesRequest + * @classdesc Represents an AggregatedListRegionNetworkPoliciesRequest. + * @implements IAggregatedListRegionNetworkPoliciesRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set */ - function AggregatedListRegionHealthSourcesRequest(properties) { + function AggregatedListRegionNetworkPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -688834,136 +704072,136 @@ } /** - * AggregatedListRegionHealthSourcesRequest filter. + * AggregatedListRegionNetworkPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.filter = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.filter = null; /** - * AggregatedListRegionHealthSourcesRequest includeAllScopes. + * AggregatedListRegionNetworkPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.includeAllScopes = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionHealthSourcesRequest maxResults. + * AggregatedListRegionNetworkPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.maxResults = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListRegionHealthSourcesRequest orderBy. + * AggregatedListRegionNetworkPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.orderBy = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListRegionHealthSourcesRequest pageToken. + * AggregatedListRegionNetworkPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.pageToken = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListRegionHealthSourcesRequest project. + * AggregatedListRegionNetworkPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.project = ""; + AggregatedListRegionNetworkPoliciesRequest.prototype.project = ""; /** - * AggregatedListRegionHealthSourcesRequest returnPartialSuccess. + * AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionHealthSourcesRequest serviceProjectNumber. + * AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance */ - AggregatedListRegionHealthSourcesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionNetworkPoliciesRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionHealthSourcesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionHealthSourcesRequest instance using the specified properties. + * Creates a new AggregatedListRegionNetworkPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest instance */ - AggregatedListRegionHealthSourcesRequest.create = function create(properties) { - return new AggregatedListRegionHealthSourcesRequest(properties); + AggregatedListRegionNetworkPoliciesRequest.create = function create(properties) { + return new AggregatedListRegionNetworkPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionHealthSourcesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthSourcesRequest.encode = function encode(message, writer) { + AggregatedListRegionNetworkPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -688986,33 +704224,33 @@ }; /** - * Encodes the specified AggregatedListRegionHealthSourcesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionHealthSourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthSourcesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionNetworkPoliciesRequest.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.v1beta.AggregatedListRegionHealthSourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -689059,30 +704297,30 @@ }; /** - * Decodes an AggregatedListRegionHealthSourcesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionHealthSourcesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionHealthSourcesRequest message. + * Verifies an AggregatedListRegionNetworkPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionHealthSourcesRequest.verify = function verify(message) { + AggregatedListRegionNetworkPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -689128,17 +704366,17 @@ }; /** - * Creates an AggregatedListRegionHealthSourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} AggregatedListRegionHealthSourcesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest */ - AggregatedListRegionHealthSourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest) + AggregatedListRegionNetworkPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -689166,15 +704404,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionHealthSourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionNetworkPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest} message AggregatedListRegionHealthSourcesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionHealthSourcesRequest.toObject = function toObject(message, options) { + AggregatedListRegionNetworkPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -689224,59 +704462,59 @@ }; /** - * Converts this AggregatedListRegionHealthSourcesRequest to JSON. + * Converts this AggregatedListRegionNetworkPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionHealthSourcesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionNetworkPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionHealthSourcesRequest + * Gets the default type url for AggregatedListRegionNetworkPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionHealthSourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionHealthSourcesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest"; }; - return AggregatedListRegionHealthSourcesRequest; + return AggregatedListRegionNetworkPoliciesRequest; })(); - v1beta.AggregatedListRegionNetworkPoliciesRequest = (function() { + v1beta.AggregatedListRegionNotificationEndpointsRequest = (function() { /** - * Properties of an AggregatedListRegionNetworkPoliciesRequest. + * Properties of an AggregatedListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1beta - * @interface IAggregatedListRegionNetworkPoliciesRequest - * @property {string|null} [filter] AggregatedListRegionNetworkPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionNetworkPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionNetworkPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionNetworkPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionNetworkPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListRegionNetworkPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess - * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber + * @interface IAggregatedListRegionNotificationEndpointsRequest + * @property {string|null} [filter] AggregatedListRegionNotificationEndpointsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionNotificationEndpointsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] AggregatedListRegionNotificationEndpointsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess + * @property {number|Long|null} [serviceProjectNumber] AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber */ /** - * Constructs a new AggregatedListRegionNetworkPoliciesRequest. + * Constructs a new AggregatedListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1beta - * @classdesc Represents an AggregatedListRegionNetworkPoliciesRequest. - * @implements IAggregatedListRegionNetworkPoliciesRequest + * @classdesc Represents an AggregatedListRegionNotificationEndpointsRequest. + * @implements IAggregatedListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function AggregatedListRegionNetworkPoliciesRequest(properties) { + function AggregatedListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -689284,136 +704522,136 @@ } /** - * AggregatedListRegionNetworkPoliciesRequest filter. + * AggregatedListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.filter = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * AggregatedListRegionNetworkPoliciesRequest includeAllScopes. + * AggregatedListRegionNotificationEndpointsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionNetworkPoliciesRequest maxResults. + * AggregatedListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.maxResults = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * AggregatedListRegionNetworkPoliciesRequest orderBy. + * AggregatedListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.orderBy = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * AggregatedListRegionNetworkPoliciesRequest pageToken. + * AggregatedListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.pageToken = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * AggregatedListRegionNetworkPoliciesRequest project. + * AggregatedListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.project = ""; + AggregatedListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * AggregatedListRegionNetworkPoliciesRequest returnPartialSuccess. + * AggregatedListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; /** - * AggregatedListRegionNetworkPoliciesRequest serviceProjectNumber. + * AggregatedListRegionNotificationEndpointsRequest serviceProjectNumber. * @member {number|Long|null|undefined} serviceProjectNumber - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance */ - AggregatedListRegionNetworkPoliciesRequest.prototype.serviceProjectNumber = null; + AggregatedListRegionNotificationEndpointsRequest.prototype.serviceProjectNumber = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); // Virtual OneOf for proto3 optional field - Object.defineProperty(AggregatedListRegionNetworkPoliciesRequest.prototype, "_serviceProjectNumber", { + Object.defineProperty(AggregatedListRegionNotificationEndpointsRequest.prototype, "_serviceProjectNumber", { get: $util.oneOfGetter($oneOfFields = ["serviceProjectNumber"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionNetworkPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest instance */ - AggregatedListRegionNetworkPoliciesRequest.create = function create(properties) { - return new AggregatedListRegionNetworkPoliciesRequest(properties); + AggregatedListRegionNotificationEndpointsRequest.create = function create(properties) { + return new AggregatedListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionNetworkPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -689436,33 +704674,33 @@ }; /** - * Encodes the specified AggregatedListRegionNetworkPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.IAggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionNetworkPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionNetworkPoliciesRequest.decode = function decode(reader, length, error) { + AggregatedListRegionNotificationEndpointsRequest.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.v1beta.AggregatedListRegionNetworkPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) @@ -689509,30 +704747,30 @@ }; /** - * Decodes an AggregatedListRegionNetworkPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionNetworkPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionNetworkPoliciesRequest message. + * Verifies an AggregatedListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionNetworkPoliciesRequest.verify = function verify(message) { + AggregatedListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -689578,17 +704816,17 @@ }; /** - * Creates an AggregatedListRegionNetworkPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} AggregatedListRegionNetworkPoliciesRequest + * @returns {google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest} AggregatedListRegionNotificationEndpointsRequest */ - AggregatedListRegionNetworkPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest) + AggregatedListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest(); + var message = new $root.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -689616,15 +704854,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionNetworkPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest} message AggregatedListRegionNetworkPoliciesRequest + * @param {google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest} message AggregatedListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionNetworkPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -689674,32 +704912,32 @@ }; /** - * Converts this AggregatedListRegionNetworkPoliciesRequest to JSON. + * Converts this AggregatedListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionNetworkPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionNetworkPoliciesRequest + * Gets the default type url for AggregatedListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest + * @memberof google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionNetworkPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionNetworkPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest"; }; - return AggregatedListRegionNetworkPoliciesRequest; + return AggregatedListRegionNotificationEndpointsRequest; })(); v1beta.AggregatedListReservationsRequest = (function() { @@ -722095,6 +737333,7 @@ * Properties of a BackendServiceDynamicForwarding. * @memberof google.cloud.compute.v1beta * @interface IBackendServiceDynamicForwarding + * @property {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy|null} [forwardProxy] BackendServiceDynamicForwarding forwardProxy * @property {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingIpPortSelection|null} [ipPortSelection] BackendServiceDynamicForwarding ipPortSelection */ @@ -722113,6 +737352,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * BackendServiceDynamicForwarding forwardProxy. + * @member {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy|null|undefined} forwardProxy + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwarding + * @instance + */ + BackendServiceDynamicForwarding.prototype.forwardProxy = null; + /** * BackendServiceDynamicForwarding ipPortSelection. * @member {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingIpPortSelection|null|undefined} ipPortSelection @@ -722124,6 +737371,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendServiceDynamicForwarding.prototype, "_forwardProxy", { + get: $util.oneOfGetter($oneOfFields = ["forwardProxy"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(BackendServiceDynamicForwarding.prototype, "_ipPortSelection", { get: $util.oneOfGetter($oneOfFields = ["ipPortSelection"]), @@ -722154,6 +737407,8 @@ BackendServiceDynamicForwarding.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.forwardProxy != null && Object.hasOwnProperty.call(message, "forwardProxy")) + $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.encode(message.forwardProxy, writer.uint32(/* id 483776628, wireType 2 =*/3870213026).fork()).ldelim(); if (message.ipPortSelection != null && Object.hasOwnProperty.call(message, "ipPortSelection")) $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingIpPortSelection.encode(message.ipPortSelection, writer.uint32(/* id 527934822, wireType 2 =*/4223478578).fork()).ldelim(); return writer; @@ -722192,6 +737447,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 483776628: { + message.forwardProxy = $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.decode(reader, reader.uint32()); + break; + } case 527934822: { message.ipPortSelection = $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingIpPortSelection.decode(reader, reader.uint32()); break; @@ -722232,6 +737491,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.forwardProxy != null && message.hasOwnProperty("forwardProxy")) { + properties._forwardProxy = 1; + { + var error = $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.verify(message.forwardProxy); + if (error) + return "forwardProxy." + error; + } + } if (message.ipPortSelection != null && message.hasOwnProperty("ipPortSelection")) { properties._ipPortSelection = 1; { @@ -722255,6 +737522,11 @@ if (object instanceof $root.google.cloud.compute.v1beta.BackendServiceDynamicForwarding) return object; var message = new $root.google.cloud.compute.v1beta.BackendServiceDynamicForwarding(); + if (object.forwardProxy != null) { + if (typeof object.forwardProxy !== "object") + throw TypeError(".google.cloud.compute.v1beta.BackendServiceDynamicForwarding.forwardProxy: object expected"); + message.forwardProxy = $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.fromObject(object.forwardProxy); + } if (object.ipPortSelection != null) { if (typeof object.ipPortSelection !== "object") throw TypeError(".google.cloud.compute.v1beta.BackendServiceDynamicForwarding.ipPortSelection: object expected"); @@ -722276,6 +737548,11 @@ if (!options) options = {}; var object = {}; + if (message.forwardProxy != null && message.hasOwnProperty("forwardProxy")) { + object.forwardProxy = $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.toObject(message.forwardProxy, options); + if (options.oneofs) + object._forwardProxy = "forwardProxy"; + } if (message.ipPortSelection != null && message.hasOwnProperty("ipPortSelection")) { object.ipPortSelection = $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingIpPortSelection.toObject(message.ipPortSelection, options); if (options.oneofs) @@ -722313,6 +737590,273 @@ return BackendServiceDynamicForwarding; })(); + v1beta.BackendServiceDynamicForwardingForwardProxy = (function() { + + /** + * Properties of a BackendServiceDynamicForwardingForwardProxy. + * @memberof google.cloud.compute.v1beta + * @interface IBackendServiceDynamicForwardingForwardProxy + * @property {boolean|null} [enabled] BackendServiceDynamicForwardingForwardProxy enabled + * @property {string|null} [proxyMode] BackendServiceDynamicForwardingForwardProxy proxyMode + */ + + /** + * Constructs a new BackendServiceDynamicForwardingForwardProxy. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a BackendServiceDynamicForwardingForwardProxy. + * @implements IBackendServiceDynamicForwardingForwardProxy + * @constructor + * @param {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy=} [properties] Properties to set + */ + function BackendServiceDynamicForwardingForwardProxy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BackendServiceDynamicForwardingForwardProxy enabled. + * @member {boolean|null|undefined} enabled + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @instance + */ + BackendServiceDynamicForwardingForwardProxy.prototype.enabled = null; + + /** + * BackendServiceDynamicForwardingForwardProxy proxyMode. + * @member {string|null|undefined} proxyMode + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @instance + */ + BackendServiceDynamicForwardingForwardProxy.prototype.proxyMode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendServiceDynamicForwardingForwardProxy.prototype, "_enabled", { + get: $util.oneOfGetter($oneOfFields = ["enabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(BackendServiceDynamicForwardingForwardProxy.prototype, "_proxyMode", { + get: $util.oneOfGetter($oneOfFields = ["proxyMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendServiceDynamicForwardingForwardProxy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy} BackendServiceDynamicForwardingForwardProxy instance + */ + BackendServiceDynamicForwardingForwardProxy.create = function create(properties) { + return new BackendServiceDynamicForwardingForwardProxy(properties); + }; + + /** + * Encodes the specified BackendServiceDynamicForwardingForwardProxy message. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy} message BackendServiceDynamicForwardingForwardProxy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceDynamicForwardingForwardProxy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1018689, wireType 0 =*/8149512).bool(message.enabled); + if (message.proxyMode != null && Object.hasOwnProperty.call(message, "proxyMode")) + writer.uint32(/* id 286358740, wireType 2 =*/2290869922).string(message.proxyMode); + return writer; + }; + + /** + * Encodes the specified BackendServiceDynamicForwardingForwardProxy message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {google.cloud.compute.v1beta.IBackendServiceDynamicForwardingForwardProxy} message BackendServiceDynamicForwardingForwardProxy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceDynamicForwardingForwardProxy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendServiceDynamicForwardingForwardProxy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy} BackendServiceDynamicForwardingForwardProxy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceDynamicForwardingForwardProxy.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.v1beta.BackendServiceDynamicForwardingForwardProxy(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1018689: { + message.enabled = reader.bool(); + break; + } + case 286358740: { + message.proxyMode = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendServiceDynamicForwardingForwardProxy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy} BackendServiceDynamicForwardingForwardProxy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceDynamicForwardingForwardProxy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendServiceDynamicForwardingForwardProxy message. + * @function verify + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendServiceDynamicForwardingForwardProxy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + properties._enabled = 1; + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + } + if (message.proxyMode != null && message.hasOwnProperty("proxyMode")) { + properties._proxyMode = 1; + if (!$util.isString(message.proxyMode)) + return "proxyMode: string expected"; + } + return null; + }; + + /** + * Creates a BackendServiceDynamicForwardingForwardProxy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy} BackendServiceDynamicForwardingForwardProxy + */ + BackendServiceDynamicForwardingForwardProxy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy) + return object; + var message = new $root.google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.proxyMode != null) + message.proxyMode = String(object.proxyMode); + return message; + }; + + /** + * Creates a plain object from a BackendServiceDynamicForwardingForwardProxy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy} message BackendServiceDynamicForwardingForwardProxy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendServiceDynamicForwardingForwardProxy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + object.enabled = message.enabled; + if (options.oneofs) + object._enabled = "enabled"; + } + if (message.proxyMode != null && message.hasOwnProperty("proxyMode")) { + object.proxyMode = message.proxyMode; + if (options.oneofs) + object._proxyMode = "proxyMode"; + } + return object; + }; + + /** + * Converts this BackendServiceDynamicForwardingForwardProxy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @instance + * @returns {Object.} JSON object + */ + BackendServiceDynamicForwardingForwardProxy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BackendServiceDynamicForwardingForwardProxy + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BackendServiceDynamicForwardingForwardProxy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy"; + }; + + /** + * ProxyMode enum. + * @name google.cloud.compute.v1beta.BackendServiceDynamicForwardingForwardProxy.ProxyMode + * @enum {number} + * @property {number} UNDEFINED_PROXY_MODE=0 UNDEFINED_PROXY_MODE value + * @property {number} CLOUD_RUN=214253889 CLOUD_RUN value + * @property {number} DIRECT_FORWARDING=492448019 DIRECT_FORWARDING value + */ + BackendServiceDynamicForwardingForwardProxy.ProxyMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_PROXY_MODE"] = 0; + values[valuesById[214253889] = "CLOUD_RUN"] = 214253889; + values[valuesById[492448019] = "DIRECT_FORWARDING"] = 492448019; + return values; + })(); + + return BackendServiceDynamicForwardingForwardProxy; + })(); + v1beta.BackendServiceDynamicForwardingIpPortSelection = (function() { /** @@ -869505,6 +885049,1208 @@ return GetUrlMapRequest; })(); + v1beta.GetVersionOperationMetadata = (function() { + + /** + * Properties of a GetVersionOperationMetadata. + * @memberof google.cloud.compute.v1beta + * @interface IGetVersionOperationMetadata + * @property {google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo|null} [inlineSbomInfo] GetVersionOperationMetadata inlineSbomInfo + */ + + /** + * Constructs a new GetVersionOperationMetadata. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetVersionOperationMetadata. + * @implements IGetVersionOperationMetadata + * @constructor + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadata=} [properties] Properties to set + */ + function GetVersionOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionOperationMetadata inlineSbomInfo. + * @member {google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo|null|undefined} inlineSbomInfo + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @instance + */ + GetVersionOperationMetadata.prototype.inlineSbomInfo = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetVersionOperationMetadata.prototype, "_inlineSbomInfo", { + get: $util.oneOfGetter($oneOfFields = ["inlineSbomInfo"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetVersionOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadata} GetVersionOperationMetadata instance + */ + GetVersionOperationMetadata.create = function create(properties) { + return new GetVersionOperationMetadata(properties); + }; + + /** + * Encodes the specified GetVersionOperationMetadata message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadata} message GetVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inlineSbomInfo != null && Object.hasOwnProperty.call(message, "inlineSbomInfo")) + $root.google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.encode(message.inlineSbomInfo, writer.uint32(/* id 7079706, wireType 2 =*/56637650).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GetVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadata} message GetVersionOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadata} GetVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadata.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.v1beta.GetVersionOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 7079706: { + message.inlineSbomInfo = $root.google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadata} GetVersionOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionOperationMetadata message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.inlineSbomInfo != null && message.hasOwnProperty("inlineSbomInfo")) { + properties._inlineSbomInfo = 1; + { + var error = $root.google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.verify(message.inlineSbomInfo); + if (error) + return "inlineSbomInfo." + error; + } + } + return null; + }; + + /** + * Creates a GetVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadata} GetVersionOperationMetadata + */ + GetVersionOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetVersionOperationMetadata) + return object; + var message = new $root.google.cloud.compute.v1beta.GetVersionOperationMetadata(); + if (object.inlineSbomInfo != null) { + if (typeof object.inlineSbomInfo !== "object") + throw TypeError(".google.cloud.compute.v1beta.GetVersionOperationMetadata.inlineSbomInfo: object expected"); + message.inlineSbomInfo = $root.google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.fromObject(object.inlineSbomInfo); + } + return message; + }; + + /** + * Creates a plain object from a GetVersionOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {google.cloud.compute.v1beta.GetVersionOperationMetadata} message GetVersionOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.inlineSbomInfo != null && message.hasOwnProperty("inlineSbomInfo")) { + object.inlineSbomInfo = $root.google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.toObject(message.inlineSbomInfo, options); + if (options.oneofs) + object._inlineSbomInfo = "inlineSbomInfo"; + } + return object; + }; + + /** + * Converts this GetVersionOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + GetVersionOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetVersionOperationMetadata"; + }; + + return GetVersionOperationMetadata; + })(); + + v1beta.GetVersionOperationMetadataSbomInfo = (function() { + + /** + * Properties of a GetVersionOperationMetadataSbomInfo. + * @memberof google.cloud.compute.v1beta + * @interface IGetVersionOperationMetadataSbomInfo + * @property {Object.|null} [currentComponentVersions] GetVersionOperationMetadataSbomInfo currentComponentVersions + * @property {Object.|null} [targetComponentVersions] GetVersionOperationMetadataSbomInfo targetComponentVersions + */ + + /** + * Constructs a new GetVersionOperationMetadataSbomInfo. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetVersionOperationMetadataSbomInfo. + * @implements IGetVersionOperationMetadataSbomInfo + * @constructor + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo=} [properties] Properties to set + */ + function GetVersionOperationMetadataSbomInfo(properties) { + this.currentComponentVersions = {}; + this.targetComponentVersions = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionOperationMetadataSbomInfo currentComponentVersions. + * @member {Object.} currentComponentVersions + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @instance + */ + GetVersionOperationMetadataSbomInfo.prototype.currentComponentVersions = $util.emptyObject; + + /** + * GetVersionOperationMetadataSbomInfo targetComponentVersions. + * @member {Object.} targetComponentVersions + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @instance + */ + GetVersionOperationMetadataSbomInfo.prototype.targetComponentVersions = $util.emptyObject; + + /** + * Creates a new GetVersionOperationMetadataSbomInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo instance + */ + GetVersionOperationMetadataSbomInfo.create = function create(properties) { + return new GetVersionOperationMetadataSbomInfo(properties); + }; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo} message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadataSbomInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.currentComponentVersions != null && Object.hasOwnProperty.call(message, "currentComponentVersions")) + for (var keys = Object.keys(message.currentComponentVersions), i = 0; i < keys.length; ++i) + writer.uint32(/* id 273325091, wireType 2 =*/2186600730).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.currentComponentVersions[keys[i]]).ldelim(); + if (message.targetComponentVersions != null && Object.hasOwnProperty.call(message, "targetComponentVersions")) + for (var keys = Object.keys(message.targetComponentVersions), i = 0; i < keys.length; ++i) + writer.uint32(/* id 345997579, wireType 2 =*/2767980634).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.targetComponentVersions[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified GetVersionOperationMetadataSbomInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1beta.IGetVersionOperationMetadataSbomInfo} message GetVersionOperationMetadataSbomInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionOperationMetadataSbomInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadataSbomInfo.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.v1beta.GetVersionOperationMetadataSbomInfo(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 273325091: { + if (message.currentComponentVersions === $util.emptyObject) + message.currentComponentVersions = {}; + 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.currentComponentVersions[key] = value; + break; + } + case 345997579: { + if (message.targetComponentVersions === $util.emptyObject) + message.targetComponentVersions = {}; + 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.targetComponentVersions[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionOperationMetadataSbomInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionOperationMetadataSbomInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionOperationMetadataSbomInfo message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionOperationMetadataSbomInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.currentComponentVersions != null && message.hasOwnProperty("currentComponentVersions")) { + if (!$util.isObject(message.currentComponentVersions)) + return "currentComponentVersions: object expected"; + var key = Object.keys(message.currentComponentVersions); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.currentComponentVersions[key[i]])) + return "currentComponentVersions: string{k:string} expected"; + } + if (message.targetComponentVersions != null && message.hasOwnProperty("targetComponentVersions")) { + if (!$util.isObject(message.targetComponentVersions)) + return "targetComponentVersions: object expected"; + var key = Object.keys(message.targetComponentVersions); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.targetComponentVersions[key[i]])) + return "targetComponentVersions: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a GetVersionOperationMetadataSbomInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo} GetVersionOperationMetadataSbomInfo + */ + GetVersionOperationMetadataSbomInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo) + return object; + var message = new $root.google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo(); + if (object.currentComponentVersions) { + if (typeof object.currentComponentVersions !== "object") + throw TypeError(".google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.currentComponentVersions: object expected"); + message.currentComponentVersions = {}; + for (var keys = Object.keys(object.currentComponentVersions), i = 0; i < keys.length; ++i) + message.currentComponentVersions[keys[i]] = String(object.currentComponentVersions[keys[i]]); + } + if (object.targetComponentVersions) { + if (typeof object.targetComponentVersions !== "object") + throw TypeError(".google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo.targetComponentVersions: object expected"); + message.targetComponentVersions = {}; + for (var keys = Object.keys(object.targetComponentVersions), i = 0; i < keys.length; ++i) + message.targetComponentVersions[keys[i]] = String(object.targetComponentVersions[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a GetVersionOperationMetadataSbomInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo} message GetVersionOperationMetadataSbomInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionOperationMetadataSbomInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.currentComponentVersions = {}; + object.targetComponentVersions = {}; + } + var keys2; + if (message.currentComponentVersions && (keys2 = Object.keys(message.currentComponentVersions)).length) { + object.currentComponentVersions = {}; + for (var j = 0; j < keys2.length; ++j) + object.currentComponentVersions[keys2[j]] = message.currentComponentVersions[keys2[j]]; + } + if (message.targetComponentVersions && (keys2 = Object.keys(message.targetComponentVersions)).length) { + object.targetComponentVersions = {}; + for (var j = 0; j < keys2.length; ++j) + object.targetComponentVersions[keys2[j]] = message.targetComponentVersions[keys2[j]]; + } + return object; + }; + + /** + * Converts this GetVersionOperationMetadataSbomInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @instance + * @returns {Object.} JSON object + */ + GetVersionOperationMetadataSbomInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionOperationMetadataSbomInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionOperationMetadataSbomInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetVersionOperationMetadataSbomInfo"; + }; + + return GetVersionOperationMetadataSbomInfo; + })(); + + v1beta.GetVersionReservationSlotRequest = (function() { + + /** + * Properties of a GetVersionReservationSlotRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetVersionReservationSlotRequest + * @property {string|null} [parentName] GetVersionReservationSlotRequest parentName + * @property {string|null} [project] GetVersionReservationSlotRequest project + * @property {string|null} [requestId] GetVersionReservationSlotRequest requestId + * @property {string|null} [reservationSlot] GetVersionReservationSlotRequest reservationSlot + * @property {google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest|null} [reservationSlotsGetVersionRequestResource] GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource + * @property {string|null} [zone] GetVersionReservationSlotRequest zone + */ + + /** + * Constructs a new GetVersionReservationSlotRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetVersionReservationSlotRequest. + * @implements IGetVersionReservationSlotRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetVersionReservationSlotRequest=} [properties] Properties to set + */ + function GetVersionReservationSlotRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionReservationSlotRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.parentName = ""; + + /** + * GetVersionReservationSlotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.project = ""; + + /** + * GetVersionReservationSlotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.requestId = null; + + /** + * GetVersionReservationSlotRequest reservationSlot. + * @member {string} reservationSlot + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.reservationSlot = ""; + + /** + * GetVersionReservationSlotRequest reservationSlotsGetVersionRequestResource. + * @member {google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest|null|undefined} reservationSlotsGetVersionRequestResource + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.reservationSlotsGetVersionRequestResource = null; + + /** + * GetVersionReservationSlotRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @instance + */ + GetVersionReservationSlotRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetVersionReservationSlotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetVersionReservationSlotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetVersionReservationSlotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest instance + */ + GetVersionReservationSlotRequest.create = function create(properties) { + return new GetVersionReservationSlotRequest(properties); + }; + + /** + * Encodes the specified GetVersionReservationSlotRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSlotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetVersionReservationSlotRequest} message GetVersionReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSlotRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.reservationSlot != null && Object.hasOwnProperty.call(message, "reservationSlot")) + writer.uint32(/* id 277470865, wireType 2 =*/2219766922).string(message.reservationSlot); + if (message.reservationSlotsGetVersionRequestResource != null && Object.hasOwnProperty.call(message, "reservationSlotsGetVersionRequestResource")) + $root.google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.encode(message.reservationSlotsGetVersionRequestResource, writer.uint32(/* id 335316011, wireType 2 =*/2682528090).fork()).ldelim(); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + return writer; + }; + + /** + * Encodes the specified GetVersionReservationSlotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSlotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.IGetVersionReservationSlotRequest} message GetVersionReservationSlotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSlotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSlotRequest.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.v1beta.GetVersionReservationSlotRequest(); + 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 37109963: { + message.requestId = reader.string(); + break; + } + case 277470865: { + message.reservationSlot = reader.string(); + break; + } + case 335316011: { + message.reservationSlotsGetVersionRequestResource = $root.google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionReservationSlotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSlotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionReservationSlotRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionReservationSlotRequest.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.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + if (!$util.isString(message.reservationSlot)) + return "reservationSlot: string expected"; + if (message.reservationSlotsGetVersionRequestResource != null && message.hasOwnProperty("reservationSlotsGetVersionRequestResource")) { + var error = $root.google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.verify(message.reservationSlotsGetVersionRequestResource); + if (error) + return "reservationSlotsGetVersionRequestResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetVersionReservationSlotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetVersionReservationSlotRequest} GetVersionReservationSlotRequest + */ + GetVersionReservationSlotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetVersionReservationSlotRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetVersionReservationSlotRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.reservationSlot != null) + message.reservationSlot = String(object.reservationSlot); + if (object.reservationSlotsGetVersionRequestResource != null) { + if (typeof object.reservationSlotsGetVersionRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.GetVersionReservationSlotRequest.reservationSlotsGetVersionRequestResource: object expected"); + message.reservationSlotsGetVersionRequestResource = $root.google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.fromObject(object.reservationSlotsGetVersionRequestResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetVersionReservationSlotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {google.cloud.compute.v1beta.GetVersionReservationSlotRequest} message GetVersionReservationSlotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionReservationSlotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.project = ""; + object.reservationSlot = ""; + object.reservationSlotsGetVersionRequestResource = null; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.reservationSlot != null && message.hasOwnProperty("reservationSlot")) + object.reservationSlot = message.reservationSlot; + if (message.reservationSlotsGetVersionRequestResource != null && message.hasOwnProperty("reservationSlotsGetVersionRequestResource")) + object.reservationSlotsGetVersionRequestResource = $root.google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.toObject(message.reservationSlotsGetVersionRequestResource, options); + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + return object; + }; + + /** + * Converts this GetVersionReservationSlotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @instance + * @returns {Object.} JSON object + */ + GetVersionReservationSlotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionReservationSlotRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetVersionReservationSlotRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionReservationSlotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetVersionReservationSlotRequest"; + }; + + return GetVersionReservationSlotRequest; + })(); + + v1beta.GetVersionReservationSubBlockRequest = (function() { + + /** + * Properties of a GetVersionReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @interface IGetVersionReservationSubBlockRequest + * @property {string|null} [parentName] GetVersionReservationSubBlockRequest parentName + * @property {string|null} [project] GetVersionReservationSubBlockRequest project + * @property {string|null} [requestId] GetVersionReservationSubBlockRequest requestId + * @property {string|null} [reservationSubBlock] GetVersionReservationSubBlockRequest reservationSubBlock + * @property {google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest|null} [reservationSubBlocksGetVersionRequestResource] GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource + * @property {string|null} [zone] GetVersionReservationSubBlockRequest zone + */ + + /** + * Constructs a new GetVersionReservationSubBlockRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GetVersionReservationSubBlockRequest. + * @implements IGetVersionReservationSubBlockRequest + * @constructor + * @param {google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest=} [properties] Properties to set + */ + function GetVersionReservationSubBlockRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionReservationSubBlockRequest parentName. + * @member {string} parentName + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.parentName = ""; + + /** + * GetVersionReservationSubBlockRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.project = ""; + + /** + * GetVersionReservationSubBlockRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.requestId = null; + + /** + * GetVersionReservationSubBlockRequest reservationSubBlock. + * @member {string} reservationSubBlock + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.reservationSubBlock = ""; + + /** + * GetVersionReservationSubBlockRequest reservationSubBlocksGetVersionRequestResource. + * @member {google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest|null|undefined} reservationSubBlocksGetVersionRequestResource + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.reservationSubBlocksGetVersionRequestResource = null; + + /** + * GetVersionReservationSubBlockRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @instance + */ + GetVersionReservationSubBlockRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GetVersionReservationSubBlockRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetVersionReservationSubBlockRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest instance + */ + GetVersionReservationSubBlockRequest.create = function create(properties) { + return new GetVersionReservationSubBlockRequest(properties); + }; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest} message GetVersionReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSubBlockRequest.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.reservationSubBlock != null && Object.hasOwnProperty.call(message, "reservationSubBlock")) + writer.uint32(/* id 22750491, wireType 2 =*/182003930).string(message.reservationSubBlock); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.reservationSubBlocksGetVersionRequestResource != null && Object.hasOwnProperty.call(message, "reservationSubBlocksGetVersionRequestResource")) + $root.google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.encode(message.reservationSubBlocksGetVersionRequestResource, writer.uint32(/* id 223034677, wireType 2 =*/1784277418).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.parentName != null && Object.hasOwnProperty.call(message, "parentName")) + writer.uint32(/* id 478151936, wireType 2 =*/3825215490).string(message.parentName); + return writer; + }; + + /** + * Encodes the specified GetVersionReservationSubBlockRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest} message GetVersionReservationSubBlockRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionReservationSubBlockRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSubBlockRequest.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.v1beta.GetVersionReservationSubBlockRequest(); + 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 37109963: { + message.requestId = reader.string(); + break; + } + case 22750491: { + message.reservationSubBlock = reader.string(); + break; + } + case 223034677: { + message.reservationSubBlocksGetVersionRequestResource = $root.google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.decode(reader, reader.uint32()); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetVersionReservationSubBlockRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionReservationSubBlockRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetVersionReservationSubBlockRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionReservationSubBlockRequest.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.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.reservationSubBlock != null && message.hasOwnProperty("reservationSubBlock")) + if (!$util.isString(message.reservationSubBlock)) + return "reservationSubBlock: string expected"; + if (message.reservationSubBlocksGetVersionRequestResource != null && message.hasOwnProperty("reservationSubBlocksGetVersionRequestResource")) { + var error = $root.google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.verify(message.reservationSubBlocksGetVersionRequestResource); + if (error) + return "reservationSubBlocksGetVersionRequestResource." + error; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a GetVersionReservationSubBlockRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest} GetVersionReservationSubBlockRequest + */ + GetVersionReservationSubBlockRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest(); + if (object.parentName != null) + message.parentName = String(object.parentName); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.reservationSubBlock != null) + message.reservationSubBlock = String(object.reservationSubBlock); + if (object.reservationSubBlocksGetVersionRequestResource != null) { + if (typeof object.reservationSubBlocksGetVersionRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest.reservationSubBlocksGetVersionRequestResource: object expected"); + message.reservationSubBlocksGetVersionRequestResource = $root.google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.fromObject(object.reservationSubBlocksGetVersionRequestResource); + } + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a GetVersionReservationSubBlockRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest} message GetVersionReservationSubBlockRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionReservationSubBlockRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.reservationSubBlock = ""; + object.reservationSubBlocksGetVersionRequestResource = null; + object.project = ""; + object.parentName = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.reservationSubBlock != null && message.hasOwnProperty("reservationSubBlock")) + object.reservationSubBlock = message.reservationSubBlock; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.reservationSubBlocksGetVersionRequestResource != null && message.hasOwnProperty("reservationSubBlocksGetVersionRequestResource")) + object.reservationSubBlocksGetVersionRequestResource = $root.google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.toObject(message.reservationSubBlocksGetVersionRequestResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.parentName != null && message.hasOwnProperty("parentName")) + object.parentName = message.parentName; + return object; + }; + + /** + * Converts this GetVersionReservationSubBlockRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @instance + * @returns {Object.} JSON object + */ + GetVersionReservationSubBlockRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetVersionReservationSubBlockRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetVersionReservationSubBlockRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest"; + }; + + return GetVersionReservationSubBlockRequest; + })(); + v1beta.GetVpnGatewayRequest = (function() { /** @@ -875910,6 +892656,7 @@ * Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata. * @memberof google.cloud.compute.v1beta * @interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @property {Object.|null} [locationRolloutStatus] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata locationRolloutStatus * @property {string|null} [rollout] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout * @property {string|null} [rolloutPlan] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rolloutPlan * @property {string|null} [state] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata state @@ -875924,12 +892671,21 @@ * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata=} [properties] Properties to set */ function GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(properties) { + this.locationRolloutStatus = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata locationRolloutStatus. + * @member {Object.} locationRolloutStatus + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.prototype.locationRolloutStatus = $util.emptyObject; + /** * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata rollout. * @member {string|null|undefined} rollout @@ -876001,6 +892757,11 @@ writer = $Writer.create(); if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + if (message.locationRolloutStatus != null && Object.hasOwnProperty.call(message, "locationRolloutStatus")) + for (var keys = Object.keys(message.locationRolloutStatus), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 278036490, wireType 2 =*/2224291922).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.encode(message.locationRolloutStatus[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } if (message.rollout != null && Object.hasOwnProperty.call(message, "rollout")) writer.uint32(/* id 303366577, wireType 2 =*/2426932618).string(message.rollout); if (message.rolloutPlan != null && Object.hasOwnProperty.call(message, "rolloutPlan")) @@ -876035,12 +892796,35 @@ GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.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.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(), key, value; while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 278036490: { + if (message.locationRolloutStatus === $util.emptyObject) + message.locationRolloutStatus = {}; + 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.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.locationRolloutStatus[key] = value; + break; + } case 303366577: { message.rollout = reader.string(); break; @@ -876089,6 +892873,16 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.locationRolloutStatus != null && message.hasOwnProperty("locationRolloutStatus")) { + if (!$util.isObject(message.locationRolloutStatus)) + return "locationRolloutStatus: object expected"; + var key = Object.keys(message.locationRolloutStatus); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.verify(message.locationRolloutStatus[key[i]]); + if (error) + return "locationRolloutStatus." + error; + } + } if (message.rollout != null && message.hasOwnProperty("rollout")) { properties._rollout = 1; if (!$util.isString(message.rollout)) @@ -876119,6 +892913,16 @@ if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata) return object; var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata(); + if (object.locationRolloutStatus) { + if (typeof object.locationRolloutStatus !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.locationRolloutStatus: object expected"); + message.locationRolloutStatus = {}; + for (var keys = Object.keys(object.locationRolloutStatus), i = 0; i < keys.length; ++i) { + if (typeof object.locationRolloutStatus[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata.locationRolloutStatus: object expected"); + message.locationRolloutStatus[keys[i]] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.fromObject(object.locationRolloutStatus[keys[i]]); + } + } if (object.rollout != null) message.rollout = String(object.rollout); if (object.rolloutPlan != null) @@ -876141,11 +892945,19 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.locationRolloutStatus = {}; if (message.state != null && message.hasOwnProperty("state")) { object.state = message.state; if (options.oneofs) object._state = "state"; } + var keys2; + if (message.locationRolloutStatus && (keys2 = Object.keys(message.locationRolloutStatus)).length) { + object.locationRolloutStatus = {}; + for (var j = 0; j < keys2.length; ++j) + object.locationRolloutStatus[keys2[j]] = $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.toObject(message.locationRolloutStatus[keys2[j]], options); + } if (message.rollout != null && message.hasOwnProperty("rollout")) { object.rollout = message.rollout; if (options.oneofs) @@ -876214,6 +893026,246 @@ return GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadata; })(); + v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus = (function() { + + /** + * Properties of a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. + * @memberof google.cloud.compute.v1beta + * @interface IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @property {string|null} [state] GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus state + */ + + /** + * Constructs a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus. + * @implements IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @constructor + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus=} [properties] Properties to set + */ + function GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.prototype.state = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus instance + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.create = function create(properties) { + return new GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus(properties); + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus} message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + return writer; + }; + + /** + * Encodes the specified GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.IGlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus} message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.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.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 109757585: { + message.state = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message. + * @function verify + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + return null; + }; + + /** + * Creates a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus} GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus) + return object; + var message = new $root.google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus(); + if (object.state != null) + message.state = String(object.state); + return message; + }; + + /** + * Creates a plain object from a GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus} message GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + return object; + }; + + /** + * Converts this GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @instance + * @returns {Object.} JSON object + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} LOCATION_ROLLOUT_STATE_COMPLETED=134765221 LOCATION_ROLLOUT_STATE_COMPLETED value + * @property {number} LOCATION_ROLLOUT_STATE_FAILED=53286403 LOCATION_ROLLOUT_STATE_FAILED value + * @property {number} LOCATION_ROLLOUT_STATE_NOT_STARTED=471817423 LOCATION_ROLLOUT_STATE_NOT_STARTED value + * @property {number} LOCATION_ROLLOUT_STATE_SKIPPED=54074890 LOCATION_ROLLOUT_STATE_SKIPPED value + * @property {number} LOCATION_ROLLOUT_STATE_UNSPECIFIED=242367761 LOCATION_ROLLOUT_STATE_UNSPECIFIED value + */ + GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[134765221] = "LOCATION_ROLLOUT_STATE_COMPLETED"] = 134765221; + values[valuesById[53286403] = "LOCATION_ROLLOUT_STATE_FAILED"] = 53286403; + values[valuesById[471817423] = "LOCATION_ROLLOUT_STATE_NOT_STARTED"] = 471817423; + values[valuesById[54074890] = "LOCATION_ROLLOUT_STATE_SKIPPED"] = 54074890; + values[valuesById[242367761] = "LOCATION_ROLLOUT_STATE_UNSPECIFIED"] = 242367761; + return values; + })(); + + return GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus; + })(); + v1beta.GroupMaintenanceInfo = (function() { /** @@ -883415,6 +900467,468 @@ return HealthCheckService; })(); + v1beta.HealthCheckServiceAggregatedList = (function() { + + /** + * Properties of a HealthCheckServiceAggregatedList. + * @memberof google.cloud.compute.v1beta + * @interface IHealthCheckServiceAggregatedList + * @property {string|null} [id] HealthCheckServiceAggregatedList id + * @property {Object.|null} [items] HealthCheckServiceAggregatedList items + * @property {string|null} [kind] HealthCheckServiceAggregatedList kind + * @property {string|null} [nextPageToken] HealthCheckServiceAggregatedList nextPageToken + * @property {string|null} [selfLink] HealthCheckServiceAggregatedList selfLink + * @property {Array.|null} [unreachables] HealthCheckServiceAggregatedList unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] HealthCheckServiceAggregatedList warning + */ + + /** + * Constructs a new HealthCheckServiceAggregatedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthCheckServiceAggregatedList. + * @implements IHealthCheckServiceAggregatedList + * @constructor + * @param {google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList=} [properties] Properties to set + */ + function HealthCheckServiceAggregatedList(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]]; + } + + /** + * HealthCheckServiceAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.id = null; + + /** + * HealthCheckServiceAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.items = $util.emptyObject; + + /** + * HealthCheckServiceAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.kind = null; + + /** + * HealthCheckServiceAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.nextPageToken = null; + + /** + * HealthCheckServiceAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.selfLink = null; + + /** + * HealthCheckServiceAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * HealthCheckServiceAggregatedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + */ + HealthCheckServiceAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServiceAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthCheckServiceAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList instance + */ + HealthCheckServiceAggregatedList.create = function create(properties) { + return new HealthCheckServiceAggregatedList(properties); + }; + + /** + * Encodes the specified HealthCheckServiceAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServiceAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList} message HealthCheckServiceAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServiceAggregatedList.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.v1beta.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.v1beta.HealthCheckServicesScopedList.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 HealthCheckServiceAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServiceAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1beta.IHealthCheckServiceAggregatedList} message HealthCheckServiceAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServiceAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServiceAggregatedList.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.v1beta.HealthCheckServiceAggregatedList(), 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.v1beta.HealthCheckServicesScopedList.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.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthCheckServiceAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServiceAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthCheckServiceAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthCheckServiceAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.HealthCheckServicesScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.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.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthCheckServiceAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthCheckServiceAggregatedList} HealthCheckServiceAggregatedList + */ + HealthCheckServiceAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthCheckServiceAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthCheckServiceAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthCheckServiceAggregatedList.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.v1beta.HealthCheckServiceAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1beta.HealthCheckServicesScopedList.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.v1beta.HealthCheckServiceAggregatedList.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.v1beta.HealthCheckServiceAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthCheckServiceAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {google.cloud.compute.v1beta.HealthCheckServiceAggregatedList} message HealthCheckServiceAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthCheckServiceAggregatedList.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._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.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1beta.HealthCheckServicesScopedList.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"; + } + return object; + }; + + /** + * Converts this HealthCheckServiceAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @instance + * @returns {Object.} JSON object + */ + HealthCheckServiceAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthCheckServiceAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthCheckServiceAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthCheckServiceAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthCheckServiceAggregatedList"; + }; + + return HealthCheckServiceAggregatedList; + })(); + v1beta.HealthCheckServiceReference = (function() { /** @@ -884034,6 +901548,275 @@ return HealthCheckServicesList; })(); + v1beta.HealthCheckServicesScopedList = (function() { + + /** + * Properties of a HealthCheckServicesScopedList. + * @memberof google.cloud.compute.v1beta + * @interface IHealthCheckServicesScopedList + * @property {Array.|null} [resources] HealthCheckServicesScopedList resources + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] HealthCheckServicesScopedList warning + */ + + /** + * Constructs a new HealthCheckServicesScopedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a HealthCheckServicesScopedList. + * @implements IHealthCheckServicesScopedList + * @constructor + * @param {google.cloud.compute.v1beta.IHealthCheckServicesScopedList=} [properties] Properties to set + */ + function HealthCheckServicesScopedList(properties) { + this.resources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HealthCheckServicesScopedList resources. + * @member {Array.} resources + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @instance + */ + HealthCheckServicesScopedList.prototype.resources = $util.emptyArray; + + /** + * HealthCheckServicesScopedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @instance + */ + HealthCheckServicesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(HealthCheckServicesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HealthCheckServicesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1beta.IHealthCheckServicesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.HealthCheckServicesScopedList} HealthCheckServicesScopedList instance + */ + HealthCheckServicesScopedList.create = function create(properties) { + return new HealthCheckServicesScopedList(properties); + }; + + /** + * Encodes the specified HealthCheckServicesScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServicesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1beta.IHealthCheckServicesScopedList} message HealthCheckServicesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServicesScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.resources != null && message.resources.length) + for (var i = 0; i < message.resources.length; ++i) + $root.google.cloud.compute.v1beta.HealthCheckService.encode(message.resources[i], writer.uint32(/* id 164412965, wireType 2 =*/1315303722).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified HealthCheckServicesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.HealthCheckServicesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1beta.IHealthCheckServicesScopedList} message HealthCheckServicesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HealthCheckServicesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.HealthCheckServicesScopedList} HealthCheckServicesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServicesScopedList.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.v1beta.HealthCheckServicesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 164412965: { + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push($root.google.cloud.compute.v1beta.HealthCheckService.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HealthCheckServicesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.HealthCheckServicesScopedList} HealthCheckServicesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HealthCheckServicesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HealthCheckServicesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HealthCheckServicesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resources != null && message.hasOwnProperty("resources")) { + if (!Array.isArray(message.resources)) + return "resources: array expected"; + for (var i = 0; i < message.resources.length; ++i) { + var error = $root.google.cloud.compute.v1beta.HealthCheckService.verify(message.resources[i]); + if (error) + return "resources." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a HealthCheckServicesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.HealthCheckServicesScopedList} HealthCheckServicesScopedList + */ + HealthCheckServicesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.HealthCheckServicesScopedList) + return object; + var message = new $root.google.cloud.compute.v1beta.HealthCheckServicesScopedList(); + if (object.resources) { + if (!Array.isArray(object.resources)) + throw TypeError(".google.cloud.compute.v1beta.HealthCheckServicesScopedList.resources: array expected"); + message.resources = []; + for (var i = 0; i < object.resources.length; ++i) { + if (typeof object.resources[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthCheckServicesScopedList.resources: object expected"); + message.resources[i] = $root.google.cloud.compute.v1beta.HealthCheckService.fromObject(object.resources[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.HealthCheckServicesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a HealthCheckServicesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {google.cloud.compute.v1beta.HealthCheckServicesScopedList} message HealthCheckServicesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HealthCheckServicesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.resources = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.resources && message.resources.length) { + object.resources = []; + for (var j = 0; j < message.resources.length; ++j) + object.resources[j] = $root.google.cloud.compute.v1beta.HealthCheckService.toObject(message.resources[j], options); + } + return object; + }; + + /** + * Converts this HealthCheckServicesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @instance + * @returns {Object.} JSON object + */ + HealthCheckServicesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HealthCheckServicesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.HealthCheckServicesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HealthCheckServicesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.HealthCheckServicesScopedList"; + }; + + return HealthCheckServicesScopedList; + })(); + v1beta.HealthChecksAggregatedList = (function() { /** @@ -936611,6 +954394,7 @@ * @memberof google.cloud.compute.v1beta * @interface IInstanceGroupManagerStatus * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAllInstancesConfig|null} [allInstancesConfig] InstanceGroupManagerStatus allInstancesConfig + * @property {Array.|null} [appliedAcceleratorTopologies] InstanceGroupManagerStatus appliedAcceleratorTopologies * @property {string|null} [autoscaler] InstanceGroupManagerStatus autoscaler * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusBulkInstanceOperation|null} [bulkInstanceOperation] InstanceGroupManagerStatus bulkInstanceOperation * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusInstanceStatusSummary|null} [currentInstanceStatuses] InstanceGroupManagerStatus currentInstanceStatuses @@ -936628,6 +954412,7 @@ * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatus=} [properties] Properties to set */ function InstanceGroupManagerStatus(properties) { + this.appliedAcceleratorTopologies = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -936642,6 +954427,14 @@ */ InstanceGroupManagerStatus.prototype.allInstancesConfig = null; + /** + * InstanceGroupManagerStatus appliedAcceleratorTopologies. + * @member {Array.} appliedAcceleratorTopologies + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatus + * @instance + */ + InstanceGroupManagerStatus.prototype.appliedAcceleratorTopologies = $util.emptyArray; + /** * InstanceGroupManagerStatus autoscaler. * @member {string|null|undefined} autoscaler @@ -936769,6 +954562,9 @@ $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusInstanceStatusSummary.encode(message.currentInstanceStatuses, writer.uint32(/* id 269432644, wireType 2 =*/2155461154).fork()).ldelim(); if (message.versionTarget != null && Object.hasOwnProperty.call(message, "versionTarget")) $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusVersionTarget.encode(message.versionTarget, writer.uint32(/* id 289386200, wireType 2 =*/2315089602).fork()).ldelim(); + if (message.appliedAcceleratorTopologies != null && message.appliedAcceleratorTopologies.length) + for (var i = 0; i < message.appliedAcceleratorTopologies.length; ++i) + $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.encode(message.appliedAcceleratorTopologies[i], writer.uint32(/* id 481392547, wireType 2 =*/3851140378).fork()).ldelim(); if (message.bulkInstanceOperation != null && Object.hasOwnProperty.call(message, "bulkInstanceOperation")) $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusBulkInstanceOperation.encode(message.bulkInstanceOperation, writer.uint32(/* id 501667466, wireType 2 =*/4013339730).fork()).ldelim(); if (message.autoscaler != null && Object.hasOwnProperty.call(message, "autoscaler")) @@ -936813,6 +954609,12 @@ message.allInstancesConfig = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAllInstancesConfig.decode(reader, reader.uint32()); break; } + case 481392547: { + if (!(message.appliedAcceleratorTopologies && message.appliedAcceleratorTopologies.length)) + message.appliedAcceleratorTopologies = []; + message.appliedAcceleratorTopologies.push($root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.decode(reader, reader.uint32())); + break; + } case 517258967: { message.autoscaler = reader.string(); break; @@ -936881,6 +954683,15 @@ return "allInstancesConfig." + error; } } + if (message.appliedAcceleratorTopologies != null && message.hasOwnProperty("appliedAcceleratorTopologies")) { + if (!Array.isArray(message.appliedAcceleratorTopologies)) + return "appliedAcceleratorTopologies: array expected"; + for (var i = 0; i < message.appliedAcceleratorTopologies.length; ++i) { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.verify(message.appliedAcceleratorTopologies[i]); + if (error) + return "appliedAcceleratorTopologies." + error; + } + } if (message.autoscaler != null && message.hasOwnProperty("autoscaler")) { properties._autoscaler = 1; if (!$util.isString(message.autoscaler)) @@ -936943,6 +954754,16 @@ throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagerStatus.allInstancesConfig: object expected"); message.allInstancesConfig = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAllInstancesConfig.fromObject(object.allInstancesConfig); } + if (object.appliedAcceleratorTopologies) { + if (!Array.isArray(object.appliedAcceleratorTopologies)) + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagerStatus.appliedAcceleratorTopologies: array expected"); + message.appliedAcceleratorTopologies = []; + for (var i = 0; i < object.appliedAcceleratorTopologies.length; ++i) { + if (typeof object.appliedAcceleratorTopologies[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagerStatus.appliedAcceleratorTopologies: object expected"); + message.appliedAcceleratorTopologies[i] = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.fromObject(object.appliedAcceleratorTopologies[i]); + } + } if (object.autoscaler != null) message.autoscaler = String(object.autoscaler); if (object.bulkInstanceOperation != null) { @@ -936983,6 +954804,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.appliedAcceleratorTopologies = []; if (message.isStable != null && message.hasOwnProperty("isStable")) { object.isStable = message.isStable; if (options.oneofs) @@ -937008,6 +954831,11 @@ if (options.oneofs) object._versionTarget = "versionTarget"; } + if (message.appliedAcceleratorTopologies && message.appliedAcceleratorTopologies.length) { + object.appliedAcceleratorTopologies = []; + for (var j = 0; j < message.appliedAcceleratorTopologies.length; ++j) + object.appliedAcceleratorTopologies[j] = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.toObject(message.appliedAcceleratorTopologies[j], options); + } if (message.bulkInstanceOperation != null && message.hasOwnProperty("bulkInstanceOperation")) { object.bulkInstanceOperation = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusBulkInstanceOperation.toObject(message.bulkInstanceOperation, options); if (options.oneofs) @@ -937050,6 +954878,577 @@ return InstanceGroupManagerStatus; })(); + v1beta.InstanceGroupManagerStatusAcceleratorTopology = (function() { + + /** + * Properties of an InstanceGroupManagerStatusAcceleratorTopology. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagerStatusAcceleratorTopology + * @property {string|null} [acceleratorTopology] InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology + * @property {string|null} [state] InstanceGroupManagerStatusAcceleratorTopology state + * @property {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null} [stateDetails] InstanceGroupManagerStatusAcceleratorTopology stateDetails + */ + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopology. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagerStatusAcceleratorTopology. + * @implements IInstanceGroupManagerStatusAcceleratorTopology + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology=} [properties] Properties to set + */ + function InstanceGroupManagerStatusAcceleratorTopology(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusAcceleratorTopology acceleratorTopology. + * @member {string|null|undefined} acceleratorTopology + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.acceleratorTopology = null; + + /** + * InstanceGroupManagerStatusAcceleratorTopology state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.state = null; + + /** + * InstanceGroupManagerStatusAcceleratorTopology stateDetails. + * @member {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails|null|undefined} stateDetails + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.stateDetails = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopology.prototype, "_acceleratorTopology", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorTopology"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopology.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopology.prototype, "_stateDetails", { + get: $util.oneOfGetter($oneOfFields = ["stateDetails"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopology instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology instance + */ + InstanceGroupManagerStatusAcceleratorTopology.create = function create(properties) { + return new InstanceGroupManagerStatusAcceleratorTopology(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology} message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopology.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stateDetails != null && Object.hasOwnProperty.call(message, "stateDetails")) + $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.encode(message.stateDetails, writer.uint32(/* id 95566996, wireType 2 =*/764535970).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + if (message.acceleratorTopology != null && Object.hasOwnProperty.call(message, "acceleratorTopology")) + writer.uint32(/* id 389323203, wireType 2 =*/3114585626).string(message.acceleratorTopology); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopology message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopology} message InstanceGroupManagerStatusAcceleratorTopology message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopology.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopology.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.v1beta.InstanceGroupManagerStatusAcceleratorTopology(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 389323203: { + message.acceleratorTopology = reader.string(); + break; + } + case 109757585: { + message.state = reader.string(); + break; + } + case 95566996: { + message.stateDetails = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopology message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopology.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopology message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusAcceleratorTopology.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + properties._acceleratorTopology = 1; + if (!$util.isString(message.acceleratorTopology)) + return "acceleratorTopology: string expected"; + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) { + properties._stateDetails = 1; + { + var error = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify(message.stateDetails); + if (error) + return "stateDetails." + error; + } + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusAcceleratorTopology message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology} InstanceGroupManagerStatusAcceleratorTopology + */ + InstanceGroupManagerStatusAcceleratorTopology.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology(); + if (object.acceleratorTopology != null) + message.acceleratorTopology = String(object.acceleratorTopology); + if (object.state != null) + message.state = String(object.state); + if (object.stateDetails != null) { + if (typeof object.stateDetails !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.stateDetails: object expected"); + message.stateDetails = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.fromObject(object.stateDetails); + } + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopology message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology} message InstanceGroupManagerStatusAcceleratorTopology + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusAcceleratorTopology.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.stateDetails != null && message.hasOwnProperty("stateDetails")) { + object.stateDetails = $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.toObject(message.stateDetails, options); + if (options.oneofs) + object._stateDetails = "stateDetails"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.acceleratorTopology != null && message.hasOwnProperty("acceleratorTopology")) { + object.acceleratorTopology = message.acceleratorTopology; + if (options.oneofs) + object._acceleratorTopology = "acceleratorTopology"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopology to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusAcceleratorTopology.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopology + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusAcceleratorTopology.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology"; + }; + + /** + * State enum. + * @name google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopology.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} ACTIVATING=378825968 ACTIVATING value + * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} DEACTIVATING=57182257 DEACTIVATING value + * @property {number} FAILED=455706685 FAILED value + * @property {number} INCOMPLETE=11941214 INCOMPLETE value + * @property {number} REACTIVATING=253727587 REACTIVATING value + */ + InstanceGroupManagerStatusAcceleratorTopology.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[378825968] = "ACTIVATING"] = 378825968; + values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[57182257] = "DEACTIVATING"] = 57182257; + values[valuesById[455706685] = "FAILED"] = 455706685; + values[valuesById[11941214] = "INCOMPLETE"] = 11941214; + values[valuesById[253727587] = "REACTIVATING"] = 253727587; + return values; + })(); + + return InstanceGroupManagerStatusAcceleratorTopology; + })(); + + v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails = (function() { + + /** + * Properties of an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @memberof google.cloud.compute.v1beta + * @interface IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @property {google.cloud.compute.v1beta.IError|null} [error] InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error + * @property {string|null} [timestamp] InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp + */ + + /** + * Constructs a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails. + * @implements IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @constructor + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails=} [properties] Properties to set + */ + function InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails error. + * @member {google.cloud.compute.v1beta.IError|null|undefined} error + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype.error = null; + + /** + * InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails timestamp. + * @member {string|null|undefined} timestamp + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @instance + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype.timestamp = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype, "_error", { + get: $util.oneOfGetter($oneOfFields = ["error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype, "_timestamp", { + get: $util.oneOfGetter($oneOfFields = ["timestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails instance + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.create = function create(properties) { + return new InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 55126294, wireType 2 =*/441010354).string(message.timestamp); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.cloud.compute.v1beta.Error.encode(message.error, writer.uint32(/* id 96784904, wireType 2 =*/774279234).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1beta.IInstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.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.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 96784904: { + message.error = $root.google.cloud.compute.v1beta.Error.decode(reader, reader.uint32()); + break; + } + case 55126294: { + message.timestamp = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. + * @function verify + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.error != null && message.hasOwnProperty("error")) { + properties._error = 1; + { + var error = $root.google.cloud.compute.v1beta.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + properties._timestamp = 1; + if (!$util.isString(message.timestamp)) + return "timestamp: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails) + return object; + var message = new $root.google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.error: object expected"); + message.error = $root.google.cloud.compute.v1beta.Error.fromObject(object.error); + } + if (object.timestamp != null) + message.timestamp = String(object.timestamp); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails} message InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + object.timestamp = message.timestamp; + if (options.oneofs) + object._timestamp = "timestamp"; + } + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.cloud.compute.v1beta.Error.toObject(message.error, options); + if (options.oneofs) + object._error = "error"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails"; + }; + + return InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails; + })(); + v1beta.InstanceGroupManagerStatusAllInstancesConfig = (function() { /** @@ -1103530,6 +1121929,468 @@ return NotificationEndpoint; })(); + v1beta.NotificationEndpointAggregatedList = (function() { + + /** + * Properties of a NotificationEndpointAggregatedList. + * @memberof google.cloud.compute.v1beta + * @interface INotificationEndpointAggregatedList + * @property {string|null} [id] NotificationEndpointAggregatedList id + * @property {Object.|null} [items] NotificationEndpointAggregatedList items + * @property {string|null} [kind] NotificationEndpointAggregatedList kind + * @property {string|null} [nextPageToken] NotificationEndpointAggregatedList nextPageToken + * @property {string|null} [selfLink] NotificationEndpointAggregatedList selfLink + * @property {Array.|null} [unreachables] NotificationEndpointAggregatedList unreachables + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] NotificationEndpointAggregatedList warning + */ + + /** + * Constructs a new NotificationEndpointAggregatedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a NotificationEndpointAggregatedList. + * @implements INotificationEndpointAggregatedList + * @constructor + * @param {google.cloud.compute.v1beta.INotificationEndpointAggregatedList=} [properties] Properties to set + */ + function NotificationEndpointAggregatedList(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]]; + } + + /** + * NotificationEndpointAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.id = null; + + /** + * NotificationEndpointAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.items = $util.emptyObject; + + /** + * NotificationEndpointAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.kind = null; + + /** + * NotificationEndpointAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.nextPageToken = null; + + /** + * NotificationEndpointAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.selfLink = null; + + /** + * NotificationEndpointAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * NotificationEndpointAggregatedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + */ + NotificationEndpointAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NotificationEndpointAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1beta.INotificationEndpointAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList instance + */ + NotificationEndpointAggregatedList.create = function create(properties) { + return new NotificationEndpointAggregatedList(properties); + }; + + /** + * Encodes the specified NotificationEndpointAggregatedList message. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1beta.INotificationEndpointAggregatedList} message NotificationEndpointAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointAggregatedList.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.v1beta.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.v1beta.NotificationEndpointsScopedList.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 NotificationEndpointAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1beta.INotificationEndpointAggregatedList} message NotificationEndpointAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointAggregatedList.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.v1beta.NotificationEndpointAggregatedList(), 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.v1beta.NotificationEndpointsScopedList.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.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NotificationEndpointAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NotificationEndpointAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationEndpointAggregatedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1beta.NotificationEndpointsScopedList.verify(message.items[key[i]]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.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.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a NotificationEndpointAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.NotificationEndpointAggregatedList} NotificationEndpointAggregatedList + */ + NotificationEndpointAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.NotificationEndpointAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1beta.NotificationEndpointAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1beta.NotificationEndpointAggregatedList.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.v1beta.NotificationEndpointAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1beta.NotificationEndpointsScopedList.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.v1beta.NotificationEndpointAggregatedList.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.v1beta.NotificationEndpointAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a NotificationEndpointAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {google.cloud.compute.v1beta.NotificationEndpointAggregatedList} message NotificationEndpointAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationEndpointAggregatedList.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._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.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1beta.NotificationEndpointsScopedList.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"; + } + return object; + }; + + /** + * Converts this NotificationEndpointAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @instance + * @returns {Object.} JSON object + */ + NotificationEndpointAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationEndpointAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.NotificationEndpointAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationEndpointAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.NotificationEndpointAggregatedList"; + }; + + return NotificationEndpointAggregatedList; + })(); + v1beta.NotificationEndpointGrpcSettings = (function() { /** @@ -1104287,6 +1123148,275 @@ return NotificationEndpointList; })(); + v1beta.NotificationEndpointsScopedList = (function() { + + /** + * Properties of a NotificationEndpointsScopedList. + * @memberof google.cloud.compute.v1beta + * @interface INotificationEndpointsScopedList + * @property {Array.|null} [resources] NotificationEndpointsScopedList resources + * @property {google.cloud.compute.v1beta.IWarning|null} [warning] NotificationEndpointsScopedList warning + */ + + /** + * Constructs a new NotificationEndpointsScopedList. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a NotificationEndpointsScopedList. + * @implements INotificationEndpointsScopedList + * @constructor + * @param {google.cloud.compute.v1beta.INotificationEndpointsScopedList=} [properties] Properties to set + */ + function NotificationEndpointsScopedList(properties) { + this.resources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationEndpointsScopedList resources. + * @member {Array.} resources + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @instance + */ + NotificationEndpointsScopedList.prototype.resources = $util.emptyArray; + + /** + * NotificationEndpointsScopedList warning. + * @member {google.cloud.compute.v1beta.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @instance + */ + NotificationEndpointsScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(NotificationEndpointsScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NotificationEndpointsScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1beta.INotificationEndpointsScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.NotificationEndpointsScopedList} NotificationEndpointsScopedList instance + */ + NotificationEndpointsScopedList.create = function create(properties) { + return new NotificationEndpointsScopedList(properties); + }; + + /** + * Encodes the specified NotificationEndpointsScopedList message. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointsScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1beta.INotificationEndpointsScopedList} message NotificationEndpointsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointsScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1beta.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.resources != null && message.resources.length) + for (var i = 0; i < message.resources.length; ++i) + $root.google.cloud.compute.v1beta.NotificationEndpoint.encode(message.resources[i], writer.uint32(/* id 164412965, wireType 2 =*/1315303722).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NotificationEndpointsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.NotificationEndpointsScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1beta.INotificationEndpointsScopedList} message NotificationEndpointsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationEndpointsScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.NotificationEndpointsScopedList} NotificationEndpointsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointsScopedList.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.v1beta.NotificationEndpointsScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 164412965: { + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push($root.google.cloud.compute.v1beta.NotificationEndpoint.decode(reader, reader.uint32())); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1beta.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NotificationEndpointsScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.NotificationEndpointsScopedList} NotificationEndpointsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationEndpointsScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NotificationEndpointsScopedList message. + * @function verify + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationEndpointsScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.resources != null && message.hasOwnProperty("resources")) { + if (!Array.isArray(message.resources)) + return "resources: array expected"; + for (var i = 0; i < message.resources.length; ++i) { + var error = $root.google.cloud.compute.v1beta.NotificationEndpoint.verify(message.resources[i]); + if (error) + return "resources." + error; + } + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1beta.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a NotificationEndpointsScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.NotificationEndpointsScopedList} NotificationEndpointsScopedList + */ + NotificationEndpointsScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.NotificationEndpointsScopedList) + return object; + var message = new $root.google.cloud.compute.v1beta.NotificationEndpointsScopedList(); + if (object.resources) { + if (!Array.isArray(object.resources)) + throw TypeError(".google.cloud.compute.v1beta.NotificationEndpointsScopedList.resources: array expected"); + message.resources = []; + for (var i = 0; i < object.resources.length; ++i) { + if (typeof object.resources[i] !== "object") + throw TypeError(".google.cloud.compute.v1beta.NotificationEndpointsScopedList.resources: object expected"); + message.resources[i] = $root.google.cloud.compute.v1beta.NotificationEndpoint.fromObject(object.resources[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1beta.NotificationEndpointsScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1beta.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a NotificationEndpointsScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {google.cloud.compute.v1beta.NotificationEndpointsScopedList} message NotificationEndpointsScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationEndpointsScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.resources = []; + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1beta.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.resources && message.resources.length) { + object.resources = []; + for (var j = 0; j < message.resources.length; ++j) + object.resources[j] = $root.google.cloud.compute.v1beta.NotificationEndpoint.toObject(message.resources[j], options); + } + return object; + }; + + /** + * Converts this NotificationEndpointsScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @instance + * @returns {Object.} JSON object + */ + NotificationEndpointsScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NotificationEndpointsScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.NotificationEndpointsScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationEndpointsScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.NotificationEndpointsScopedList"; + }; + + return NotificationEndpointsScopedList; + })(); + v1beta.Operation = (function() { /** @@ -1104298,6 +1123428,7 @@ * @property {string|null} [description] Operation description * @property {string|null} [endTime] Operation endTime * @property {google.cloud.compute.v1beta.IError|null} [error] Operation error + * @property {google.cloud.compute.v1beta.IGetVersionOperationMetadata|null} [getVersionOperationMetadata] Operation getVersionOperationMetadata * @property {string|null} [httpErrorMessage] Operation httpErrorMessage * @property {number|null} [httpErrorStatusCode] Operation httpErrorStatusCode * @property {number|Long|null} [id] Operation id @@ -1104377,6 +1123508,14 @@ */ Operation.prototype.error = null; + /** + * Operation getVersionOperationMetadata. + * @member {google.cloud.compute.v1beta.IGetVersionOperationMetadata|null|undefined} getVersionOperationMetadata + * @memberof google.cloud.compute.v1beta.Operation + * @instance + */ + Operation.prototype.getVersionOperationMetadata = null; + /** * Operation httpErrorMessage. * @member {string|null|undefined} httpErrorMessage @@ -1104578,6 +1123717,12 @@ set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(Operation.prototype, "_getVersionOperationMetadata", { + get: $util.oneOfGetter($oneOfFields = ["getVersionOperationMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(Operation.prototype, "_httpErrorMessage", { get: $util.oneOfGetter($oneOfFields = ["httpErrorMessage"]), @@ -1104750,6 +1123895,8 @@ writer.uint32(/* id 114938801, wireType 2 =*/919510410).string(message.endTime); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.getVersionOperationMetadata != null && Object.hasOwnProperty.call(message, "getVersionOperationMetadata")) + $root.google.cloud.compute.v1beta.GetVersionOperationMetadata.encode(message.getVersionOperationMetadata, writer.uint32(/* id 173230167, wireType 2 =*/1385841338).fork()).ldelim(); if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) writer.uint32(/* id 177650450, wireType 2 =*/1421203602).string(message.operationType); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -1104831,6 +1123978,10 @@ message.error = $root.google.cloud.compute.v1beta.Error.decode(reader, reader.uint32()); break; } + case 173230167: { + message.getVersionOperationMetadata = $root.google.cloud.compute.v1beta.GetVersionOperationMetadata.decode(reader, reader.uint32()); + break; + } case 202521945: { message.httpErrorMessage = reader.string(); break; @@ -1104981,6 +1124132,14 @@ return "error." + error; } } + if (message.getVersionOperationMetadata != null && message.hasOwnProperty("getVersionOperationMetadata")) { + properties._getVersionOperationMetadata = 1; + { + var error = $root.google.cloud.compute.v1beta.GetVersionOperationMetadata.verify(message.getVersionOperationMetadata); + if (error) + return "getVersionOperationMetadata." + error; + } + } if (message.httpErrorMessage != null && message.hasOwnProperty("httpErrorMessage")) { properties._httpErrorMessage = 1; if (!$util.isString(message.httpErrorMessage)) @@ -1105131,6 +1124290,11 @@ throw TypeError(".google.cloud.compute.v1beta.Operation.error: object expected"); message.error = $root.google.cloud.compute.v1beta.Error.fromObject(object.error); } + if (object.getVersionOperationMetadata != null) { + if (typeof object.getVersionOperationMetadata !== "object") + throw TypeError(".google.cloud.compute.v1beta.Operation.getVersionOperationMetadata: object expected"); + message.getVersionOperationMetadata = $root.google.cloud.compute.v1beta.GetVersionOperationMetadata.fromObject(object.getVersionOperationMetadata); + } if (object.httpErrorMessage != null) message.httpErrorMessage = String(object.httpErrorMessage); if (object.httpErrorStatusCode != null) @@ -1105314,6 +1124478,11 @@ if (options.oneofs) object._region = "region"; } + if (message.getVersionOperationMetadata != null && message.hasOwnProperty("getVersionOperationMetadata")) { + object.getVersionOperationMetadata = $root.google.cloud.compute.v1beta.GetVersionOperationMetadata.toObject(message.getVersionOperationMetadata, options); + if (options.oneofs) + object._getVersionOperationMetadata = "getVersionOperationMetadata"; + } if (message.operationType != null && message.hasOwnProperty("operationType")) { object.operationType = message.operationType; if (options.oneofs) @@ -1177542,6 +1196711,245 @@ return ReservationSlotsGetResponse; })(); + v1beta.ReservationSlotsGetVersionRequest = (function() { + + /** + * Properties of a ReservationSlotsGetVersionRequest. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSlotsGetVersionRequest + * @property {Array.|null} [sbomSelections] ReservationSlotsGetVersionRequest sbomSelections + */ + + /** + * Constructs a new ReservationSlotsGetVersionRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSlotsGetVersionRequest. + * @implements IReservationSlotsGetVersionRequest + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest=} [properties] Properties to set + */ + function ReservationSlotsGetVersionRequest(properties) { + this.sbomSelections = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSlotsGetVersionRequest sbomSelections. + * @member {Array.} sbomSelections + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @instance + */ + ReservationSlotsGetVersionRequest.prototype.sbomSelections = $util.emptyArray; + + /** + * Creates a new ReservationSlotsGetVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest instance + */ + ReservationSlotsGetVersionRequest.create = function create(properties) { + return new ReservationSlotsGetVersionRequest(properties); + }; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest} message ReservationSlotsGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sbomSelections != null && message.sbomSelections.length) + for (var i = 0; i < message.sbomSelections.length; ++i) + writer.uint32(/* id 69155705, wireType 2 =*/553245642).string(message.sbomSelections[i]); + return writer; + }; + + /** + * Encodes the specified ReservationSlotsGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.IReservationSlotsGetVersionRequest} message ReservationSlotsGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSlotsGetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetVersionRequest.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.v1beta.ReservationSlotsGetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 69155705: { + if (!(message.sbomSelections && message.sbomSelections.length)) + message.sbomSelections = []; + message.sbomSelections.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSlotsGetVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSlotsGetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSlotsGetVersionRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSlotsGetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sbomSelections != null && message.hasOwnProperty("sbomSelections")) { + if (!Array.isArray(message.sbomSelections)) + return "sbomSelections: array expected"; + for (var i = 0; i < message.sbomSelections.length; ++i) + if (!$util.isString(message.sbomSelections[i])) + return "sbomSelections: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationSlotsGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest} ReservationSlotsGetVersionRequest + */ + ReservationSlotsGetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest(); + if (object.sbomSelections) { + if (!Array.isArray(object.sbomSelections)) + throw TypeError(".google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.sbomSelections: array expected"); + message.sbomSelections = []; + for (var i = 0; i < object.sbomSelections.length; ++i) + message.sbomSelections[i] = String(object.sbomSelections[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSlotsGetVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest} message ReservationSlotsGetVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSlotsGetVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sbomSelections = []; + if (message.sbomSelections && message.sbomSelections.length) { + object.sbomSelections = []; + for (var j = 0; j < message.sbomSelections.length; ++j) + object.sbomSelections[j] = message.sbomSelections[j]; + } + return object; + }; + + /** + * Converts this ReservationSlotsGetVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @instance + * @returns {Object.} JSON object + */ + ReservationSlotsGetVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSlotsGetVersionRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSlotsGetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest"; + }; + + /** + * SbomSelections enum. + * @name google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest.SbomSelections + * @enum {number} + * @property {number} UNDEFINED_SBOM_SELECTIONS=0 UNDEFINED_SBOM_SELECTIONS value + * @property {number} SBOM_SELECTION_CURRENT=423856692 SBOM_SELECTION_CURRENT value + * @property {number} SBOM_SELECTION_TARGET=152837462 SBOM_SELECTION_TARGET value + * @property {number} SBOM_SELECTION_UNSPECIFIED=379615858 SBOM_SELECTION_UNSPECIFIED value + */ + ReservationSlotsGetVersionRequest.SbomSelections = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SBOM_SELECTIONS"] = 0; + values[valuesById[423856692] = "SBOM_SELECTION_CURRENT"] = 423856692; + values[valuesById[152837462] = "SBOM_SELECTION_TARGET"] = 152837462; + values[valuesById[379615858] = "SBOM_SELECTION_UNSPECIFIED"] = 379615858; + return values; + })(); + + return ReservationSlotsGetVersionRequest; + })(); + v1beta.ReservationSlotsListResponse = (function() { /** @@ -1179553,6 +1198961,245 @@ return ReservationSubBlocksGetResponse; })(); + v1beta.ReservationSubBlocksGetVersionRequest = (function() { + + /** + * Properties of a ReservationSubBlocksGetVersionRequest. + * @memberof google.cloud.compute.v1beta + * @interface IReservationSubBlocksGetVersionRequest + * @property {Array.|null} [sbomSelections] ReservationSubBlocksGetVersionRequest sbomSelections + */ + + /** + * Constructs a new ReservationSubBlocksGetVersionRequest. + * @memberof google.cloud.compute.v1beta + * @classdesc Represents a ReservationSubBlocksGetVersionRequest. + * @implements IReservationSubBlocksGetVersionRequest + * @constructor + * @param {google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest=} [properties] Properties to set + */ + function ReservationSubBlocksGetVersionRequest(properties) { + this.sbomSelections = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservationSubBlocksGetVersionRequest sbomSelections. + * @member {Array.} sbomSelections + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @instance + */ + ReservationSubBlocksGetVersionRequest.prototype.sbomSelections = $util.emptyArray; + + /** + * Creates a new ReservationSubBlocksGetVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest instance + */ + ReservationSubBlocksGetVersionRequest.create = function create(properties) { + return new ReservationSubBlocksGetVersionRequest(properties); + }; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest} message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlocksGetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sbomSelections != null && message.sbomSelections.length) + for (var i = 0; i < message.sbomSelections.length; ++i) + writer.uint32(/* id 69155705, wireType 2 =*/553245642).string(message.sbomSelections[i]); + return writer; + }; + + /** + * Encodes the specified ReservationSubBlocksGetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.IReservationSubBlocksGetVersionRequest} message ReservationSubBlocksGetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationSubBlocksGetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlocksGetVersionRequest.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.v1beta.ReservationSubBlocksGetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 69155705: { + if (!(message.sbomSelections && message.sbomSelections.length)) + message.sbomSelections = []; + message.sbomSelections.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationSubBlocksGetVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationSubBlocksGetVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationSubBlocksGetVersionRequest message. + * @function verify + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationSubBlocksGetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sbomSelections != null && message.hasOwnProperty("sbomSelections")) { + if (!Array.isArray(message.sbomSelections)) + return "sbomSelections: array expected"; + for (var i = 0; i < message.sbomSelections.length; ++i) + if (!$util.isString(message.sbomSelections[i])) + return "sbomSelections: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationSubBlocksGetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest} ReservationSubBlocksGetVersionRequest + */ + ReservationSubBlocksGetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest) + return object; + var message = new $root.google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest(); + if (object.sbomSelections) { + if (!Array.isArray(object.sbomSelections)) + throw TypeError(".google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.sbomSelections: array expected"); + message.sbomSelections = []; + for (var i = 0; i < object.sbomSelections.length; ++i) + message.sbomSelections[i] = String(object.sbomSelections[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationSubBlocksGetVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest} message ReservationSubBlocksGetVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationSubBlocksGetVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sbomSelections = []; + if (message.sbomSelections && message.sbomSelections.length) { + object.sbomSelections = []; + for (var j = 0; j < message.sbomSelections.length; ++j) + object.sbomSelections[j] = message.sbomSelections[j]; + } + return object; + }; + + /** + * Converts this ReservationSubBlocksGetVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @instance + * @returns {Object.} JSON object + */ + ReservationSubBlocksGetVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationSubBlocksGetVersionRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationSubBlocksGetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest"; + }; + + /** + * SbomSelections enum. + * @name google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest.SbomSelections + * @enum {number} + * @property {number} UNDEFINED_SBOM_SELECTIONS=0 UNDEFINED_SBOM_SELECTIONS value + * @property {number} SBOM_SELECTION_CURRENT=423856692 SBOM_SELECTION_CURRENT value + * @property {number} SBOM_SELECTION_TARGET=152837462 SBOM_SELECTION_TARGET value + * @property {number} SBOM_SELECTION_UNSPECIFIED=379615858 SBOM_SELECTION_UNSPECIFIED value + */ + ReservationSubBlocksGetVersionRequest.SbomSelections = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SBOM_SELECTIONS"] = 0; + values[valuesById[423856692] = "SBOM_SELECTION_CURRENT"] = 423856692; + values[valuesById[152837462] = "SBOM_SELECTION_TARGET"] = 152837462; + values[valuesById[379615858] = "SBOM_SELECTION_UNSPECIFIED"] = 379615858; + return values; + })(); + + return ReservationSubBlocksGetVersionRequest; + })(); + v1beta.ReservationSubBlocksListResponse = (function() { /** @@ -1346814,6 +1366461,7 @@ * Properties of an UpdateInstanceRequest. * @memberof google.cloud.compute.v1beta * @interface IUpdateInstanceRequest + * @property {boolean|null} [discardLocalSsd] UpdateInstanceRequest discardLocalSsd * @property {string|null} [instance] UpdateInstanceRequest instance * @property {google.cloud.compute.v1beta.IInstance|null} [instanceResource] UpdateInstanceRequest instanceResource * @property {string|null} [minimalAction] UpdateInstanceRequest minimalAction @@ -1346838,6 +1366486,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * UpdateInstanceRequest discardLocalSsd. + * @member {boolean|null|undefined} discardLocalSsd + * @memberof google.cloud.compute.v1beta.UpdateInstanceRequest + * @instance + */ + UpdateInstanceRequest.prototype.discardLocalSsd = null; + /** * UpdateInstanceRequest instance. * @member {string} instance @@ -1346897,6 +1366553,12 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + // Virtual OneOf for proto3 optional field + Object.defineProperty(UpdateInstanceRequest.prototype, "_discardLocalSsd", { + get: $util.oneOfGetter($oneOfFields = ["discardLocalSsd"]), + set: $util.oneOfSetter($oneOfFields) + }); + // Virtual OneOf for proto3 optional field Object.defineProperty(UpdateInstanceRequest.prototype, "_minimalAction", { get: $util.oneOfGetter($oneOfFields = ["minimalAction"]), @@ -1346953,6 +1366615,8 @@ writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); if (message.minimalAction != null && Object.hasOwnProperty.call(message, "minimalAction")) writer.uint32(/* id 270567060, wireType 2 =*/2164536482).string(message.minimalAction); + if (message.discardLocalSsd != null && Object.hasOwnProperty.call(message, "discardLocalSsd")) + writer.uint32(/* id 319517903, wireType 0 =*/2556143224).bool(message.discardLocalSsd); return writer; }; @@ -1346989,6 +1366653,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 319517903: { + message.discardLocalSsd = reader.bool(); + break; + } case 18257045: { message.instance = reader.string(); break; @@ -1347053,6 +1366721,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + properties._discardLocalSsd = 1; + if (typeof message.discardLocalSsd !== "boolean") + return "discardLocalSsd: boolean expected"; + } if (message.instance != null && message.hasOwnProperty("instance")) if (!$util.isString(message.instance)) return "instance: string expected"; @@ -1347097,6 +1366770,8 @@ if (object instanceof $root.google.cloud.compute.v1beta.UpdateInstanceRequest) return object; var message = new $root.google.cloud.compute.v1beta.UpdateInstanceRequest(); + if (object.discardLocalSsd != null) + message.discardLocalSsd = Boolean(object.discardLocalSsd); if (object.instance != null) message.instance = String(object.instance); if (object.instanceResource != null) { @@ -1347159,6 +1366834,11 @@ if (options.oneofs) object._minimalAction = "minimalAction"; } + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + object.discardLocalSsd = message.discardLocalSsd; + if (options.oneofs) + object._discardLocalSsd = "discardLocalSsd"; + } return object; }; @@ -1403363,6 +1423043,39 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthCheckServices|aggregatedList}. + * @memberof google.cloud.compute.v1beta.RegionHealthCheckServices + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.HealthCheckServiceAggregatedList} [response] HealthCheckServiceAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionHealthCheckServices + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest} request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionHealthCheckServices.AggregatedListCallback} callback Node-style callback called with the error, if any, and HealthCheckServiceAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionHealthCheckServices.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest, $root.google.cloud.compute.v1beta.HealthCheckServiceAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionHealthCheckServices + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest} request AggregatedListRegionHealthCheckServicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.RegionHealthCheckServices|delete_}. * @memberof google.cloud.compute.v1beta.RegionHealthCheckServices @@ -1407914,6 +1427627,39 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; + /** + * Callback as used by {@link google.cloud.compute.v1beta.RegionNotificationEndpoints|aggregatedList}. + * @memberof google.cloud.compute.v1beta.RegionNotificationEndpoints + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.NotificationEndpointAggregatedList} [response] NotificationEndpointAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionNotificationEndpoints + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest} request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @param {google.cloud.compute.v1beta.RegionNotificationEndpoints.AggregatedListCallback} callback Node-style callback called with the error, if any, and NotificationEndpointAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionNotificationEndpoints.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest, $root.google.cloud.compute.v1beta.NotificationEndpointAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1beta.RegionNotificationEndpoints + * @instance + * @param {google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest} request AggregatedListRegionNotificationEndpointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.RegionNotificationEndpoints|delete_}. * @memberof google.cloud.compute.v1beta.RegionNotificationEndpoints @@ -1411011,6 +1430757,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|getVersion}. + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IGetVersionReservationSlotRequest} request GetVersionReservationSlotRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSlots.GetVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSlots.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.cloud.compute.v1beta.GetVersionReservationSlotRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "GetVersion" }); + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1beta.ReservationSlots + * @instance + * @param {google.cloud.compute.v1beta.IGetVersionReservationSlotRequest} request GetVersionReservationSlotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationSlots|list}. * @memberof google.cloud.compute.v1beta.ReservationSlots @@ -1411178,6 +1430957,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|getVersion}. + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1beta.Operation} [response] Operation + */ + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest} request GetVersionReservationSubBlockRequest message or plain object + * @param {google.cloud.compute.v1beta.ReservationSubBlocks.GetVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ReservationSubBlocks.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest, $root.google.cloud.compute.v1beta.Operation, request, callback); + }, "name", { value: "GetVersion" }); + + /** + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.compute.v1beta.ReservationSubBlocks + * @instance + * @param {google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest} request GetVersionReservationSubBlockRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1beta.ReservationSubBlocks|list}. * @memberof google.cloud.compute.v1beta.ReservationSubBlocks diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index 1174cc4970a..43f751ccb5b 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -5023,7 +5023,7 @@ } } }, - "AggregatedListRegionHealthAggregationPoliciesRequest": { + "AggregatedListRegionCompositeHealthChecksRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5120,7 +5120,7 @@ } } }, - "AggregatedListReservationsRequest": { + "AggregatedListRegionHealthAggregationPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5217,7 +5217,7 @@ } } }, - "AggregatedListResourcePoliciesRequest": { + "AggregatedListRegionHealthCheckServicesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5314,7 +5314,7 @@ } } }, - "AggregatedListRoutersRequest": { + "AggregatedListRegionHealthSourcesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5411,7 +5411,7 @@ } } }, - "AggregatedListSecurityPoliciesRequest": { + "AggregatedListRegionNotificationEndpointsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5508,7 +5508,7 @@ } } }, - "AggregatedListServiceAttachmentsRequest": { + "AggregatedListReservationsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5605,7 +5605,7 @@ } } }, - "AggregatedListSslCertificatesRequest": { + "AggregatedListResourcePoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5702,7 +5702,7 @@ } } }, - "AggregatedListSslPoliciesRequest": { + "AggregatedListRoutersRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5799,7 +5799,7 @@ } } }, - "AggregatedListStoragePoolTypesRequest": { + "AggregatedListSecurityPoliciesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5896,7 +5896,7 @@ } } }, - "AggregatedListStoragePoolsRequest": { + "AggregatedListServiceAttachmentsRequest": { "oneofs": { "_filter": { "oneof": [ @@ -5993,7 +5993,7 @@ } } }, - "AggregatedListSubnetworksRequest": { + "AggregatedListSslCertificatesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -6029,10 +6029,102 @@ "oneof": [ "serviceProjectNumber" ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } }, - "_views": { + "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 + } + } + } + }, + "AggregatedListSslPoliciesRequest": { + "oneofs": { + "_filter": { "oneof": [ - "views" + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" ] } }, @@ -6092,26 +6184,322 @@ "options": { "proto3_optional": true } + } + } + }, + "AggregatedListStoragePoolTypesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] }, - "views": { + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + } + }, + "fields": { + "filter": { "type": "string", - "id": 112204398, + "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 } } + } + }, + "AggregatedListStoragePoolsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + } }, - "nested": { - "Views": { - "values": { - "UNDEFINED_VIEWS": 0, - "DEFAULT": 115302945, - "WITH_UTILIZATION": 504090633 + "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 } } } }, - "AggregatedListTargetHttpProxiesRequest": { + "AggregatedListSubnetworksRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + }, + "_serviceProjectNumber": { + "oneof": [ + "serviceProjectNumber" + ] + }, + "_views": { + "oneof": [ + "views" + ] + } + }, + "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 + } + }, + "views": { + "type": "string", + "id": 112204398, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Views": { + "values": { + "UNDEFINED_VIEWS": 0, + "DEFAULT": 115302945, + "WITH_UTILIZATION": 504090633 + } + } + } + }, + "AggregatedListTargetHttpProxiesRequest": { "oneofs": { "_filter": { "oneof": [ @@ -13662,6 +14050,307 @@ } } }, + "CompositeHealthCheck": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_fingerprint": { + "oneof": [ + "fingerprint" + ] + }, + "_healthDestination": { + "oneof": [ + "healthDestination" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "fingerprint": { + "type": "string", + "id": 234678500, + "options": { + "proto3_optional": true + } + }, + "healthDestination": { + "type": "string", + "id": 311098027, + "options": { + "proto3_optional": true + } + }, + "healthSources": { + "rule": "repeated", + "type": "string", + "id": 397879509 + }, + "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 + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + } + } + }, + "CompositeHealthCheckAggregatedList": { + "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": "CompositeHealthChecksScopedList", + "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 + } + } + } + }, + "CompositeHealthCheckList": { + "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": "CompositeHealthCheck", + "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 + } + } + } + }, + "CompositeHealthChecksScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "compositeHealthChecks": { + "rule": "repeated", + "type": "CompositeHealthCheck", + "id": 517891062 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "ConfidentialInstanceConfig": { "oneofs": { "_confidentialInstanceType": { @@ -16432,6 +17121,47 @@ } } }, + "DeleteRegionCompositeHealthCheckRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "compositeHealthCheck": { + "type": "string", + "id": 466984989, + "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 + } + } + } + }, "DeleteRegionDiskRequest": { "oneofs": { "_requestId": { @@ -16596,6 +17326,47 @@ } } }, + "DeleteRegionHealthSourceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "healthSource": { + "type": "string", + "id": 376521566, + "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 + } + } + } + }, "DeleteRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { @@ -26998,181 +27769,231 @@ } } }, - "GetRegionDiskRequest": { - "fields": { - "disk": { - "type": "string", - "id": 3083677, - "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" - } - } - } - }, - "GetRegionDiskTypeRequest": { - "fields": { - "diskType": { - "type": "string", - "id": 93009052, - "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" - } - } - } - }, - "GetRegionHealthAggregationPolicyRequest": { - "fields": { - "healthAggregationPolicy": { - "type": "string", - "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" - } - } - } - }, + "GetRegionCompositeHealthCheckRequest": { + "fields": { + "compositeHealthCheck": { + "type": "string", + "id": 466984989, + "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" + } + } + } + }, + "GetRegionDiskRequest": { + "fields": { + "disk": { + "type": "string", + "id": 3083677, + "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" + } + } + } + }, + "GetRegionDiskTypeRequest": { + "fields": { + "diskType": { + "type": "string", + "id": 93009052, + "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" + } + } + } + }, + "GetRegionHealthAggregationPolicyRequest": { + "fields": { + "healthAggregationPolicy": { + "type": "string", + "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" + } + } + } + }, + "GetRegionHealthSourceRequest": { + "fields": { + "healthSource": { + "type": "string", + "id": 376521566, + "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": { @@ -28539,6 +29360,148 @@ } } }, + "GetVersionOperationMetadata": { + "oneofs": { + "_inlineSbomInfo": { + "oneof": [ + "inlineSbomInfo" + ] + } + }, + "fields": { + "inlineSbomInfo": { + "type": "GetVersionOperationMetadataSbomInfo", + "id": 7079706, + "options": { + "proto3_optional": true + } + } + } + }, + "GetVersionOperationMetadataSbomInfo": { + "fields": { + "currentComponentVersions": { + "keyType": "string", + "type": "string", + "id": 273325091 + }, + "targetComponentVersions": { + "keyType": "string", + "type": "string", + "id": 345997579 + } + } + }, + "GetVersionReservationSlotRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "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" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "reservationSlot": { + "type": "string", + "id": 277470865, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSlotsGetVersionRequestResource": { + "type": "ReservationSlotsGetVersionRequest", + "id": 335316011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "GetVersionReservationSubBlockRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "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" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "reservationSubBlock": { + "type": "string", + "id": 22750491, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSubBlocksGetVersionRequestResource": { + "type": "ReservationSubBlocksGetVersionRequest", + "id": 223034677, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "GetVpnGatewayRequest": { "fields": { "project": { @@ -30325,6 +31288,82 @@ } } }, + "HealthCheckServiceAggregatedList": { + "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": "HealthCheckServicesScopedList", + "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 + } + } + } + }, "HealthCheckServiceReference": { "oneofs": { "_healthCheckService": { @@ -30414,6 +31453,29 @@ } } }, + "HealthCheckServicesScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "resources": { + "rule": "repeated", + "type": "HealthCheckService", + "id": 164412965 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "HealthChecksAggregatedList": { "oneofs": { "_id": { @@ -30476,11 +31538,332 @@ "proto3_optional": true } }, - "unreachables": { - "rule": "repeated", - "type": "string", - "id": 243372063 - }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthChecksScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "healthChecks": { + "rule": "repeated", + "type": "HealthCheck", + "id": 448370606 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthSource": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_fingerprint": { + "oneof": [ + "fingerprint" + ] + }, + "_healthAggregationPolicy": { + "oneof": [ + "healthAggregationPolicy" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + }, + "_sourceType": { + "oneof": [ + "sourceType" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "fingerprint": { + "type": "string", + "id": 234678500, + "options": { + "proto3_optional": true + } + }, + "healthAggregationPolicy": { + "type": "string", + "id": 240314354, + "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 + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + }, + "sourceType": { + "type": "string", + "id": 452245726, + "options": { + "proto3_optional": true + } + }, + "sources": { + "rule": "repeated", + "type": "string", + "id": 125606840 + } + }, + "nested": { + "SourceType": { + "values": { + "UNDEFINED_SOURCE_TYPE": 0, + "BACKEND_SERVICE": 285792202 + } + } + } + }, + "HealthSourceAggregatedList": { + "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": "HealthSourcesScopedList", + "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 + } + } + } + }, + "HealthSourceList": { + "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": "HealthSource", + "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, @@ -30490,7 +31873,7 @@ } } }, - "HealthChecksScopedList": { + "HealthSourcesScopedList": { "oneofs": { "_warning": { "oneof": [ @@ -30499,10 +31882,10 @@ } }, "fields": { - "healthChecks": { + "healthSources": { "rule": "repeated", - "type": "HealthCheck", - "id": 448370606 + "type": "HealthSource", + "id": 397879509 }, "warning": { "type": "Warning", @@ -33792,6 +35175,47 @@ } } }, + "InsertRegionCompositeHealthCheckRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "compositeHealthCheckResource": { + "type": "CompositeHealthCheck", + "id": 132195824, + "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 + } + } + } + }, "InsertRegionDiskRequest": { "oneofs": { "_requestId": { @@ -33968,6 +35392,47 @@ } } }, + "InsertRegionHealthSourceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "healthSourceResource": { + "type": "HealthSource", + "id": 357735375, + "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 + } + } + } + }, "InsertRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { @@ -36574,6 +38039,11 @@ "targetSize" ] }, + "_targetSizePolicy": { + "oneof": [ + "targetSizePolicy" + ] + }, "_targetStoppedSize": { "oneof": [ "targetStoppedSize" @@ -36779,6 +38249,13 @@ "proto3_optional": true } }, + "targetSizePolicy": { + "type": "InstanceGroupManagerTargetSizePolicy", + "id": 128773506, + "options": { + "proto3_optional": true + } + }, "targetStoppedSize": { "type": "int32", "id": 2419489, @@ -37627,6 +39104,11 @@ "autoscaler" ] }, + "_bulkInstanceOperation": { + "oneof": [ + "bulkInstanceOperation" + ] + }, "_isStable": { "oneof": [ "isStable" @@ -37651,6 +39133,11 @@ "proto3_optional": true } }, + "appliedAcceleratorTopologies": { + "rule": "repeated", + "type": "InstanceGroupManagerStatusAcceleratorTopology", + "id": 481392547 + }, "autoscaler": { "type": "string", "id": 517258967, @@ -37658,6 +39145,13 @@ "proto3_optional": true } }, + "bulkInstanceOperation": { + "type": "InstanceGroupManagerStatusBulkInstanceOperation", + "id": 501667466, + "options": { + "proto3_optional": true + } + }, "isStable": { "type": "bool", "id": 108410864, @@ -37681,6 +39175,91 @@ } } }, + "InstanceGroupManagerStatusAcceleratorTopology": { + "oneofs": { + "_acceleratorTopology": { + "oneof": [ + "acceleratorTopology" + ] + }, + "_state": { + "oneof": [ + "state" + ] + }, + "_stateDetails": { + "oneof": [ + "stateDetails" + ] + } + }, + "fields": { + "acceleratorTopology": { + "type": "string", + "id": 389323203, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + }, + "stateDetails": { + "type": "InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails", + "id": 95566996, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "ACTIVATING": 378825968, + "ACTIVE": 314733318, + "DEACTIVATING": 57182257, + "FAILED": 455706685, + "INCOMPLETE": 11941214, + "REACTIVATING": 253727587 + } + } + } + }, + "InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails": { + "oneofs": { + "_error": { + "oneof": [ + "error" + ] + }, + "_timestamp": { + "oneof": [ + "timestamp" + ] + } + }, + "fields": { + "error": { + "type": "Error", + "id": 96784904, + "options": { + "proto3_optional": true + } + }, + "timestamp": { + "type": "string", + "id": 55126294, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerStatusAllInstancesConfig": { "oneofs": { "_currentRevision": { @@ -37711,6 +39290,66 @@ } } }, + "InstanceGroupManagerStatusBulkInstanceOperation": { + "oneofs": { + "_inProgress": { + "oneof": [ + "inProgress" + ] + }, + "_lastProgressCheck": { + "oneof": [ + "lastProgressCheck" + ] + } + }, + "fields": { + "inProgress": { + "type": "bool", + "id": 320200711, + "options": { + "proto3_optional": true + } + }, + "lastProgressCheck": { + "type": "InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck", + "id": 208638271, + "options": { + "proto3_optional": true + } + } + } + }, + "InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck": { + "oneofs": { + "_error": { + "oneof": [ + "error" + ] + }, + "_timestamp": { + "oneof": [ + "timestamp" + ] + } + }, + "fields": { + "error": { + "type": "Error", + "id": 96784904, + "options": { + "proto3_optional": true + } + }, + "timestamp": { + "type": "string", + "id": 55126294, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerStatusStateful": { "oneofs": { "_hasStatefulConfig": { @@ -37777,6 +39416,34 @@ } } }, + "InstanceGroupManagerTargetSizePolicy": { + "oneofs": { + "_mode": { + "oneof": [ + "mode" + ] + } + }, + "fields": { + "mode": { + "type": "string", + "id": 3357091, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Mode": { + "values": { + "UNDEFINED_MODE": 0, + "BULK": 2050322, + "INDIVIDUAL": 438800025, + "UNSPECIFIED_MODE": 53715403 + } + } + } + }, "InstanceGroupManagerUpdatePolicy": { "oneofs": { "_instanceRedistributionType": { @@ -51524,6 +53191,86 @@ } } }, + "ListRegionCompositeHealthChecksRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, "ListRegionDiskTypesRequest": { "oneofs": { "_filter": { @@ -51924,6 +53671,86 @@ } } }, + "ListRegionHealthSourcesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, "ListRegionInstanceGroupManagersRequest": { "oneofs": { "_filter": { @@ -63124,6 +64951,82 @@ } } }, + "NotificationEndpointAggregatedList": { + "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": "NotificationEndpointsScopedList", + "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 + } + } + } + }, "NotificationEndpointGrpcSettings": { "oneofs": { "_authority": { @@ -63261,6 +65164,29 @@ } } }, + "NotificationEndpointsScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "resources": { + "rule": "repeated", + "type": "NotificationEndpoint", + "id": 164412965 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "Operation": { "oneofs": { "_clientOperationId": { @@ -63288,6 +65214,11 @@ "error" ] }, + "_getVersionOperationMetadata": { + "oneof": [ + "getVersionOperationMetadata" + ] + }, "_httpErrorMessage": { "oneof": [ "httpErrorMessage" @@ -63425,6 +65356,13 @@ "proto3_optional": true } }, + "getVersionOperationMetadata": { + "type": "GetVersionOperationMetadata", + "id": 173230167, + "options": { + "proto3_optional": true + } + }, "httpErrorMessage": { "type": "string", "id": 202521945, @@ -65968,6 +67906,54 @@ } } }, + "PatchRegionCompositeHealthCheckRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "compositeHealthCheck": { + "type": "string", + "id": 466984989, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "compositeHealthCheckResource": { + "type": "CompositeHealthCheck", + "id": 132195824, + "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 + } + } + } + }, "PatchRegionHealthAggregationPolicyRequest": { "oneofs": { "_requestId": { @@ -66112,6 +68098,54 @@ } } }, + "PatchRegionHealthSourceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "healthSource": { + "type": "string", + "id": 376521566, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "healthSourceResource": { + "type": "HealthSource", + "id": 357735375, + "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 + } + } + } + }, "PatchRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { @@ -73792,6 +75826,25 @@ } } }, + "ReservationSlotsGetVersionRequest": { + "fields": { + "sbomSelections": { + "rule": "repeated", + "type": "string", + "id": 69155705 + } + }, + "nested": { + "SbomSelections": { + "values": { + "UNDEFINED_SBOM_SELECTIONS": 0, + "SBOM_SELECTION_CURRENT": 423856692, + "SBOM_SELECTION_TARGET": 152837462, + "SBOM_SELECTION_UNSPECIFIED": 379615858 + } + } + } + }, "ReservationSlotsListResponse": { "oneofs": { "_id": { @@ -74196,6 +76249,25 @@ } } }, + "ReservationSubBlocksGetVersionRequest": { + "fields": { + "sbomSelections": { + "rule": "repeated", + "type": "string", + "id": 69155705 + } + }, + "nested": { + "SbomSelections": { + "values": { + "UNDEFINED_SBOM_SELECTIONS": 0, + "SBOM_SELECTION_CURRENT": 423856692, + "SBOM_SELECTION_TARGET": 152837462, + "SBOM_SELECTION_UNSPECIFIED": 379615858 + } + } + } + }, "ReservationSubBlocksListResponse": { "oneofs": { "_id": { @@ -75731,6 +77803,11 @@ "acceleratorTopology" ] }, + "_acceleratorTopologyMode": { + "oneof": [ + "acceleratorTopologyMode" + ] + }, "_maxTopologyDistance": { "oneof": [ "maxTopologyDistance" @@ -75750,6 +77827,13 @@ "proto3_optional": true } }, + "acceleratorTopologyMode": { + "type": "string", + "id": 284293791, + "options": { + "proto3_optional": true + } + }, "maxTopologyDistance": { "type": "string", "id": 7521706, @@ -75766,6 +77850,13 @@ } }, "nested": { + "AcceleratorTopologyMode": { + "values": { + "UNDEFINED_ACCELERATOR_TOPOLOGY_MODE": 0, + "AUTO_CONNECT": 491872826, + "PROVISION_ONLY": 399134966 + } + }, "MaxTopologyDistance": { "values": { "UNDEFINED_MAX_TOPOLOGY_DISTANCE": 0, @@ -81721,6 +83812,11 @@ "endpoint" ] }, + "_endpointWithId": { + "oneof": [ + "endpointWithId" + ] + }, "_propagatedConnectionCount": { "oneof": [ "propagatedConnectionCount" @@ -81752,6 +83848,13 @@ "proto3_optional": true } }, + "endpointWithId": { + "type": "string", + "id": 444867210, + "options": { + "proto3_optional": true + } + }, "natIps": { "rule": "repeated", "type": "string", @@ -81800,6 +83903,11 @@ "connectionLimit" ] }, + "_endpointUrl": { + "oneof": [ + "endpointUrl" + ] + }, "_networkUrl": { "oneof": [ "networkUrl" @@ -81819,6 +83927,13 @@ "proto3_optional": true } }, + "endpointUrl": { + "type": "string", + "id": 223428549, + "options": { + "proto3_optional": true + } + }, "networkUrl": { "type": "string", "id": 207194078, @@ -94155,7 +96270,89 @@ } } }, - "TestIamPermissionsInstantSnapshotRequest": { + "TestIamPermissionsInstantSnapshotRequest": { + "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" + } + } + } + }, + "TestIamPermissionsInterconnectAttachmentGroupRequest": { + "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" + } + } + } + }, + "TestIamPermissionsInterconnectGroupRequest": { + "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" + } + } + } + }, + "TestIamPermissionsLicenseCodeRequest": { "fields": { "project": { "type": "string", @@ -94177,17 +96374,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsInterconnectAttachmentGroupRequest": { + "TestIamPermissionsLicenseRequest": { "fields": { "project": { "type": "string", @@ -94212,7 +96402,7 @@ } } }, - "TestIamPermissionsInterconnectGroupRequest": { + "TestIamPermissionsMachineImageRequest": { "fields": { "project": { "type": "string", @@ -94237,7 +96427,7 @@ } } }, - "TestIamPermissionsLicenseCodeRequest": { + "TestIamPermissionsNetworkAttachmentRequest": { "fields": { "project": { "type": "string", @@ -94246,27 +96436,9 @@ "(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" - } - } - } - }, - "TestIamPermissionsLicenseRequest": { - "fields": { - "project": { + "region": { "type": "string", - "id": 227560217, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -94287,7 +96459,7 @@ } } }, - "TestIamPermissionsMachineImageRequest": { + "TestIamPermissionsNetworkEndpointGroupRequest": { "fields": { "project": { "type": "string", @@ -94309,10 +96481,17 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "TestIamPermissionsNetworkAttachmentRequest": { + "TestIamPermissionsNetworkFirewallPolicyRequest": { "fields": { "project": { "type": "string", @@ -94321,13 +96500,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "resource": { "type": "string", "id": 195806222, @@ -94344,7 +96516,7 @@ } } }, - "TestIamPermissionsNetworkEndpointGroupRequest": { + "TestIamPermissionsNodeGroupRequest": { "fields": { "project": { "type": "string", @@ -94376,7 +96548,7 @@ } } }, - "TestIamPermissionsNetworkFirewallPolicyRequest": { + "TestIamPermissionsNodeTemplateRequest": { "fields": { "project": { "type": "string", @@ -94385,6 +96557,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -94401,7 +96580,7 @@ } } }, - "TestIamPermissionsNodeGroupRequest": { + "TestIamPermissionsPacketMirroringRequest": { "fields": { "project": { "type": "string", @@ -94410,6 +96589,13 @@ "(google.api.field_behavior)": "REQUIRED" } }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, "resource": { "type": "string", "id": 195806222, @@ -94423,17 +96609,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } } } }, - "TestIamPermissionsNodeTemplateRequest": { + "TestIamPermissionsRegionAutoscalerRequest": { "fields": { "project": { "type": "string", @@ -94465,7 +96644,7 @@ } } }, - "TestIamPermissionsPacketMirroringRequest": { + "TestIamPermissionsRegionBackendServiceRequest": { "fields": { "project": { "type": "string", @@ -94497,7 +96676,7 @@ } } }, - "TestIamPermissionsRegionAutoscalerRequest": { + "TestIamPermissionsRegionCompositeHealthCheckRequest": { "fields": { "project": { "type": "string", @@ -94529,7 +96708,7 @@ } } }, - "TestIamPermissionsRegionBackendServiceRequest": { + "TestIamPermissionsRegionDiskRequest": { "fields": { "project": { "type": "string", @@ -94561,7 +96740,7 @@ } } }, - "TestIamPermissionsRegionDiskRequest": { + "TestIamPermissionsRegionHealthAggregationPolicyRequest": { "fields": { "project": { "type": "string", @@ -94593,7 +96772,7 @@ } } }, - "TestIamPermissionsRegionHealthAggregationPolicyRequest": { + "TestIamPermissionsRegionHealthCheckRequest": { "fields": { "project": { "type": "string", @@ -94625,7 +96804,7 @@ } } }, - "TestIamPermissionsRegionHealthCheckRequest": { + "TestIamPermissionsRegionHealthCheckServiceRequest": { "fields": { "project": { "type": "string", @@ -94657,7 +96836,7 @@ } } }, - "TestIamPermissionsRegionHealthCheckServiceRequest": { + "TestIamPermissionsRegionHealthSourceRequest": { "fields": { "project": { "type": "string", @@ -95910,6 +98089,11 @@ }, "UpdateInstanceRequest": { "oneofs": { + "_discardLocalSsd": { + "oneof": [ + "discardLocalSsd" + ] + }, "_minimalAction": { "oneof": [ "minimalAction" @@ -95927,6 +98111,13 @@ } }, "fields": { + "discardLocalSsd": { + "type": "bool", + "id": 319517903, + "options": { + "proto3_optional": true + } + }, "instance": { "type": "string", "id": 18257045, @@ -111703,6 +113894,158 @@ } } }, + "RegionCompositeHealthChecks": { + "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": "AggregatedListRegionCompositeHealthChecksRequest", + "responseType": "CompositeHealthCheckAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/compositeHealthChecks", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/compositeHealthChecks" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Delete": { + "requestType": "DeleteRegionCompositeHealthCheckRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}", + "(google.api.method_signature)": "project,region,composite_health_check", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionCompositeHealthCheckRequest", + "responseType": "CompositeHealthCheck", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}", + "(google.api.method_signature)": "project,region,composite_health_check" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check" + } + ] + }, + "Insert": { + "requestType": "InsertRegionCompositeHealthCheckRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "composite_health_check_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks", + "(google.api.method_signature)": "project,region,composite_health_check_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "composite_health_check_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionCompositeHealthChecksRequest", + "responseType": "CompositeHealthCheckList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "Patch": { + "requestType": "PatchRegionCompositeHealthCheckRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "composite_health_check_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}", + "(google.api.method_signature)": "project,region,composite_health_check,composite_health_check_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "composite_health_check_resource", + "patch": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{composite_health_check}" + } + }, + { + "(google.api.method_signature)": "project,region,composite_health_check,composite_health_check_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionCompositeHealthCheckRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/compositeHealthChecks/{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}/compositeHealthChecks/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionDiskTypes": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -112291,6 +114634,24 @@ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" }, "methods": { + "AggregatedList": { + "requestType": "AggregatedListRegionHealthCheckServicesRequest", + "responseType": "HealthCheckServiceAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/healthCheckServices", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/healthCheckServices" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteRegionHealthCheckServiceRequest", "responseType": "Operation", @@ -112577,6 +114938,158 @@ } } }, + "RegionHealthSources": { + "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": "AggregatedListRegionHealthSourcesRequest", + "responseType": "HealthSourceAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/healthSources", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/healthSources" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Delete": { + "requestType": "DeleteRegionHealthSourceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}", + "(google.api.method_signature)": "project,region,health_source", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}" + } + }, + { + "(google.api.method_signature)": "project,region,health_source" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetRegionHealthSourceRequest", + "responseType": "HealthSource", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}", + "(google.api.method_signature)": "project,region,health_source" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}" + } + }, + { + "(google.api.method_signature)": "project,region,health_source" + } + ] + }, + "Insert": { + "requestType": "InsertRegionHealthSourceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "health_source_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/healthSources", + "(google.api.method_signature)": "project,region,health_source_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "health_source_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/healthSources" + } + }, + { + "(google.api.method_signature)": "project,region,health_source_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListRegionHealthSourcesRequest", + "responseType": "HealthSourceList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/healthSources", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/healthSources" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "Patch": { + "requestType": "PatchRegionHealthSourceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "health_source_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}", + "(google.api.method_signature)": "project,region,health_source,health_source_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "health_source_resource", + "patch": "/compute/v1/projects/{project}/regions/{region}/healthSources/{health_source}" + } + }, + { + "(google.api.method_signature)": "project,region,health_source,health_source_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsRegionHealthSourceRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/healthSources/{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}/healthSources/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "RegionInstanceGroupManagers": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -114031,6 +116544,24 @@ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" }, "methods": { + "AggregatedList": { + "requestType": "AggregatedListRegionNotificationEndpointsRequest", + "responseType": "NotificationEndpointAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/notificationEndpoints", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/notificationEndpoints" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteRegionNotificationEndpointRequest", "responseType": "Operation", @@ -115411,6 +117942,30 @@ } ] }, + "GetVersion": { + "requestType": "GetVersionReservationSlotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "reservation_slots_get_version_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}/getVersion", + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slots_get_version_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "reservation_slots_get_version_request_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}/getVersion" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slots_get_version_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "List": { "requestType": "ListReservationSlotsRequest", "responseType": "ReservationSlotsListResponse", @@ -115497,6 +118052,30 @@ } ] }, + "GetVersion": { + "requestType": "GetVersionReservationSubBlockRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "reservation_sub_blocks_get_version_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/getVersion", + "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_get_version_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "reservation_sub_blocks_get_version_request_resource", + "post": "/compute/v1/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/getVersion" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_get_version_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "List": { "requestType": "ListReservationSubBlocksRequest", "responseType": "ReservationSubBlocksListResponse", @@ -125809,6 +128388,103 @@ } } }, + "AggregatedListRegionHealthCheckServicesRequest": { + "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 + } + } + } + }, "AggregatedListRegionHealthSourcesRequest": { "oneofs": { "_filter": { @@ -126003,6 +128679,103 @@ } } }, + "AggregatedListRegionNotificationEndpointsRequest": { + "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": { @@ -132233,6 +135006,11 @@ }, "BackendServiceDynamicForwarding": { "oneofs": { + "_forwardProxy": { + "oneof": [ + "forwardProxy" + ] + }, "_ipPortSelection": { "oneof": [ "ipPortSelection" @@ -132240,6 +135018,13 @@ } }, "fields": { + "forwardProxy": { + "type": "BackendServiceDynamicForwardingForwardProxy", + "id": 483776628, + "options": { + "proto3_optional": true + } + }, "ipPortSelection": { "type": "BackendServiceDynamicForwardingIpPortSelection", "id": 527934822, @@ -132249,6 +135034,45 @@ } } }, + "BackendServiceDynamicForwardingForwardProxy": { + "oneofs": { + "_enabled": { + "oneof": [ + "enabled" + ] + }, + "_proxyMode": { + "oneof": [ + "proxyMode" + ] + } + }, + "fields": { + "enabled": { + "type": "bool", + "id": 1018689, + "options": { + "proto3_optional": true + } + }, + "proxyMode": { + "type": "string", + "id": 286358740, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "ProxyMode": { + "values": { + "UNDEFINED_PROXY_MODE": 0, + "CLOUD_RUN": 214253889, + "DIRECT_FORWARDING": 492448019 + } + } + } + }, "BackendServiceDynamicForwardingIpPortSelection": { "oneofs": { "_enabled": { @@ -152559,6 +155383,148 @@ } } }, + "GetVersionOperationMetadata": { + "oneofs": { + "_inlineSbomInfo": { + "oneof": [ + "inlineSbomInfo" + ] + } + }, + "fields": { + "inlineSbomInfo": { + "type": "GetVersionOperationMetadataSbomInfo", + "id": 7079706, + "options": { + "proto3_optional": true + } + } + } + }, + "GetVersionOperationMetadataSbomInfo": { + "fields": { + "currentComponentVersions": { + "keyType": "string", + "type": "string", + "id": 273325091 + }, + "targetComponentVersions": { + "keyType": "string", + "type": "string", + "id": 345997579 + } + } + }, + "GetVersionReservationSlotRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "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" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "reservationSlot": { + "type": "string", + "id": 277470865, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSlotsGetVersionRequestResource": { + "type": "ReservationSlotsGetVersionRequest", + "id": 335316011, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, + "GetVersionReservationSubBlockRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "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" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "reservationSubBlock": { + "type": "string", + "id": 22750491, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "reservationSubBlocksGetVersionRequestResource": { + "type": "ReservationSubBlocksGetVersionRequest", + "id": 223034677, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "GetVpnGatewayRequest": { "fields": { "project": { @@ -153366,6 +156332,11 @@ } }, "fields": { + "locationRolloutStatus": { + "keyType": "string", + "type": "GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus", + "id": 278036490 + }, "rollout": { "type": "string", "id": 303366577, @@ -153403,6 +156374,36 @@ } } }, + "GlobalVmExtensionPolicyRolloutOperationRolloutStatusRolloutMetadataLocationRolloutStatus": { + "oneofs": { + "_state": { + "oneof": [ + "state" + ] + } + }, + "fields": { + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "LOCATION_ROLLOUT_STATE_COMPLETED": 134765221, + "LOCATION_ROLLOUT_STATE_FAILED": 53286403, + "LOCATION_ROLLOUT_STATE_NOT_STARTED": 471817423, + "LOCATION_ROLLOUT_STATE_SKIPPED": 54074890, + "LOCATION_ROLLOUT_STATE_UNSPECIFIED": 242367761 + } + } + } + }, "GroupMaintenanceInfo": { "oneofs": { "_instanceMaintenanceOngoingCount": { @@ -154671,237 +157672,364 @@ } } }, - "HealthCheckLogConfig": { - "oneofs": { - "_enable": { - "oneof": [ - "enable" - ] - } - }, - "fields": { - "enable": { - "type": "bool", - "id": 311764355, - "options": { - "proto3_optional": true - } - } - } - }, - "HealthCheckReference": { - "oneofs": { - "_healthCheck": { - "oneof": [ - "healthCheck" - ] - } - }, - "fields": { - "healthCheck": { - "type": "string", - "id": 308876645, - "options": { - "proto3_optional": true - } - } - } - }, - "HealthCheckService": { - "oneofs": { - "_creationTimestamp": { - "oneof": [ - "creationTimestamp" - ] - }, - "_description": { - "oneof": [ - "description" - ] - }, - "_fingerprint": { - "oneof": [ - "fingerprint" - ] - }, - "_healthStatusAggregationPolicy": { - "oneof": [ - "healthStatusAggregationPolicy" - ] - }, - "_healthStatusAggregationStrategy": { - "oneof": [ - "healthStatusAggregationStrategy" - ] - }, - "_id": { - "oneof": [ - "id" - ] - }, - "_kind": { - "oneof": [ - "kind" - ] - }, - "_name": { - "oneof": [ - "name" - ] - }, - "_region": { - "oneof": [ - "region" - ] - }, - "_selfLink": { - "oneof": [ - "selfLink" - ] - } - }, - "fields": { - "creationTimestamp": { - "type": "string", - "id": 30525366, - "options": { - "proto3_optional": true - } - }, - "description": { - "type": "string", - "id": 422937596, - "options": { - "proto3_optional": true - } - }, - "fingerprint": { - "type": "string", - "id": 234678500, - "options": { - "proto3_optional": true - } - }, - "healthChecks": { - "rule": "repeated", - "type": "string", - "id": 448370606 - }, - "healthStatusAggregationPolicy": { - "type": "string", - "id": 253163129, - "options": { - "proto3_optional": true - } - }, - "healthStatusAggregationStrategy": { - "type": "string", - "id": 254394106, - "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 - } - }, - "networkEndpointGroups": { - "rule": "repeated", - "type": "string", - "id": 29346733 - }, - "notificationEndpoints": { - "rule": "repeated", - "type": "string", - "id": 406728490 - }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "proto3_optional": true - } - }, - "selfLink": { - "type": "string", - "id": 456214797, - "options": { - "proto3_optional": true - } - } - }, - "nested": { - "HealthStatusAggregationPolicy": { - "values": { - "UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY": 0, - "AND": 64951, - "NO_AGGREGATION": 426445124 - } - }, - "HealthStatusAggregationStrategy": { - "values": { - "UNDEFINED_HEALTH_STATUS_AGGREGATION_STRATEGY": 0 - } - } - } - }, - "HealthCheckServiceReference": { + "HealthCheckLogConfig": { + "oneofs": { + "_enable": { + "oneof": [ + "enable" + ] + } + }, + "fields": { + "enable": { + "type": "bool", + "id": 311764355, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthCheckReference": { + "oneofs": { + "_healthCheck": { + "oneof": [ + "healthCheck" + ] + } + }, + "fields": { + "healthCheck": { + "type": "string", + "id": 308876645, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthCheckService": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_fingerprint": { + "oneof": [ + "fingerprint" + ] + }, + "_healthStatusAggregationPolicy": { + "oneof": [ + "healthStatusAggregationPolicy" + ] + }, + "_healthStatusAggregationStrategy": { + "oneof": [ + "healthStatusAggregationStrategy" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "fingerprint": { + "type": "string", + "id": 234678500, + "options": { + "proto3_optional": true + } + }, + "healthChecks": { + "rule": "repeated", + "type": "string", + "id": 448370606 + }, + "healthStatusAggregationPolicy": { + "type": "string", + "id": 253163129, + "options": { + "proto3_optional": true + } + }, + "healthStatusAggregationStrategy": { + "type": "string", + "id": 254394106, + "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 + } + }, + "networkEndpointGroups": { + "rule": "repeated", + "type": "string", + "id": 29346733 + }, + "notificationEndpoints": { + "rule": "repeated", + "type": "string", + "id": 406728490 + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "HealthStatusAggregationPolicy": { + "values": { + "UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY": 0, + "AND": 64951, + "NO_AGGREGATION": 426445124 + } + }, + "HealthStatusAggregationStrategy": { + "values": { + "UNDEFINED_HEALTH_STATUS_AGGREGATION_STRATEGY": 0 + } + } + } + }, + "HealthCheckServiceAggregatedList": { + "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": "HealthCheckServicesScopedList", + "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 + } + } + } + }, + "HealthCheckServiceReference": { + "oneofs": { + "_healthCheckService": { + "oneof": [ + "healthCheckService" + ] + } + }, + "fields": { + "healthCheckService": { + "type": "string", + "id": 408374747, + "options": { + "proto3_optional": true + } + } + } + }, + "HealthCheckServicesList": { + "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": "HealthCheckService", + "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 + } + } + } + }, + "HealthCheckServicesScopedList": { "oneofs": { - "_healthCheckService": { - "oneof": [ - "healthCheckService" - ] - } - }, - "fields": { - "healthCheckService": { - "type": "string", - "id": 408374747, - "options": { - "proto3_optional": true - } - } - } - }, - "HealthCheckServicesList": { - "oneofs": { - "_id": { - "oneof": [ - "id" - ] - }, - "_kind": { - "oneof": [ - "kind" - ] - }, - "_nextPageToken": { - "oneof": [ - "nextPageToken" - ] - }, - "_selfLink": { - "oneof": [ - "selfLink" - ] - }, "_warning": { "oneof": [ "warning" @@ -154909,38 +158037,10 @@ } }, "fields": { - "id": { - "type": "string", - "id": 3355, - "options": { - "proto3_optional": true - } - }, - "items": { + "resources": { "rule": "repeated", "type": "HealthCheckService", - "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 - } + "id": 164412965 }, "warning": { "type": "Warning", @@ -163433,6 +166533,11 @@ "proto3_optional": true } }, + "appliedAcceleratorTopologies": { + "rule": "repeated", + "type": "InstanceGroupManagerStatusAcceleratorTopology", + "id": 481392547 + }, "autoscaler": { "type": "string", "id": 517258967, @@ -163477,6 +166582,91 @@ } } }, + "InstanceGroupManagerStatusAcceleratorTopology": { + "oneofs": { + "_acceleratorTopology": { + "oneof": [ + "acceleratorTopology" + ] + }, + "_state": { + "oneof": [ + "state" + ] + }, + "_stateDetails": { + "oneof": [ + "stateDetails" + ] + } + }, + "fields": { + "acceleratorTopology": { + "type": "string", + "id": 389323203, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + }, + "stateDetails": { + "type": "InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails", + "id": 95566996, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "State": { + "values": { + "UNDEFINED_STATE": 0, + "ACTIVATING": 378825968, + "ACTIVE": 314733318, + "DEACTIVATING": 57182257, + "FAILED": 455706685, + "INCOMPLETE": 11941214, + "REACTIVATING": 253727587 + } + } + } + }, + "InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails": { + "oneofs": { + "_error": { + "oneof": [ + "error" + ] + }, + "_timestamp": { + "oneof": [ + "timestamp" + ] + } + }, + "fields": { + "error": { + "type": "Error", + "id": 96784904, + "options": { + "proto3_optional": true + } + }, + "timestamp": { + "type": "string", + "id": 55126294, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerStatusAllInstancesConfig": { "oneofs": { "_currentRevision": { @@ -192994,6 +196184,82 @@ } } }, + "NotificationEndpointAggregatedList": { + "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": "NotificationEndpointsScopedList", + "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 + } + } + } + }, "NotificationEndpointGrpcSettings": { "oneofs": { "_authority": { @@ -193131,6 +196397,29 @@ } } }, + "NotificationEndpointsScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "resources": { + "rule": "repeated", + "type": "NotificationEndpoint", + "id": 164412965 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "Operation": { "oneofs": { "_clientOperationId": { @@ -193158,6 +196447,11 @@ "error" ] }, + "_getVersionOperationMetadata": { + "oneof": [ + "getVersionOperationMetadata" + ] + }, "_httpErrorMessage": { "oneof": [ "httpErrorMessage" @@ -193295,6 +196589,13 @@ "proto3_optional": true } }, + "getVersionOperationMetadata": { + "type": "GetVersionOperationMetadata", + "id": 173230167, + "options": { + "proto3_optional": true + } + }, "httpErrorMessage": { "type": "string", "id": 202521945, @@ -204680,6 +207981,25 @@ } } }, + "ReservationSlotsGetVersionRequest": { + "fields": { + "sbomSelections": { + "rule": "repeated", + "type": "string", + "id": 69155705 + } + }, + "nested": { + "SbomSelections": { + "values": { + "UNDEFINED_SBOM_SELECTIONS": 0, + "SBOM_SELECTION_CURRENT": 423856692, + "SBOM_SELECTION_TARGET": 152837462, + "SBOM_SELECTION_UNSPECIFIED": 379615858 + } + } + } + }, "ReservationSlotsListResponse": { "oneofs": { "_id": { @@ -205084,6 +208404,25 @@ } } }, + "ReservationSubBlocksGetVersionRequest": { + "fields": { + "sbomSelections": { + "rule": "repeated", + "type": "string", + "id": 69155705 + } + }, + "nested": { + "SbomSelections": { + "values": { + "UNDEFINED_SBOM_SELECTIONS": 0, + "SBOM_SELECTION_CURRENT": 423856692, + "SBOM_SELECTION_TARGET": 152837462, + "SBOM_SELECTION_UNSPECIFIED": 379615858 + } + } + } + }, "ReservationSubBlocksListResponse": { "oneofs": { "_id": { @@ -230588,6 +233927,11 @@ }, "UpdateInstanceRequest": { "oneofs": { + "_discardLocalSsd": { + "oneof": [ + "discardLocalSsd" + ] + }, "_minimalAction": { "oneof": [ "minimalAction" @@ -230605,6 +233949,13 @@ } }, "fields": { + "discardLocalSsd": { + "type": "bool", + "id": 319517903, + "options": { + "proto3_optional": true + } + }, "instance": { "type": "string", "id": 18257045, @@ -248978,6 +252329,24 @@ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" }, "methods": { + "AggregatedList": { + "requestType": "AggregatedListRegionHealthCheckServicesRequest", + "responseType": "HealthCheckServiceAggregatedList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/aggregated/healthCheckServices", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/aggregated/healthCheckServices" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteRegionHealthCheckServiceRequest", "responseType": "Operation", @@ -251688,6 +255057,24 @@ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" }, "methods": { + "AggregatedList": { + "requestType": "AggregatedListRegionNotificationEndpointsRequest", + "responseType": "NotificationEndpointAggregatedList", + "options": { + "(google.api.http).get": "/compute/beta/projects/{project}/aggregated/notificationEndpoints", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/beta/projects/{project}/aggregated/notificationEndpoints" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteRegionNotificationEndpointRequest", "responseType": "Operation", @@ -253434,6 +256821,30 @@ } ] }, + "GetVersion": { + "requestType": "GetVersionReservationSlotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "reservation_slots_get_version_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}/getVersion", + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slots_get_version_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "reservation_slots_get_version_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservation_slot}/getVersion" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_slot,reservation_slots_get_version_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "List": { "requestType": "ListReservationSlotsRequest", "responseType": "ReservationSlotsListResponse", @@ -253520,6 +256931,30 @@ } ] }, + "GetVersion": { + "requestType": "GetVersionReservationSubBlockRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "reservation_sub_blocks_get_version_request_resource", + "(google.api.http).post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/getVersion", + "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_get_version_request_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "reservation_sub_blocks_get_version_request_resource", + "post": "/compute/beta/projects/{project}/zones/{zone}/{parent_name=reservations/*/reservationBlocks/*}/reservationSubBlocks/{reservation_sub_block}/getVersion" + } + }, + { + "(google.api.method_signature)": "project,zone,parent_name,reservation_sub_block,reservation_sub_blocks_get_version_request_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "List": { "requestType": "ListReservationSubBlocksRequest", "responseType": "ReservationSubBlocksListResponse", diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.update.js b/packages/google-cloud-compute/samples/generated/v1/instances.update.js index 9330288a442..7b61b6a0481 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.update.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.update.js @@ -28,6 +28,11 @@ function main(instance, instanceResource, project, zone) { * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ + /** + * Whether to discard local SSDs from the instance during restart + * default value is false. + */ + // const discardLocalSsd = true /** * Name of the instance resource to update. */ diff --git a/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.aggregated_list.js new file mode 100644 index 00000000000..ead0aa998ee --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.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_RegionCompositeHealthChecks_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 {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + 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_RegionCompositeHealthChecks_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_composite_health_checks.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.delete.js new file mode 100644 index 00000000000..84593d6fe90 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.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(compositeHealthCheck, project, region) { + // [START compute_v1_generated_RegionCompositeHealthChecks_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 CompositeHealthCheck resource to delete. + */ + // const compositeHealthCheck = '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 {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callDelete() { + // Construct request + const request = { + compositeHealthCheck, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionCompositeHealthChecks_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_composite_health_checks.get.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.get.js new file mode 100644 index 00000000000..a1a2b100cce --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.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(compositeHealthCheck, project, region) { + // [START compute_v1_generated_RegionCompositeHealthChecks_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 CompositeHealthCheck resource to return. + */ + // const compositeHealthCheck = '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 {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callGet() { + // Construct request + const request = { + compositeHealthCheck, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionCompositeHealthChecks_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_composite_health_checks.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.insert.js new file mode 100644 index 00000000000..528f9fcb238 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.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(compositeHealthCheckResource, project, region) { + // [START compute_v1_generated_RegionCompositeHealthChecks_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 compositeHealthCheckResource = {} + /** + * 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 {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callInsert() { + // Construct request + const request = { + compositeHealthCheckResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionCompositeHealthChecks_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_composite_health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.list.js new file mode 100644 index 00000000000..1f6c743b1c3 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.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_RegionCompositeHealthChecks_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 {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + 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_RegionCompositeHealthChecks_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_composite_health_checks.patch.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.patch.js new file mode 100644 index 00000000000..33c5579cdd4 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.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(compositeHealthCheck, compositeHealthCheckResource, project, region) { + // [START compute_v1_generated_RegionCompositeHealthChecks_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 CompositeHealthCheck to update. The name + * must be 1-63 characters long, and comply with RFC1035. + */ + // const compositeHealthCheck = 'abc123' + /** + * The body resource for this request + */ + // const compositeHealthCheckResource = {} + /** + * 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 {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + async function callPatch() { + // Construct request + const request = { + compositeHealthCheck, + compositeHealthCheckResource, + project, + region, + }; + + // Run request + const response = await computeClient.patch(request); + console.log(response); + } + + callPatch(); + // [END compute_v1_generated_RegionCompositeHealthChecks_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_composite_health_checks.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.test_iam_permissions.js new file mode 100644 index 00000000000..d0e85c47d31 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_composite_health_checks.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_RegionCompositeHealthChecks_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 {RegionCompositeHealthChecksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCompositeHealthChecksClient(); + + 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_RegionCompositeHealthChecks_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.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.aggregated_list.js new file mode 100644 index 00000000000..fea82984a47 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.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_RegionHealthCheckServices_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 {RegionHealthCheckServicesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthCheckServicesClient(); + + 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_RegionHealthCheckServices_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_sources.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.aggregated_list.js new file mode 100644 index 00000000000..837721bc556 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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_RegionHealthSources_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 {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + 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_RegionHealthSources_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_sources.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.delete.js new file mode 100644 index 00000000000..ae6f0e93e02 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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(healthSource, project, region) { + // [START compute_v1_generated_RegionHealthSources_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 HealthSource resource to delete. + */ + // const healthSource = '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 {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + async function callDelete() { + // Construct request + const request = { + healthSource, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_RegionHealthSources_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_sources.get.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.get.js new file mode 100644 index 00000000000..6cb93519daf --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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(healthSource, project, region) { + // [START compute_v1_generated_RegionHealthSources_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 HealthSource resource to return. + */ + // const healthSource = '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 {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + async function callGet() { + // Construct request + const request = { + healthSource, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_RegionHealthSources_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_sources.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.insert.js new file mode 100644 index 00000000000..959d7a56537 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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(healthSourceResource, project, region) { + // [START compute_v1_generated_RegionHealthSources_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 healthSourceResource = {} + /** + * 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 {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + async function callInsert() { + // Construct request + const request = { + healthSourceResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_RegionHealthSources_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_sources.list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.list.js new file mode 100644 index 00000000000..7b3523085aa --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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_RegionHealthSources_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 {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + 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_RegionHealthSources_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_sources.patch.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.patch.js new file mode 100644 index 00000000000..2e72f9602d9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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(healthSource, healthSourceResource, project, region) { + // [START compute_v1_generated_RegionHealthSources_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 HealthSource to update. The name + * must be 1-63 characters long, and comply with RFC1035. + */ + // const healthSource = 'abc123' + /** + * The body resource for this request + */ + // const healthSourceResource = {} + /** + * 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 {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + async function callPatch() { + // Construct request + const request = { + healthSource, + healthSourceResource, + project, + region, + }; + + // Run request + const response = await computeClient.patch(request); + console.log(response); + } + + callPatch(); + // [END compute_v1_generated_RegionHealthSources_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_sources.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.test_iam_permissions.js new file mode 100644 index 00000000000..e3e279288cf --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_sources.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_RegionHealthSources_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 {RegionHealthSourcesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionHealthSourcesClient(); + + 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_RegionHealthSources_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_notification_endpoints.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.aggregated_list.js new file mode 100644 index 00000000000..23279cbcb23 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.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_RegionNotificationEndpoints_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 {RegionNotificationEndpointsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionNotificationEndpointsClient(); + + 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_RegionNotificationEndpoints_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/reservation_slots.get_version.js b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.get_version.js new file mode 100644 index 00000000000..73e25618e16 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/reservation_slots.get_version.js @@ -0,0 +1,97 @@ +// 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, reservationSlotsGetVersionRequestResource, zone) { + // [START compute_v1_generated_ReservationSlots_GetVersion_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. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + // const parentName = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The name of the reservation slot. + * Name should conform to RFC1035 or be a resource ID. + */ + // const reservationSlot = 'abc123' + /** + * The body resource for this request + */ + // const reservationSlotsGetVersionRequestResource = {} + /** + * Name of the zone for this request. Zone name should conform to RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callGetVersion() { + // Construct request + const request = { + parentName, + project, + reservationSlot, + reservationSlotsGetVersionRequestResource, + zone, + }; + + // Run request + const response = await computeClient.getVersion(request); + console.log(response); + } + + callGetVersion(); + // [END compute_v1_generated_ReservationSlots_GetVersion_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_sub_blocks.get_version.js b/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.get_version.js new file mode 100644 index 00000000000..7aea8a1b889 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/reservation_sub_blocks.get_version.js @@ -0,0 +1,97 @@ +// 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, reservationSubBlock, reservationSubBlocksGetVersionRequestResource, zone) { + // [START compute_v1_generated_ReservationSubBlocks_GetVersion_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. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + // const parentName = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. + */ + // const reservationSubBlock = 'abc123' + /** + * The body resource for this request + */ + // const reservationSubBlocksGetVersionRequestResource = {} + /** + * Name of the zone for this request. Zone name should conform to RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSubBlocksClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new ReservationSubBlocksClient(); + + async function callGetVersion() { + // Construct request + const request = { + parentName, + project, + reservationSubBlock, + reservationSubBlocksGetVersionRequestResource, + zone, + }; + + // Run request + const response = await computeClient.getVersion(request); + console.log(response); + } + + callGetVersion(); + // [END compute_v1_generated_ReservationSubBlocks_GetVersion_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 24236fc37b5..f70cebd0071 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 @@ -14009,8 +14009,8 @@ "language": "JAVASCRIPT", "segments": [ { - "start": 53, - "end": 99, + "start": 58, + "end": 104, "type": "FULL" } ], @@ -14019,6 +14019,10 @@ "fullName": "google.cloud.compute.v1.Instances.Update", "async": true, "parameters": [ + { + "name": "discard_local_ssd", + "type": "TYPE_BOOL" + }, { "name": "instance", "type": "TYPE_STRING" @@ -27032,68 +27036,80 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_AddResourcePolicies_async", - "title": "AcceleratorTypes addResourcePolicies Sample", + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.", + "description": " Retrieves the list of all CompositeHealthCheck resources (all regional) available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, - "file": "region_disks.add_resource_policies.js", + "file": "region_composite_health_checks.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 155, "type": "FULL" } ], "clientMethod": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.AggregatedList", "async": true, "parameters": [ { - "name": "disk", + "name": "filter", "type": "TYPE_STRING" }, { - "name": "project", - "type": "TYPE_STRING" + "name": "include_all_scopes", + "type": "TYPE_BOOL" }, { - "name": "region", + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", "type": "TYPE_STRING" }, { - "name": "region_disks_add_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksAddResourcePoliciesRequest" + "name": "page_token", + "type": "TYPE_STRING" }, { - "name": "request_id", + "name": "project", "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.CompositeHealthCheckAggregatedList", "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.AggregatedList", "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionDisks_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Delete_async", + "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Bulk create a set of disks.", + "description": " Deletes the specified CompositeHealthCheck in the given region", "canonical": true, - "file": "region_disks.bulk_insert.js", + "file": "region_composite_health_checks.delete.js", "language": "JAVASCRIPT", "segments": [ { @@ -27103,13 +27119,13 @@ } ], "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Delete", "async": true, "parameters": [ { - "name": "bulk_insert_disk_resource_resource", - "type": ".google.cloud.compute.v1.BulkInsertDiskResource" + "name": "composite_health_check", + "type": "TYPE_STRING" }, { "name": "project", @@ -27126,41 +27142,41 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Delete", "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionDisks_CreateSnapshot_async", - "title": "AcceleratorTypes createSnapshot Sample", + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Get_async", + "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.", + "description": " Returns the specified CompositeHealthCheck resource in the given region.", "canonical": true, - "file": "region_disks.create_snapshot.js", + "file": "region_composite_health_checks.get.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 63, "type": "FULL" } ], "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Get", "async": true, "parameters": [ { - "name": "disk", + "name": "composite_health_check", "type": "TYPE_STRING" }, { @@ -27170,38 +27186,30 @@ { "name": "region", "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1.Snapshot" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.CompositeHealthCheck", "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Get", "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionDisks_Delete_async", - "title": "AcceleratorTypes delete Sample", + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Insert_async", + "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete anysnapshots previously made from the disk. You must separatelydelete snapshots.", + "description": " Create a CompositeHealthCheck in the specified project in the given region using the parameters that are included in the request.", "canonical": true, - "file": "region_disks.delete.js", + "file": "region_composite_health_checks.insert.js", "language": "JAVASCRIPT", "segments": [ { @@ -27211,13 +27219,13 @@ } ], "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionDisks.Delete", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Insert", "async": true, "parameters": [ { - "name": "disk", - "type": "TYPE_STRING" + "name": "composite_health_check_resource", + "type": ".google.cloud.compute.v1.CompositeHealthCheck" }, { "name": "project", @@ -27234,41 +27242,53 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionDisks.Delete", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Insert", "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionDisks_Get_async", - "title": "AcceleratorTypes get Sample", + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_List_async", + "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Returns a specified regional persistent disk.", + "description": " Lists the CompositeHealthChecks for a project in the given region.", "canonical": true, - "file": "region_disks.get.js", + "file": "region_composite_health_checks.list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 145, "type": "FULL" } ], "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDisks.Get", + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.List", "async": true, "parameters": [ { - "name": "disk", + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", "type": "TYPE_STRING" }, { @@ -27278,46 +27298,54 @@ { "name": "region", "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.Disk", + "resultType": ".google.cloud.compute.v1.CompositeHealthCheckList", "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDisks.Get", + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.List", "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionDisks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Patch_async", + "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "description": " Updates the specified regional CompositeHealthCheck 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_disks.get_iam_policy.js", + "file": "region_composite_health_checks.patch.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 67, + "end": 83, "type": "FULL" } ], "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Patch", "async": true, "parameters": [ { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" + "name": "composite_health_check", + "type": "TYPE_STRING" + }, + { + "name": "composite_health_check_resource", + "type": ".google.cloud.compute.v1.CompositeHealthCheck" }, { "name": "project", @@ -27328,49 +27356,45 @@ "type": "TYPE_STRING" }, { - "name": "resource", + "name": "request_id", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.Policy", + "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Patch", "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionDisks_Insert_async", - "title": "AcceleratorTypes insert Sample", + "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", - "description": " Creates a persistent regional disk in the specified project using the data included in the request.", + "description": " Returns permissions that a caller has on the specified resource.", "canonical": true, - "file": "region_disks.insert.js", + "file": "region_composite_health_checks.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 81, + "end": 68, "type": "FULL" } ], "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionDisks.Insert", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.TestIamPermissions", "async": true, "parameters": [ - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1.Disk" - }, { "name": "project", "type": "TYPE_STRING" @@ -27380,86 +27404,78 @@ "type": "TYPE_STRING" }, { - "name": "request_id", + "name": "resource", "type": "TYPE_STRING" }, { - "name": "source_image", - "type": "TYPE_STRING" + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" + "shortName": "RegionCompositeHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" }, "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionDisks.Insert", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.TestIamPermissions", "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" + "shortName": "RegionCompositeHealthChecks", + "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionDisks_List_async", - "title": "AcceleratorTypes list Sample", + "regionTag": "compute_v1_generated_RegionDisks_AddResourcePolicies_async", + "title": "AcceleratorTypes addResourcePolicies Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of persistent disks contained within the specified region.", + "description": " Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.", "canonical": true, - "file": "region_disks.list.js", + "file": "region_disks.add_resource_policies.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 145, + "end": 82, "type": "FULL" } ], "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDisks.List", + "shortName": "AddResourcePolicies", + "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", "async": true, "parameters": [ { - "name": "filter", + "name": "disk", "type": "TYPE_STRING" }, { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", + "name": "project", "type": "TYPE_STRING" }, { - "name": "page_token", + "name": "region", "type": "TYPE_STRING" }, { - "name": "project", - "type": "TYPE_STRING" + "name": "region_disks_add_resource_policies_request_resource", + "type": ".google.cloud.compute.v1.RegionDisksAddResourcePoliciesRequest" }, { - "name": "region", + "name": "request_id", "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.DiskList", + "resultType": ".google.cloud.compute.v1.Operation", "client": { "shortName": "RegionDisksClient", "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDisks.List", + "shortName": "AddResourcePolicies", + "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27468,28 +27484,28 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_RemoveResourcePolicies_async", - "title": "AcceleratorTypes removeResourcePolicies Sample", + "regionTag": "compute_v1_generated_RegionDisks_BulkInsert_async", + "title": "AcceleratorTypes bulkInsert Sample", "origin": "API_DEFINITION", - "description": " Removes resource policies from a regional disk.", + "description": " Bulk create a set of disks.", "canonical": true, - "file": "region_disks.remove_resource_policies.js", + "file": "region_disks.bulk_insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 77, "type": "FULL" } ], "clientMethod": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", + "shortName": "BulkInsert", + "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", "async": true, "parameters": [ { - "name": "disk", - "type": "TYPE_STRING" + "name": "bulk_insert_disk_resource_resource", + "type": ".google.cloud.compute.v1.BulkInsertDiskResource" }, { "name": "project", @@ -27499,10 +27515,6 @@ "name": "region", "type": "TYPE_STRING" }, - { - "name": "region_disks_remove_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksRemoveResourcePoliciesRequest" - }, { "name": "request_id", "type": "TYPE_STRING" @@ -27514,8 +27526,8 @@ "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", + "shortName": "BulkInsert", + "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27524,12 +27536,12 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_Resize_async", - "title": "AcceleratorTypes resize Sample", + "regionTag": "compute_v1_generated_RegionDisks_CreateSnapshot_async", + "title": "AcceleratorTypes createSnapshot Sample", "origin": "API_DEFINITION", - "description": " Resizes the specified regional persistent disk.", + "description": " Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.", "canonical": true, - "file": "region_disks.resize.js", + "file": "region_disks.create_snapshot.js", "language": "JAVASCRIPT", "segments": [ { @@ -27539,8 +27551,8 @@ } ], "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.RegionDisks.Resize", + "shortName": "CreateSnapshot", + "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", "async": true, "parameters": [ { @@ -27555,13 +27567,13 @@ "name": "region", "type": "TYPE_STRING" }, - { - "name": "region_disks_resize_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksResizeRequest" - }, { "name": "request_id", "type": "TYPE_STRING" + }, + { + "name": "snapshot_resource", + "type": ".google.cloud.compute.v1.Snapshot" } ], "resultType": ".google.cloud.compute.v1.Operation", @@ -27570,8 +27582,8 @@ "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.RegionDisks.Resize", + "shortName": "CreateSnapshot", + "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27580,50 +27592,50 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", + "regionTag": "compute_v1_generated_RegionDisks_Delete_async", + "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "description": " Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete anysnapshots previously made from the disk. You must separatelydelete snapshots.", "canonical": true, - "file": "region_disks.set_iam_policy.js", + "file": "region_disks.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 68, + "end": 77, "type": "FULL" } ], "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionDisks.Delete", "async": true, "parameters": [ { - "name": "project", + "name": "disk", "type": "TYPE_STRING" }, { - "name": "region", + "name": "project", "type": "TYPE_STRING" }, { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" + "name": "region", + "type": "TYPE_STRING" }, { - "name": "resource", + "name": "request_id", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.Policy", + "resultType": ".google.cloud.compute.v1.Operation", "client": { "shortName": "RegionDisksClient", "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionDisks.Delete", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27632,54 +27644,46 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", + "regionTag": "compute_v1_generated_RegionDisks_Get_async", + "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Sets the labels on the target regional disk.", + "description": " Returns a specified regional persistent disk.", "canonical": true, - "file": "region_disks.set_labels.js", + "file": "region_disks.get.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 63, "type": "FULL" } ], "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionDisks.Get", "async": true, "parameters": [ { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", + "name": "disk", "type": "TYPE_STRING" }, { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", + "name": "project", "type": "TYPE_STRING" }, { - "name": "resource", + "name": "region", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.Disk", "client": { "shortName": "RegionDisksClient", "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionDisks.Get", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27688,28 +27692,28 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_StartAsyncReplication_async", - "title": "AcceleratorTypes startAsyncReplication Sample", + "regionTag": "compute_v1_generated_RegionDisks_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", "origin": "API_DEFINITION", - "description": " Starts asynchronous replication. Must be invoked on the primary disk.", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", "canonical": true, - "file": "region_disks.start_async_replication.js", + "file": "region_disks.get_iam_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 67, "type": "FULL" } ], "clientMethod": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", "async": true, "parameters": [ { - "name": "disk", - "type": "TYPE_STRING" + "name": "options_requested_policy_version", + "type": "TYPE_INT32" }, { "name": "project", @@ -27720,22 +27724,18 @@ "type": "TYPE_STRING" }, { - "name": "region_disks_start_async_replication_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequest" - }, - { - "name": "request_id", + "name": "resource", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.Policy", "client": { "shortName": "RegionDisksClient", "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27744,28 +27744,28 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_StopAsyncReplication_async", - "title": "AcceleratorTypes stopAsyncReplication Sample", + "regionTag": "compute_v1_generated_RegionDisks_Insert_async", + "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.", + "description": " Creates a persistent regional disk in the specified project using the data included in the request.", "canonical": true, - "file": "region_disks.stop_async_replication.js", + "file": "region_disks.insert.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 77, + "end": 81, "type": "FULL" } ], "clientMethod": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionDisks.Insert", "async": true, "parameters": [ { - "name": "disk", - "type": "TYPE_STRING" + "name": "disk_resource", + "type": ".google.cloud.compute.v1.Disk" }, { "name": "project", @@ -27778,6 +27778,10 @@ { "name": "request_id", "type": "TYPE_STRING" + }, + { + "name": "source_image", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.compute.v1.Operation", @@ -27786,8 +27790,8 @@ "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionDisks.Insert", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27796,28 +27800,40 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_StopGroupAsyncReplication_async", - "title": "AcceleratorTypes stopGroupAsyncReplication Sample", + "regionTag": "compute_v1_generated_RegionDisks_List_async", + "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.", + "description": " Retrieves the list of persistent disks contained within the specified region.", "canonical": true, - "file": "region_disks.stop_group_async_replication.js", + "file": "region_disks.list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 78, + "end": 145, "type": "FULL" } ], "clientMethod": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionDisks.List", "async": true, "parameters": [ { - "name": "disks_stop_group_async_replication_resource_resource", - "type": ".google.cloud.compute.v1.DisksStopGroupAsyncReplicationResource" + "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", @@ -27828,18 +27844,18 @@ "type": "TYPE_STRING" }, { - "name": "request_id", - "type": "TYPE_STRING" + "name": "return_partial_success", + "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.DiskList", "client": { "shortName": "RegionDisksClient", "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionDisks.List", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27848,25 +27864,29 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", + "regionTag": "compute_v1_generated_RegionDisks_RemoveResourcePolicies_async", + "title": "AcceleratorTypes removeResourcePolicies Sample", "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", + "description": " Removes resource policies from a regional disk.", "canonical": true, - "file": "region_disks.test_iam_permissions.js", + "file": "region_disks.remove_resource_policies.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 68, + "end": 82, "type": "FULL" } ], "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", + "shortName": "RemoveResourcePolicies", + "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", "async": true, "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, { "name": "project", "type": "TYPE_STRING" @@ -27876,22 +27896,22 @@ "type": "TYPE_STRING" }, { - "name": "resource", - "type": "TYPE_STRING" + "name": "region_disks_remove_resource_policies_request_resource", + "type": ".google.cloud.compute.v1.RegionDisksRemoveResourcePoliciesRequest" }, { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" + "name": "request_id", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "resultType": ".google.cloud.compute.v1.Operation", "client": { "shortName": "RegionDisksClient", "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", + "shortName": "RemoveResourcePolicies", + "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27900,37 +27920,29 @@ } }, { - "regionTag": "compute_v1_generated_RegionDisks_Update_async", - "title": "AcceleratorTypes update Sample", + "regionTag": "compute_v1_generated_RegionDisks_Resize_async", + "title": "AcceleratorTypes resize 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.", + "description": " Resizes the specified regional persistent disk.", "canonical": true, - "file": "region_disks.update.js", + "file": "region_disks.resize.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 89, + "end": 82, "type": "FULL" } ], "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "shortName": "Resize", + "fullName": "google.cloud.compute.v1.RegionDisks.Resize", "async": true, "parameters": [ { "name": "disk", "type": "TYPE_STRING" }, - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1.Disk" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, { "name": "project", "type": "TYPE_STRING" @@ -27940,11 +27952,11 @@ "type": "TYPE_STRING" }, { - "name": "request_id", - "type": "TYPE_STRING" + "name": "region_disks_resize_request_resource", + "type": ".google.cloud.compute.v1.RegionDisksResizeRequest" }, { - "name": "update_mask", + "name": "request_id", "type": "TYPE_STRING" } ], @@ -27954,8 +27966,8 @@ "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "shortName": "Resize", + "fullName": "google.cloud.compute.v1.RegionDisks.Resize", "service": { "shortName": "RegionDisks", "fullName": "google.cloud.compute.v1.RegionDisks" @@ -27964,192 +27976,176 @@ } }, { - "regionTag": "compute_v1_generated_RegionDiskTypes_Get_async", - "title": "AcceleratorTypes get Sample", + "regionTag": "compute_v1_generated_RegionDisks_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", "origin": "API_DEFINITION", - "description": " Returns the specified regional disk type.", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", "canonical": true, - "file": "region_disk_types.get.js", + "file": "region_disks.set_iam_policy.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 68, "type": "FULL" } ], "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", "async": true, "parameters": [ { - "name": "disk_type", + "name": "project", "type": "TYPE_STRING" }, { - "name": "project", + "name": "region", "type": "TYPE_STRING" }, { - "name": "region", + "name": "region_set_policy_request_resource", + "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" + }, + { + "name": "resource", "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.DiskType", + "resultType": ".google.cloud.compute.v1.Policy", "client": { - "shortName": "RegionDiskTypesClient", - "fullName": "google.cloud.compute.v1.RegionDiskTypesClient" + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", "service": { - "shortName": "RegionDiskTypes", - "fullName": "google.cloud.compute.v1.RegionDiskTypes" + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" } } } }, { - "regionTag": "compute_v1_generated_RegionDiskTypes_List_async", - "title": "AcceleratorTypes list Sample", + "regionTag": "compute_v1_generated_RegionDisks_SetLabels_async", + "title": "AcceleratorTypes setLabels Sample", "origin": "API_DEFINITION", - "description": " Retrieves a list of regional disk types available to the specified project.", + "description": " Sets the labels on the target regional disk.", "canonical": true, - "file": "region_disk_types.list.js", + "file": "region_disks.set_labels.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 145, + "end": 82, "type": "FULL" } ], "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", "async": true, "parameters": [ { - "name": "filter", + "name": "project", "type": "TYPE_STRING" }, { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", + "name": "region", "type": "TYPE_STRING" }, { - "name": "page_token", - "type": "TYPE_STRING" + "name": "region_set_labels_request_resource", + "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" }, { - "name": "project", + "name": "request_id", "type": "TYPE_STRING" }, { - "name": "region", + "name": "resource", "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.RegionDiskTypeList", + "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionDiskTypesClient", - "fullName": "google.cloud.compute.v1.RegionDiskTypesClient" + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", + "shortName": "SetLabels", + "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", "service": { - "shortName": "RegionDiskTypes", - "fullName": "google.cloud.compute.v1.RegionDiskTypes" + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", + "regionTag": "compute_v1_generated_RegionDisks_StartAsyncReplication_async", + "title": "AcceleratorTypes startAsyncReplication 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`.", + "description": " Starts asynchronous replication. Must be invoked on the primary disk.", "canonical": true, - "file": "region_health_aggregation_policies.aggregated_list.js", + "file": "region_disks.start_async_replication.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 155, + "end": 82, "type": "FULL" } ], "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedList", + "shortName": "StartAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", "async": true, "parameters": [ { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", + "name": "disk", "type": "TYPE_STRING" }, { - "name": "page_token", + "name": "project", "type": "TYPE_STRING" }, { - "name": "project", + "name": "region", "type": "TYPE_STRING" }, { - "name": "return_partial_success", - "type": "TYPE_BOOL" + "name": "region_disks_start_async_replication_request_resource", + "type": ".google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequest" }, { - "name": "service_project_number", - "type": "TYPE_INT64" + "name": "request_id", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.HealthAggregationPolicyAggregatedList", + "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedList", + "shortName": "StartAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", + "regionTag": "compute_v1_generated_RegionDisks_StopAsyncReplication_async", + "title": "AcceleratorTypes stopAsyncReplication Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified HealthAggregationPolicy in the given region.", + "description": " Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.", "canonical": true, - "file": "region_health_aggregation_policies.delete.js", + "file": "region_disks.stop_async_replication.js", "language": "JAVASCRIPT", "segments": [ { @@ -28159,12 +28155,12 @@ } ], "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", + "shortName": "StopAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", "async": true, "parameters": [ { - "name": "health_aggregation_policy", + "name": "disk", "type": "TYPE_STRING" }, { @@ -28182,42 +28178,42 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", + "shortName": "StopAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Get_async", - "title": "AcceleratorTypes get Sample", + "regionTag": "compute_v1_generated_RegionDisks_StopGroupAsyncReplication_async", + "title": "AcceleratorTypes stopGroupAsyncReplication Sample", "origin": "API_DEFINITION", - "description": " Returns the specified HealthAggregationPolicy resource in the given region.", + "description": " Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.", "canonical": true, - "file": "region_health_aggregation_policies.get.js", + "file": "region_disks.stop_group_async_replication.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 78, "type": "FULL" } ], "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", + "shortName": "StopGroupAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", "async": true, "parameters": [ { - "name": "health_aggregation_policy", - "type": "TYPE_STRING" + "name": "disks_stop_group_async_replication_resource_resource", + "type": ".google.cloud.compute.v1.DisksStopGroupAsyncReplicationResource" }, { "name": "project", @@ -28226,47 +28222,47 @@ { "name": "region", "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.HealthAggregationPolicy", + "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", + "shortName": "StopGroupAsyncReplication", + "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", + "regionTag": "compute_v1_generated_RegionDisks_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", "origin": "API_DEFINITION", - "description": " Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.", + "description": " Returns permissions that a caller has on the specified resource.", "canonical": true, - "file": "region_health_aggregation_policies.insert.js", + "file": "region_disks.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 77, + "end": 68, "type": "FULL" } ], "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", "async": true, "parameters": [ - { - "name": "health_aggregation_policy_resource", - "type": ".google.cloud.compute.v1.HealthAggregationPolicy" - }, { "name": "project", "type": "TYPE_STRING" @@ -28276,43 +28272,767 @@ "type": "TYPE_STRING" }, { - "name": "request_id", + "name": "resource", "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" }, "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_List_async", - "title": "AcceleratorTypes list Sample", + "regionTag": "compute_v1_generated_RegionDisks_Update_async", + "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "description": " Lists the HealthAggregationPolicies for a project in the given region.", + "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_health_aggregation_policies.list.js", + "file": "region_disks.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 145, + "end": 89, "type": "FULL" } ], "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.List", + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "async": true, + "parameters": [ + { + "name": "disk", + "type": "TYPE_STRING" + }, + { + "name": "disk_resource", + "type": ".google.cloud.compute.v1.Disk" + }, + { + "name": "paths", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "update_mask", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionDisksClient", + "fullName": "google.cloud.compute.v1.RegionDisksClient" + }, + "method": { + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionDisks.Update", + "service": { + "shortName": "RegionDisks", + "fullName": "google.cloud.compute.v1.RegionDisks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionDiskTypes_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified regional disk type.", + "canonical": true, + "file": "region_disk_types.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", + "async": true, + "parameters": [ + { + "name": "disk_type", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.DiskType", + "client": { + "shortName": "RegionDiskTypesClient", + "fullName": "google.cloud.compute.v1.RegionDiskTypesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", + "service": { + "shortName": "RegionDiskTypes", + "fullName": "google.cloud.compute.v1.RegionDiskTypes" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionDiskTypes_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves a list of regional disk types available to the specified project.", + "canonical": true, + "file": "region_disk_types.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionDiskTypes.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.RegionDiskTypeList", + "client": { + "shortName": "RegionDiskTypesClient", + "fullName": "google.cloud.compute.v1.RegionDiskTypesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", + "service": { + "shortName": "RegionDiskTypes", + "fullName": "google.cloud.compute.v1.RegionDiskTypes" + } + } + } + }, + { + "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 HealthAggregationPolicy in the given region.", + "canonical": true, + "file": "region_health_aggregation_policies.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy", + "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": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified HealthAggregationPolicy resource in the given region.", + "canonical": true, + "file": "region_health_aggregation_policies.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.HealthAggregationPolicy", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "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_aggregation_policies.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy_resource", + "type": ".google.cloud.compute.v1.HealthAggregationPolicy" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Lists the HealthAggregationPolicies for a project in the given region.", + "canonical": true, + "file": "region_health_aggregation_policies.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.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.HealthAggregationPolicyList", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.List", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Patch_async", + "title": "AcceleratorTypes patch Sample", + "origin": "API_DEFINITION", + "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_aggregation_policies.patch.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 83, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", + "async": true, + "parameters": [ + { + "name": "health_aggregation_policy", + "type": "TYPE_STRING" + }, + { + "name": "health_aggregation_policy_resource", + "type": ".google.cloud.compute.v1.HealthAggregationPolicy" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "Patch", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + } + } + } + }, + { + "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_aggregation_policies.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.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": "RegionHealthAggregationPoliciesClient", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissions", + "service": { + "shortName": "RegionHealthAggregationPolicies", + "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthChecks_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified HealthCheck resource.", + "canonical": true, + "file": "region_health_checks.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "async": true, + "parameters": [ + { + "name": "health_check", + "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": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "service": { + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthChecks_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified HealthCheck resource.", + "canonical": true, + "file": "region_health_checks.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "async": true, + "parameters": [ + { + "name": "health_check", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.HealthCheck", + "client": { + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "service": { + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthChecks_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.", + "canonical": true, + "file": "region_health_checks.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 77, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "async": true, + "parameters": [ + { + "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": "Insert", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "service": { + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" + } + } + } + }, + { + "regionTag": "compute_v1_generated_RegionHealthChecks_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of HealthCheck resources available to the specified project.", + "canonical": true, + "file": "region_health_checks.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 145, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", "async": true, "parameters": [ { @@ -28328,64 +29048,172 @@ "type": "TYPE_STRING" }, { - "name": "page_token", + "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.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": "project", + "name": "region", "type": "TYPE_STRING" }, { - "name": "region", + "name": "resource", "type": "TYPE_STRING" }, { - "name": "return_partial_success", - "type": "TYPE_BOOL" + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" } ], - "resultType": ".google.cloud.compute.v1.HealthAggregationPolicyList", + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" }, "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.List", + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", + "regionTag": "compute_v1_generated_RegionHealthChecks_Update_async", + "title": "AcceleratorTypes update Sample", "origin": "API_DEFINITION", - "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.", + "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", "canonical": true, - "file": "region_health_aggregation_policies.patch.js", + "file": "region_health_checks.update.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 83, + "end": 82, "type": "FULL" } ], "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", "async": true, "parameters": [ { - "name": "health_aggregation_policy", + "name": "health_check", "type": "TYPE_STRING" }, { - "name": "health_aggregation_policy_resource", - "type": ".google.cloud.compute.v1.HealthAggregationPolicy" + "name": "health_check_resource", + "type": ".google.cloud.compute.v1.HealthCheck" }, { "name": "project", @@ -28402,93 +29230,109 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + "shortName": "RegionHealthChecksClient", + "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" }, "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", + "shortName": "Update", + "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + "shortName": "RegionHealthChecks", + "fullName": "google.cloud.compute.v1.RegionHealthChecks" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", + "description": " Retrieves the list of all HealthCheckService 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.test_iam_permissions.js", + "file": "region_health_check_services.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 68, + "end": 155, "type": "FULL" } ], "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissions", + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.AggregatedList", "async": true, "parameters": [ { - "name": "project", + "name": "filter", "type": "TYPE_STRING" }, { - "name": "region", + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", "type": "TYPE_STRING" }, { - "name": "resource", + "name": "page_token", "type": "TYPE_STRING" }, { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + }, + { + "name": "service_project_number", + "type": "TYPE_INT64" } ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "resultType": ".google.cloud.compute.v1.HealthCheckServiceAggregatedList", "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" }, "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissions", + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.AggregatedList", "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Delete_async", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified HealthCheck resource.", + "description": " Deletes the specified regional HealthCheckService.", "canonical": true, - "file": "region_health_checks.delete.js", + "file": "region_health_check_services.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 77, + "end": 78, "type": "FULL" } ], "clientMethod": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", "async": true, "parameters": [ { - "name": "health_check", + "name": "health_check_service", "type": "TYPE_STRING" }, { @@ -28506,41 +29350,41 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" }, "method": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Get_async", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource.", + "description": " Returns the specified regional HealthCheckService resource.", "canonical": true, - "file": "region_health_checks.get.js", + "file": "region_health_check_services.get.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 63, + "end": 64, "type": "FULL" } ], "clientMethod": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", "async": true, "parameters": [ { - "name": "health_check", + "name": "health_check_service", "type": "TYPE_STRING" }, { @@ -28552,28 +29396,28 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.HealthCheck", + "resultType": ".google.cloud.compute.v1.HealthCheckService", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" }, "method": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Insert_async", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_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": " Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.", "canonical": true, - "file": "region_health_checks.insert.js", + "file": "region_health_check_services.insert.js", "language": "JAVASCRIPT", "segments": [ { @@ -28584,12 +29428,12 @@ ], "clientMethod": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", "async": true, "parameters": [ { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" + "name": "health_check_service_resource", + "type": ".google.cloud.compute.v1.HealthCheckService" }, { "name": "project", @@ -28606,26 +29450,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" }, "method": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_List_async", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of HealthCheck resources available to the specified project.", + "description": " Lists all the HealthCheckService resources that have been configured for the specified project in the given region.", "canonical": true, - "file": "region_health_checks.list.js", + "file": "region_health_check_services.list.js", "language": "JAVASCRIPT", "segments": [ { @@ -28636,7 +29480,7 @@ ], "clientMethod": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", "async": true, "parameters": [ { @@ -28668,48 +29512,48 @@ "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.HealthCheckList", + "resultType": ".google.cloud.compute.v1.HealthCheckServicesList", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" }, "method": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Patch_async", + "regionTag": "compute_v1_generated_RegionHealthCheckServices_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 HealthCheckService 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_check_services.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.RegionHealthCheckServices.Patch", "async": true, "parameters": [ { - "name": "health_check", + "name": "health_check_service", "type": "TYPE_STRING" }, { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" + "name": "health_check_service_resource", + "type": ".google.cloud.compute.v1.HealthCheckService" }, { "name": "project", @@ -28726,26 +29570,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" }, "method": { "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_TestIamPermissions_async", + "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_checks.test_iam_permissions.js", + "file": "region_health_check_services.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { @@ -28756,7 +29600,7 @@ ], "clientMethod": { "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", "async": true, "parameters": [ { @@ -28778,97 +29622,109 @@ ], "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" }, "method": { "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthChecks_Update_async", - "title": "AcceleratorTypes update Sample", + "regionTag": "compute_v1_generated_RegionHealthSources_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", + "description": " Retrieves the list of all HealthSource resources (all regional) available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", "canonical": true, - "file": "region_health_checks.update.js", + "file": "region_health_sources.aggregated_list.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 82, + "end": 155, "type": "FULL" } ], "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionHealthSources.AggregatedList", "async": true, "parameters": [ { - "name": "health_check", + "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": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" + "name": "page_token", + "type": "TYPE_STRING" }, { "name": "project", "type": "TYPE_STRING" }, { - "name": "region", - "type": "TYPE_STRING" + "name": "return_partial_success", + "type": "TYPE_BOOL" }, { - "name": "request_id", - "type": "TYPE_STRING" + "name": "service_project_number", + "type": "TYPE_INT64" } ], - "resultType": ".google.cloud.compute.v1.Operation", + "resultType": ".google.cloud.compute.v1.HealthSourceAggregatedList", "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" }, "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionHealthSources.AggregatedList", "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_async", + "regionTag": "compute_v1_generated_RegionHealthSources_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified regional HealthCheckService.", + "description": " Deletes the specified HealthSource in the given region", "canonical": true, - "file": "region_health_check_services.delete.js", + "file": "region_health_sources.delete.js", "language": "JAVASCRIPT", "segments": [ { "start": 25, - "end": 78, + "end": 77, "type": "FULL" } ], "clientMethod": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthSources.Delete", "async": true, "parameters": [ { - "name": "health_check_service", + "name": "health_source", "type": "TYPE_STRING" }, { @@ -28886,41 +29742,41 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" }, "method": { "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", + "fullName": "google.cloud.compute.v1.RegionHealthSources.Delete", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_async", + "regionTag": "compute_v1_generated_RegionHealthSources_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified regional HealthCheckService resource.", + "description": " Returns the specified HealthSource resource in the given region.", "canonical": true, - "file": "region_health_check_services.get.js", + "file": "region_health_sources.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.RegionHealthSources.Get", "async": true, "parameters": [ { - "name": "health_check_service", + "name": "health_source", "type": "TYPE_STRING" }, { @@ -28932,28 +29788,28 @@ "type": "TYPE_STRING" } ], - "resultType": ".google.cloud.compute.v1.HealthCheckService", + "resultType": ".google.cloud.compute.v1.HealthSource", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" }, "method": { "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", + "fullName": "google.cloud.compute.v1.RegionHealthSources.Get", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Insert_async", + "regionTag": "compute_v1_generated_RegionHealthSources_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": " Create a HealthSource in the specified project in the given region using the parameters that are included in the request.", "canonical": true, - "file": "region_health_check_services.insert.js", + "file": "region_health_sources.insert.js", "language": "JAVASCRIPT", "segments": [ { @@ -28964,12 +29820,12 @@ ], "clientMethod": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthSources.Insert", "async": true, "parameters": [ { - "name": "health_check_service_resource", - "type": ".google.cloud.compute.v1.HealthCheckService" + "name": "health_source_resource", + "type": ".google.cloud.compute.v1.HealthSource" }, { "name": "project", @@ -28986,26 +29842,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" }, "method": { "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", + "fullName": "google.cloud.compute.v1.RegionHealthSources.Insert", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_List_async", + "regionTag": "compute_v1_generated_RegionHealthSources_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": " Lists the HealthSources for a project in the given region.", "canonical": true, - "file": "region_health_check_services.list.js", + "file": "region_health_sources.list.js", "language": "JAVASCRIPT", "segments": [ { @@ -29016,7 +29872,7 @@ ], "clientMethod": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", + "fullName": "google.cloud.compute.v1.RegionHealthSources.List", "async": true, "parameters": [ { @@ -29048,28 +29904,28 @@ "type": "TYPE_BOOL" } ], - "resultType": ".google.cloud.compute.v1.HealthCheckServicesList", + "resultType": ".google.cloud.compute.v1.HealthSourceList", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" }, "method": { "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", + "fullName": "google.cloud.compute.v1.RegionHealthSources.List", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Patch_async", + "regionTag": "compute_v1_generated_RegionHealthSources_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthCheckService resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", + "description": " Updates the specified regional HealthSource 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_check_services.patch.js", + "file": "region_health_sources.patch.js", "language": "JAVASCRIPT", "segments": [ { @@ -29080,16 +29936,16 @@ ], "clientMethod": { "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", + "fullName": "google.cloud.compute.v1.RegionHealthSources.Patch", "async": true, "parameters": [ { - "name": "health_check_service", + "name": "health_source", "type": "TYPE_STRING" }, { - "name": "health_check_service_resource", - "type": ".google.cloud.compute.v1.HealthCheckService" + "name": "health_source_resource", + "type": ".google.cloud.compute.v1.HealthSource" }, { "name": "project", @@ -29106,26 +29962,26 @@ ], "resultType": ".google.cloud.compute.v1.Operation", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" }, "method": { "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", + "fullName": "google.cloud.compute.v1.RegionHealthSources.Patch", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" } } } }, { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_TestIamPermissions_async", + "regionTag": "compute_v1_generated_RegionHealthSources_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", + "file": "region_health_sources.test_iam_permissions.js", "language": "JAVASCRIPT", "segments": [ { @@ -29136,7 +29992,7 @@ ], "clientMethod": { "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthSources.TestIamPermissions", "async": true, "parameters": [ { @@ -29158,15 +30014,15 @@ ], "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" + "shortName": "RegionHealthSourcesClient", + "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" }, "method": { "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", + "fullName": "google.cloud.compute.v1.RegionHealthSources.TestIamPermissions", "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" + "shortName": "RegionHealthSources", + "fullName": "google.cloud.compute.v1.RegionHealthSources" } } } @@ -32795,6 +33651,74 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionNotificationEndpoints_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all NotificationEndpoint resources, regional and global, available to the specified project.", + "canonical": true, + "file": "region_notification_endpoints.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.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.NotificationEndpointAggregatedList", + "client": { + "shortName": "RegionNotificationEndpointsClient", + "fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.AggregatedList", + "service": { + "shortName": "RegionNotificationEndpoints", + "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints" + } + } + } + }, { "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -36823,6 +37747,66 @@ } } }, + { + "regionTag": "compute_v1_generated_ReservationSlots_GetVersion_async", + "title": "AcceleratorTypes getVersion Sample", + "origin": "API_DEFINITION", + "description": " Allows customers to get SBOM versions of a reservation slot.", + "canonical": true, + "file": "reservation_slots.get_version.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 89, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1.ReservationSlots.GetVersion", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slots_get_version_request_resource", + "type": ".google.cloud.compute.v1.ReservationSlotsGetVersionRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1.ReservationSlotsClient" + }, + "method": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1.ReservationSlots.GetVersion", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1.ReservationSlots" + } + } + } + }, { "regionTag": "compute_v1_generated_ReservationSlots_List_async", "title": "AcceleratorTypes list Sample", @@ -37063,6 +38047,66 @@ } } }, + { + "regionTag": "compute_v1_generated_ReservationSubBlocks_GetVersion_async", + "title": "AcceleratorTypes getVersion Sample", + "origin": "API_DEFINITION", + "description": " Allows customers to get SBOM versions of a reservation subBlock.", + "canonical": true, + "file": "reservation_sub_blocks.get_version.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 89, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.GetVersion", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "reservation_sub_block", + "type": "TYPE_STRING" + }, + { + "name": "reservation_sub_blocks_get_version_request_resource", + "type": ".google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "ReservationSubBlocksClient", + "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" + }, + "method": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks.GetVersion", + "service": { + "shortName": "ReservationSubBlocks", + "fullName": "google.cloud.compute.v1.ReservationSubBlocks" + } + } + } + }, { "regionTag": "compute_v1_generated_ReservationSubBlocks_List_async", "title": "AcceleratorTypes list Sample", diff --git a/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js b/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js index a4daf1ac1f3..27a69b7b056 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js +++ b/packages/google-cloud-compute/samples/generated/v1beta/instances.update.js @@ -28,6 +28,11 @@ function main(instance, instanceResource, project, zone) { * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ + /** + * Whether to discard local SSDs from the instance during restart + * default value is false. + */ + // const discardLocalSsd = true /** * Name of the instance resource to update. */ diff --git a/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.aggregated_list.js new file mode 100644 index 00000000000..cb036a5183f --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_health_check_services.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_v1beta_generated_RegionHealthCheckServices_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 {RegionHealthCheckServicesClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionHealthCheckServicesClient(); + + 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_v1beta_generated_RegionHealthCheckServices_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/v1beta/region_notification_endpoints.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.aggregated_list.js new file mode 100644 index 00000000000..87c2d839e4b --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/region_notification_endpoints.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_v1beta_generated_RegionNotificationEndpoints_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 {RegionNotificationEndpointsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new RegionNotificationEndpointsClient(); + + 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_v1beta_generated_RegionNotificationEndpoints_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/v1beta/reservation_slots.get_version.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get_version.js new file mode 100644 index 00000000000..c6f64fe1bb5 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_slots.get_version.js @@ -0,0 +1,97 @@ +// 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, reservationSlotsGetVersionRequestResource, zone) { + // [START compute_v1beta_generated_ReservationSlots_GetVersion_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. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + */ + // const parentName = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The name of the reservation slot. + * Name should conform to RFC1035 or be a resource ID. + */ + // const reservationSlot = 'abc123' + /** + * The body resource for this request + */ + // const reservationSlotsGetVersionRequestResource = {} + /** + * Name of the zone for this request. Zone name should conform to RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSlotsClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSlotsClient(); + + async function callGetVersion() { + // Construct request + const request = { + parentName, + project, + reservationSlot, + reservationSlotsGetVersionRequestResource, + zone, + }; + + // Run request + const response = await computeClient.getVersion(request); + console.log(response); + } + + callGetVersion(); + // [END compute_v1beta_generated_ReservationSlots_GetVersion_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/v1beta/reservation_sub_blocks.get_version.js b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_version.js new file mode 100644 index 00000000000..cd4dcd589d8 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1beta/reservation_sub_blocks.get_version.js @@ -0,0 +1,97 @@ +// 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, reservationSubBlock, reservationSubBlocksGetVersionRequestResource, zone) { + // [START compute_v1beta_generated_ReservationSubBlocks_GetVersion_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. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + // const parentName = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. + */ + // const reservationSubBlock = 'abc123' + /** + * The body resource for this request + */ + // const reservationSubBlocksGetVersionRequestResource = {} + /** + * Name of the zone for this request. Zone name should conform to RFC1035. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationSubBlocksClient} = require('@google-cloud/compute').v1beta; + + // Instantiates a client + const computeClient = new ReservationSubBlocksClient(); + + async function callGetVersion() { + // Construct request + const request = { + parentName, + project, + reservationSubBlock, + reservationSubBlocksGetVersionRequestResource, + zone, + }; + + // Run request + const response = await computeClient.getVersion(request); + console.log(response); + } + + callGetVersion(); + // [END compute_v1beta_generated_ReservationSubBlocks_GetVersion_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/v1beta/snippet_metadata_google.cloud.compute.v1beta.json b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json index 4a9d891f2b2..a5db3edec49 100644 --- a/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json +++ b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json @@ -15413,8 +15413,8 @@ "language": "JAVASCRIPT", "segments": [ { - "start": 53, - "end": 99, + "start": 58, + "end": 104, "type": "FULL" } ], @@ -15423,6 +15423,10 @@ "fullName": "google.cloud.compute.v1beta.Instances.Update", "async": true, "parameters": [ + { + "name": "discard_local_ssd", + "type": "TYPE_BOOL" + }, { "name": "instance", "type": "TYPE_STRING" @@ -32043,6 +32047,74 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all HealthCheckService 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_check_services.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.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.v1beta.HealthCheckServiceAggregatedList", + "client": { + "shortName": "RegionHealthCheckServicesClient", + "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.AggregatedList", + "service": { + "shortName": "RegionHealthCheckServices", + "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -38455,6 +38527,74 @@ } } }, + { + "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all NotificationEndpoint resources, regional and global, available to the specified project.", + "canonical": true, + "file": "region_notification_endpoints.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 155, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.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.v1beta.NotificationEndpointAggregatedList", + "client": { + "shortName": "RegionNotificationEndpointsClient", + "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpointsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.AggregatedList", + "service": { + "shortName": "RegionNotificationEndpoints", + "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints" + } + } + } + }, { "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_Delete_async", "title": "AcceleratorTypes delete Sample", @@ -43379,6 +43519,66 @@ } } }, + { + "regionTag": "compute_v1beta_generated_ReservationSlots_GetVersion_async", + "title": "AcceleratorTypes getVersion Sample", + "origin": "API_DEFINITION", + "description": " Allows customers to get SBOM versions of a reservation slot.", + "canonical": true, + "file": "reservation_slots.get_version.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 89, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.GetVersion", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slot", + "type": "TYPE_STRING" + }, + { + "name": "reservation_slots_get_version_request_resource", + "type": ".google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "ReservationSlotsClient", + "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" + }, + "method": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1beta.ReservationSlots.GetVersion", + "service": { + "shortName": "ReservationSlots", + "fullName": "google.cloud.compute.v1beta.ReservationSlots" + } + } + } + }, { "regionTag": "compute_v1beta_generated_ReservationSlots_List_async", "title": "AcceleratorTypes list Sample", @@ -43619,6 +43819,66 @@ } } }, + { + "regionTag": "compute_v1beta_generated_ReservationSubBlocks_GetVersion_async", + "title": "AcceleratorTypes getVersion Sample", + "origin": "API_DEFINITION", + "description": " Allows customers to get SBOM versions of a reservation subBlock.", + "canonical": true, + "file": "reservation_sub_blocks.get_version.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 89, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetVersion", + "async": true, + "parameters": [ + { + "name": "parent_name", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "reservation_sub_block", + "type": "TYPE_STRING" + }, + { + "name": "reservation_sub_blocks_get_version_request_resource", + "type": ".google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1beta.Operation", + "client": { + "shortName": "ReservationSubBlocksClient", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" + }, + "method": { + "shortName": "GetVersion", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetVersion", + "service": { + "shortName": "ReservationSubBlocks", + "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" + } + } + } + }, { "regionTag": "compute_v1beta_generated_ReservationSubBlocks_List_async", "title": "AcceleratorTypes list Sample", diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index 883cb9db98e..dbeb809058e 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -136,6 +136,8 @@ const RegionBackendServicesClient = v1.RegionBackendServicesClient; type RegionBackendServicesClient = v1.RegionBackendServicesClient; const RegionCommitmentsClient = v1.RegionCommitmentsClient; type RegionCommitmentsClient = v1.RegionCommitmentsClient; +const RegionCompositeHealthChecksClient = v1.RegionCompositeHealthChecksClient; +type RegionCompositeHealthChecksClient = v1.RegionCompositeHealthChecksClient; const RegionDisksClient = v1.RegionDisksClient; type RegionDisksClient = v1.RegionDisksClient; const RegionDiskTypesClient = v1.RegionDiskTypesClient; @@ -146,6 +148,8 @@ const RegionHealthChecksClient = v1.RegionHealthChecksClient; type RegionHealthChecksClient = v1.RegionHealthChecksClient; const RegionHealthCheckServicesClient = v1.RegionHealthCheckServicesClient; type RegionHealthCheckServicesClient = v1.RegionHealthCheckServicesClient; +const RegionHealthSourcesClient = v1.RegionHealthSourcesClient; +type RegionHealthSourcesClient = v1.RegionHealthSourcesClient; const RegionInstanceGroupManagersClient = v1.RegionInstanceGroupManagersClient; type RegionInstanceGroupManagersClient = v1.RegionInstanceGroupManagersClient; const RegionInstanceGroupsClient = v1.RegionInstanceGroupsClient; @@ -243,7 +247,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, 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}; +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, RegionCompositeHealthChecksClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionHealthSourcesClient, 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, RegionCompositeHealthChecksClient, RegionDisksClient, RegionDiskTypesClient, RegionHealthAggregationPoliciesClient, RegionHealthChecksClient, RegionHealthCheckServicesClient, RegionHealthSourcesClient, 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/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index b5596fe1fbd..2c8e821c176 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -6255,6 +6255,98 @@ } } }, + "RegionCompositeHealthChecks": { + "clients": { + "grpc": { + "libraryClient": "RegionCompositeHealthChecksClient", + "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": "RegionCompositeHealthChecksClient", + "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" + ] + } + } + } + } + }, "RegionDisks": { "clients": { "grpc": { @@ -6691,6 +6783,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -6728,6 +6827,105 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, + "RegionHealthSources": { + "clients": { + "grpc": { + "libraryClient": "RegionHealthSourcesClient", + "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": "RegionHealthSourcesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "Patch": { + "methods": [ + "patch" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -7556,6 +7754,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -7588,6 +7793,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -8499,6 +8711,11 @@ "get" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "Update": { "methods": [ "update" @@ -8521,6 +8738,11 @@ "get" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "Update": { "methods": [ "update" @@ -8552,6 +8774,11 @@ "getIamPolicy" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" @@ -8594,6 +8821,11 @@ "getIamPolicy" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" diff --git a/packages/google-cloud-compute/src/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 8ee7992e392..25718ec8bce 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -74,11 +74,13 @@ export {PublicDelegatedPrefixesClient} from './public_delegated_prefixes_client' export {RegionAutoscalersClient} from './region_autoscalers_client'; export {RegionBackendServicesClient} from './region_backend_services_client'; export {RegionCommitmentsClient} from './region_commitments_client'; +export {RegionCompositeHealthChecksClient} from './region_composite_health_checks_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 {RegionHealthSourcesClient} from './region_health_sources_client'; export {RegionInstanceGroupManagersClient} from './region_instance_group_managers_client'; export {RegionInstanceGroupsClient} from './region_instance_groups_client'; export {RegionInstancesClient} from './region_instances_client'; diff --git a/packages/google-cloud-compute/src/v1/instances_client.ts b/packages/google-cloud-compute/src/v1/instances_client.ts index 669ccdc15cf..c276a045874 100644 --- a/packages/google-cloud-compute/src/v1/instances_client.ts +++ b/packages/google-cloud-compute/src/v1/instances_client.ts @@ -5409,6 +5409,9 @@ export class InstancesClient { * * @param {Object} request * The request object that will be sent. + * @param {boolean} request.discardLocalSsd + * Whether to discard local SSDs from the instance during restart + * default value is false. * @param {string} request.instance * Name of the instance resource to update. * @param {google.cloud.compute.v1.Instance} request.instanceResource diff --git a/packages/google-cloud-compute/src/v1/region_composite_health_checks_client.ts b/packages/google-cloud-compute/src/v1/region_composite_health_checks_client.ts new file mode 100644 index 00000000000..8aa6a080b03 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_composite_health_checks_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_composite_health_checks_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_composite_health_checks_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionCompositeHealthChecks API. + * @class + * @memberof v1 + */ +export class RegionCompositeHealthChecksClient { + 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}; + regionCompositeHealthChecksStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionCompositeHealthChecksClient. + * + * @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 RegionCompositeHealthChecksClient({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 RegionCompositeHealthChecksClient; + 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.RegionCompositeHealthChecks', 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.regionCompositeHealthChecksStub) { + return this.regionCompositeHealthChecksStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionCompositeHealthChecks. + this.regionCompositeHealthChecksStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionCompositeHealthChecks') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionCompositeHealthChecks, + 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 regionCompositeHealthChecksStubMethods = + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; + for (const methodName of regionCompositeHealthChecksStubMethods) { + const callPromise = this.regionCompositeHealthChecksStub.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.regionCompositeHealthChecksStub; + } + + /** + * 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 CompositeHealthCheck in the given region + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.compositeHealthCheck + * Name of the CompositeHealthCheck 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_composite_health_checks.delete.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionCompositeHealthCheckRequest|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 ?? '', + 'composite_health_check': request.compositeHealthCheck ?? '', + }); + 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.IDeleteRegionCompositeHealthCheckRequest|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 CompositeHealthCheck resource in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.compositeHealthCheck + * Name of the CompositeHealthCheck 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.CompositeHealthCheck|CompositeHealthCheck}. + * 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_composite_health_checks.get.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|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 ?? '', + 'composite_health_check': request.compositeHealthCheck ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|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.ICompositeHealthCheck, + protos.google.cloud.compute.v1.IGetRegionCompositeHealthCheckRequest|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 CompositeHealthCheck 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.CompositeHealthCheck} request.compositeHealthCheckResource + * 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_composite_health_checks.insert.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionCompositeHealthCheckRequest|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.IInsertRegionCompositeHealthCheckRequest|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 CompositeHealthCheck 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.compositeHealthCheck + * Name of the CompositeHealthCheck to update. The name + * must be 1-63 characters long, and comply with RFC1035. + * @param {google.cloud.compute.v1.CompositeHealthCheck} request.compositeHealthCheckResource + * 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_composite_health_checks.patch.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionCompositeHealthCheckRequest|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 ?? '', + 'composite_health_check': request.compositeHealthCheck ?? '', + }); + 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.IPatchRegionCompositeHealthCheckRequest|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_composite_health_checks.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionCompositeHealthCheckRequest|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.ITestIamPermissionsRegionCompositeHealthCheckRequest|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.ITestIamPermissionsRegionCompositeHealthCheckRequest|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 CompositeHealthCheck resources (all + * regional) 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.CompositeHealthChecksScopedList|CompositeHealthChecksScopedList}]. 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_composite_health_checks.aggregated_list.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListRegionCompositeHealthChecksRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1.ICompositeHealthChecksScopedList]>{ + 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.ICompositeHealthChecksScopedList]>; + } + /** + * Lists the CompositeHealthChecks 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.CompositeHealthCheck|CompositeHealthCheck}. + * 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.IListRegionCompositeHealthChecksRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ICompositeHealthCheck[], + protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest|null, + protos.google.cloud.compute.v1.ICompositeHealthCheckList + ]>; + list( + request: protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1.ICompositeHealthCheck>): void; + list( + request: protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1.ICompositeHealthCheck>): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1.ICompositeHealthCheck>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1.ICompositeHealthCheck>): + Promise<[ + protos.google.cloud.compute.v1.ICompositeHealthCheck[], + protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest|null, + protos.google.cloud.compute.v1.ICompositeHealthCheckList + ]>|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.IListRegionCompositeHealthChecksRequest, + protos.google.cloud.compute.v1.ICompositeHealthCheckList|null|undefined, + protos.google.cloud.compute.v1.ICompositeHealthCheck>|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.ICompositeHealthCheck[], + protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest|null, + protos.google.cloud.compute.v1.ICompositeHealthCheckList + ]) => { + 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.CompositeHealthCheck|CompositeHealthCheck} 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.IListRegionCompositeHealthChecksRequest, + 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.CompositeHealthCheck|CompositeHealthCheck}. 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_composite_health_checks.list.js + * region_tag:compute_v1_generated_RegionCompositeHealthChecks_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionCompositeHealthChecksRequest, + 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.regionCompositeHealthChecksStub && !this._terminated) { + return this.regionCompositeHealthChecksStub.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_composite_health_checks_client_config.json b/packages/google-cloud-compute/src/v1/region_composite_health_checks_client_config.json new file mode 100644 index 00000000000..70e7a029c37 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_composite_health_checks_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionCompositeHealthChecks": { + "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_composite_health_checks_proto_list.json b/packages/google-cloud-compute/src/v1/region_composite_health_checks_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_composite_health_checks_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 ce1a6d3ed97..344ee872ea4 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 @@ -176,6 +176,8 @@ export class RegionHealthCheckServicesClient { // (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') }; @@ -223,7 +225,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', 'testIamPermissions']; + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; for (const methodName of regionHealthCheckServicesStubMethods) { const callPromise = this.regionHealthCheckServicesStub.then( stub => (...args: Array<{}>) => { @@ -892,6 +894,153 @@ export class RegionHealthCheckServicesClient { }); } + +/** + * Retrieves the list of all HealthCheckService 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.HealthCheckServicesScopedList|HealthCheckServicesScopedList}]. 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_check_services.aggregated_list.js + * region_tag:compute_v1_generated_RegionHealthCheckServices_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListRegionHealthCheckServicesRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1.IHealthCheckServicesScopedList]>{ + 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.IHealthCheckServicesScopedList]>; + } /** * Lists all the HealthCheckService resources that have been * configured for the specified project in the given region. 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 e8c9e272643..d11fddcf054 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 @@ -20,6 +20,10 @@ } }, "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Delete": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1/region_health_sources_client.ts b/packages/google-cloud-compute/src/v1/region_health_sources_client.ts new file mode 100644 index 00000000000..f9771cc3944 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_health_sources_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_sources_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_health_sources_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionHealthSources API. + * @class + * @memberof v1 + */ +export class RegionHealthSourcesClient { + 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}; + regionHealthSourcesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionHealthSourcesClient. + * + * @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 RegionHealthSourcesClient({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 RegionHealthSourcesClient; + 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.RegionHealthSources', 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.regionHealthSourcesStub) { + return this.regionHealthSourcesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionHealthSources. + this.regionHealthSourcesStub = this._gaxGrpc.createStub( + this._opts.fallback ? + (this._protos as protobuf.Root).lookupService('google.cloud.compute.v1.RegionHealthSources') : + // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionHealthSources, + 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 regionHealthSourcesStubMethods = + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; + for (const methodName of regionHealthSourcesStubMethods) { + const callPromise = this.regionHealthSourcesStub.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.regionHealthSourcesStub; + } + + /** + * 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 HealthSource in the given region + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthSource + * Name of the HealthSource 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_sources.delete.js + * region_tag:compute_v1_generated_RegionHealthSources_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IDeleteRegionHealthSourceRequest|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_source': request.healthSource ?? '', + }); + 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.IDeleteRegionHealthSourceRequest|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 HealthSource resource in the given region. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.healthSource + * Name of the HealthSource 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.HealthSource|HealthSource}. + * 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_sources.get.js + * region_tag:compute_v1_generated_RegionHealthSources_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|undefined, {}|undefined + ]>; + get( + request: protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + get( + request: protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + get( + request?: protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|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_source': request.healthSource ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('get request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|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.IHealthSource, + protos.google.cloud.compute.v1.IGetRegionHealthSourceRequest|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 HealthSource 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.HealthSource} request.healthSourceResource + * 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_sources.insert.js + * region_tag:compute_v1_generated_RegionHealthSources_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + insert( + request: protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertRegionHealthSourceRequest|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.IInsertRegionHealthSourceRequest|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 HealthSource 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.healthSource + * Name of the HealthSource to update. The name + * must be 1-63 characters long, and comply with RFC1035. + * @param {google.cloud.compute.v1.HealthSource} request.healthSourceResource + * 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_sources.patch.js + * region_tag:compute_v1_generated_RegionHealthSources_Patch_async + */ + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + patch( + request: protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + patch( + request?: protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IPatchRegionHealthSourceRequest|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_source': request.healthSource ?? '', + }); + 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.IPatchRegionHealthSourceRequest|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_sources.test_iam_permissions.js + * region_tag:compute_v1_generated_RegionHealthSources_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest|undefined, {}|undefined + ]>; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest|null|undefined, + {}|null|undefined>): + Promise<[ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + protos.google.cloud.compute.v1.ITestIamPermissionsRegionHealthSourceRequest|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.ITestIamPermissionsRegionHealthSourceRequest|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.ITestIamPermissionsRegionHealthSourceRequest|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 HealthSource resources (all + * regional) available to the specified project. + * + * To prevent failure, Google recommends 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.HealthSourcesScopedList|HealthSourcesScopedList}]. 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_sources.aggregated_list.js + * region_tag:compute_v1_generated_RegionHealthSources_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListRegionHealthSourcesRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1.IHealthSourcesScopedList]>{ + 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.IHealthSourcesScopedList]>; + } + /** + * Lists the HealthSources 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.HealthSource|HealthSource}. + * 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.IListRegionHealthSourcesRequest, + options?: CallOptions): + Promise<[ + protos.google.cloud.compute.v1.IHealthSource[], + protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest|null, + protos.google.cloud.compute.v1.IHealthSourceList + ]>; + list( + request: protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + protos.google.cloud.compute.v1.IHealthSourceList|null|undefined, + protos.google.cloud.compute.v1.IHealthSource>): void; + list( + request: protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + protos.google.cloud.compute.v1.IHealthSourceList|null|undefined, + protos.google.cloud.compute.v1.IHealthSource>): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + optionsOrCallback?: CallOptions|PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + protos.google.cloud.compute.v1.IHealthSourceList|null|undefined, + protos.google.cloud.compute.v1.IHealthSource>, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + protos.google.cloud.compute.v1.IHealthSourceList|null|undefined, + protos.google.cloud.compute.v1.IHealthSource>): + Promise<[ + protos.google.cloud.compute.v1.IHealthSource[], + protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest|null, + protos.google.cloud.compute.v1.IHealthSourceList + ]>|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.IListRegionHealthSourcesRequest, + protos.google.cloud.compute.v1.IHealthSourceList|null|undefined, + protos.google.cloud.compute.v1.IHealthSource>|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.IHealthSource[], + protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest|null, + protos.google.cloud.compute.v1.IHealthSourceList + ]) => { + 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.HealthSource|HealthSource} 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.IListRegionHealthSourcesRequest, + 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.HealthSource|HealthSource}. 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_sources.list.js + * region_tag:compute_v1_generated_RegionHealthSources_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionHealthSourcesRequest, + 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.regionHealthSourcesStub && !this._terminated) { + return this.regionHealthSourcesStub.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_sources_client_config.json b/packages/google-cloud-compute/src/v1/region_health_sources_client_config.json new file mode 100644 index 00000000000..60c42753237 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_health_sources_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionHealthSources": { + "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_sources_proto_list.json b/packages/google-cloud-compute/src/v1/region_health_sources_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_health_sources_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts index d535e1a5c69..bb42eb3fe20 100644 --- a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts +++ b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts @@ -176,6 +176,8 @@ export class RegionNotificationEndpointsClient { // (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') }; @@ -223,7 +225,7 @@ export class RegionNotificationEndpointsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionNotificationEndpointsStubMethods = - ['delete', 'get', 'insert', 'list', 'testIamPermissions']; + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'testIamPermissions']; for (const methodName of regionNotificationEndpointsStubMethods) { const callPromise = this.regionNotificationEndpointsStub.then( stub => (...args: Array<{}>) => { @@ -766,6 +768,150 @@ export class RegionNotificationEndpointsClient { }); } + +/** + * Retrieves the list of all NotificationEndpoint resources, + * regional and global, available to the specified project. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * 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.NotificationEndpointsScopedList|NotificationEndpointsScopedList}]. 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_notification_endpoints.aggregated_list.js + * region_tag:compute_v1_generated_RegionNotificationEndpoints_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListRegionNotificationEndpointsRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1.INotificationEndpointsScopedList]>{ + 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.INotificationEndpointsScopedList]>; + } /** * Lists the NotificationEndpoints for a project in the given region. * diff --git a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client_config.json b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client_config.json index c0ebd5b611c..61422987812 100644 --- a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client_config.json +++ b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client_config.json @@ -20,6 +20,10 @@ } }, "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Delete": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1/reservation_slots_client.ts b/packages/google-cloud-compute/src/v1/reservation_slots_client.ts index d30b9902c71..56657b0172f 100644 --- a/packages/google-cloud-compute/src/v1/reservation_slots_client.ts +++ b/packages/google-cloud-compute/src/v1/reservation_slots_client.ts @@ -223,7 +223,7 @@ export class ReservationSlotsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const reservationSlotsStubMethods = - ['get', 'list', 'update']; + ['get', 'getVersion', 'list', 'update']; for (const methodName of reservationSlotsStubMethods) { const callPromise = this.reservationSlotsStub.then( stub => (...args: Array<{}>) => { @@ -432,6 +432,131 @@ export class ReservationSlotsClient { throw error; }); } +/** + * Allows customers to get SBOM versions of a 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. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.reservationSlot + * The name of the reservation slot. + * Name should conform to RFC1035 or be a resource ID. + * @param {google.cloud.compute.v1.ReservationSlotsGetVersionRequest} request.reservationSlotsGetVersionRequestResource + * The body resource for this request + * @param {string} request.zone + * Name of the zone for this request. Zone name should conform to 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.get_version.js + * region_tag:compute_v1_generated_ReservationSlots_GetVersion_async + */ + getVersion( + request?: protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + getVersion( + request: protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request: protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request?: protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest|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('getVersion request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('getVersion response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.getVersion(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; + }); + } /** * Update a reservation slot in the specified sub-block. * 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 index 72c39bab0ad..216e39918f1 100644 --- a/packages/google-cloud-compute/src/v1/reservation_slots_client_config.json +++ b/packages/google-cloud-compute/src/v1/reservation_slots_client_config.json @@ -24,6 +24,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetVersion": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client.ts b/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client.ts index bd8f00624e8..de41870565d 100644 --- a/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client.ts +++ b/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client.ts @@ -223,7 +223,7 @@ export class ReservationSubBlocksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const reservationSubBlocksStubMethods = - ['get', 'getIamPolicy', 'list', 'performMaintenance', 'reportFaulty', 'setIamPolicy', 'testIamPermissions']; + ['get', 'getIamPolicy', 'getVersion', 'list', 'performMaintenance', 'reportFaulty', 'setIamPolicy', 'testIamPermissions']; for (const methodName of reservationSubBlocksStubMethods) { const callPromise = this.reservationSubBlocksStub.then( stub => (...args: Array<{}>) => { @@ -541,6 +541,131 @@ export class ReservationSubBlocksClient { throw error; }); } +/** + * Allows customers to get SBOM versions of a reservation subBlock. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentName + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.reservationSubBlock + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. + * @param {google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest} request.reservationSubBlocksGetVersionRequestResource + * The body resource for this request + * @param {string} request.zone + * Name of the zone for this request. Zone name should conform to 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_sub_blocks.get_version.js + * region_tag:compute_v1_generated_ReservationSubBlocks_GetVersion_async + */ + getVersion( + request?: protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1.IOperation|undefined, {}|undefined + ]>; + getVersion( + request: protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request: protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request?: protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest|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_sub_block': request.reservationSubBlock ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getVersion request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('getVersion response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.getVersion(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; + }); + } /** * Allows customers to perform maintenance on a reservation subBlock * diff --git a/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client_config.json b/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client_config.json index 1226e08e23f..9fffbd5cb14 100644 --- a/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client_config.json +++ b/packages/google-cloud-compute/src/v1/reservation_sub_blocks_client_config.json @@ -28,6 +28,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetVersion": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json index aac7d5ab9a3..863cc580033 100644 --- a/packages/google-cloud-compute/src/v1beta/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1beta/gapic_metadata.json @@ -7401,6 +7401,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -7438,6 +7445,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -8822,6 +8836,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -8854,6 +8875,13 @@ "testIamPermissions" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -9967,6 +9995,11 @@ "get" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "Update": { "methods": [ "update" @@ -9989,6 +10022,11 @@ "get" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "Update": { "methods": [ "update" @@ -10020,6 +10058,11 @@ "getIamPolicy" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" @@ -10062,6 +10105,11 @@ "getIamPolicy" ] }, + "GetVersion": { + "methods": [ + "getVersion" + ] + }, "PerformMaintenance": { "methods": [ "performMaintenance" diff --git a/packages/google-cloud-compute/src/v1beta/instances_client.ts b/packages/google-cloud-compute/src/v1beta/instances_client.ts index 1af1114e422..42d5652cf85 100644 --- a/packages/google-cloud-compute/src/v1beta/instances_client.ts +++ b/packages/google-cloud-compute/src/v1beta/instances_client.ts @@ -5863,6 +5863,9 @@ export class InstancesClient { * * @param {Object} request * The request object that will be sent. + * @param {boolean} request.discardLocalSsd + * Whether to discard local SSDs from the instance during restart + * default value is false. * @param {string} request.instance * Name of the instance resource to update. * @param {google.cloud.compute.v1beta.Instance} request.instanceResource diff --git a/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts b/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts index 5b487ec4964..ec4dfe2b6b8 100644 --- a/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_health_check_services_client.ts @@ -176,6 +176,8 @@ export class RegionHealthCheckServicesClient { // (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') }; @@ -223,7 +225,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', 'testIamPermissions']; + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'patch', 'testIamPermissions']; for (const methodName of regionHealthCheckServicesStubMethods) { const callPromise = this.regionHealthCheckServicesStub.then( stub => (...args: Array<{}>) => { @@ -892,6 +894,153 @@ export class RegionHealthCheckServicesClient { }); } + +/** + * Retrieves the list of all HealthCheckService 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.v1beta.HealthCheckServicesScopedList|HealthCheckServicesScopedList}]. 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/v1beta/region_health_check_services.aggregated_list.js + * region_tag:compute_v1beta_generated_RegionHealthCheckServices_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1beta.IAggregatedListRegionHealthCheckServicesRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1beta.IHealthCheckServicesScopedList]>{ + 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.v1beta.IHealthCheckServicesScopedList]>; + } /** * Lists all the HealthCheckService resources that have been * configured for the specified project in the given region. diff --git a/packages/google-cloud-compute/src/v1beta/region_health_check_services_client_config.json b/packages/google-cloud-compute/src/v1beta/region_health_check_services_client_config.json index b410b1dd918..b19f3967992 100644 --- a/packages/google-cloud-compute/src/v1beta/region_health_check_services_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/region_health_check_services_client_config.json @@ -20,6 +20,10 @@ } }, "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Delete": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts b/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts index 92397bb169b..e671779773c 100644 --- a/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts +++ b/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client.ts @@ -176,6 +176,8 @@ export class RegionNotificationEndpointsClient { // (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') }; @@ -223,7 +225,7 @@ export class RegionNotificationEndpointsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const regionNotificationEndpointsStubMethods = - ['delete', 'get', 'insert', 'list', 'testIamPermissions']; + ['aggregatedList', 'delete', 'get', 'insert', 'list', 'testIamPermissions']; for (const methodName of regionNotificationEndpointsStubMethods) { const callPromise = this.regionNotificationEndpointsStub.then( stub => (...args: Array<{}>) => { @@ -766,6 +768,150 @@ export class RegionNotificationEndpointsClient { }); } + +/** + * Retrieves the list of all NotificationEndpoint resources, + * regional and global, available to the specified project. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most + * Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow + * API improvement proposal AIP-160. + * 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.v1beta.NotificationEndpointsScopedList|NotificationEndpointsScopedList}]. 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/v1beta/region_notification_endpoints.aggregated_list.js + * region_tag:compute_v1beta_generated_RegionNotificationEndpoints_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1beta.IAggregatedListRegionNotificationEndpointsRequest, + options?: CallOptions): + AsyncIterable<[string, protos.google.cloud.compute.v1beta.INotificationEndpointsScopedList]>{ + 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.v1beta.INotificationEndpointsScopedList]>; + } /** * Lists the NotificationEndpoints for a project in the given region. * diff --git a/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client_config.json b/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client_config.json index d8e2e07cb0d..4b23649aecd 100644 --- a/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/region_notification_endpoints_client_config.json @@ -20,6 +20,10 @@ } }, "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Delete": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/reservation_slots_client.ts b/packages/google-cloud-compute/src/v1beta/reservation_slots_client.ts index 5b9d0c212b0..f56abd54811 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_slots_client.ts +++ b/packages/google-cloud-compute/src/v1beta/reservation_slots_client.ts @@ -223,7 +223,7 @@ export class ReservationSlotsClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const reservationSlotsStubMethods = - ['get', 'list', 'update']; + ['get', 'getVersion', 'list', 'update']; for (const methodName of reservationSlotsStubMethods) { const callPromise = this.reservationSlotsStub.then( stub => (...args: Array<{}>) => { @@ -432,6 +432,131 @@ export class ReservationSlotsClient { throw error; }); } +/** + * Allows customers to get SBOM versions of a 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. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.reservationSlot + * The name of the reservation slot. + * Name should conform to RFC1035 or be a resource ID. + * @param {google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest} request.reservationSlotsGetVersionRequestResource + * The body resource for this request + * @param {string} request.zone + * Name of the zone for this request. Zone name should conform to 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/v1beta/reservation_slots.get_version.js + * region_tag:compute_v1beta_generated_ReservationSlots_GetVersion_async + */ + getVersion( + request?: protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + getVersion( + request: protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request: protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request?: protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.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('getVersion request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSlotRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('getVersion response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.getVersion(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; + }); + } /** * Update a reservation slot in the specified sub-block. * diff --git a/packages/google-cloud-compute/src/v1beta/reservation_slots_client_config.json b/packages/google-cloud-compute/src/v1beta/reservation_slots_client_config.json index a7abd5c1bc4..b49f139c4d5 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_slots_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/reservation_slots_client_config.json @@ -24,6 +24,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetVersion": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts index 901db0a1c56..0ed8196a22e 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts +++ b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client.ts @@ -223,7 +223,7 @@ export class ReservationSubBlocksClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const reservationSubBlocksStubMethods = - ['get', 'getIamPolicy', 'list', 'performMaintenance', 'reportFaulty', 'setIamPolicy', 'testIamPermissions']; + ['get', 'getIamPolicy', 'getVersion', 'list', 'performMaintenance', 'reportFaulty', 'setIamPolicy', 'testIamPermissions']; for (const methodName of reservationSubBlocksStubMethods) { const callPromise = this.reservationSubBlocksStub.then( stub => (...args: Array<{}>) => { @@ -541,6 +541,131 @@ export class ReservationSubBlocksClient { throw error; }); } +/** + * Allows customers to get SBOM versions of a reservation subBlock. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parentName + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the + * request if it has already been completed. + * + * For example, consider a situation where you make an initial request and + * the request times out. If you make the request again with the same + * request ID, the server can check if original operation with the same + * request ID was received, and if so, will ignore the second request. This + * prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be + * a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + * @param {string} request.reservationSubBlock + * The name of the reservation subBlock. + * Name should conform to RFC1035 or be a resource ID. + * @param {google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest} request.reservationSubBlocksGetVersionRequestResource + * The body resource for this request + * @param {string} request.zone + * Name of the zone for this request. Zone name should conform to 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/v1beta/reservation_sub_blocks.get_version.js + * region_tag:compute_v1beta_generated_ReservationSubBlocks_GetVersion_async + */ + getVersion( + request?: protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest, + options?: CallOptions): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.IOperation|undefined, {}|undefined + ]>; + getVersion( + request: protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request: protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest, + callback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>): void; + getVersion( + request?: protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest, + optionsOrCallback?: CallOptions|Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>, + callback?: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>): + Promise<[ + LROperation, + protos.google.cloud.compute.v1beta.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_sub_block': request.reservationSubBlock ?? '', + }); + this.initialize().catch(err => {throw err}); + this._log.info('getVersion request %j', request); + const wrappedCallback: Callback< + protos.google.cloud.compute.v1beta.IOperation, + protos.google.cloud.compute.v1beta.IGetVersionReservationSubBlockRequest|null|undefined, + {}|null|undefined>|undefined = callback + ? (error, response, nextRequest, rawResponse) => { + this._log.info('getVersion response %j', rawResponse); + callback!(error, response, nextRequest, rawResponse); // We verified `callback` above. + } + : undefined; + return this.innerApiCalls.getVersion(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; + }); + } /** * Allows customers to perform maintenance on a reservation subBlock * diff --git a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json index 7dcbbec653d..c7b58b9a78e 100644 --- a/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json +++ b/packages/google-cloud-compute/src/v1beta/reservation_sub_blocks_client_config.json @@ -28,6 +28,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "GetVersion": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1.ts b/packages/google-cloud-compute/test/gapic_region_composite_health_checks_v1.ts new file mode 100644 index 00000000000..55cdf09af5c --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_composite_health_checks_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 regioncompositehealthchecksModule 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.RegionCompositeHealthChecksClient', () => { + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient(); + 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 = regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient.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 = regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient(); + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionCompositeHealthChecksStub, undefined); + await client.initialize(); + assert(client.regionCompositeHealthChecksStub); + }); + + it('has close method for the initialized client', done => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionCompositeHealthChecksStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionCompositeHealthChecksStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.CompositeHealthCheck() + ); + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.CompositeHealthCheck() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ICompositeHealthCheck|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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&composite_health_check=${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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionCompositeHealthCheckRequest', ['compositeHealthCheck']); + request.compositeHealthCheck = 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionCompositeHealthCheckRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthChecksScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthChecksScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthChecksScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1.ICompositeHealthChecksScopedList]> = []; + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionCompositeHealthChecksRequest', ['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.ICompositeHealthChecksScopedList]> = []; + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + ]; + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.ICompositeHealthCheck[]|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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + ]; + 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.CompositeHealthCheck[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.CompositeHealthCheck) => { + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['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.CompositeHealthCheck[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.CompositeHealthCheck) => { + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + generateSampleMessage(new protos.google.cloud.compute.v1.CompositeHealthCheck()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.ICompositeHealthCheck[] = []; + 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 regioncompositehealthchecksModule.v1.RegionCompositeHealthChecksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionCompositeHealthChecksRequest', ['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.ICompositeHealthCheck[] = []; + 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 6fdc30afe97..40e680684ff 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 @@ -918,6 +918,78 @@ describe('v1.RegionHealthCheckServicesClient', () => { }); }); + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList 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.AggregatedListRegionHealthCheckServicesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1.HealthCheckServicesScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1.HealthCheckServicesScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1.HealthCheckServicesScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1.IHealthCheckServicesScopedList]> = []; + 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 regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionHealthCheckServicesRequest', ['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.IHealthCheckServicesScopedList]> = []; + 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 regionhealthcheckservicesModule.v1.RegionHealthCheckServicesClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_health_check_services_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_health_check_services_v1beta.ts index 12334f29765..30bcf7054d4 100644 --- a/packages/google-cloud-compute/test/gapic_region_health_check_services_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_region_health_check_services_v1beta.ts @@ -918,6 +918,78 @@ describe('v1beta.RegionHealthCheckServicesClient', () => { }); }); + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new regionhealthcheckservicesModule.v1beta.RegionHealthCheckServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthCheckServicesScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthCheckServicesScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1beta.HealthCheckServicesScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1beta.IHealthCheckServicesScopedList]> = []; + 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 regionhealthcheckservicesModule.v1beta.RegionHealthCheckServicesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionHealthCheckServicesRequest', ['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.v1beta.IHealthCheckServicesScopedList]> = []; + 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 regionhealthcheckservicesModule.v1beta.RegionHealthCheckServicesClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_health_sources_v1.ts b/packages/google-cloud-compute/test/gapic_region_health_sources_v1.ts new file mode 100644 index 00000000000..058c8e16e21 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_health_sources_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 regionhealthsourcesModule 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.RegionHealthSourcesClient', () => { + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient(); + 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 = regionhealthsourcesModule.v1.RegionHealthSourcesClient.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 = regionhealthsourcesModule.v1.RegionHealthSourcesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({universeDomain: 'example.com'}); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({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 regionhealthsourcesModule.v1.RegionHealthSourcesClient(); + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({universe_domain: 'example.com', universeDomain: 'example.net'}); }); + }); + + it('has port', () => { + const port = regionhealthsourcesModule.v1.RegionHealthSourcesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthSourcesStub, undefined); + await client.initialize(); + assert(client.regionHealthSourcesStub); + }); + + it('has close method for the initialized client', done => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize().catch(err => {throw err}); + assert(client.regionHealthSourcesStub); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has close method for the non-initialized client', done => { + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionHealthSourcesStub, undefined); + client.close().then(() => { + done(); + }).catch(err => {throw err}); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.DeleteRegionHealthSourceRequest', ['healthSource']); + request.healthSource = 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.HealthSource() + ); + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${defaultValue3 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.HealthSource() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IHealthSource|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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetRegionHealthSourceRequest', ['healthSource']); + request.healthSource = 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.InsertRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['healthSource']); + request.healthSource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }&health_source=${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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PatchRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.PatchRegionHealthSourceRequest', ['healthSource']); + request.healthSource = 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['region']); + request.region = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.TestIamPermissionsRegionHealthSourceRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1.HealthSourcesScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1.HealthSourcesScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1.HealthSourcesScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1.IHealthSourcesScopedList]> = []; + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionHealthSourcesRequest', ['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.IHealthSourcesScopedList]> = []; + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + ]; + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`;const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1.IHealthSource[]|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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + ]; + 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.HealthSource[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.HealthSource) => { + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['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.HealthSource[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.HealthSource) => { + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['region']); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }®ion=${defaultValue2 ?? '' }`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + generateSampleMessage(new protos.google.cloud.compute.v1.HealthSource()), + ]; + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IHealthSource[] = []; + 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 regionhealthsourcesModule.v1.RegionHealthSourcesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionHealthSourcesRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.ListRegionHealthSourcesRequest', ['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.IHealthSource[] = []; + 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_notification_endpoints_v1.ts b/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1.ts index 2fb7bda6dff..216e61ba588 100644 --- a/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1.ts @@ -786,6 +786,78 @@ describe('v1.RegionNotificationEndpointsClient', () => { }); }); + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1.NotificationEndpointsScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1.NotificationEndpointsScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1.NotificationEndpointsScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1.INotificationEndpointsScopedList]> = []; + 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 regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.AggregatedListRegionNotificationEndpointsRequest', ['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.INotificationEndpointsScopedList]> = []; + 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 regionnotificationendpointsModule.v1.RegionNotificationEndpointsClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1beta.ts b/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1beta.ts index ac6c3ae7428..96b9a5fdf7c 100644 --- a/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_region_notification_endpoints_v1beta.ts @@ -786,6 +786,78 @@ describe('v1beta.RegionNotificationEndpointsClient', () => { }); }); + describe('aggregatedList', () => { + + it('uses async iteration with aggregatedList without error', async () => { + const client = new regionnotificationendpointsModule.v1beta.RegionNotificationEndpointsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest', ['project']); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }`; + const expectedResponse = [ + ['tuple_key_1', generateSampleMessage(new protos.google.cloud.compute.v1beta.NotificationEndpointsScopedList())], + ['tuple_key_2', generateSampleMessage(new protos.google.cloud.compute.v1beta.NotificationEndpointsScopedList())], + ['tuple_key_3', generateSampleMessage(new protos.google.cloud.compute.v1beta.NotificationEndpointsScopedList())], + ]; + client.descriptors.page.aggregatedList.asyncIterate = stubAsyncIterationCall(expectedResponse); + const responses: Array<[string, protos.google.cloud.compute.v1beta.INotificationEndpointsScopedList]> = []; + 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 regionnotificationendpointsModule.v1beta.RegionNotificationEndpointsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.AggregatedListRegionNotificationEndpointsRequest', ['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.v1beta.INotificationEndpointsScopedList]> = []; + 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 regionnotificationendpointsModule.v1beta.RegionNotificationEndpointsClient({ diff --git a/packages/google-cloud-compute/test/gapic_reservation_slots_v1.ts b/packages/google-cloud-compute/test/gapic_reservation_slots_v1.ts index 6284b32ba0f..d5d95b4f8bc 100644 --- a/packages/google-cloud-compute/test/gapic_reservation_slots_v1.ts +++ b/packages/google-cloud-compute/test/gapic_reservation_slots_v1.ts @@ -414,6 +414,150 @@ describe('v1.ReservationSlotsClient', () => { }); }); + describe('getVersion', () => { + it('invokes getVersion 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.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['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.getVersion = stubSimpleCall(expectedResponse); + const [response] = await client.getVersion(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion 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.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['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.getVersion = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getVersion( + 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.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion 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.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getVersion = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getVersion(request), expectedError); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion 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.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getVersion(request), expectedError); + }); + }); + describe('update', () => { it('invokes update without error', async () => { const client = new reservationslotsModule.v1.ReservationSlotsClient({ diff --git a/packages/google-cloud-compute/test/gapic_reservation_slots_v1beta.ts b/packages/google-cloud-compute/test/gapic_reservation_slots_v1beta.ts index 38e72d2470a..a31d61f06ff 100644 --- a/packages/google-cloud-compute/test/gapic_reservation_slots_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_reservation_slots_v1beta.ts @@ -414,6 +414,150 @@ describe('v1beta.ReservationSlotsClient', () => { }); }); + describe('getVersion', () => { + it('invokes getVersion without error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.getVersion = stubSimpleCall(expectedResponse); + const [response] = await client.getVersion(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion without error using callback', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.getVersion = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getVersion( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion with error', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_slot=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getVersion = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getVersion(request), expectedError); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion with closed client', async () => { + const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSlotRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSlotRequest', ['reservationSlot']); + request.reservationSlot = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getVersion(request), expectedError); + }); + }); + describe('update', () => { it('invokes update without error', async () => { const client = new reservationslotsModule.v1beta.ReservationSlotsClient({ diff --git a/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1.ts b/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1.ts index f2f06b036bb..b06d3966a9b 100644 --- a/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1.ts +++ b/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1.ts @@ -558,6 +558,150 @@ describe('v1.ReservationSubBlocksClient', () => { }); }); + describe('getVersion', () => { + it('invokes getVersion without error', async () => { + const client = new reservationsubblocksModule.v1.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_sub_block=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.getVersion = stubSimpleCall(expectedResponse); + const [response] = await client.getVersion(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion without error using callback', async () => { + const client = new reservationsubblocksModule.v1.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_sub_block=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.getVersion = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getVersion( + 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.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion with error', async () => { + const client = new reservationsubblocksModule.v1.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_sub_block=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getVersion = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getVersion(request), expectedError); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion with closed client', async () => { + const client = new reservationsubblocksModule.v1.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getVersion(request), expectedError); + }); + }); + describe('performMaintenance', () => { it('invokes performMaintenance without error', async () => { const client = new reservationsubblocksModule.v1.ReservationSubBlocksClient({ diff --git a/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts b/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts index 09886095a7c..a8102229d59 100644 --- a/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts +++ b/packages/google-cloud-compute/test/gapic_reservation_sub_blocks_v1beta.ts @@ -558,6 +558,150 @@ describe('v1beta.ReservationSubBlocksClient', () => { }); }); + describe('getVersion', () => { + it('invokes getVersion without error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_sub_block=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.getVersion = stubSimpleCall(expectedResponse); + const [response] = await client.getVersion(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion without error using callback', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_sub_block=${defaultValue4 ?? '' }`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1beta.Operation() + ); + client.innerApiCalls.getVersion = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getVersion( + request, + (err?: Error|null, result?: protos.google.cloud.compute.v1beta.IOperation|null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion with error', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedHeaderRequestParams = `project=${defaultValue1 ?? '' }&zone=${defaultValue2 ?? '' }&parent_name=${defaultValue3 ?? '' }&reservation_sub_block=${defaultValue4 ?? '' }`; + const expectedError = new Error('expected'); + client.innerApiCalls.getVersion = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getVersion(request), expectedError); + const actualRequest = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = (client.innerApiCalls.getVersion as SinonStub) + .getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getVersion with closed client', async () => { + const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({ + auth: googleAuth, + projectId: 'bogus', + }); + await client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest() + ); + const defaultValue1 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['project']); + request.project = defaultValue1; + const defaultValue2 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['zone']); + request.zone = defaultValue2; + const defaultValue3 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['parentName']); + request.parentName = defaultValue3; + const defaultValue4 = + getTypeDefaultValue('.google.cloud.compute.v1beta.GetVersionReservationSubBlockRequest', ['reservationSubBlock']); + request.reservationSubBlock = defaultValue4; + const expectedError = new Error('The client has already been closed.'); + client.close().catch(err => {throw err}); + await assert.rejects(client.getVersion(request), expectedError); + }); + }); + describe('performMaintenance', () => { it('invokes performMaintenance without error', async () => { const client = new reservationsubblocksModule.v1beta.ReservationSubBlocksClient({