diff --git a/package.json b/package.json index ad93cb3..50c4df0 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "compile": "tsc -p . && cp -r protos build/", "compile-protos": "compileProtos src", "predocs-test": "npm run docs", - "prepare": "npm run compile", + "prepare": "npm run compile-protos && npm run compile", "prelint": "cd samples; npm link ../; npm install", "precompile": "gts clean", "api-extractor": "api-extractor run --local", diff --git a/protos/google/container/v1/cluster_service.proto b/protos/google/container/v1/cluster_service.proto index 6363fc9..040173e 100644 --- a/protos/google/container/v1/cluster_service.proto +++ b/protos/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// syntax = "proto3"; @@ -65,7 +64,8 @@ service ClusterManager { // Compute Engine instances. // // By default, the cluster is created in the project's - // [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // [default + // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, // the Kubelet creates routes for each node to allow the containers @@ -168,7 +168,11 @@ service ClusterManager { } // Sets the locations for a specific cluster. + // Deprecated. Use + // [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + // instead. rpc SetLocations(SetLocationsRequest) returns (Operation) { + option deprecated = true; option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:setLocations" body: "*" @@ -249,6 +253,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,operation_id"; + option (google.api.method_signature) = "name"; } // Cancels the specified operation. @@ -277,6 +282,16 @@ service ClusterManager { option (google.api.method_signature) = "name"; } + // Gets the public component of the cluster signing keys in + // JSON Web Key format. + // This API is not yet intended for general use, and is not available for all + // clusters. + rpc GetJSONWebKeys(GetJSONWebKeysRequest) returns (GetJSONWebKeysResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" + }; + } + // Lists the node pools for a cluster. rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { option (google.api.http) = { @@ -459,11 +474,9 @@ service ClusterManager { // Parameters that describe the nodes in a cluster. message NodeConfig { // The name of a Google Compute Engine [machine - // type](https://cloud.google.com/compute/docs/machine-types) (e.g. - // `n1-standard-1`). + // type](https://cloud.google.com/compute/docs/machine-types) // - // If unspecified, the default machine type is - // `n1-standard-1`. + // If unspecified, the default machine type is `e2-medium`. string machine_type = 1; // Size of the disk attached to each node, specified in GB. @@ -482,41 +495,46 @@ message NodeConfig { // persistent storage on your nodes. // * `https://www.googleapis.com/auth/devstorage.read_only` is required for // communicating with **gcr.io** - // (the [Google Container Registry](https://cloud.google.com/container-registry/)). + // (the [Google Container + // Registry](https://cloud.google.com/container-registry/)). // // If unspecified, no scopes are added, unless Cloud Logging or Cloud // Monitoring are enabled, in which case their required scopes will be added. repeated string oauth_scopes = 3; - // The Google Cloud Platform Service Account to be used by the node VMs. If - // no Service Account is specified, the "default" service account is used. + // The Google Cloud Platform Service Account to be used by the node VMs. + // Specify the email address of the Service Account; otherwise, if no Service + // Account is specified, the "default" service account is used. string service_account = 9; // The metadata key/value pairs assigned to instances in the cluster. // - // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes + // Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes // in length. These are reflected as part of a URL in the metadata server. // Additionally, to avoid ambiguity, keys must not conflict with any other // metadata keys for the project or be one of the reserved keys: - // "cluster-location" - // "cluster-name" - // "cluster-uid" - // "configure-sh" - // "containerd-configure-sh" - // "enable-os-login" - // "gci-update-strategy" - // "gci-ensure-gke-docker" - // "instance-template" - // "kube-env" - // "startup-script" - // "user-data" - // "disable-address-manager" - // "windows-startup-script-ps1" - // "common-psm1" - // "k8s-node-setup-psm1" - // "install-ssh-psm1" - // "user-profile-psm1" - // "serial-port-logging-enable" + // - "cluster-location" + // - "cluster-name" + // - "cluster-uid" + // - "configure-sh" + // - "containerd-configure-sh" + // - "enable-os-login" + // - "gci-ensure-gke-docker" + // - "gci-metrics-enabled" + // - "gci-update-strategy" + // - "instance-template" + // - "kube-env" + // - "startup-script" + // - "user-data" + // - "disable-address-manager" + // - "windows-startup-script-ps1" + // - "common-psm1" + // - "k8s-node-setup-psm1" + // - "install-ssh-psm1" + // - "user-profile-psm1" + // + // The following keys are reserved for Windows nodes: + // - "serial-port-logging-enable" // // Values are free-form strings, and only have meaning as interpreted by // the image running in the instance. The only restriction placed on them is @@ -563,7 +581,8 @@ message NodeConfig { // support for GPUs. repeated AcceleratorConfig accelerators = 11; - // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') // // If unspecified, the default disk type is 'pd-standard' string disk_type = 12; @@ -571,20 +590,47 @@ message NodeConfig { // Minimum CPU platform to be used by this instance. The instance may be // scheduled on the specified or newer CPU platform. Applicable values are the // friendly names of CPU platforms, such as - // minCpuPlatform: "Intel Haswell" or - // minCpuPlatform: "Intel Sandy Bridge". For more + // `minCpuPlatform: "Intel Haswell"` or + // `minCpuPlatform: "Intel Sandy Bridge"`. For more // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) string min_cpu_platform = 13; + // The workload metadata configuration for this node. + WorkloadMetadataConfig workload_metadata_config = 14; + // List of kubernetes taints to be applied to each node. // // For more information, including usage and the valid values, see: // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ repeated NodeTaint taints = 15; + // Sandbox configuration for this node. + SandboxConfig sandbox_config = 17; + + // Setting this field will assign instances of this + // pool to run on the specified node group. This is useful for running + // workloads on [sole tenant + // nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + string node_group = 18; + + // The optional reservation affinity. Setting this field will apply + // the specified [Zonal Compute + // Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + // to this node pool. + ReservationAffinity reservation_affinity = 19; + // Shielded Instance options. ShieldedInstanceConfig shielded_instance_config = 20; + + // + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 23; } // A set of Shielded Instance options. @@ -605,11 +651,59 @@ message ShieldedInstanceConfig { bool enable_integrity_monitoring = 2; } +// SandboxConfig contains configurations of the sandbox to use for the node. +message SandboxConfig { + // Possible types of sandboxes. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Run sandbox using gvisor. + GVISOR = 1; + } + + // Type of the sandbox to use for the node. + Type type = 2; +} + +// [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) +// is the configuration of desired reservation which instances could take +// capacity from. +message ReservationAffinity { + // Indicates whether to consume capacity from a reservation or not. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Do not consume from any reserved capacity. + NO_RESERVATION = 1; + + // Consume any reservation available. + ANY_RESERVATION = 2; + + // Must consume from a specific reservation. Must specify key value fields + // for specifying the reservations. + SPECIFIC_RESERVATION = 3; + } + + // Corresponds to the type of reservation consumption. + Type consume_reservation_type = 1; + + // Corresponds to the label key of a reservation resource. To target a + // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as + // the key and specify the name of your reservation as its value. + string key = 2; + + // Corresponds to the label value(s) of reservation resource(s). + repeated string values = 3; +} + // Kubernetes taint is comprised of three fields: key, value, and effect. Effect // can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. // -// For more information, including usage and the valid values, see: -// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +// See +// [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) +// for more information, including usage and the valid values. message NodeTaint { // Possible values for Effect in taint. enum Effect { @@ -643,13 +737,23 @@ message MasterAuth { // The username to use for HTTP basic authentication to the master endpoint. // For clusters v1.6.0 and later, basic authentication can be disabled by // leaving username unspecified (or setting it to the empty string). - string username = 1; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string username = 1 [deprecated = true]; // The password to use for HTTP basic authentication to the master endpoint. // Because the master endpoint is open to the Internet, you should create a // strong password. If a password is provided for cluster creation, username // must be non-empty. - string password = 2; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string password = 2 [deprecated = true]; // Configuration for client certificate authentication on the cluster. For // clusters before v1.12, if no configuration is specified, a client @@ -702,6 +806,13 @@ message AddonsConfig { // Configuration for the Cloud Run addon, which allows the user to use a // managed Knative service. CloudRunConfig cloud_run_config = 7; + + // Configuration for NodeLocalDNS, a dns cache running on cluster nodes + DnsCacheConfig dns_cache_config = 8; + + // Configuration for the ConfigConnector add-on, a Kubernetes + // extension to manage hosted GCP services through the Kubernetes API + ConfigConnectorConfig config_connector_config = 10; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -718,8 +829,8 @@ message HttpLoadBalancing { // has based on the resource usage of the existing pods. message HorizontalPodAutoscaling { // Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - // When enabled, it ensures that a Heapster pod is running in the cluster, - // which is also used by the Cloud Monitoring service. + // When enabled, it ensures that metrics are collected into Stackdriver + // Monitoring. bool disabled = 1; } @@ -737,6 +848,18 @@ message NetworkPolicyConfig { bool disabled = 1; } +// Configuration for NodeLocal DNSCache +message DnsCacheConfig { + // Whether NodeLocal DNSCache is enabled for this cluster. + bool enabled = 1; +} + +// Configuration for controlling master global access settings. +message PrivateClusterMasterGlobalAccessConfig { + // Whenever master is accessible globally or not. + bool enabled = 1; +} + // Configuration options for private clusters. message PrivateClusterConfig { // Whether nodes have internal IP addresses only. If enabled, all nodes are @@ -758,6 +881,12 @@ message PrivateClusterConfig { // Output only. The external IP address of this cluster's master endpoint. string public_endpoint = 5; + + // Output only. The peering name in the customer VPC used by this cluster. + string peering_name = 7; + + // Controls master global access settings. + PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; } // Configuration for returning group information from authenticators. @@ -773,8 +902,29 @@ message AuthenticatorGroupsConfig { // Configuration options for the Cloud Run feature. message CloudRunConfig { + // Load balancer type of ingress service of Cloud Run. + enum LoadBalancerType { + // Load balancer type for Cloud Run is unspecified. + LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + + // Install external load balancer for Cloud Run. + LOAD_BALANCER_TYPE_EXTERNAL = 1; + + // Install internal load balancer for Cloud Run. + LOAD_BALANCER_TYPE_INTERNAL = 2; + } + // Whether Cloud Run addon is enabled for this cluster. bool disabled = 1; + + // Which load balancer type is installed for Cloud Run. + LoadBalancerType load_balancer_type = 3; +} + +// Configuration options for the Config Connector add-on. +message ConfigConnectorConfig { + // Whether Cloud Connector is enabled for this cluster. + bool enabled = 1; } // Configuration options for the master authorized networks feature. Enabled @@ -838,6 +988,9 @@ message BinaryAuthorization { // Configuration for controlling how IPs are allocated in the cluster. message IPAllocationPolicy { // Whether alias IPs will be used for pod IPs in the cluster. + // This is used in conjunction with use_routes. It cannot + // be true if use_routes is true. If both use_ip_aliases and use_routes are + // false, then the server picks the default IP allocation mode bool use_ip_aliases = 1; // Whether a new subnetwork will be created automatically for the cluster. @@ -943,6 +1096,12 @@ message IPAllocationPolicy { // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range // to use. string tpu_ipv4_cidr_block = 13; + + // Whether routes will be used for pod IPs in the cluster. + // This is used in conjunction with use_ip_aliases. It cannot be true if + // use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + // then the server picks the default IP allocation mode + bool use_routes = 15; } // A Google Kubernetes Engine cluster. @@ -967,8 +1126,8 @@ message Cluster { // The STOPPING state indicates the cluster is being deleted. STOPPING = 4; - // The ERROR state indicates the cluster may be unusable. Details - // can be found in the `statusMessage` field. + // The ERROR state indicates the cluster is unusable. It will be + // automatically deleted. Details can be found in the `statusMessage` field. ERROR = 5; // The DEGRADED state indicates the cluster requires user action to restore @@ -1023,25 +1182,33 @@ message Cluster { // The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging - // service with Kubernetes-native resource model - // * `logging.googleapis.com` - the Google Cloud Logging service. + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). // * `none` - no logs will be exported from the cluster. - // * if left as an empty string,`logging.googleapis.com` will be used. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string logging_service = 6; // The monitoring service the cluster should use to write metrics. // Currently available options: // - // * `monitoring.googleapis.com` - the Google Cloud Monitoring service. - // * `none` - no metrics will be exported from the cluster. - // * if left as an empty string, `monitoring.googleapis.com` will be used. + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 7; // The name of the Google Compute Engine - // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the - // cluster is connected. If left unspecified, the `default` network - // will be used. + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. If left unspecified, the `default` + // network will be used. string network = 8; // The IP address range of the container pods in this cluster, in @@ -1054,8 +1221,8 @@ message Cluster { AddonsConfig addons_config = 10; // The name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the - // cluster is connected. + // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + // the cluster is connected. string subnetwork = 11; // The node pools associated with this cluster. @@ -1064,8 +1231,16 @@ message Cluster { repeated NodePool node_pools = 12; // The list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. + // + // This field provides a default value if + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // are not specified during node pool creation. + // + // Warning: changing cluster locations will update the + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // of all node pools and will result in nodes being added and/or removed. repeated string locations = 13; // Kubernetes alpha features are enabled on this cluster. This includes alpha @@ -1128,13 +1303,22 @@ message Cluster { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling vertical_pod_autoscaling = 39; + // Shielded Nodes configuration. + ShieldedNodes shielded_nodes = 40; + + // Release channel configuration. + ReleaseChannel release_channel = 41; + + // Configuration for the use of Kubernetes Service Accounts in GCP IAM + // policies. + WorkloadIdentityConfig workload_identity_config = 43; + // [Output only] Server-defined URL for the resource. string self_link = 100; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field is deprecated, use location instead. string zone = 101 [deprecated = true]; // [Output only] The IP address of this cluster's master endpoint. @@ -1164,7 +1348,7 @@ message Cluster { string current_master_version = 104; // [Output only] Deprecated, use - // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) + // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) // instead. The current version of the node software components. If they are // currently at multiple versions because they're in the process of being // upgraded, this reflects the minimum version of all nodes. @@ -1177,9 +1361,10 @@ message Cluster { // [Output only] The current status of this cluster. Status status = 107; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // cluster, if available. - string status_message = 108; + string status_message = 108 [deprecated = true]; // [Output only] The size of the address space on each node for hosting // containers. This is provisioned from within the `container_ipv4_cidr` @@ -1206,9 +1391,10 @@ message Cluster { string expire_time = 113; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. string location = 114; // Enable the ability to use Cloud TPUs in this cluster. @@ -1243,10 +1429,14 @@ message ClusterUpdate { // The monitoring service the cluster should use to write metrics. // Currently available options: // - // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring - // service with Kubernetes-native resource model - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string desired_monitoring_service = 5; // Configurations for the various addons available to run in the cluster. @@ -1265,6 +1455,12 @@ message ClusterUpdate { // Configuration of etcd encryption. DatabaseEncryption desired_database_encryption = 46; + // Configuration for Workload Identity. + WorkloadIdentityConfig desired_workload_identity_config = 47; + + // Configuration for Shielded Nodes. + ShieldedNodes desired_shielded_nodes = 48; + // Autoscaler configuration for the node pool specified in // desired_node_pool_id. If there is only one pool in the // cluster and desired_node_pool_id is not provided then @@ -1272,12 +1468,13 @@ message ClusterUpdate { NodePoolAutoscaling desired_node_pool_autoscaling = 9; // The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. Changing the locations a cluster is in will result - // in nodes being either created or removed from the cluster, depending on - // whether locations are being added or removed. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. // // This list must always include the cluster's primary zone. + // + // Warning: changing cluster locations will update the locations of all node + // pools and will result in nodes being added and/or removed. repeated string desired_locations = 10; // The desired configuration options for master authorized networks feature. @@ -1292,10 +1489,14 @@ message ClusterUpdate { // The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging - // service with Kubernetes-native resource model - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no logs will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string desired_logging_service = 19; // The desired configuration for exporting resource usage. @@ -1304,9 +1505,18 @@ message ClusterUpdate { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + // The desired private cluster configuration. + PrivateClusterConfig desired_private_cluster_config = 25; + // The desired config of Intra-node visibility. IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + // The desired status of whether to disable default sNAT for this cluster. + DefaultSnatStatus desired_default_snat_status = 28; + + // The desired release channel configuration. + ReleaseChannel desired_release_channel = 31; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1399,9 +1609,8 @@ message Operation { string name = 1; // The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation - // is taking place. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // operation is taking place. This field is deprecated, use location instead. string zone = 2 [deprecated = true]; // The operation type. @@ -1413,8 +1622,8 @@ message Operation { // Detailed operation progress, if available. string detail = 8; - // If an error has occurred, a textual description of the error. - string status_message = 5; + // Output only. If an error has occurred, a textual description of the error. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Server-defined URL for the resource. string self_link = 6; @@ -1423,9 +1632,10 @@ message Operation { string target_link = 7; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. string location = 9; // [Output only] The time the operation started, in @@ -1436,6 +1646,9 @@ message Operation { // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string end_time = 11; + // Output only. [Output only] Progress information for an operation. + OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Which conditions caused the current cluster state. repeated StatusCondition cluster_conditions = 13; @@ -1443,6 +1656,46 @@ message Operation { repeated StatusCondition nodepool_conditions = 14; } +// Information about operation (or operation stage) progress. +message OperationProgress { + // Progress metric is (string, int|float|string) pair. + message Metric { + // Required. Metric name, e.g., "nodes total", "percent done". + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Strictly one of the values is required. + oneof value { + // For metrics with integer value. + int64 int_value = 2; + + // For metrics with floating point value. + double double_value = 3; + + // For metrics with custom values (ratios, visual progress, etc.). + string string_value = 4; + } + } + + // A non-parameterized string describing an operation stage. + // Unset for single-stage operations. + string name = 1; + + // Status of an operation stage. + // Unset for single-stage operations. + Operation.Status status = 2; + + // Progress metric bundle, for example: + // metrics: [{name: "nodes done", int_value: 15}, + // {name: "nodes total", int_value: 32}] + // or + // metrics: [{name: "progress", double_value: 0.56}, + // {name: "progress scale", double_value: 1.0}] + repeated Metric metrics = 3; + + // Substages of an operation or a stage. + repeated OperationProgress stages = 4; +} + // CreateClusterRequest creates a cluster. message CreateClusterRequest { // Deprecated. The Google Developers Console [project ID or project @@ -1451,13 +1704,13 @@ message CreateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [deprecated = true]; // Required. A [cluster - // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // The parent (project and location) where the cluster will be created. @@ -1473,9 +1726,9 @@ message GetClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to retrieve. @@ -1495,9 +1748,9 @@ message UpdateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1520,9 +1773,9 @@ message UpdateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1553,6 +1806,19 @@ message UpdateNodePoolRequest { // update. Specified in the format // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 8; + + // The desired list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // node pool's nodes should be located. Changing the locations for a node pool + // will result in nodes being either created or removed from the node pool, + // depending on whether locations are being added or removed. + repeated string locations = 13; + + // The desired workload metadata config for the node pool. + WorkloadMetadataConfig workload_metadata_config = 14; + + // Upgrade settings control disruption and speed of the upgrade. + NodePool.UpgradeSettings upgrade_settings = 15; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -1563,9 +1829,9 @@ message SetNodePoolAutoscalingRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1593,20 +1859,26 @@ message SetLoggingServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. string cluster_id = 3 [deprecated = true]; - // Required. The logging service the cluster should use to write metrics. + // Required. The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no metrics will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set logging. @@ -1622,9 +1894,9 @@ message SetMonitoringServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1634,10 +1906,14 @@ message SetMonitoringServiceRequest { // Required. The monitoring service the cluster should use to write metrics. // Currently available options: // - // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring - // service with Kubernetes-native resource model - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set monitoring. @@ -1653,9 +1929,9 @@ message SetAddonsConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1679,9 +1955,9 @@ message SetLocationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1689,10 +1965,10 @@ message SetLocationsRequest { string cluster_id = 3 [deprecated = true]; // Required. The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. Changing the locations a cluster is in will result - // in nodes being either created or removed from the cluster, depending on - // whether locations are being added or removed. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. Changing the locations a cluster is in + // will result in nodes being either created or removed from the cluster, + // depending on whether locations are being added or removed. // // This list must always include the cluster's primary zone. repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; @@ -1710,9 +1986,9 @@ message UpdateMasterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1762,9 +2038,9 @@ message SetMasterAuthRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1790,9 +2066,9 @@ message DeleteClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to delete. @@ -1812,9 +2088,9 @@ message ListClustersRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides, or "-" for all zones. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides, or "-" for all zones. This field has been deprecated and + // replaced by the parent field. string zone = 2 [deprecated = true]; // The parent (project and location) where the clusters will be listed. @@ -1842,9 +2118,9 @@ message GetOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The server-assigned `name` of the operation. @@ -1864,8 +2140,9 @@ message ListOperationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for - // all zones. This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) to return + // operations for, or `-` for all zones. This field has been deprecated and + // replaced by the parent field. string zone = 2 [deprecated = true]; // The parent (project and location) where the operations will be listed. @@ -1882,8 +2159,9 @@ message CancelOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // operation resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The server-assigned `name` of the operation. @@ -1913,8 +2191,9 @@ message GetServerConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) to return + // operations for. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // The name (project and location) of the server config to get, @@ -1924,10 +2203,22 @@ message GetServerConfigRequest { // Kubernetes Engine service configuration. message ServerConfig { + // ReleaseChannelConfig exposes configuration for a release channel. + message ReleaseChannelConfig { + // The release channel this configuration applies to. + ReleaseChannel.Channel channel = 1; + + // The default version for newly created clusters on the channel. + string default_version = 2; + + // List of valid versions for the channel. + repeated string valid_versions = 4; + } + // Version of Kubernetes the service deploys by default. string default_cluster_version = 1; - // List of valid node upgrade target versions. + // List of valid node upgrade target versions, in descending order. repeated string valid_node_versions = 3; // Default image type. @@ -1936,8 +2227,11 @@ message ServerConfig { // List of valid image types. repeated string valid_image_types = 5; - // List of valid master versions. + // List of valid master versions, in descending order. repeated string valid_master_versions = 6; + + // List of release channel configurations. + repeated ReleaseChannelConfig channels = 9; } // CreateNodePoolRequest creates a node pool for a cluster. @@ -1948,9 +2242,9 @@ message CreateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -1974,9 +2268,9 @@ message DeleteNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2001,9 +2295,9 @@ message ListNodePoolsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2023,9 +2317,9 @@ message GetNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2049,6 +2343,40 @@ message GetNodePoolRequest { // during pod scheduling. They may also be resized up or down, to accommodate // the workload. message NodePool { + // These upgrade settings control the level of parallelism and the level of + // disruption caused by an upgrade. + // + // maxUnavailable controls the number of nodes that can be simultaneously + // unavailable. + // + // maxSurge controls the number of additional nodes that can be added to the + // node pool temporarily for the time of the upgrade to increase the number of + // available nodes. + // + // (maxUnavailable + maxSurge) determines the level of parallelism (how many + // nodes are being upgraded at the same time). + // + // Note: upgrades inevitably introduce some disruption since workloads need to + // be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, + // this holds true. (Disruption stays within the limits of + // PodDisruptionBudget, if it is configured.) + // + // Consider a hypothetical node pool with 5 nodes having maxSurge=2, + // maxUnavailable=1. This means the upgrade process upgrades 3 nodes + // simultaneously. It creates 2 additional (upgraded) nodes, then it brings + // down 3 old (not yet upgraded) nodes at the same time. This ensures that + // there are always at least 4 nodes available. + message UpgradeSettings { + // The maximum number of nodes that can be created beyond the current size + // of the node pool during the upgrade process. + int32 max_surge = 1; + + // The maximum number of nodes that can be simultaneously unavailable during + // the upgrade process. A node is considered available if its status is + // Ready. + int32 max_unavailable = 2; + } + // The current status of the node pool instance. enum Status { // Not set. @@ -2092,6 +2420,18 @@ message NodePool { // firewall and routes quota. int32 initial_node_count = 3; + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes should be located. + // + // If this value is unspecified during node pool creation, the + // [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + // value will be used, instead. + // + // Warning: changing node pool locations will result in nodes being added + // and/or removed. + repeated string locations = 13; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -2106,9 +2446,10 @@ message NodePool { // [Output only] The status of the nodes in this pool instance. Status status = 103; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // node pool instance, if available. - string status_message = 104; + string status_message = 104 [deprecated = true]; // Autoscaler configuration for this NodePool. Autoscaler is enabled // only if a valid configuration is present. @@ -2126,6 +2467,9 @@ message NodePool { // [Output only] The pod CIDR block size per node in this node pool. int32 pod_ipv4_cidr_size = 7; + + // Upgrade settings control disruption and speed of the upgrade. + UpgradeSettings upgrade_settings = 107; } // NodeManagement defines the set of node management services turned on for the @@ -2167,7 +2511,7 @@ message MaintenancePolicy { // A hash identifying the version of this policy, so that updates to fields of // the policy won't accidentally undo intermediate changes (and so that users // of the API unaware of some fields won't accidentally remove other fields). - // Make a get() request to the cluster to get the current + // Make a `get()` request to the cluster to get the current // resource version and include it with requests to set the policy. string resource_version = 3; } @@ -2209,25 +2553,30 @@ message RecurringTimeWindow { // end time. // // For example, to have something repeat every weekday, you'd use: - // FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + // // To repeat some window daily (equivalent to the DailyMaintenanceWindow): - // FREQ=DAILY + // `FREQ=DAILY` + // // For the first weekend of every month: - // FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU + // `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + // // This specifies how frequently the window starts. Eg, if you wanted to have // a 9-5 UTC-4 window every weekday, you'd use something like: - // - // start time = 2019-01-01T09:00:00-0400 - // end time = 2019-01-01T17:00:00-0400 - // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - // + // ``` + // start time = 2019-01-01T09:00:00-0400 + // end time = 2019-01-01T17:00:00-0400 + // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // ``` + // // Windows can span multiple days. Eg, to make the window encompass every // weekend from midnight Saturday till the last minute of Sunday UTC: - // - // start time = 2019-01-05T00:00:00Z - // end time = 2019-01-07T23:59:00Z - // recurrence = FREQ=WEEKLY;BYDAY=SA - // + // ``` + // start time = 2019-01-05T00:00:00Z + // end time = 2019-01-07T23:59:00Z + // recurrence = FREQ=WEEKLY;BYDAY=SA + // ``` + // // Note the start and end time's specific dates are largely arbitrary except // to specify duration of the window and when it first starts. // The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -2257,9 +2606,9 @@ message SetNodePoolManagementRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to update. @@ -2288,9 +2637,9 @@ message SetNodePoolSizeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to update. @@ -2320,9 +2669,9 @@ message RollbackNodePoolUpgradeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to rollback. @@ -2361,21 +2710,60 @@ message ClusterAutoscaling { // created by NAP. AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - // The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) - // in which the NodePool's nodes can be created by NAP. + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes can be created by NAP. repeated string autoprovisioning_locations = 5; } // AutoprovisioningNodePoolDefaults contains defaults for a node pool created // by NAP. message AutoprovisioningNodePoolDefaults { - // Scopes that are used by NAP when creating node pools. If oauth_scopes are - // specified, service_account should be empty. + // Scopes that are used by NAP when creating node pools. repeated string oauth_scopes = 1; - // The Google Cloud Platform Service Account to be used by the node VMs. If - // service_account is specified, scopes should be empty. + // The Google Cloud Platform Service Account to be used by the node VMs. string service_account = 2; + + // Specifies the upgrade settings for NAP created node pools + NodePool.UpgradeSettings upgrade_settings = 3; + + // Specifies the node management options for NAP created node-pools. + NodeManagement management = 4; + + // Minimum CPU platform to be used for NAP created node pools. + // The instance may be scheduled on the specified or newer CPU platform. + // Applicable values are the friendly names of CPU platforms, such as + // minCpuPlatform: Intel Haswell or + // minCpuPlatform: Intel Sandy Bridge. For more + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // To unset the min cpu platform field pass "automatic" + // as field value. + string min_cpu_platform = 5; + + // Size of the disk attached to each node, specified in GB. + // The smallest allowed disk size is 10GB. + // + // If unspecified, the default disk size is 100GB. + int32 disk_size_gb = 6; + + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 7; + + // Shielded Instance options. + ShieldedInstanceConfig shielded_instance_config = 8; + + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 9; } // Contains information about amount of some resource in the cluster. @@ -2419,9 +2807,9 @@ message SetLabelsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2435,7 +2823,7 @@ message SetLabelsRequest { // used to detect conflicts. The fingerprint is initially generated by // Kubernetes Engine and changes after every request to modify or update // labels. You must always provide an up-to-date fingerprint hash when - // updating or changing labels. Make a get() request to the + // updating or changing labels. Make a `get()` request to the // resource to get the latest fingerprint. string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; @@ -2453,9 +2841,9 @@ message SetLegacyAbacRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to update. @@ -2479,9 +2867,9 @@ message StartIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2504,9 +2892,9 @@ message CompleteIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2528,6 +2916,31 @@ message AcceleratorConfig { string accelerator_type = 2; } +// WorkloadMetadataConfig defines the metadata configuration to expose to +// workloads on the node pool. +message WorkloadMetadataConfig { + // Mode is the configuration for how to expose metadata to workloads running + // on the node. + enum Mode { + // Not set. + MODE_UNSPECIFIED = 0; + + // Expose all Compute Engine metadata to pods. + GCE_METADATA = 1; + + // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + // a metadata API to workloads that is compatible with the V1 Compute + // Metadata APIs exposed by the Compute Engine and App Engine Metadata + // Servers. This feature can only be enabled if Workload Identity is enabled + // at the cluster level. + GKE_METADATA = 2; + } + + // Mode is the configuration for how to expose metadata to workloads running + // on the node pool. + Mode mode = 2; +} + // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { // Deprecated. The Google Developers Console [project ID or project @@ -2536,9 +2949,9 @@ message SetNetworkPolicyRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2560,8 +2973,8 @@ message SetMaintenancePolicyRequest { string project_id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. string zone = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the cluster to update. @@ -2585,7 +2998,8 @@ message StatusCondition { // UNKNOWN indicates a generic condition. UNKNOWN = 0; - // GCE_STOCKOUT indicates a Google Compute Engine stockout. + // GCE_STOCKOUT indicates that Google Compute Engine resources are + // temporarily unavailable. GCE_STOCKOUT = 1; // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot @@ -2614,19 +3028,140 @@ message StatusCondition { // NetworkConfig reports the relative names of network & subnetwork. message NetworkConfig { // Output only. The relative name of the Google Compute Engine - // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which - // the cluster is connected. - // Example: projects/my-project/global/networks/my-network + // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. Example: + // projects/my-project/global/networks/my-network string network = 1; // Output only. The relative name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. - // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + // cluster is connected. Example: + // projects/my-project/regions/us-central1/subnetworks/my-subnet string subnetwork = 2; // Whether Intra-node visibility is enabled for this cluster. // This makes same node pod to pod traffic visible for VPC network. bool enable_intra_node_visibility = 5; + + // Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + // will be disabled when default_snat_status is disabled. When disabled is set + // to false, default IP masquerade rules will be applied to the nodes to + // prevent sNAT on cluster internal traffic. + DefaultSnatStatus default_snat_status = 7; +} + +// GetOpenIDConfigRequest gets the OIDC discovery document for the +// cluster. See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigRequest { + // The cluster (project, location, cluster id) to get the discovery document + // for. Specified in the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// GetOpenIDConfigResponse is an OIDC discovery document for the cluster. +// See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigResponse { + // OIDC Issuer. + string issuer = 1; + + // JSON Web Key uri. + string jwks_uri = 2; + + // Supported response types. + repeated string response_types_supported = 3; + + // Supported subject types. + repeated string subject_types_supported = 4; + + // supported ID Token signing Algorithms. + repeated string id_token_signing_alg_values_supported = 5; + + // Supported claims. + repeated string claims_supported = 6; + + // Supported grant types. + repeated string grant_types = 7; +} + +// GetJSONWebKeysRequest gets the public component of the keys used by the +// cluster to sign token requests. This will be the jwks_uri for the discover +// document returned by getOpenIDConfig. See the OpenID Connect +// Discovery 1.0 specification for details. +message GetJSONWebKeysRequest { + // The cluster (project, location, cluster id) to get keys for. Specified in + // the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// Jwk is a JSON Web Key as specified in RFC 7517 +message Jwk { + // Key Type. + string kty = 1; + + // Algorithm. + string alg = 2; + + // Permitted uses for the public keys. + string use = 3; + + // Key ID. + string kid = 4; + + // Used for RSA keys. + string n = 5; + + // Used for RSA keys. + string e = 6; + + // Used for ECDSA keys. + string x = 7; + + // Used for ECDSA keys. + string y = 8; + + // Used for ECDSA keys. + string crv = 9; +} + +// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 +message GetJSONWebKeysResponse { + // The public component of the keys used by the cluster to sign token + // requests. + repeated Jwk keys = 1; +} + +// ReleaseChannel indicates which release channel a cluster is +// subscribed to. Release channels are arranged in order of risk. +// +// When a cluster is subscribed to a release channel, Google maintains +// both the master version and the node version. Node auto-upgrade +// defaults to true and cannot be disabled. +message ReleaseChannel { + // Possible values for 'channel'. + enum Channel { + // No channel specified. + UNSPECIFIED = 0; + + // RAPID channel is offered on an early access basis for customers who want + // to test new releases. + // + // WARNING: Versions available in the RAPID Channel may be subject to + // unresolved issues with no known workaround and are not subject to any + // SLAs. + RAPID = 1; + + // Clusters subscribed to REGULAR receive versions that are considered GA + // quality. REGULAR is intended for production users who want to take + // advantage of new features. + REGULAR = 2; + + // Clusters subscribed to STABLE receive versions that are known to be + // stable and reliable in production. + STABLE = 3; + } + + // channel specifies which release channel the cluster is subscribed to. + Channel channel = 1; } // IntraNodeVisibilityConfig contains the desired config of the intra-node @@ -2642,6 +3177,13 @@ message MaxPodsConstraint { int64 max_pods_per_node = 1; } +// Configuration for the use of Kubernetes Service Accounts in GCP IAM +// policies. +message WorkloadIdentityConfig { + // The workload pool to attach all Kubernetes service accounts to. + string workload_pool = 2; +} + // Configuration of etcd encryption. message DatabaseEncryption { // State of etcd encryption. @@ -2653,7 +3195,7 @@ message DatabaseEncryption { ENCRYPTED = 1; // Secrets in etcd are stored in plain text (at etcd level) - this is - // unrelated to GCE level full disk encryption. + // unrelated to Compute Engine level full disk encryption. DECRYPTED = 2; } @@ -2795,3 +3337,16 @@ message VerticalPodAutoscaling { // Enables vertical pod autoscaling. bool enabled = 1; } + +// DefaultSnatStatus contains the desired state of whether default sNAT should +// be disabled on the cluster. +message DefaultSnatStatus { + // Disables cluster default sNAT rules. + bool disabled = 1; +} + +// Configuration of Shielded Nodes feature. +message ShieldedNodes { + // Whether Shielded Nodes features are enabled on all nodes in this cluster. + bool enabled = 1; +} diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 89b4606..99d34b4 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -281,6 +281,20 @@ export namespace google { */ public getServerConfig(request: google.container.v1.IGetServerConfigRequest): Promise; + /** + * Calls GetJSONWebKeys. + * @param request GetJSONWebKeysRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetJSONWebKeysResponse + */ + public getJSONWebKeys(request: google.container.v1.IGetJSONWebKeysRequest, callback: google.container.v1.ClusterManager.GetJSONWebKeysCallback): void; + + /** + * Calls GetJSONWebKeys. + * @param request GetJSONWebKeysRequest message or plain object + * @returns Promise + */ + public getJSONWebKeys(request: google.container.v1.IGetJSONWebKeysRequest): Promise; + /** * Calls ListNodePools. * @param request ListNodePoolsRequest message or plain object @@ -599,6 +613,13 @@ export namespace google { */ type GetServerConfigCallback = (error: (Error|null), response?: google.container.v1.ServerConfig) => void; + /** + * Callback as used by {@link google.container.v1.ClusterManager#getJSONWebKeys}. + * @param error Error, if any + * @param [response] GetJSONWebKeysResponse + */ + type GetJSONWebKeysCallback = (error: (Error|null), response?: google.container.v1.GetJSONWebKeysResponse) => void; + /** * Callback as used by {@link google.container.v1.ClusterManager#listNodePools}. * @param error Error, if any @@ -740,11 +761,26 @@ export namespace google { /** NodeConfig minCpuPlatform */ minCpuPlatform?: (string|null); + /** NodeConfig workloadMetadataConfig */ + workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null); + /** NodeConfig taints */ taints?: (google.container.v1.INodeTaint[]|null); + /** NodeConfig sandboxConfig */ + sandboxConfig?: (google.container.v1.ISandboxConfig|null); + + /** NodeConfig nodeGroup */ + nodeGroup?: (string|null); + + /** NodeConfig reservationAffinity */ + reservationAffinity?: (google.container.v1.IReservationAffinity|null); + /** NodeConfig shieldedInstanceConfig */ shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); + + /** NodeConfig bootDiskKmsKey */ + bootDiskKmsKey?: (string|null); } /** Represents a NodeConfig. */ @@ -795,12 +831,27 @@ export namespace google { /** NodeConfig minCpuPlatform. */ public minCpuPlatform: string; + /** NodeConfig workloadMetadataConfig. */ + public workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null); + /** NodeConfig taints. */ public taints: google.container.v1.INodeTaint[]; + /** NodeConfig sandboxConfig. */ + public sandboxConfig?: (google.container.v1.ISandboxConfig|null); + + /** NodeConfig nodeGroup. */ + public nodeGroup: string; + + /** NodeConfig reservationAffinity. */ + public reservationAffinity?: (google.container.v1.IReservationAffinity|null); + /** NodeConfig shieldedInstanceConfig. */ public shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); + /** NodeConfig bootDiskKmsKey. */ + public bootDiskKmsKey: string; + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -968,6 +1019,218 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SandboxConfig. */ + interface ISandboxConfig { + + /** SandboxConfig type */ + type?: (google.container.v1.SandboxConfig.Type|keyof typeof google.container.v1.SandboxConfig.Type|null); + } + + /** Represents a SandboxConfig. */ + class SandboxConfig implements ISandboxConfig { + + /** + * Constructs a new SandboxConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISandboxConfig); + + /** SandboxConfig type. */ + public type: (google.container.v1.SandboxConfig.Type|keyof typeof google.container.v1.SandboxConfig.Type); + + /** + * Creates a new SandboxConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SandboxConfig instance + */ + public static create(properties?: google.container.v1.ISandboxConfig): google.container.v1.SandboxConfig; + + /** + * Encodes the specified SandboxConfig message. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages. + * @param message SandboxConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISandboxConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SandboxConfig message, length delimited. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages. + * @param message SandboxConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISandboxConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SandboxConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SandboxConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SandboxConfig; + + /** + * Decodes a SandboxConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SandboxConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SandboxConfig; + + /** + * Verifies a SandboxConfig message. + * @param message Plain 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 SandboxConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SandboxConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SandboxConfig; + + /** + * Creates a plain object from a SandboxConfig message. Also converts values to other types if specified. + * @param message SandboxConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SandboxConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SandboxConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SandboxConfig { + + /** Type enum. */ + enum Type { + UNSPECIFIED = 0, + GVISOR = 1 + } + } + + /** Properties of a ReservationAffinity. */ + interface IReservationAffinity { + + /** ReservationAffinity consumeReservationType */ + consumeReservationType?: (google.container.v1.ReservationAffinity.Type|keyof typeof google.container.v1.ReservationAffinity.Type|null); + + /** ReservationAffinity key */ + key?: (string|null); + + /** ReservationAffinity values */ + values?: (string[]|null); + } + + /** Represents a ReservationAffinity. */ + class ReservationAffinity implements IReservationAffinity { + + /** + * Constructs a new ReservationAffinity. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IReservationAffinity); + + /** ReservationAffinity consumeReservationType. */ + public consumeReservationType: (google.container.v1.ReservationAffinity.Type|keyof typeof google.container.v1.ReservationAffinity.Type); + + /** ReservationAffinity key. */ + public key: string; + + /** ReservationAffinity values. */ + public values: string[]; + + /** + * Creates a new ReservationAffinity instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationAffinity instance + */ + public static create(properties?: google.container.v1.IReservationAffinity): google.container.v1.ReservationAffinity; + + /** + * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages. + * @param message ReservationAffinity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages. + * @param message ReservationAffinity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationAffinity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ReservationAffinity; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationAffinity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ReservationAffinity; + + /** + * Verifies a ReservationAffinity message. + * @param message Plain 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 ReservationAffinity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationAffinity + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ReservationAffinity; + + /** + * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified. + * @param message ReservationAffinity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ReservationAffinity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationAffinity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ReservationAffinity { + + /** Type enum. */ + enum Type { + UNSPECIFIED = 0, + NO_RESERVATION = 1, + ANY_RESERVATION = 2, + SPECIFIC_RESERVATION = 3 + } + } + /** Properties of a NodeTaint. */ interface INodeTaint { @@ -1308,6 +1571,12 @@ export namespace google { /** AddonsConfig cloudRunConfig */ cloudRunConfig?: (google.container.v1.ICloudRunConfig|null); + + /** AddonsConfig dnsCacheConfig */ + dnsCacheConfig?: (google.container.v1.IDnsCacheConfig|null); + + /** AddonsConfig configConnectorConfig */ + configConnectorConfig?: (google.container.v1.IConfigConnectorConfig|null); } /** Represents an AddonsConfig. */ @@ -1334,6 +1603,12 @@ export namespace google { /** AddonsConfig cloudRunConfig. */ public cloudRunConfig?: (google.container.v1.ICloudRunConfig|null); + /** AddonsConfig dnsCacheConfig. */ + public dnsCacheConfig?: (google.container.v1.IDnsCacheConfig|null); + + /** AddonsConfig configConnectorConfig. */ + public configConnectorConfig?: (google.container.v1.IConfigConnectorConfig|null); + /** * Creates a new AddonsConfig instance using the specified properties. * @param [properties] Properties to set @@ -1765,221 +2040,416 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a PrivateClusterConfig. */ - interface IPrivateClusterConfig { - - /** PrivateClusterConfig enablePrivateNodes */ - enablePrivateNodes?: (boolean|null); - - /** PrivateClusterConfig enablePrivateEndpoint */ - enablePrivateEndpoint?: (boolean|null); - - /** PrivateClusterConfig masterIpv4CidrBlock */ - masterIpv4CidrBlock?: (string|null); + /** Properties of a DnsCacheConfig. */ + interface IDnsCacheConfig { - /** PrivateClusterConfig privateEndpoint */ - privateEndpoint?: (string|null); - - /** PrivateClusterConfig publicEndpoint */ - publicEndpoint?: (string|null); + /** DnsCacheConfig enabled */ + enabled?: (boolean|null); } - /** Represents a PrivateClusterConfig. */ - class PrivateClusterConfig implements IPrivateClusterConfig { + /** Represents a DnsCacheConfig. */ + class DnsCacheConfig implements IDnsCacheConfig { /** - * Constructs a new PrivateClusterConfig. + * Constructs a new DnsCacheConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IPrivateClusterConfig); - - /** PrivateClusterConfig enablePrivateNodes. */ - public enablePrivateNodes: boolean; - - /** PrivateClusterConfig enablePrivateEndpoint. */ - public enablePrivateEndpoint: boolean; + constructor(properties?: google.container.v1.IDnsCacheConfig); - /** PrivateClusterConfig masterIpv4CidrBlock. */ - public masterIpv4CidrBlock: string; - - /** PrivateClusterConfig privateEndpoint. */ - public privateEndpoint: string; - - /** PrivateClusterConfig publicEndpoint. */ - public publicEndpoint: string; + /** DnsCacheConfig enabled. */ + public enabled: boolean; /** - * Creates a new PrivateClusterConfig instance using the specified properties. + * Creates a new DnsCacheConfig instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateClusterConfig instance + * @returns DnsCacheConfig instance */ - public static create(properties?: google.container.v1.IPrivateClusterConfig): google.container.v1.PrivateClusterConfig; + public static create(properties?: google.container.v1.IDnsCacheConfig): google.container.v1.DnsCacheConfig; /** - * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. - * @param message PrivateClusterConfig message or plain object to encode + * Encodes the specified DnsCacheConfig message. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages. + * @param message DnsCacheConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IDnsCacheConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. - * @param message PrivateClusterConfig message or plain object to encode + * Encodes the specified DnsCacheConfig message, length delimited. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages. + * @param message DnsCacheConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IDnsCacheConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * Decodes a DnsCacheConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateClusterConfig + * @returns DnsCacheConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.PrivateClusterConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.DnsCacheConfig; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * Decodes a DnsCacheConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateClusterConfig + * @returns DnsCacheConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.PrivateClusterConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.DnsCacheConfig; /** - * Verifies a PrivateClusterConfig message. + * Verifies a DnsCacheConfig message. * @param message Plain 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 PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DnsCacheConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateClusterConfig + * @returns DnsCacheConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.PrivateClusterConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.DnsCacheConfig; /** - * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. - * @param message PrivateClusterConfig + * Creates a plain object from a DnsCacheConfig message. Also converts values to other types if specified. + * @param message DnsCacheConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.DnsCacheConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateClusterConfig to JSON. + * Converts this DnsCacheConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AuthenticatorGroupsConfig. */ - interface IAuthenticatorGroupsConfig { + /** Properties of a PrivateClusterMasterGlobalAccessConfig. */ + interface IPrivateClusterMasterGlobalAccessConfig { - /** AuthenticatorGroupsConfig enabled */ + /** PrivateClusterMasterGlobalAccessConfig enabled */ enabled?: (boolean|null); - - /** AuthenticatorGroupsConfig securityGroup */ - securityGroup?: (string|null); } - /** Represents an AuthenticatorGroupsConfig. */ - class AuthenticatorGroupsConfig implements IAuthenticatorGroupsConfig { + /** Represents a PrivateClusterMasterGlobalAccessConfig. */ + class PrivateClusterMasterGlobalAccessConfig implements IPrivateClusterMasterGlobalAccessConfig { /** - * Constructs a new AuthenticatorGroupsConfig. + * Constructs a new PrivateClusterMasterGlobalAccessConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IAuthenticatorGroupsConfig); + constructor(properties?: google.container.v1.IPrivateClusterMasterGlobalAccessConfig); - /** AuthenticatorGroupsConfig enabled. */ + /** PrivateClusterMasterGlobalAccessConfig enabled. */ public enabled: boolean; - /** AuthenticatorGroupsConfig securityGroup. */ - public securityGroup: string; - /** - * Creates a new AuthenticatorGroupsConfig instance using the specified properties. + * Creates a new PrivateClusterMasterGlobalAccessConfig instance using the specified properties. * @param [properties] Properties to set - * @returns AuthenticatorGroupsConfig instance + * @returns PrivateClusterMasterGlobalAccessConfig instance */ - public static create(properties?: google.container.v1.IAuthenticatorGroupsConfig): google.container.v1.AuthenticatorGroupsConfig; + public static create(properties?: google.container.v1.IPrivateClusterMasterGlobalAccessConfig): google.container.v1.PrivateClusterMasterGlobalAccessConfig; /** - * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. - * @param message AuthenticatorGroupsConfig message or plain object to encode + * Encodes the specified PrivateClusterMasterGlobalAccessConfig message. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages. + * @param message PrivateClusterMasterGlobalAccessConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IPrivateClusterMasterGlobalAccessConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. - * @param message AuthenticatorGroupsConfig message or plain object to encode + * Encodes the specified PrivateClusterMasterGlobalAccessConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages. + * @param message PrivateClusterMasterGlobalAccessConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IPrivateClusterMasterGlobalAccessConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer. + * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuthenticatorGroupsConfig + * @returns PrivateClusterMasterGlobalAccessConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AuthenticatorGroupsConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.PrivateClusterMasterGlobalAccessConfig; /** - * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited. + * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuthenticatorGroupsConfig + * @returns PrivateClusterMasterGlobalAccessConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AuthenticatorGroupsConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.PrivateClusterMasterGlobalAccessConfig; /** - * Verifies an AuthenticatorGroupsConfig message. + * Verifies a PrivateClusterMasterGlobalAccessConfig message. * @param message Plain 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 AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateClusterMasterGlobalAccessConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuthenticatorGroupsConfig + * @returns PrivateClusterMasterGlobalAccessConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.AuthenticatorGroupsConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.PrivateClusterMasterGlobalAccessConfig; /** - * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified. - * @param message AuthenticatorGroupsConfig + * Creates a plain object from a PrivateClusterMasterGlobalAccessConfig message. Also converts values to other types if specified. + * @param message PrivateClusterMasterGlobalAccessConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.AuthenticatorGroupsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.PrivateClusterMasterGlobalAccessConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuthenticatorGroupsConfig to JSON. + * Converts this PrivateClusterMasterGlobalAccessConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CloudRunConfig. */ - interface ICloudRunConfig { - + /** Properties of a PrivateClusterConfig. */ + interface IPrivateClusterConfig { + + /** PrivateClusterConfig enablePrivateNodes */ + enablePrivateNodes?: (boolean|null); + + /** PrivateClusterConfig enablePrivateEndpoint */ + enablePrivateEndpoint?: (boolean|null); + + /** PrivateClusterConfig masterIpv4CidrBlock */ + masterIpv4CidrBlock?: (string|null); + + /** PrivateClusterConfig privateEndpoint */ + privateEndpoint?: (string|null); + + /** PrivateClusterConfig publicEndpoint */ + publicEndpoint?: (string|null); + + /** PrivateClusterConfig peeringName */ + peeringName?: (string|null); + + /** PrivateClusterConfig masterGlobalAccessConfig */ + masterGlobalAccessConfig?: (google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null); + } + + /** Represents a PrivateClusterConfig. */ + class PrivateClusterConfig implements IPrivateClusterConfig { + + /** + * Constructs a new PrivateClusterConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IPrivateClusterConfig); + + /** PrivateClusterConfig enablePrivateNodes. */ + public enablePrivateNodes: boolean; + + /** PrivateClusterConfig enablePrivateEndpoint. */ + public enablePrivateEndpoint: boolean; + + /** PrivateClusterConfig masterIpv4CidrBlock. */ + public masterIpv4CidrBlock: string; + + /** PrivateClusterConfig privateEndpoint. */ + public privateEndpoint: string; + + /** PrivateClusterConfig publicEndpoint. */ + public publicEndpoint: string; + + /** PrivateClusterConfig peeringName. */ + public peeringName: string; + + /** PrivateClusterConfig masterGlobalAccessConfig. */ + public masterGlobalAccessConfig?: (google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null); + + /** + * Creates a new PrivateClusterConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateClusterConfig instance + */ + public static create(properties?: google.container.v1.IPrivateClusterConfig): google.container.v1.PrivateClusterConfig; + + /** + * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. + * @param message PrivateClusterConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. + * @param message PrivateClusterConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IPrivateClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.PrivateClusterConfig; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateClusterConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.PrivateClusterConfig; + + /** + * Verifies a PrivateClusterConfig message. + * @param message Plain 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 PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateClusterConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.PrivateClusterConfig; + + /** + * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. + * @param message PrivateClusterConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.PrivateClusterConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrivateClusterConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuthenticatorGroupsConfig. */ + interface IAuthenticatorGroupsConfig { + + /** AuthenticatorGroupsConfig enabled */ + enabled?: (boolean|null); + + /** AuthenticatorGroupsConfig securityGroup */ + securityGroup?: (string|null); + } + + /** Represents an AuthenticatorGroupsConfig. */ + class AuthenticatorGroupsConfig implements IAuthenticatorGroupsConfig { + + /** + * Constructs a new AuthenticatorGroupsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAuthenticatorGroupsConfig); + + /** AuthenticatorGroupsConfig enabled. */ + public enabled: boolean; + + /** AuthenticatorGroupsConfig securityGroup. */ + public securityGroup: string; + + /** + * Creates a new AuthenticatorGroupsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthenticatorGroupsConfig instance + */ + public static create(properties?: google.container.v1.IAuthenticatorGroupsConfig): google.container.v1.AuthenticatorGroupsConfig; + + /** + * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. + * @param message AuthenticatorGroupsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. + * @param message AuthenticatorGroupsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuthenticatorGroupsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AuthenticatorGroupsConfig; + + /** + * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuthenticatorGroupsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AuthenticatorGroupsConfig; + + /** + * Verifies an AuthenticatorGroupsConfig message. + * @param message Plain 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 AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuthenticatorGroupsConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.AuthenticatorGroupsConfig; + + /** + * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified. + * @param message AuthenticatorGroupsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.AuthenticatorGroupsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuthenticatorGroupsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CloudRunConfig. */ + interface ICloudRunConfig { + /** CloudRunConfig disabled */ disabled?: (boolean|null); + + /** CloudRunConfig loadBalancerType */ + loadBalancerType?: (google.container.v1.CloudRunConfig.LoadBalancerType|keyof typeof google.container.v1.CloudRunConfig.LoadBalancerType|null); } /** Represents a CloudRunConfig. */ @@ -1994,6 +2464,9 @@ export namespace google { /** CloudRunConfig disabled. */ public disabled: boolean; + /** CloudRunConfig loadBalancerType. */ + public loadBalancerType: (google.container.v1.CloudRunConfig.LoadBalancerType|keyof typeof google.container.v1.CloudRunConfig.LoadBalancerType); + /** * Creates a new CloudRunConfig instance using the specified properties. * @param [properties] Properties to set @@ -2065,86 +2538,186 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a MasterAuthorizedNetworksConfig. */ - interface IMasterAuthorizedNetworksConfig { + namespace CloudRunConfig { - /** MasterAuthorizedNetworksConfig enabled */ - enabled?: (boolean|null); + /** LoadBalancerType enum. */ + enum LoadBalancerType { + LOAD_BALANCER_TYPE_UNSPECIFIED = 0, + LOAD_BALANCER_TYPE_EXTERNAL = 1, + LOAD_BALANCER_TYPE_INTERNAL = 2 + } + } - /** MasterAuthorizedNetworksConfig cidrBlocks */ - cidrBlocks?: (google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null); + /** Properties of a ConfigConnectorConfig. */ + interface IConfigConnectorConfig { + + /** ConfigConnectorConfig enabled */ + enabled?: (boolean|null); } - /** Represents a MasterAuthorizedNetworksConfig. */ - class MasterAuthorizedNetworksConfig implements IMasterAuthorizedNetworksConfig { + /** Represents a ConfigConnectorConfig. */ + class ConfigConnectorConfig implements IConfigConnectorConfig { /** - * Constructs a new MasterAuthorizedNetworksConfig. + * Constructs a new ConfigConnectorConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IMasterAuthorizedNetworksConfig); + constructor(properties?: google.container.v1.IConfigConnectorConfig); - /** MasterAuthorizedNetworksConfig enabled. */ + /** ConfigConnectorConfig enabled. */ public enabled: boolean; - /** MasterAuthorizedNetworksConfig cidrBlocks. */ - public cidrBlocks: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]; - /** - * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * Creates a new ConfigConnectorConfig instance using the specified properties. * @param [properties] Properties to set - * @returns MasterAuthorizedNetworksConfig instance + * @returns ConfigConnectorConfig instance */ - public static create(properties?: google.container.v1.IMasterAuthorizedNetworksConfig): google.container.v1.MasterAuthorizedNetworksConfig; + public static create(properties?: google.container.v1.IConfigConnectorConfig): google.container.v1.ConfigConnectorConfig; /** - * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. - * @param message MasterAuthorizedNetworksConfig message or plain object to encode + * Encodes the specified ConfigConnectorConfig message. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages. + * @param message ConfigConnectorConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IConfigConnectorConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. - * @param message MasterAuthorizedNetworksConfig message or plain object to encode + * Encodes the specified ConfigConnectorConfig message, length delimited. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages. + * @param message ConfigConnectorConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IConfigConnectorConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * Decodes a ConfigConnectorConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MasterAuthorizedNetworksConfig + * @returns ConfigConnectorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.MasterAuthorizedNetworksConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ConfigConnectorConfig; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * Decodes a ConfigConnectorConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MasterAuthorizedNetworksConfig + * @returns ConfigConnectorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.MasterAuthorizedNetworksConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ConfigConnectorConfig; /** - * Verifies a MasterAuthorizedNetworksConfig message. + * Verifies a ConfigConnectorConfig message. * @param message Plain 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 MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ConfigConnectorConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MasterAuthorizedNetworksConfig + * @returns ConfigConnectorConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.MasterAuthorizedNetworksConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.ConfigConnectorConfig; + + /** + * Creates a plain object from a ConfigConnectorConfig message. Also converts values to other types if specified. + * @param message ConfigConnectorConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ConfigConnectorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConfigConnectorConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MasterAuthorizedNetworksConfig. */ + interface IMasterAuthorizedNetworksConfig { + + /** MasterAuthorizedNetworksConfig enabled */ + enabled?: (boolean|null); + + /** MasterAuthorizedNetworksConfig cidrBlocks */ + cidrBlocks?: (google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null); + } + + /** Represents a MasterAuthorizedNetworksConfig. */ + class MasterAuthorizedNetworksConfig implements IMasterAuthorizedNetworksConfig { + + /** + * Constructs a new MasterAuthorizedNetworksConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMasterAuthorizedNetworksConfig); + + /** MasterAuthorizedNetworksConfig enabled. */ + public enabled: boolean; + + /** MasterAuthorizedNetworksConfig cidrBlocks. */ + public cidrBlocks: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]; + + /** + * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MasterAuthorizedNetworksConfig instance + */ + public static create(properties?: google.container.v1.IMasterAuthorizedNetworksConfig): google.container.v1.MasterAuthorizedNetworksConfig; + + /** + * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @param message MasterAuthorizedNetworksConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @param message MasterAuthorizedNetworksConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.MasterAuthorizedNetworksConfig; + + /** + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.MasterAuthorizedNetworksConfig; + + /** + * Verifies a MasterAuthorizedNetworksConfig message. + * @param message Plain 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 MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MasterAuthorizedNetworksConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MasterAuthorizedNetworksConfig; /** * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. @@ -2583,6 +3156,9 @@ export namespace google { /** IPAllocationPolicy tpuIpv4CidrBlock */ tpuIpv4CidrBlock?: (string|null); + + /** IPAllocationPolicy useRoutes */ + useRoutes?: (boolean|null); } /** Represents a IPAllocationPolicy. */ @@ -2630,6 +3206,9 @@ export namespace google { /** IPAllocationPolicy tpuIpv4CidrBlock. */ public tpuIpv4CidrBlock: string; + /** IPAllocationPolicy useRoutes. */ + public useRoutes: boolean; + /** * Creates a new IPAllocationPolicy instance using the specified properties. * @param [properties] Properties to set @@ -2794,6 +3373,15 @@ export namespace google { /** Cluster verticalPodAutoscaling */ verticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + /** Cluster shieldedNodes */ + shieldedNodes?: (google.container.v1.IShieldedNodes|null); + + /** Cluster releaseChannel */ + releaseChannel?: (google.container.v1.IReleaseChannel|null); + + /** Cluster workloadIdentityConfig */ + workloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + /** Cluster selfLink */ selfLink?: (string|null); @@ -2948,6 +3536,15 @@ export namespace google { /** Cluster verticalPodAutoscaling. */ public verticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + /** Cluster shieldedNodes. */ + public shieldedNodes?: (google.container.v1.IShieldedNodes|null); + + /** Cluster releaseChannel. */ + public releaseChannel?: (google.container.v1.IReleaseChannel|null); + + /** Cluster workloadIdentityConfig. */ + public workloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + /** Cluster selfLink. */ public selfLink: string; @@ -3108,6 +3705,12 @@ export namespace google { /** ClusterUpdate desiredDatabaseEncryption */ desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + /** ClusterUpdate desiredWorkloadIdentityConfig */ + desiredWorkloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + + /** ClusterUpdate desiredShieldedNodes */ + desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null); + /** ClusterUpdate desiredNodePoolAutoscaling */ desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); @@ -3132,9 +3735,18 @@ export namespace google { /** ClusterUpdate desiredVerticalPodAutoscaling */ desiredVerticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + /** ClusterUpdate desiredPrivateClusterConfig */ + desiredPrivateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null); + /** ClusterUpdate desiredIntraNodeVisibilityConfig */ desiredIntraNodeVisibilityConfig?: (google.container.v1.IIntraNodeVisibilityConfig|null); + /** ClusterUpdate desiredDefaultSnatStatus */ + desiredDefaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null); + + /** ClusterUpdate desiredReleaseChannel */ + desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null); + /** ClusterUpdate desiredMasterVersion */ desiredMasterVersion?: (string|null); } @@ -3166,6 +3778,12 @@ export namespace google { /** ClusterUpdate desiredDatabaseEncryption. */ public desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + /** ClusterUpdate desiredWorkloadIdentityConfig. */ + public desiredWorkloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + + /** ClusterUpdate desiredShieldedNodes. */ + public desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null); + /** ClusterUpdate desiredNodePoolAutoscaling. */ public desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); @@ -3190,9 +3808,18 @@ export namespace google { /** ClusterUpdate desiredVerticalPodAutoscaling. */ public desiredVerticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + /** ClusterUpdate desiredPrivateClusterConfig. */ + public desiredPrivateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null); + /** ClusterUpdate desiredIntraNodeVisibilityConfig. */ public desiredIntraNodeVisibilityConfig?: (google.container.v1.IIntraNodeVisibilityConfig|null); + /** ClusterUpdate desiredDefaultSnatStatus. */ + public desiredDefaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null); + + /** ClusterUpdate desiredReleaseChannel. */ + public desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null); + /** ClusterUpdate desiredMasterVersion. */ public desiredMasterVersion: string; @@ -3303,6 +3930,9 @@ export namespace google { /** Operation endTime */ endTime?: (string|null); + /** Operation progress */ + progress?: (google.container.v1.IOperationProgress|null); + /** Operation clusterConditions */ clusterConditions?: (google.container.v1.IStatusCondition[]|null); @@ -3352,6 +3982,9 @@ export namespace google { /** Operation endTime. */ public endTime: string; + /** Operation progress. */ + public progress?: (google.container.v1.IOperationProgress|null); + /** Operation clusterConditions. */ public clusterConditions: google.container.v1.IStatusCondition[]; @@ -3462,6 +4095,228 @@ export namespace google { } } + /** Properties of an OperationProgress. */ + interface IOperationProgress { + + /** OperationProgress name */ + name?: (string|null); + + /** OperationProgress status */ + status?: (google.container.v1.Operation.Status|keyof typeof google.container.v1.Operation.Status|null); + + /** OperationProgress metrics */ + metrics?: (google.container.v1.OperationProgress.IMetric[]|null); + + /** OperationProgress stages */ + stages?: (google.container.v1.IOperationProgress[]|null); + } + + /** Represents an OperationProgress. */ + class OperationProgress implements IOperationProgress { + + /** + * Constructs a new OperationProgress. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IOperationProgress); + + /** OperationProgress name. */ + public name: string; + + /** OperationProgress status. */ + public status: (google.container.v1.Operation.Status|keyof typeof google.container.v1.Operation.Status); + + /** OperationProgress metrics. */ + public metrics: google.container.v1.OperationProgress.IMetric[]; + + /** OperationProgress stages. */ + public stages: google.container.v1.IOperationProgress[]; + + /** + * Creates a new OperationProgress instance using the specified properties. + * @param [properties] Properties to set + * @returns OperationProgress instance + */ + public static create(properties?: google.container.v1.IOperationProgress): google.container.v1.OperationProgress; + + /** + * Encodes the specified OperationProgress message. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages. + * @param message OperationProgress message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IOperationProgress, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OperationProgress message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages. + * @param message OperationProgress message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IOperationProgress, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OperationProgress message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OperationProgress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.OperationProgress; + + /** + * Decodes an OperationProgress message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OperationProgress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.OperationProgress; + + /** + * Verifies an OperationProgress message. + * @param message Plain 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 OperationProgress message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OperationProgress + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.OperationProgress; + + /** + * Creates a plain object from an OperationProgress message. Also converts values to other types if specified. + * @param message OperationProgress + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.OperationProgress, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OperationProgress to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace OperationProgress { + + /** Properties of a Metric. */ + interface IMetric { + + /** Metric name */ + name?: (string|null); + + /** Metric intValue */ + intValue?: (number|Long|string|null); + + /** Metric doubleValue */ + doubleValue?: (number|null); + + /** Metric stringValue */ + stringValue?: (string|null); + } + + /** Represents a Metric. */ + class Metric implements IMetric { + + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.OperationProgress.IMetric); + + /** Metric name. */ + public name: string; + + /** Metric intValue. */ + public intValue: (number|Long|string); + + /** Metric doubleValue. */ + public doubleValue: number; + + /** Metric stringValue. */ + public stringValue: string; + + /** Metric value. */ + public value?: ("intValue"|"doubleValue"|"stringValue"); + + /** + * Creates a new Metric instance using the specified properties. + * @param [properties] Properties to set + * @returns Metric instance + */ + public static create(properties?: google.container.v1.OperationProgress.IMetric): google.container.v1.OperationProgress.Metric; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.OperationProgress.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.OperationProgress.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.OperationProgress.Metric; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.OperationProgress.Metric; + + /** + * Verifies a Metric message. + * @param message Plain 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 Metric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metric + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.OperationProgress.Metric; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.OperationProgress.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + /** Properties of a CreateClusterRequest. */ interface ICreateClusterRequest { @@ -3815,6 +4670,15 @@ export namespace google { /** UpdateNodePoolRequest name */ name?: (string|null); + + /** UpdateNodePoolRequest locations */ + locations?: (string[]|null); + + /** UpdateNodePoolRequest workloadMetadataConfig */ + workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null); + + /** UpdateNodePoolRequest upgradeSettings */ + upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); } /** Represents an UpdateNodePoolRequest. */ @@ -3847,6 +4711,15 @@ export namespace google { /** UpdateNodePoolRequest name. */ public name: string; + /** UpdateNodePoolRequest locations. */ + public locations: string[]; + + /** UpdateNodePoolRequest workloadMetadataConfig. */ + public workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null); + + /** UpdateNodePoolRequest upgradeSettings. */ + public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -5578,6 +6451,9 @@ export namespace google { /** ServerConfig validMasterVersions */ validMasterVersions?: (string[]|null); + + /** ServerConfig channels */ + channels?: (google.container.v1.ServerConfig.IReleaseChannelConfig[]|null); } /** Represents a ServerConfig. */ @@ -5604,6 +6480,9 @@ export namespace google { /** ServerConfig validMasterVersions. */ public validMasterVersions: string[]; + /** ServerConfig channels. */ + public channels: google.container.v1.ServerConfig.IReleaseChannelConfig[]; + /** * Creates a new ServerConfig instance using the specified properties. * @param [properties] Properties to set @@ -5675,7 +6554,112 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a CreateNodePoolRequest. */ + namespace ServerConfig { + + /** Properties of a ReleaseChannelConfig. */ + interface IReleaseChannelConfig { + + /** ReleaseChannelConfig channel */ + channel?: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel|null); + + /** ReleaseChannelConfig defaultVersion */ + defaultVersion?: (string|null); + + /** ReleaseChannelConfig validVersions */ + validVersions?: (string[]|null); + } + + /** Represents a ReleaseChannelConfig. */ + class ReleaseChannelConfig implements IReleaseChannelConfig { + + /** + * Constructs a new ReleaseChannelConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ServerConfig.IReleaseChannelConfig); + + /** ReleaseChannelConfig channel. */ + public channel: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel); + + /** ReleaseChannelConfig defaultVersion. */ + public defaultVersion: string; + + /** ReleaseChannelConfig validVersions. */ + public validVersions: string[]; + + /** + * Creates a new ReleaseChannelConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ReleaseChannelConfig instance + */ + public static create(properties?: google.container.v1.ServerConfig.IReleaseChannelConfig): google.container.v1.ServerConfig.ReleaseChannelConfig; + + /** + * Encodes the specified ReleaseChannelConfig message. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages. + * @param message ReleaseChannelConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ServerConfig.IReleaseChannelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReleaseChannelConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages. + * @param message ReleaseChannelConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ServerConfig.IReleaseChannelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReleaseChannelConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReleaseChannelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ServerConfig.ReleaseChannelConfig; + + /** + * Decodes a ReleaseChannelConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReleaseChannelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ServerConfig.ReleaseChannelConfig; + + /** + * Verifies a ReleaseChannelConfig message. + * @param message Plain 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 ReleaseChannelConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReleaseChannelConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ServerConfig.ReleaseChannelConfig; + + /** + * Creates a plain object from a ReleaseChannelConfig message. Also converts values to other types if specified. + * @param message ReleaseChannelConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ServerConfig.ReleaseChannelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReleaseChannelConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a CreateNodePoolRequest. */ interface ICreateNodePoolRequest { /** CreateNodePoolRequest projectId */ @@ -6137,6 +7121,9 @@ export namespace google { /** NodePool initialNodeCount */ initialNodeCount?: (number|null); + /** NodePool locations */ + locations?: (string[]|null); + /** NodePool selfLink */ selfLink?: (string|null); @@ -6166,6 +7153,9 @@ export namespace google { /** NodePool podIpv4CidrSize */ podIpv4CidrSize?: (number|null); + + /** NodePool upgradeSettings */ + upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); } /** Represents a NodePool. */ @@ -6186,6 +7176,9 @@ export namespace google { /** NodePool initialNodeCount. */ public initialNodeCount: number; + /** NodePool locations. */ + public locations: string[]; + /** NodePool selfLink. */ public selfLink: string; @@ -6216,6 +7209,9 @@ export namespace google { /** NodePool podIpv4CidrSize. */ public podIpv4CidrSize: number; + /** NodePool upgradeSettings. */ + public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + /** * Creates a new NodePool instance using the specified properties. * @param [properties] Properties to set @@ -6289,6 +7285,102 @@ export namespace google { namespace NodePool { + /** Properties of an UpgradeSettings. */ + interface IUpgradeSettings { + + /** UpgradeSettings maxSurge */ + maxSurge?: (number|null); + + /** UpgradeSettings maxUnavailable */ + maxUnavailable?: (number|null); + } + + /** Represents an UpgradeSettings. */ + class UpgradeSettings implements IUpgradeSettings { + + /** + * Constructs a new UpgradeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.NodePool.IUpgradeSettings); + + /** UpgradeSettings maxSurge. */ + public maxSurge: number; + + /** UpgradeSettings maxUnavailable. */ + public maxUnavailable: number; + + /** + * Creates a new UpgradeSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeSettings instance + */ + public static create(properties?: google.container.v1.NodePool.IUpgradeSettings): google.container.v1.NodePool.UpgradeSettings; + + /** + * Encodes the specified UpgradeSettings message. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages. + * @param message UpgradeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.NodePool.IUpgradeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpgradeSettings message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages. + * @param message UpgradeSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.NodePool.IUpgradeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpgradeSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodePool.UpgradeSettings; + + /** + * Decodes an UpgradeSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpgradeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodePool.UpgradeSettings; + + /** + * Verifies an UpgradeSettings message. + * @param message Plain 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 UpgradeSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeSettings + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePool.UpgradeSettings; + + /** + * Creates a plain object from an UpgradeSettings message. Also converts values to other types if specified. + * @param message UpgradeSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePool.UpgradeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Status enum. */ enum Status { STATUS_UNSPECIFIED = 0, @@ -6323,2520 +7415,3303 @@ export namespace google { */ constructor(properties?: google.container.v1.INodeManagement); - /** NodeManagement autoUpgrade. */ - public autoUpgrade: boolean; + /** NodeManagement autoUpgrade. */ + public autoUpgrade: boolean; + + /** NodeManagement autoRepair. */ + public autoRepair: boolean; + + /** NodeManagement upgradeOptions. */ + public upgradeOptions?: (google.container.v1.IAutoUpgradeOptions|null); + + /** + * Creates a new NodeManagement instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeManagement instance + */ + public static create(properties?: google.container.v1.INodeManagement): google.container.v1.NodeManagement; + + /** + * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * @param message NodeManagement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * @param message NodeManagement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeManagement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeManagement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodeManagement; + + /** + * Decodes a NodeManagement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeManagement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodeManagement; + + /** + * Verifies a NodeManagement message. + * @param message Plain 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 NodeManagement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeManagement + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeManagement; + + /** + * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. + * @param message NodeManagement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeManagement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeManagement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AutoUpgradeOptions. */ + interface IAutoUpgradeOptions { + + /** AutoUpgradeOptions autoUpgradeStartTime */ + autoUpgradeStartTime?: (string|null); + + /** AutoUpgradeOptions description */ + description?: (string|null); + } + + /** Represents an AutoUpgradeOptions. */ + class AutoUpgradeOptions implements IAutoUpgradeOptions { + + /** + * Constructs a new AutoUpgradeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAutoUpgradeOptions); + + /** AutoUpgradeOptions autoUpgradeStartTime. */ + public autoUpgradeStartTime: string; + + /** AutoUpgradeOptions description. */ + public description: string; + + /** + * Creates a new AutoUpgradeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoUpgradeOptions instance + */ + public static create(properties?: google.container.v1.IAutoUpgradeOptions): google.container.v1.AutoUpgradeOptions; + + /** + * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * @param message AutoUpgradeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * @param message AutoUpgradeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoUpgradeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoUpgradeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AutoUpgradeOptions; + + /** + * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoUpgradeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AutoUpgradeOptions; + + /** + * Verifies an AutoUpgradeOptions message. + * @param message Plain 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 AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoUpgradeOptions + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.AutoUpgradeOptions; + + /** + * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. + * @param message AutoUpgradeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.AutoUpgradeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoUpgradeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MaintenancePolicy. */ + interface IMaintenancePolicy { + + /** MaintenancePolicy window */ + window?: (google.container.v1.IMaintenanceWindow|null); + + /** MaintenancePolicy resourceVersion */ + resourceVersion?: (string|null); + } + + /** Represents a MaintenancePolicy. */ + class MaintenancePolicy implements IMaintenancePolicy { + + /** + * Constructs a new MaintenancePolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMaintenancePolicy); + + /** MaintenancePolicy window. */ + public window?: (google.container.v1.IMaintenanceWindow|null); + + /** MaintenancePolicy resourceVersion. */ + public resourceVersion: string; + + /** + * Creates a new MaintenancePolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns MaintenancePolicy instance + */ + public static create(properties?: google.container.v1.IMaintenancePolicy): google.container.v1.MaintenancePolicy; + + /** + * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * @param message MaintenancePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * @param message MaintenancePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaintenancePolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaintenancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.MaintenancePolicy; + + /** + * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaintenancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.MaintenancePolicy; + + /** + * Verifies a MaintenancePolicy message. + * @param message Plain 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 MaintenancePolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaintenancePolicy + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenancePolicy; + + /** + * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. + * @param message MaintenancePolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MaintenancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaintenancePolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MaintenanceWindow. */ + interface IMaintenanceWindow { + + /** MaintenanceWindow dailyMaintenanceWindow */ + dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null); + + /** MaintenanceWindow recurringWindow */ + recurringWindow?: (google.container.v1.IRecurringTimeWindow|null); + + /** MaintenanceWindow maintenanceExclusions */ + maintenanceExclusions?: ({ [k: string]: google.container.v1.ITimeWindow }|null); + } + + /** Represents a MaintenanceWindow. */ + class MaintenanceWindow implements IMaintenanceWindow { + + /** + * Constructs a new MaintenanceWindow. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMaintenanceWindow); + + /** MaintenanceWindow dailyMaintenanceWindow. */ + public dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null); + + /** MaintenanceWindow recurringWindow. */ + public recurringWindow?: (google.container.v1.IRecurringTimeWindow|null); + + /** MaintenanceWindow maintenanceExclusions. */ + public maintenanceExclusions: { [k: string]: google.container.v1.ITimeWindow }; + + /** MaintenanceWindow policy. */ + public policy?: ("dailyMaintenanceWindow"|"recurringWindow"); + + /** + * Creates a new MaintenanceWindow instance using the specified properties. + * @param [properties] Properties to set + * @returns MaintenanceWindow instance + */ + public static create(properties?: google.container.v1.IMaintenanceWindow): google.container.v1.MaintenanceWindow; + + /** + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * @param message MaintenanceWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * @param message MaintenanceWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaintenanceWindow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.MaintenanceWindow; + + /** + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.MaintenanceWindow; + + /** + * Verifies a MaintenanceWindow message. + * @param message Plain 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 MaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaintenanceWindow + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenanceWindow; + + /** + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. + * @param message MaintenanceWindow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaintenanceWindow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TimeWindow. */ + interface ITimeWindow { + + /** TimeWindow startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** TimeWindow endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a TimeWindow. */ + class TimeWindow implements ITimeWindow { + + /** + * Constructs a new TimeWindow. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ITimeWindow); + + /** TimeWindow startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** TimeWindow endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new TimeWindow instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeWindow instance + */ + public static create(properties?: google.container.v1.ITimeWindow): google.container.v1.TimeWindow; + + /** + * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. + * @param message TimeWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. + * @param message TimeWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeWindow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.TimeWindow; + + /** + * Decodes a TimeWindow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.TimeWindow; + + /** + * Verifies a TimeWindow message. + * @param message Plain 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 TimeWindow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeWindow + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.TimeWindow; + + /** + * Creates a plain object from a TimeWindow message. Also converts values to other types if specified. + * @param message TimeWindow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.TimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeWindow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RecurringTimeWindow. */ + interface IRecurringTimeWindow { + + /** RecurringTimeWindow window */ + window?: (google.container.v1.ITimeWindow|null); + + /** RecurringTimeWindow recurrence */ + recurrence?: (string|null); + } + + /** Represents a RecurringTimeWindow. */ + class RecurringTimeWindow implements IRecurringTimeWindow { + + /** + * Constructs a new RecurringTimeWindow. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IRecurringTimeWindow); + + /** RecurringTimeWindow window. */ + public window?: (google.container.v1.ITimeWindow|null); + + /** RecurringTimeWindow recurrence. */ + public recurrence: string; + + /** + * Creates a new RecurringTimeWindow instance using the specified properties. + * @param [properties] Properties to set + * @returns RecurringTimeWindow instance + */ + public static create(properties?: google.container.v1.IRecurringTimeWindow): google.container.v1.RecurringTimeWindow; + + /** + * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. + * @param message RecurringTimeWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. + * @param message RecurringTimeWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecurringTimeWindow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecurringTimeWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.RecurringTimeWindow; + + /** + * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecurringTimeWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.RecurringTimeWindow; + + /** + * Verifies a RecurringTimeWindow message. + * @param message Plain 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 RecurringTimeWindow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecurringTimeWindow + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.RecurringTimeWindow; + + /** + * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified. + * @param message RecurringTimeWindow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.RecurringTimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecurringTimeWindow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DailyMaintenanceWindow. */ + interface IDailyMaintenanceWindow { + + /** DailyMaintenanceWindow startTime */ + startTime?: (string|null); + + /** DailyMaintenanceWindow duration */ + duration?: (string|null); + } + + /** Represents a DailyMaintenanceWindow. */ + class DailyMaintenanceWindow implements IDailyMaintenanceWindow { + + /** + * Constructs a new DailyMaintenanceWindow. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDailyMaintenanceWindow); + + /** DailyMaintenanceWindow startTime. */ + public startTime: string; + + /** DailyMaintenanceWindow duration. */ + public duration: string; + + /** + * Creates a new DailyMaintenanceWindow instance using the specified properties. + * @param [properties] Properties to set + * @returns DailyMaintenanceWindow instance + */ + public static create(properties?: google.container.v1.IDailyMaintenanceWindow): google.container.v1.DailyMaintenanceWindow; + + /** + * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * @param message DailyMaintenanceWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * @param message DailyMaintenanceWindow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DailyMaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.DailyMaintenanceWindow; + + /** + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DailyMaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.DailyMaintenanceWindow; + + /** + * Verifies a DailyMaintenanceWindow message. + * @param message Plain 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 DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DailyMaintenanceWindow + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.DailyMaintenanceWindow; + + /** + * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. + * @param message DailyMaintenanceWindow + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.DailyMaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DailyMaintenanceWindow to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetNodePoolManagementRequest. */ + interface ISetNodePoolManagementRequest { + + /** SetNodePoolManagementRequest projectId */ + projectId?: (string|null); + + /** SetNodePoolManagementRequest zone */ + zone?: (string|null); + + /** SetNodePoolManagementRequest clusterId */ + clusterId?: (string|null); + + /** SetNodePoolManagementRequest nodePoolId */ + nodePoolId?: (string|null); + + /** SetNodePoolManagementRequest management */ + management?: (google.container.v1.INodeManagement|null); + + /** SetNodePoolManagementRequest name */ + name?: (string|null); + } + + /** Represents a SetNodePoolManagementRequest. */ + class SetNodePoolManagementRequest implements ISetNodePoolManagementRequest { + + /** + * Constructs a new SetNodePoolManagementRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetNodePoolManagementRequest); + + /** SetNodePoolManagementRequest projectId. */ + public projectId: string; + + /** SetNodePoolManagementRequest zone. */ + public zone: string; + + /** SetNodePoolManagementRequest clusterId. */ + public clusterId: string; + + /** SetNodePoolManagementRequest nodePoolId. */ + public nodePoolId: string; - /** NodeManagement autoRepair. */ - public autoRepair: boolean; + /** SetNodePoolManagementRequest management. */ + public management?: (google.container.v1.INodeManagement|null); - /** NodeManagement upgradeOptions. */ - public upgradeOptions?: (google.container.v1.IAutoUpgradeOptions|null); + /** SetNodePoolManagementRequest name. */ + public name: string; /** - * Creates a new NodeManagement instance using the specified properties. + * Creates a new SetNodePoolManagementRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NodeManagement instance + * @returns SetNodePoolManagementRequest instance */ - public static create(properties?: google.container.v1.INodeManagement): google.container.v1.NodeManagement; + public static create(properties?: google.container.v1.ISetNodePoolManagementRequest): google.container.v1.SetNodePoolManagementRequest; /** - * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. - * @param message NodeManagement message or plain object to encode + * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * @param message SetNodePoolManagementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. - * @param message NodeManagement message or plain object to encode + * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * @param message SetNodePoolManagementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.INodeManagement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodeManagement message from the specified reader or buffer. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodeManagement + * @returns SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodeManagement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNodePoolManagementRequest; /** - * Decodes a NodeManagement message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodeManagement + * @returns SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodeManagement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNodePoolManagementRequest; /** - * Verifies a NodeManagement message. + * Verifies a SetNodePoolManagementRequest message. * @param message Plain 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 NodeManagement message from a plain object. Also converts values to their respective internal types. + * Creates a SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodeManagement + * @returns SetNodePoolManagementRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.NodeManagement; + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolManagementRequest; /** - * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. - * @param message NodeManagement + * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. + * @param message SetNodePoolManagementRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.NodeManagement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.SetNodePoolManagementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodeManagement to JSON. + * Converts this SetNodePoolManagementRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AutoUpgradeOptions. */ - interface IAutoUpgradeOptions { + /** Properties of a SetNodePoolSizeRequest. */ + interface ISetNodePoolSizeRequest { - /** AutoUpgradeOptions autoUpgradeStartTime */ - autoUpgradeStartTime?: (string|null); + /** SetNodePoolSizeRequest projectId */ + projectId?: (string|null); - /** AutoUpgradeOptions description */ - description?: (string|null); + /** SetNodePoolSizeRequest zone */ + zone?: (string|null); + + /** SetNodePoolSizeRequest clusterId */ + clusterId?: (string|null); + + /** SetNodePoolSizeRequest nodePoolId */ + nodePoolId?: (string|null); + + /** SetNodePoolSizeRequest nodeCount */ + nodeCount?: (number|null); + + /** SetNodePoolSizeRequest name */ + name?: (string|null); } - /** Represents an AutoUpgradeOptions. */ - class AutoUpgradeOptions implements IAutoUpgradeOptions { + /** Represents a SetNodePoolSizeRequest. */ + class SetNodePoolSizeRequest implements ISetNodePoolSizeRequest { /** - * Constructs a new AutoUpgradeOptions. + * Constructs a new SetNodePoolSizeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IAutoUpgradeOptions); + constructor(properties?: google.container.v1.ISetNodePoolSizeRequest); - /** AutoUpgradeOptions autoUpgradeStartTime. */ - public autoUpgradeStartTime: string; + /** SetNodePoolSizeRequest projectId. */ + public projectId: string; - /** AutoUpgradeOptions description. */ - public description: string; + /** SetNodePoolSizeRequest zone. */ + public zone: string; + + /** SetNodePoolSizeRequest clusterId. */ + public clusterId: string; + + /** SetNodePoolSizeRequest nodePoolId. */ + public nodePoolId: string; + + /** SetNodePoolSizeRequest nodeCount. */ + public nodeCount: number; + + /** SetNodePoolSizeRequest name. */ + public name: string; /** - * Creates a new AutoUpgradeOptions instance using the specified properties. + * Creates a new SetNodePoolSizeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AutoUpgradeOptions instance + * @returns SetNodePoolSizeRequest instance */ - public static create(properties?: google.container.v1.IAutoUpgradeOptions): google.container.v1.AutoUpgradeOptions; + public static create(properties?: google.container.v1.ISetNodePoolSizeRequest): google.container.v1.SetNodePoolSizeRequest; /** - * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. - * @param message AutoUpgradeOptions message or plain object to encode + * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * @param message SetNodePoolSizeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. - * @param message AutoUpgradeOptions message or plain object to encode + * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * @param message SetNodePoolSizeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IAutoUpgradeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoUpgradeOptions + * @returns SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AutoUpgradeOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNodePoolSizeRequest; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoUpgradeOptions + * @returns SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AutoUpgradeOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNodePoolSizeRequest; /** - * Verifies an AutoUpgradeOptions message. + * Verifies a SetNodePoolSizeRequest message. * @param message Plain 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 AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoUpgradeOptions + * @returns SetNodePoolSizeRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.AutoUpgradeOptions; + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolSizeRequest; /** - * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. - * @param message AutoUpgradeOptions + * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. + * @param message SetNodePoolSizeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.AutoUpgradeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.SetNodePoolSizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoUpgradeOptions to JSON. + * Converts this SetNodePoolSizeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MaintenancePolicy. */ - interface IMaintenancePolicy { + /** Properties of a RollbackNodePoolUpgradeRequest. */ + interface IRollbackNodePoolUpgradeRequest { - /** MaintenancePolicy window */ - window?: (google.container.v1.IMaintenanceWindow|null); + /** RollbackNodePoolUpgradeRequest projectId */ + projectId?: (string|null); - /** MaintenancePolicy resourceVersion */ - resourceVersion?: (string|null); + /** RollbackNodePoolUpgradeRequest zone */ + zone?: (string|null); + + /** RollbackNodePoolUpgradeRequest clusterId */ + clusterId?: (string|null); + + /** RollbackNodePoolUpgradeRequest nodePoolId */ + nodePoolId?: (string|null); + + /** RollbackNodePoolUpgradeRequest name */ + name?: (string|null); } - /** Represents a MaintenancePolicy. */ - class MaintenancePolicy implements IMaintenancePolicy { + /** Represents a RollbackNodePoolUpgradeRequest. */ + class RollbackNodePoolUpgradeRequest implements IRollbackNodePoolUpgradeRequest { /** - * Constructs a new MaintenancePolicy. + * Constructs a new RollbackNodePoolUpgradeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IMaintenancePolicy); + constructor(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest); - /** MaintenancePolicy window. */ - public window?: (google.container.v1.IMaintenanceWindow|null); + /** RollbackNodePoolUpgradeRequest projectId. */ + public projectId: string; - /** MaintenancePolicy resourceVersion. */ - public resourceVersion: string; + /** RollbackNodePoolUpgradeRequest zone. */ + public zone: string; + + /** RollbackNodePoolUpgradeRequest clusterId. */ + public clusterId: string; + + /** RollbackNodePoolUpgradeRequest nodePoolId. */ + public nodePoolId: string; + + /** RollbackNodePoolUpgradeRequest name. */ + public name: string; /** - * Creates a new MaintenancePolicy instance using the specified properties. + * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MaintenancePolicy instance + * @returns RollbackNodePoolUpgradeRequest instance */ - public static create(properties?: google.container.v1.IMaintenancePolicy): google.container.v1.MaintenancePolicy; + public static create(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest): google.container.v1.RollbackNodePoolUpgradeRequest; /** - * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. - * @param message MaintenancePolicy message or plain object to encode + * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * @param message RollbackNodePoolUpgradeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. - * @param message MaintenancePolicy message or plain object to encode + * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * @param message RollbackNodePoolUpgradeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IMaintenancePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MaintenancePolicy + * @returns RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.MaintenancePolicy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.RollbackNodePoolUpgradeRequest; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MaintenancePolicy + * @returns RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.MaintenancePolicy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.RollbackNodePoolUpgradeRequest; /** - * Verifies a MaintenancePolicy message. + * Verifies a RollbackNodePoolUpgradeRequest message. * @param message Plain 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 MaintenancePolicy message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MaintenancePolicy + * @returns RollbackNodePoolUpgradeRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenancePolicy; + public static fromObject(object: { [k: string]: any }): google.container.v1.RollbackNodePoolUpgradeRequest; /** - * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. - * @param message MaintenancePolicy + * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. + * @param message RollbackNodePoolUpgradeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.MaintenancePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.RollbackNodePoolUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MaintenancePolicy to JSON. + * Converts this RollbackNodePoolUpgradeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - } - - /** Properties of a MaintenanceWindow. */ - interface IMaintenanceWindow { - - /** MaintenanceWindow dailyMaintenanceWindow */ - dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null); + } - /** MaintenanceWindow recurringWindow */ - recurringWindow?: (google.container.v1.IRecurringTimeWindow|null); + /** Properties of a ListNodePoolsResponse. */ + interface IListNodePoolsResponse { - /** MaintenanceWindow maintenanceExclusions */ - maintenanceExclusions?: ({ [k: string]: google.container.v1.ITimeWindow }|null); + /** ListNodePoolsResponse nodePools */ + nodePools?: (google.container.v1.INodePool[]|null); } - /** Represents a MaintenanceWindow. */ - class MaintenanceWindow implements IMaintenanceWindow { + /** Represents a ListNodePoolsResponse. */ + class ListNodePoolsResponse implements IListNodePoolsResponse { /** - * Constructs a new MaintenanceWindow. + * Constructs a new ListNodePoolsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IMaintenanceWindow); - - /** MaintenanceWindow dailyMaintenanceWindow. */ - public dailyMaintenanceWindow?: (google.container.v1.IDailyMaintenanceWindow|null); - - /** MaintenanceWindow recurringWindow. */ - public recurringWindow?: (google.container.v1.IRecurringTimeWindow|null); - - /** MaintenanceWindow maintenanceExclusions. */ - public maintenanceExclusions: { [k: string]: google.container.v1.ITimeWindow }; + constructor(properties?: google.container.v1.IListNodePoolsResponse); - /** MaintenanceWindow policy. */ - public policy?: ("dailyMaintenanceWindow"|"recurringWindow"); + /** ListNodePoolsResponse nodePools. */ + public nodePools: google.container.v1.INodePool[]; /** - * Creates a new MaintenanceWindow instance using the specified properties. + * Creates a new ListNodePoolsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MaintenanceWindow instance + * @returns ListNodePoolsResponse instance */ - public static create(properties?: google.container.v1.IMaintenanceWindow): google.container.v1.MaintenanceWindow; + public static create(properties?: google.container.v1.IListNodePoolsResponse): google.container.v1.ListNodePoolsResponse; /** - * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. - * @param message MaintenanceWindow message or plain object to encode + * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * @param message ListNodePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. - * @param message MaintenanceWindow message or plain object to encode + * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * @param message ListNodePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MaintenanceWindow + * @returns ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.MaintenanceWindow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ListNodePoolsResponse; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MaintenanceWindow + * @returns ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.MaintenanceWindow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ListNodePoolsResponse; /** - * Verifies a MaintenanceWindow message. + * Verifies a ListNodePoolsResponse message. * @param message Plain 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 MaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MaintenanceWindow + * @returns ListNodePoolsResponse */ - public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenanceWindow; + public static fromObject(object: { [k: string]: any }): google.container.v1.ListNodePoolsResponse; /** - * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. - * @param message MaintenanceWindow + * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. + * @param message ListNodePoolsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.MaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.ListNodePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MaintenanceWindow to JSON. + * Converts this ListNodePoolsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TimeWindow. */ - interface ITimeWindow { + /** Properties of a ClusterAutoscaling. */ + interface IClusterAutoscaling { - /** TimeWindow startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** ClusterAutoscaling enableNodeAutoprovisioning */ + enableNodeAutoprovisioning?: (boolean|null); - /** TimeWindow endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** ClusterAutoscaling resourceLimits */ + resourceLimits?: (google.container.v1.IResourceLimit[]|null); + + /** ClusterAutoscaling autoprovisioningNodePoolDefaults */ + autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); + + /** ClusterAutoscaling autoprovisioningLocations */ + autoprovisioningLocations?: (string[]|null); } - /** Represents a TimeWindow. */ - class TimeWindow implements ITimeWindow { + /** Represents a ClusterAutoscaling. */ + class ClusterAutoscaling implements IClusterAutoscaling { /** - * Constructs a new TimeWindow. + * Constructs a new ClusterAutoscaling. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ITimeWindow); + constructor(properties?: google.container.v1.IClusterAutoscaling); - /** TimeWindow startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ClusterAutoscaling enableNodeAutoprovisioning. */ + public enableNodeAutoprovisioning: boolean; - /** TimeWindow endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ClusterAutoscaling resourceLimits. */ + public resourceLimits: google.container.v1.IResourceLimit[]; + + /** ClusterAutoscaling autoprovisioningNodePoolDefaults. */ + public autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); + + /** ClusterAutoscaling autoprovisioningLocations. */ + public autoprovisioningLocations: string[]; /** - * Creates a new TimeWindow instance using the specified properties. + * Creates a new ClusterAutoscaling instance using the specified properties. * @param [properties] Properties to set - * @returns TimeWindow instance + * @returns ClusterAutoscaling instance */ - public static create(properties?: google.container.v1.ITimeWindow): google.container.v1.TimeWindow; + public static create(properties?: google.container.v1.IClusterAutoscaling): google.container.v1.ClusterAutoscaling; /** - * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. - * @param message TimeWindow message or plain object to encode + * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. + * @param message ClusterAutoscaling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. - * @param message TimeWindow message or plain object to encode + * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. + * @param message ClusterAutoscaling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ITimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimeWindow message from the specified reader or buffer. + * Decodes a ClusterAutoscaling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TimeWindow + * @returns ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.TimeWindow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ClusterAutoscaling; /** - * Decodes a TimeWindow message from the specified reader or buffer, length delimited. + * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimeWindow + * @returns ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.TimeWindow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ClusterAutoscaling; /** - * Verifies a TimeWindow message. + * Verifies a ClusterAutoscaling message. * @param message Plain 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 TimeWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ClusterAutoscaling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimeWindow + * @returns ClusterAutoscaling */ - public static fromObject(object: { [k: string]: any }): google.container.v1.TimeWindow; + public static fromObject(object: { [k: string]: any }): google.container.v1.ClusterAutoscaling; /** - * Creates a plain object from a TimeWindow message. Also converts values to other types if specified. - * @param message TimeWindow + * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified. + * @param message ClusterAutoscaling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.TimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.ClusterAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimeWindow to JSON. + * Converts this ClusterAutoscaling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RecurringTimeWindow. */ - interface IRecurringTimeWindow { + /** Properties of an AutoprovisioningNodePoolDefaults. */ + interface IAutoprovisioningNodePoolDefaults { - /** RecurringTimeWindow window */ - window?: (google.container.v1.ITimeWindow|null); + /** AutoprovisioningNodePoolDefaults oauthScopes */ + oauthScopes?: (string[]|null); - /** RecurringTimeWindow recurrence */ - recurrence?: (string|null); + /** AutoprovisioningNodePoolDefaults serviceAccount */ + serviceAccount?: (string|null); + + /** AutoprovisioningNodePoolDefaults upgradeSettings */ + upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + + /** AutoprovisioningNodePoolDefaults management */ + management?: (google.container.v1.INodeManagement|null); + + /** AutoprovisioningNodePoolDefaults minCpuPlatform */ + minCpuPlatform?: (string|null); + + /** AutoprovisioningNodePoolDefaults diskSizeGb */ + diskSizeGb?: (number|null); + + /** AutoprovisioningNodePoolDefaults diskType */ + diskType?: (string|null); + + /** AutoprovisioningNodePoolDefaults shieldedInstanceConfig */ + shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); + + /** AutoprovisioningNodePoolDefaults bootDiskKmsKey */ + bootDiskKmsKey?: (string|null); } - /** Represents a RecurringTimeWindow. */ - class RecurringTimeWindow implements IRecurringTimeWindow { + /** Represents an AutoprovisioningNodePoolDefaults. */ + class AutoprovisioningNodePoolDefaults implements IAutoprovisioningNodePoolDefaults { /** - * Constructs a new RecurringTimeWindow. + * Constructs a new AutoprovisioningNodePoolDefaults. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IRecurringTimeWindow); + constructor(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults); - /** RecurringTimeWindow window. */ - public window?: (google.container.v1.ITimeWindow|null); + /** AutoprovisioningNodePoolDefaults oauthScopes. */ + public oauthScopes: string[]; - /** RecurringTimeWindow recurrence. */ - public recurrence: string; + /** AutoprovisioningNodePoolDefaults serviceAccount. */ + public serviceAccount: string; + + /** AutoprovisioningNodePoolDefaults upgradeSettings. */ + public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + + /** AutoprovisioningNodePoolDefaults management. */ + public management?: (google.container.v1.INodeManagement|null); + + /** AutoprovisioningNodePoolDefaults minCpuPlatform. */ + public minCpuPlatform: string; + + /** AutoprovisioningNodePoolDefaults diskSizeGb. */ + public diskSizeGb: number; + + /** AutoprovisioningNodePoolDefaults diskType. */ + public diskType: string; + + /** AutoprovisioningNodePoolDefaults shieldedInstanceConfig. */ + public shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); + + /** AutoprovisioningNodePoolDefaults bootDiskKmsKey. */ + public bootDiskKmsKey: string; /** - * Creates a new RecurringTimeWindow instance using the specified properties. + * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. * @param [properties] Properties to set - * @returns RecurringTimeWindow instance + * @returns AutoprovisioningNodePoolDefaults instance */ - public static create(properties?: google.container.v1.IRecurringTimeWindow): google.container.v1.RecurringTimeWindow; + public static create(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. - * @param message RecurringTimeWindow message or plain object to encode + * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. + * @param message AutoprovisioningNodePoolDefaults message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. - * @param message RecurringTimeWindow message or plain object to encode + * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. + * @param message AutoprovisioningNodePoolDefaults message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IRecurringTimeWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RecurringTimeWindow message from the specified reader or buffer. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RecurringTimeWindow + * @returns AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.RecurringTimeWindow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RecurringTimeWindow + * @returns AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.RecurringTimeWindow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * Verifies a RecurringTimeWindow message. + * Verifies an AutoprovisioningNodePoolDefaults message. * @param message Plain 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 RecurringTimeWindow message from a plain object. Also converts values to their respective internal types. + * Creates an AutoprovisioningNodePoolDefaults message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RecurringTimeWindow + * @returns AutoprovisioningNodePoolDefaults */ - public static fromObject(object: { [k: string]: any }): google.container.v1.RecurringTimeWindow; + public static fromObject(object: { [k: string]: any }): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified. - * @param message RecurringTimeWindow + * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified. + * @param message AutoprovisioningNodePoolDefaults * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.RecurringTimeWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.AutoprovisioningNodePoolDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RecurringTimeWindow to JSON. + * Converts this AutoprovisioningNodePoolDefaults to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DailyMaintenanceWindow. */ - interface IDailyMaintenanceWindow { + /** Properties of a ResourceLimit. */ + interface IResourceLimit { - /** DailyMaintenanceWindow startTime */ - startTime?: (string|null); + /** ResourceLimit resourceType */ + resourceType?: (string|null); - /** DailyMaintenanceWindow duration */ - duration?: (string|null); + /** ResourceLimit minimum */ + minimum?: (number|Long|string|null); + + /** ResourceLimit maximum */ + maximum?: (number|Long|string|null); } - /** Represents a DailyMaintenanceWindow. */ - class DailyMaintenanceWindow implements IDailyMaintenanceWindow { + /** Represents a ResourceLimit. */ + class ResourceLimit implements IResourceLimit { /** - * Constructs a new DailyMaintenanceWindow. + * Constructs a new ResourceLimit. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IDailyMaintenanceWindow); + constructor(properties?: google.container.v1.IResourceLimit); - /** DailyMaintenanceWindow startTime. */ - public startTime: string; + /** ResourceLimit resourceType. */ + public resourceType: string; - /** DailyMaintenanceWindow duration. */ - public duration: string; + /** ResourceLimit minimum. */ + public minimum: (number|Long|string); + + /** ResourceLimit maximum. */ + public maximum: (number|Long|string); /** - * Creates a new DailyMaintenanceWindow instance using the specified properties. + * Creates a new ResourceLimit instance using the specified properties. * @param [properties] Properties to set - * @returns DailyMaintenanceWindow instance + * @returns ResourceLimit instance */ - public static create(properties?: google.container.v1.IDailyMaintenanceWindow): google.container.v1.DailyMaintenanceWindow; + public static create(properties?: google.container.v1.IResourceLimit): google.container.v1.ResourceLimit; /** - * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. - * @param message DailyMaintenanceWindow message or plain object to encode + * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. + * @param message ResourceLimit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. - * @param message DailyMaintenanceWindow message or plain object to encode + * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. + * @param message ResourceLimit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IDailyMaintenanceWindow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. + * Decodes a ResourceLimit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DailyMaintenanceWindow + * @returns ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.DailyMaintenanceWindow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ResourceLimit; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DailyMaintenanceWindow + * @returns ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.DailyMaintenanceWindow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ResourceLimit; /** - * Verifies a DailyMaintenanceWindow message. + * Verifies a ResourceLimit message. * @param message Plain 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 DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceLimit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DailyMaintenanceWindow + * @returns ResourceLimit */ - public static fromObject(object: { [k: string]: any }): google.container.v1.DailyMaintenanceWindow; + public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceLimit; /** - * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. - * @param message DailyMaintenanceWindow + * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified. + * @param message ResourceLimit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.DailyMaintenanceWindow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.ResourceLimit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DailyMaintenanceWindow to JSON. + * Converts this ResourceLimit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetNodePoolManagementRequest. */ - interface ISetNodePoolManagementRequest { - - /** SetNodePoolManagementRequest projectId */ - projectId?: (string|null); - - /** SetNodePoolManagementRequest zone */ - zone?: (string|null); + /** Properties of a NodePoolAutoscaling. */ + interface INodePoolAutoscaling { - /** SetNodePoolManagementRequest clusterId */ - clusterId?: (string|null); + /** NodePoolAutoscaling enabled */ + enabled?: (boolean|null); - /** SetNodePoolManagementRequest nodePoolId */ - nodePoolId?: (string|null); + /** NodePoolAutoscaling minNodeCount */ + minNodeCount?: (number|null); - /** SetNodePoolManagementRequest management */ - management?: (google.container.v1.INodeManagement|null); + /** NodePoolAutoscaling maxNodeCount */ + maxNodeCount?: (number|null); - /** SetNodePoolManagementRequest name */ - name?: (string|null); + /** NodePoolAutoscaling autoprovisioned */ + autoprovisioned?: (boolean|null); } - /** Represents a SetNodePoolManagementRequest. */ - class SetNodePoolManagementRequest implements ISetNodePoolManagementRequest { + /** Represents a NodePoolAutoscaling. */ + class NodePoolAutoscaling implements INodePoolAutoscaling { /** - * Constructs a new SetNodePoolManagementRequest. + * Constructs a new NodePoolAutoscaling. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetNodePoolManagementRequest); - - /** SetNodePoolManagementRequest projectId. */ - public projectId: string; - - /** SetNodePoolManagementRequest zone. */ - public zone: string; + constructor(properties?: google.container.v1.INodePoolAutoscaling); - /** SetNodePoolManagementRequest clusterId. */ - public clusterId: string; + /** NodePoolAutoscaling enabled. */ + public enabled: boolean; - /** SetNodePoolManagementRequest nodePoolId. */ - public nodePoolId: string; + /** NodePoolAutoscaling minNodeCount. */ + public minNodeCount: number; - /** SetNodePoolManagementRequest management. */ - public management?: (google.container.v1.INodeManagement|null); + /** NodePoolAutoscaling maxNodeCount. */ + public maxNodeCount: number; - /** SetNodePoolManagementRequest name. */ - public name: string; + /** NodePoolAutoscaling autoprovisioned. */ + public autoprovisioned: boolean; /** - * Creates a new SetNodePoolManagementRequest instance using the specified properties. + * Creates a new NodePoolAutoscaling instance using the specified properties. * @param [properties] Properties to set - * @returns SetNodePoolManagementRequest instance + * @returns NodePoolAutoscaling instance */ - public static create(properties?: google.container.v1.ISetNodePoolManagementRequest): google.container.v1.SetNodePoolManagementRequest; + public static create(properties?: google.container.v1.INodePoolAutoscaling): google.container.v1.NodePoolAutoscaling; /** - * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. - * @param message SetNodePoolManagementRequest message or plain object to encode + * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * @param message NodePoolAutoscaling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. - * @param message SetNodePoolManagementRequest message or plain object to encode + * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * @param message NodePoolAutoscaling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetNodePoolManagementRequest + * @returns NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNodePoolManagementRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodePoolAutoscaling; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetNodePoolManagementRequest + * @returns NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNodePoolManagementRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodePoolAutoscaling; /** - * Verifies a SetNodePoolManagementRequest message. + * Verifies a NodePoolAutoscaling message. * @param message Plain 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 SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetNodePoolManagementRequest + * @returns NodePoolAutoscaling */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolManagementRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoscaling; /** - * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. - * @param message SetNodePoolManagementRequest + * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. + * @param message NodePoolAutoscaling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.SetNodePoolManagementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.NodePoolAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetNodePoolManagementRequest to JSON. + * Converts this NodePoolAutoscaling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetNodePoolSizeRequest. */ - interface ISetNodePoolSizeRequest { + /** Properties of a SetLabelsRequest. */ + interface ISetLabelsRequest { - /** SetNodePoolSizeRequest projectId */ + /** SetLabelsRequest projectId */ projectId?: (string|null); - /** SetNodePoolSizeRequest zone */ + /** SetLabelsRequest zone */ zone?: (string|null); - /** SetNodePoolSizeRequest clusterId */ + /** SetLabelsRequest clusterId */ clusterId?: (string|null); - /** SetNodePoolSizeRequest nodePoolId */ - nodePoolId?: (string|null); + /** SetLabelsRequest resourceLabels */ + resourceLabels?: ({ [k: string]: string }|null); - /** SetNodePoolSizeRequest nodeCount */ - nodeCount?: (number|null); + /** SetLabelsRequest labelFingerprint */ + labelFingerprint?: (string|null); - /** SetNodePoolSizeRequest name */ + /** SetLabelsRequest name */ name?: (string|null); } - /** Represents a SetNodePoolSizeRequest. */ - class SetNodePoolSizeRequest implements ISetNodePoolSizeRequest { + /** Represents a SetLabelsRequest. */ + class SetLabelsRequest implements ISetLabelsRequest { /** - * Constructs a new SetNodePoolSizeRequest. + * Constructs a new SetLabelsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetNodePoolSizeRequest); + constructor(properties?: google.container.v1.ISetLabelsRequest); - /** SetNodePoolSizeRequest projectId. */ + /** SetLabelsRequest projectId. */ public projectId: string; - /** SetNodePoolSizeRequest zone. */ + /** SetLabelsRequest zone. */ public zone: string; - /** SetNodePoolSizeRequest clusterId. */ + /** SetLabelsRequest clusterId. */ public clusterId: string; - /** SetNodePoolSizeRequest nodePoolId. */ - public nodePoolId: string; + /** SetLabelsRequest resourceLabels. */ + public resourceLabels: { [k: string]: string }; - /** SetNodePoolSizeRequest nodeCount. */ - public nodeCount: number; + /** SetLabelsRequest labelFingerprint. */ + public labelFingerprint: string; - /** SetNodePoolSizeRequest name. */ + /** SetLabelsRequest name. */ public name: string; /** - * Creates a new SetNodePoolSizeRequest instance using the specified properties. + * Creates a new SetLabelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetNodePoolSizeRequest instance + * @returns SetLabelsRequest instance */ - public static create(properties?: google.container.v1.ISetNodePoolSizeRequest): google.container.v1.SetNodePoolSizeRequest; + public static create(properties?: google.container.v1.ISetLabelsRequest): google.container.v1.SetLabelsRequest; /** - * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. - * @param message SetNodePoolSizeRequest message or plain object to encode + * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * @param message SetLabelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. - * @param message SetNodePoolSizeRequest message or plain object to encode + * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * @param message SetLabelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. + * Decodes a SetLabelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetNodePoolSizeRequest + * @returns SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNodePoolSizeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetLabelsRequest; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. + * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetNodePoolSizeRequest + * @returns SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNodePoolSizeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetLabelsRequest; /** - * Verifies a SetNodePoolSizeRequest message. + * Verifies a SetLabelsRequest message. * @param message Plain 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 SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetLabelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetNodePoolSizeRequest + * @returns SetLabelsRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolSizeRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLabelsRequest; /** - * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. - * @param message SetNodePoolSizeRequest + * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. + * @param message SetLabelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.SetNodePoolSizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.SetLabelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetNodePoolSizeRequest to JSON. + * Converts this SetLabelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RollbackNodePoolUpgradeRequest. */ - interface IRollbackNodePoolUpgradeRequest { + /** Properties of a SetLegacyAbacRequest. */ + interface ISetLegacyAbacRequest { - /** RollbackNodePoolUpgradeRequest projectId */ + /** SetLegacyAbacRequest projectId */ projectId?: (string|null); - /** RollbackNodePoolUpgradeRequest zone */ + /** SetLegacyAbacRequest zone */ zone?: (string|null); - /** RollbackNodePoolUpgradeRequest clusterId */ + /** SetLegacyAbacRequest clusterId */ clusterId?: (string|null); - /** RollbackNodePoolUpgradeRequest nodePoolId */ - nodePoolId?: (string|null); + /** SetLegacyAbacRequest enabled */ + enabled?: (boolean|null); - /** RollbackNodePoolUpgradeRequest name */ + /** SetLegacyAbacRequest name */ name?: (string|null); } - /** Represents a RollbackNodePoolUpgradeRequest. */ - class RollbackNodePoolUpgradeRequest implements IRollbackNodePoolUpgradeRequest { + /** Represents a SetLegacyAbacRequest. */ + class SetLegacyAbacRequest implements ISetLegacyAbacRequest { /** - * Constructs a new RollbackNodePoolUpgradeRequest. + * Constructs a new SetLegacyAbacRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest); + constructor(properties?: google.container.v1.ISetLegacyAbacRequest); - /** RollbackNodePoolUpgradeRequest projectId. */ + /** SetLegacyAbacRequest projectId. */ public projectId: string; - /** RollbackNodePoolUpgradeRequest zone. */ + /** SetLegacyAbacRequest zone. */ public zone: string; - /** RollbackNodePoolUpgradeRequest clusterId. */ + /** SetLegacyAbacRequest clusterId. */ public clusterId: string; - /** RollbackNodePoolUpgradeRequest nodePoolId. */ - public nodePoolId: string; + /** SetLegacyAbacRequest enabled. */ + public enabled: boolean; - /** RollbackNodePoolUpgradeRequest name. */ + /** SetLegacyAbacRequest name. */ public name: string; /** - * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. + * Creates a new SetLegacyAbacRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RollbackNodePoolUpgradeRequest instance + * @returns SetLegacyAbacRequest instance */ - public static create(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest): google.container.v1.RollbackNodePoolUpgradeRequest; + public static create(properties?: google.container.v1.ISetLegacyAbacRequest): google.container.v1.SetLegacyAbacRequest; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. - * @param message RollbackNodePoolUpgradeRequest message or plain object to encode + * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * @param message SetLegacyAbacRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. - * @param message RollbackNodePoolUpgradeRequest message or plain object to encode + * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * @param message SetLegacyAbacRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RollbackNodePoolUpgradeRequest + * @returns SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.RollbackNodePoolUpgradeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetLegacyAbacRequest; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RollbackNodePoolUpgradeRequest + * @returns SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.RollbackNodePoolUpgradeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetLegacyAbacRequest; /** - * Verifies a RollbackNodePoolUpgradeRequest message. + * Verifies a SetLegacyAbacRequest message. * @param message Plain 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 RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RollbackNodePoolUpgradeRequest + * @returns SetLegacyAbacRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.RollbackNodePoolUpgradeRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLegacyAbacRequest; /** - * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. - * @param message RollbackNodePoolUpgradeRequest + * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. + * @param message SetLegacyAbacRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.RollbackNodePoolUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.SetLegacyAbacRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RollbackNodePoolUpgradeRequest to JSON. + * Converts this SetLegacyAbacRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListNodePoolsResponse. */ - interface IListNodePoolsResponse { + /** Properties of a StartIPRotationRequest. */ + interface IStartIPRotationRequest { - /** ListNodePoolsResponse nodePools */ - nodePools?: (google.container.v1.INodePool[]|null); + /** StartIPRotationRequest projectId */ + projectId?: (string|null); + + /** StartIPRotationRequest zone */ + zone?: (string|null); + + /** StartIPRotationRequest clusterId */ + clusterId?: (string|null); + + /** StartIPRotationRequest name */ + name?: (string|null); + + /** StartIPRotationRequest rotateCredentials */ + rotateCredentials?: (boolean|null); } - /** Represents a ListNodePoolsResponse. */ - class ListNodePoolsResponse implements IListNodePoolsResponse { + /** Represents a StartIPRotationRequest. */ + class StartIPRotationRequest implements IStartIPRotationRequest { /** - * Constructs a new ListNodePoolsResponse. + * Constructs a new StartIPRotationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IListNodePoolsResponse); + constructor(properties?: google.container.v1.IStartIPRotationRequest); - /** ListNodePoolsResponse nodePools. */ - public nodePools: google.container.v1.INodePool[]; + /** StartIPRotationRequest projectId. */ + public projectId: string; + + /** StartIPRotationRequest zone. */ + public zone: string; + + /** StartIPRotationRequest clusterId. */ + public clusterId: string; + + /** StartIPRotationRequest name. */ + public name: string; + + /** StartIPRotationRequest rotateCredentials. */ + public rotateCredentials: boolean; /** - * Creates a new ListNodePoolsResponse instance using the specified properties. + * Creates a new StartIPRotationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListNodePoolsResponse instance + * @returns StartIPRotationRequest instance */ - public static create(properties?: google.container.v1.IListNodePoolsResponse): google.container.v1.ListNodePoolsResponse; + public static create(properties?: google.container.v1.IStartIPRotationRequest): google.container.v1.StartIPRotationRequest; /** - * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. - * @param message ListNodePoolsResponse message or plain object to encode + * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * @param message StartIPRotationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. - * @param message ListNodePoolsResponse message or plain object to encode + * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * @param message StartIPRotationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer. + * Decodes a StartIPRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListNodePoolsResponse + * @returns StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ListNodePoolsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.StartIPRotationRequest; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. + * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListNodePoolsResponse + * @returns StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ListNodePoolsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.StartIPRotationRequest; /** - * Verifies a ListNodePoolsResponse message. + * Verifies a StartIPRotationRequest message. * @param message Plain 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 ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListNodePoolsResponse + * @returns StartIPRotationRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.ListNodePoolsResponse; + public static fromObject(object: { [k: string]: any }): google.container.v1.StartIPRotationRequest; /** - * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. - * @param message ListNodePoolsResponse + * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. + * @param message StartIPRotationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.ListNodePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.StartIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListNodePoolsResponse to JSON. + * Converts this StartIPRotationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ClusterAutoscaling. */ - interface IClusterAutoscaling { + /** Properties of a CompleteIPRotationRequest. */ + interface ICompleteIPRotationRequest { - /** ClusterAutoscaling enableNodeAutoprovisioning */ - enableNodeAutoprovisioning?: (boolean|null); + /** CompleteIPRotationRequest projectId */ + projectId?: (string|null); - /** ClusterAutoscaling resourceLimits */ - resourceLimits?: (google.container.v1.IResourceLimit[]|null); + /** CompleteIPRotationRequest zone */ + zone?: (string|null); - /** ClusterAutoscaling autoprovisioningNodePoolDefaults */ - autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); + /** CompleteIPRotationRequest clusterId */ + clusterId?: (string|null); - /** ClusterAutoscaling autoprovisioningLocations */ - autoprovisioningLocations?: (string[]|null); + /** CompleteIPRotationRequest name */ + name?: (string|null); } - /** Represents a ClusterAutoscaling. */ - class ClusterAutoscaling implements IClusterAutoscaling { + /** Represents a CompleteIPRotationRequest. */ + class CompleteIPRotationRequest implements ICompleteIPRotationRequest { /** - * Constructs a new ClusterAutoscaling. + * Constructs a new CompleteIPRotationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IClusterAutoscaling); + constructor(properties?: google.container.v1.ICompleteIPRotationRequest); - /** ClusterAutoscaling enableNodeAutoprovisioning. */ - public enableNodeAutoprovisioning: boolean; + /** CompleteIPRotationRequest projectId. */ + public projectId: string; - /** ClusterAutoscaling resourceLimits. */ - public resourceLimits: google.container.v1.IResourceLimit[]; + /** CompleteIPRotationRequest zone. */ + public zone: string; - /** ClusterAutoscaling autoprovisioningNodePoolDefaults. */ - public autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); + /** CompleteIPRotationRequest clusterId. */ + public clusterId: string; - /** ClusterAutoscaling autoprovisioningLocations. */ - public autoprovisioningLocations: string[]; + /** CompleteIPRotationRequest name. */ + public name: string; /** - * Creates a new ClusterAutoscaling instance using the specified properties. + * Creates a new CompleteIPRotationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ClusterAutoscaling instance + * @returns CompleteIPRotationRequest instance */ - public static create(properties?: google.container.v1.IClusterAutoscaling): google.container.v1.ClusterAutoscaling; + public static create(properties?: google.container.v1.ICompleteIPRotationRequest): google.container.v1.CompleteIPRotationRequest; /** - * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. - * @param message ClusterAutoscaling message or plain object to encode + * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * @param message CompleteIPRotationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. - * @param message ClusterAutoscaling message or plain object to encode + * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * @param message CompleteIPRotationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ClusterAutoscaling message from the specified reader or buffer. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ClusterAutoscaling + * @returns CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ClusterAutoscaling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.CompleteIPRotationRequest; /** - * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ClusterAutoscaling + * @returns CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ClusterAutoscaling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.CompleteIPRotationRequest; /** - * Verifies a ClusterAutoscaling message. + * Verifies a CompleteIPRotationRequest message. * @param message Plain 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 ClusterAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ClusterAutoscaling + * @returns CompleteIPRotationRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.ClusterAutoscaling; + public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest; /** - * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified. - * @param message ClusterAutoscaling + * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. + * @param message CompleteIPRotationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.ClusterAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ClusterAutoscaling to JSON. + * Converts this CompleteIPRotationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AutoprovisioningNodePoolDefaults. */ - interface IAutoprovisioningNodePoolDefaults { + /** Properties of an AcceleratorConfig. */ + interface IAcceleratorConfig { - /** AutoprovisioningNodePoolDefaults oauthScopes */ - oauthScopes?: (string[]|null); + /** AcceleratorConfig acceleratorCount */ + acceleratorCount?: (number|Long|string|null); - /** AutoprovisioningNodePoolDefaults serviceAccount */ - serviceAccount?: (string|null); + /** AcceleratorConfig acceleratorType */ + acceleratorType?: (string|null); } - /** Represents an AutoprovisioningNodePoolDefaults. */ - class AutoprovisioningNodePoolDefaults implements IAutoprovisioningNodePoolDefaults { + /** Represents an AcceleratorConfig. */ + class AcceleratorConfig implements IAcceleratorConfig { /** - * Constructs a new AutoprovisioningNodePoolDefaults. + * Constructs a new AcceleratorConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults); + constructor(properties?: google.container.v1.IAcceleratorConfig); - /** AutoprovisioningNodePoolDefaults oauthScopes. */ - public oauthScopes: string[]; + /** AcceleratorConfig acceleratorCount. */ + public acceleratorCount: (number|Long|string); - /** AutoprovisioningNodePoolDefaults serviceAccount. */ - public serviceAccount: string; + /** AcceleratorConfig acceleratorType. */ + public acceleratorType: string; /** - * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. + * Creates a new AcceleratorConfig instance using the specified properties. * @param [properties] Properties to set - * @returns AutoprovisioningNodePoolDefaults instance + * @returns AcceleratorConfig instance */ - public static create(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults): google.container.v1.AutoprovisioningNodePoolDefaults; + public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig; /** - * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. - * @param message AutoprovisioningNodePoolDefaults message or plain object to encode + * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * @param message AcceleratorConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. - * @param message AutoprovisioningNodePoolDefaults message or plain object to encode + * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * @param message AcceleratorConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer. + * Decodes an AcceleratorConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoprovisioningNodePoolDefaults + * @returns AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AutoprovisioningNodePoolDefaults; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AcceleratorConfig; /** - * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited. + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoprovisioningNodePoolDefaults + * @returns AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AutoprovisioningNodePoolDefaults; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AcceleratorConfig; /** - * Verifies an AutoprovisioningNodePoolDefaults message. + * Verifies an AcceleratorConfig message. * @param message Plain 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 AutoprovisioningNodePoolDefaults message from a plain object. Also converts values to their respective internal types. + * Creates an AcceleratorConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoprovisioningNodePoolDefaults + * @returns AcceleratorConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.AutoprovisioningNodePoolDefaults; + public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig; /** - * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified. - * @param message AutoprovisioningNodePoolDefaults + * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. + * @param message AcceleratorConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.AutoprovisioningNodePoolDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.AcceleratorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoprovisioningNodePoolDefaults to JSON. + * Converts this AcceleratorConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResourceLimit. */ - interface IResourceLimit { - - /** ResourceLimit resourceType */ - resourceType?: (string|null); - - /** ResourceLimit minimum */ - minimum?: (number|Long|string|null); + /** Properties of a WorkloadMetadataConfig. */ + interface IWorkloadMetadataConfig { - /** ResourceLimit maximum */ - maximum?: (number|Long|string|null); + /** WorkloadMetadataConfig mode */ + mode?: (google.container.v1.WorkloadMetadataConfig.Mode|keyof typeof google.container.v1.WorkloadMetadataConfig.Mode|null); } - /** Represents a ResourceLimit. */ - class ResourceLimit implements IResourceLimit { + /** Represents a WorkloadMetadataConfig. */ + class WorkloadMetadataConfig implements IWorkloadMetadataConfig { /** - * Constructs a new ResourceLimit. + * Constructs a new WorkloadMetadataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IResourceLimit); - - /** ResourceLimit resourceType. */ - public resourceType: string; - - /** ResourceLimit minimum. */ - public minimum: (number|Long|string); + constructor(properties?: google.container.v1.IWorkloadMetadataConfig); - /** ResourceLimit maximum. */ - public maximum: (number|Long|string); + /** WorkloadMetadataConfig mode. */ + public mode: (google.container.v1.WorkloadMetadataConfig.Mode|keyof typeof google.container.v1.WorkloadMetadataConfig.Mode); /** - * Creates a new ResourceLimit instance using the specified properties. + * Creates a new WorkloadMetadataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceLimit instance + * @returns WorkloadMetadataConfig instance */ - public static create(properties?: google.container.v1.IResourceLimit): google.container.v1.ResourceLimit; + public static create(properties?: google.container.v1.IWorkloadMetadataConfig): google.container.v1.WorkloadMetadataConfig; /** - * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. - * @param message ResourceLimit message or plain object to encode + * Encodes the specified WorkloadMetadataConfig message. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages. + * @param message WorkloadMetadataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IWorkloadMetadataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. - * @param message ResourceLimit message or plain object to encode + * Encodes the specified WorkloadMetadataConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages. + * @param message WorkloadMetadataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IWorkloadMetadataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceLimit message from the specified reader or buffer. + * Decodes a WorkloadMetadataConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceLimit + * @returns WorkloadMetadataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ResourceLimit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.WorkloadMetadataConfig; /** - * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. + * Decodes a WorkloadMetadataConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceLimit + * @returns WorkloadMetadataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ResourceLimit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.WorkloadMetadataConfig; /** - * Verifies a ResourceLimit message. + * Verifies a WorkloadMetadataConfig message. * @param message Plain 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 ResourceLimit message from a plain object. Also converts values to their respective internal types. + * Creates a WorkloadMetadataConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceLimit + * @returns WorkloadMetadataConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceLimit; + public static fromObject(object: { [k: string]: any }): google.container.v1.WorkloadMetadataConfig; /** - * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified. - * @param message ResourceLimit + * Creates a plain object from a WorkloadMetadataConfig message. Also converts values to other types if specified. + * @param message WorkloadMetadataConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.ResourceLimit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.WorkloadMetadataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceLimit to JSON. + * Converts this WorkloadMetadataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a NodePoolAutoscaling. */ - interface INodePoolAutoscaling { + namespace WorkloadMetadataConfig { - /** NodePoolAutoscaling enabled */ - enabled?: (boolean|null); + /** Mode enum. */ + enum Mode { + MODE_UNSPECIFIED = 0, + GCE_METADATA = 1, + GKE_METADATA = 2 + } + } - /** NodePoolAutoscaling minNodeCount */ - minNodeCount?: (number|null); + /** Properties of a SetNetworkPolicyRequest. */ + interface ISetNetworkPolicyRequest { - /** NodePoolAutoscaling maxNodeCount */ - maxNodeCount?: (number|null); + /** SetNetworkPolicyRequest projectId */ + projectId?: (string|null); - /** NodePoolAutoscaling autoprovisioned */ - autoprovisioned?: (boolean|null); + /** SetNetworkPolicyRequest zone */ + zone?: (string|null); + + /** SetNetworkPolicyRequest clusterId */ + clusterId?: (string|null); + + /** SetNetworkPolicyRequest networkPolicy */ + networkPolicy?: (google.container.v1.INetworkPolicy|null); + + /** SetNetworkPolicyRequest name */ + name?: (string|null); } - /** Represents a NodePoolAutoscaling. */ - class NodePoolAutoscaling implements INodePoolAutoscaling { + /** Represents a SetNetworkPolicyRequest. */ + class SetNetworkPolicyRequest implements ISetNetworkPolicyRequest { /** - * Constructs a new NodePoolAutoscaling. + * Constructs a new SetNetworkPolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.INodePoolAutoscaling); + constructor(properties?: google.container.v1.ISetNetworkPolicyRequest); - /** NodePoolAutoscaling enabled. */ - public enabled: boolean; + /** SetNetworkPolicyRequest projectId. */ + public projectId: string; - /** NodePoolAutoscaling minNodeCount. */ - public minNodeCount: number; + /** SetNetworkPolicyRequest zone. */ + public zone: string; - /** NodePoolAutoscaling maxNodeCount. */ - public maxNodeCount: number; + /** SetNetworkPolicyRequest clusterId. */ + public clusterId: string; - /** NodePoolAutoscaling autoprovisioned. */ - public autoprovisioned: boolean; + /** SetNetworkPolicyRequest networkPolicy. */ + public networkPolicy?: (google.container.v1.INetworkPolicy|null); + + /** SetNetworkPolicyRequest name. */ + public name: string; /** - * Creates a new NodePoolAutoscaling instance using the specified properties. + * Creates a new SetNetworkPolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NodePoolAutoscaling instance + * @returns SetNetworkPolicyRequest instance */ - public static create(properties?: google.container.v1.INodePoolAutoscaling): google.container.v1.NodePoolAutoscaling; + public static create(properties?: google.container.v1.ISetNetworkPolicyRequest): google.container.v1.SetNetworkPolicyRequest; /** - * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. - * @param message NodePoolAutoscaling message or plain object to encode + * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * @param message SetNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. - * @param message NodePoolAutoscaling message or plain object to encode + * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * @param message SetNetworkPolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodePoolAutoscaling + * @returns SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodePoolAutoscaling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNetworkPolicyRequest; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodePoolAutoscaling + * @returns SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodePoolAutoscaling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNetworkPolicyRequest; /** - * Verifies a NodePoolAutoscaling message. + * Verifies a SetNetworkPolicyRequest message. * @param message Plain 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 NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates a SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NodePoolAutoscaling + * @returns SetNetworkPolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoscaling; + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNetworkPolicyRequest; /** - * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. - * @param message NodePoolAutoscaling + * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. + * @param message SetNetworkPolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.NodePoolAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.SetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodePoolAutoscaling to JSON. + * Converts this SetNetworkPolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetLabelsRequest. */ - interface ISetLabelsRequest { + /** Properties of a SetMaintenancePolicyRequest. */ + interface ISetMaintenancePolicyRequest { - /** SetLabelsRequest projectId */ + /** SetMaintenancePolicyRequest projectId */ projectId?: (string|null); - /** SetLabelsRequest zone */ + /** SetMaintenancePolicyRequest zone */ zone?: (string|null); - /** SetLabelsRequest clusterId */ - clusterId?: (string|null); - - /** SetLabelsRequest resourceLabels */ - resourceLabels?: ({ [k: string]: string }|null); + /** SetMaintenancePolicyRequest clusterId */ + clusterId?: (string|null); - /** SetLabelsRequest labelFingerprint */ - labelFingerprint?: (string|null); + /** SetMaintenancePolicyRequest maintenancePolicy */ + maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); - /** SetLabelsRequest name */ + /** SetMaintenancePolicyRequest name */ name?: (string|null); } - /** Represents a SetLabelsRequest. */ - class SetLabelsRequest implements ISetLabelsRequest { + /** Represents a SetMaintenancePolicyRequest. */ + class SetMaintenancePolicyRequest implements ISetMaintenancePolicyRequest { /** - * Constructs a new SetLabelsRequest. + * Constructs a new SetMaintenancePolicyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetLabelsRequest); + constructor(properties?: google.container.v1.ISetMaintenancePolicyRequest); - /** SetLabelsRequest projectId. */ + /** SetMaintenancePolicyRequest projectId. */ public projectId: string; - /** SetLabelsRequest zone. */ + /** SetMaintenancePolicyRequest zone. */ public zone: string; - /** SetLabelsRequest clusterId. */ + /** SetMaintenancePolicyRequest clusterId. */ public clusterId: string; - /** SetLabelsRequest resourceLabels. */ - public resourceLabels: { [k: string]: string }; - - /** SetLabelsRequest labelFingerprint. */ - public labelFingerprint: string; + /** SetMaintenancePolicyRequest maintenancePolicy. */ + public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); - /** SetLabelsRequest name. */ + /** SetMaintenancePolicyRequest name. */ public name: string; /** - * Creates a new SetLabelsRequest instance using the specified properties. + * Creates a new SetMaintenancePolicyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetLabelsRequest instance + * @returns SetMaintenancePolicyRequest instance */ - public static create(properties?: google.container.v1.ISetLabelsRequest): google.container.v1.SetLabelsRequest; + public static create(properties?: google.container.v1.ISetMaintenancePolicyRequest): google.container.v1.SetMaintenancePolicyRequest; /** - * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. - * @param message SetLabelsRequest message or plain object to encode + * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * @param message SetMaintenancePolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. - * @param message SetLabelsRequest message or plain object to encode + * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * @param message SetMaintenancePolicyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetLabelsRequest + * @returns SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetLabelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetMaintenancePolicyRequest; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetLabelsRequest + * @returns SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetLabelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetMaintenancePolicyRequest; /** - * Verifies a SetLabelsRequest message. + * Verifies a SetMaintenancePolicyRequest message. * @param message Plain 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 SetLabelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetLabelsRequest + * @returns SetMaintenancePolicyRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetLabelsRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.SetMaintenancePolicyRequest; /** - * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. - * @param message SetLabelsRequest + * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. + * @param message SetMaintenancePolicyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.SetLabelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.SetMaintenancePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetLabelsRequest to JSON. + * Converts this SetMaintenancePolicyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetLegacyAbacRequest. */ - interface ISetLegacyAbacRequest { - - /** SetLegacyAbacRequest projectId */ - projectId?: (string|null); - - /** SetLegacyAbacRequest zone */ - zone?: (string|null); - - /** SetLegacyAbacRequest clusterId */ - clusterId?: (string|null); + /** Properties of a StatusCondition. */ + interface IStatusCondition { - /** SetLegacyAbacRequest enabled */ - enabled?: (boolean|null); + /** StatusCondition code */ + code?: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code|null); - /** SetLegacyAbacRequest name */ - name?: (string|null); + /** StatusCondition message */ + message?: (string|null); } - /** Represents a SetLegacyAbacRequest. */ - class SetLegacyAbacRequest implements ISetLegacyAbacRequest { + /** Represents a StatusCondition. */ + class StatusCondition implements IStatusCondition { /** - * Constructs a new SetLegacyAbacRequest. + * Constructs a new StatusCondition. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetLegacyAbacRequest); - - /** SetLegacyAbacRequest projectId. */ - public projectId: string; - - /** SetLegacyAbacRequest zone. */ - public zone: string; - - /** SetLegacyAbacRequest clusterId. */ - public clusterId: string; + constructor(properties?: google.container.v1.IStatusCondition); - /** SetLegacyAbacRequest enabled. */ - public enabled: boolean; + /** StatusCondition code. */ + public code: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code); - /** SetLegacyAbacRequest name. */ - public name: string; + /** StatusCondition message. */ + public message: string; /** - * Creates a new SetLegacyAbacRequest instance using the specified properties. + * Creates a new StatusCondition instance using the specified properties. * @param [properties] Properties to set - * @returns SetLegacyAbacRequest instance + * @returns StatusCondition instance */ - public static create(properties?: google.container.v1.ISetLegacyAbacRequest): google.container.v1.SetLegacyAbacRequest; + public static create(properties?: google.container.v1.IStatusCondition): google.container.v1.StatusCondition; /** - * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. - * @param message SetLegacyAbacRequest message or plain object to encode + * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. + * @param message StatusCondition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. - * @param message SetLegacyAbacRequest message or plain object to encode + * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. + * @param message StatusCondition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. + * Decodes a StatusCondition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetLegacyAbacRequest + * @returns StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetLegacyAbacRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.StatusCondition; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * Decodes a StatusCondition message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetLegacyAbacRequest + * @returns StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetLegacyAbacRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.StatusCondition; /** - * Verifies a SetLegacyAbacRequest message. + * Verifies a StatusCondition message. * @param message Plain 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 SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StatusCondition message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetLegacyAbacRequest + * @returns StatusCondition */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetLegacyAbacRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.StatusCondition; /** - * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. - * @param message SetLegacyAbacRequest + * Creates a plain object from a StatusCondition message. Also converts values to other types if specified. + * @param message StatusCondition * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.SetLegacyAbacRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.StatusCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetLegacyAbacRequest to JSON. + * Converts this StatusCondition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StartIPRotationRequest. */ - interface IStartIPRotationRequest { + namespace StatusCondition { - /** StartIPRotationRequest projectId */ - projectId?: (string|null); + /** Code enum. */ + enum Code { + UNKNOWN = 0, + GCE_STOCKOUT = 1, + GKE_SERVICE_ACCOUNT_DELETED = 2, + GCE_QUOTA_EXCEEDED = 3, + SET_BY_OPERATOR = 4, + CLOUD_KMS_KEY_ERROR = 7 + } + } - /** StartIPRotationRequest zone */ - zone?: (string|null); + /** Properties of a NetworkConfig. */ + interface INetworkConfig { - /** StartIPRotationRequest clusterId */ - clusterId?: (string|null); + /** NetworkConfig network */ + network?: (string|null); - /** StartIPRotationRequest name */ - name?: (string|null); + /** NetworkConfig subnetwork */ + subnetwork?: (string|null); - /** StartIPRotationRequest rotateCredentials */ - rotateCredentials?: (boolean|null); + /** NetworkConfig enableIntraNodeVisibility */ + enableIntraNodeVisibility?: (boolean|null); + + /** NetworkConfig defaultSnatStatus */ + defaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null); } - /** Represents a StartIPRotationRequest. */ - class StartIPRotationRequest implements IStartIPRotationRequest { + /** Represents a NetworkConfig. */ + class NetworkConfig implements INetworkConfig { /** - * Constructs a new StartIPRotationRequest. + * Constructs a new NetworkConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IStartIPRotationRequest); - - /** StartIPRotationRequest projectId. */ - public projectId: string; + constructor(properties?: google.container.v1.INetworkConfig); - /** StartIPRotationRequest zone. */ - public zone: string; + /** NetworkConfig network. */ + public network: string; - /** StartIPRotationRequest clusterId. */ - public clusterId: string; + /** NetworkConfig subnetwork. */ + public subnetwork: string; - /** StartIPRotationRequest name. */ - public name: string; + /** NetworkConfig enableIntraNodeVisibility. */ + public enableIntraNodeVisibility: boolean; - /** StartIPRotationRequest rotateCredentials. */ - public rotateCredentials: boolean; + /** NetworkConfig defaultSnatStatus. */ + public defaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null); /** - * Creates a new StartIPRotationRequest instance using the specified properties. + * Creates a new NetworkConfig instance using the specified properties. * @param [properties] Properties to set - * @returns StartIPRotationRequest instance + * @returns NetworkConfig instance */ - public static create(properties?: google.container.v1.IStartIPRotationRequest): google.container.v1.StartIPRotationRequest; + public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig; /** - * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. - * @param message StartIPRotationRequest message or plain object to encode + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * @param message NetworkConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. - * @param message StartIPRotationRequest message or plain object to encode + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * @param message NetworkConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer. + * Decodes a NetworkConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StartIPRotationRequest + * @returns NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.StartIPRotationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NetworkConfig; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartIPRotationRequest + * @returns NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.StartIPRotationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NetworkConfig; /** - * Verifies a StartIPRotationRequest message. + * Verifies a NetworkConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartIPRotationRequest + * @returns NetworkConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.StartIPRotationRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkConfig; /** - * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. - * @param message StartIPRotationRequest + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * @param message NetworkConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.StartIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartIPRotationRequest to JSON. + * Converts this NetworkConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CompleteIPRotationRequest. */ - interface ICompleteIPRotationRequest { - - /** CompleteIPRotationRequest projectId */ - projectId?: (string|null); - - /** CompleteIPRotationRequest zone */ - zone?: (string|null); - - /** CompleteIPRotationRequest clusterId */ - clusterId?: (string|null); + /** Properties of a GetOpenIDConfigRequest. */ + interface IGetOpenIDConfigRequest { - /** CompleteIPRotationRequest name */ - name?: (string|null); + /** GetOpenIDConfigRequest parent */ + parent?: (string|null); } - /** Represents a CompleteIPRotationRequest. */ - class CompleteIPRotationRequest implements ICompleteIPRotationRequest { + /** Represents a GetOpenIDConfigRequest. */ + class GetOpenIDConfigRequest implements IGetOpenIDConfigRequest { /** - * Constructs a new CompleteIPRotationRequest. + * Constructs a new GetOpenIDConfigRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ICompleteIPRotationRequest); - - /** CompleteIPRotationRequest projectId. */ - public projectId: string; - - /** CompleteIPRotationRequest zone. */ - public zone: string; - - /** CompleteIPRotationRequest clusterId. */ - public clusterId: string; + constructor(properties?: google.container.v1.IGetOpenIDConfigRequest); - /** CompleteIPRotationRequest name. */ - public name: string; + /** GetOpenIDConfigRequest parent. */ + public parent: string; /** - * Creates a new CompleteIPRotationRequest instance using the specified properties. + * Creates a new GetOpenIDConfigRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CompleteIPRotationRequest instance + * @returns GetOpenIDConfigRequest instance */ - public static create(properties?: google.container.v1.ICompleteIPRotationRequest): google.container.v1.CompleteIPRotationRequest; + public static create(properties?: google.container.v1.IGetOpenIDConfigRequest): google.container.v1.GetOpenIDConfigRequest; /** - * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. - * @param message CompleteIPRotationRequest message or plain object to encode + * Encodes the specified GetOpenIDConfigRequest message. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. + * @param message GetOpenIDConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. - * @param message CompleteIPRotationRequest message or plain object to encode + * Encodes the specified GetOpenIDConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. + * @param message GetOpenIDConfigRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompleteIPRotationRequest + * @returns GetOpenIDConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.CompleteIPRotationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetOpenIDConfigRequest; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompleteIPRotationRequest + * @returns GetOpenIDConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.CompleteIPRotationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetOpenIDConfigRequest; /** - * Verifies a CompleteIPRotationRequest message. + * Verifies a GetOpenIDConfigRequest message. * @param message Plain 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 CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetOpenIDConfigRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompleteIPRotationRequest + * @returns GetOpenIDConfigRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigRequest; /** - * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. - * @param message CompleteIPRotationRequest + * Creates a plain object from a GetOpenIDConfigRequest message. Also converts values to other types if specified. + * @param message GetOpenIDConfigRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.GetOpenIDConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompleteIPRotationRequest to JSON. + * Converts this GetOpenIDConfigRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AcceleratorConfig. */ - interface IAcceleratorConfig { + /** Properties of a GetOpenIDConfigResponse. */ + interface IGetOpenIDConfigResponse { - /** AcceleratorConfig acceleratorCount */ - acceleratorCount?: (number|Long|string|null); + /** GetOpenIDConfigResponse issuer */ + issuer?: (string|null); - /** AcceleratorConfig acceleratorType */ - acceleratorType?: (string|null); + /** GetOpenIDConfigResponse jwksUri */ + jwksUri?: (string|null); + + /** GetOpenIDConfigResponse responseTypesSupported */ + responseTypesSupported?: (string[]|null); + + /** GetOpenIDConfigResponse subjectTypesSupported */ + subjectTypesSupported?: (string[]|null); + + /** GetOpenIDConfigResponse idTokenSigningAlgValuesSupported */ + idTokenSigningAlgValuesSupported?: (string[]|null); + + /** GetOpenIDConfigResponse claimsSupported */ + claimsSupported?: (string[]|null); + + /** GetOpenIDConfigResponse grantTypes */ + grantTypes?: (string[]|null); } - /** Represents an AcceleratorConfig. */ - class AcceleratorConfig implements IAcceleratorConfig { + /** Represents a GetOpenIDConfigResponse. */ + class GetOpenIDConfigResponse implements IGetOpenIDConfigResponse { /** - * Constructs a new AcceleratorConfig. + * Constructs a new GetOpenIDConfigResponse. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IAcceleratorConfig); + constructor(properties?: google.container.v1.IGetOpenIDConfigResponse); - /** AcceleratorConfig acceleratorCount. */ - public acceleratorCount: (number|Long|string); + /** GetOpenIDConfigResponse issuer. */ + public issuer: string; - /** AcceleratorConfig acceleratorType. */ - public acceleratorType: string; + /** GetOpenIDConfigResponse jwksUri. */ + public jwksUri: string; + + /** GetOpenIDConfigResponse responseTypesSupported. */ + public responseTypesSupported: string[]; + + /** GetOpenIDConfigResponse subjectTypesSupported. */ + public subjectTypesSupported: string[]; + + /** GetOpenIDConfigResponse idTokenSigningAlgValuesSupported. */ + public idTokenSigningAlgValuesSupported: string[]; + + /** GetOpenIDConfigResponse claimsSupported. */ + public claimsSupported: string[]; + + /** GetOpenIDConfigResponse grantTypes. */ + public grantTypes: string[]; /** - * Creates a new AcceleratorConfig instance using the specified properties. + * Creates a new GetOpenIDConfigResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AcceleratorConfig instance + * @returns GetOpenIDConfigResponse instance */ - public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig; + public static create(properties?: google.container.v1.IGetOpenIDConfigResponse): google.container.v1.GetOpenIDConfigResponse; /** - * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. - * @param message AcceleratorConfig message or plain object to encode + * Encodes the specified GetOpenIDConfigResponse message. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. + * @param message GetOpenIDConfigResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. - * @param message AcceleratorConfig message or plain object to encode + * Encodes the specified GetOpenIDConfigResponse message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. + * @param message GetOpenIDConfigResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer. + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AcceleratorConfig + * @returns GetOpenIDConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AcceleratorConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetOpenIDConfigResponse; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AcceleratorConfig + * @returns GetOpenIDConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AcceleratorConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetOpenIDConfigResponse; /** - * Verifies an AcceleratorConfig message. + * Verifies a GetOpenIDConfigResponse message. * @param message Plain 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 AcceleratorConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetOpenIDConfigResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AcceleratorConfig + * @returns GetOpenIDConfigResponse */ - public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigResponse; /** - * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. - * @param message AcceleratorConfig + * Creates a plain object from a GetOpenIDConfigResponse message. Also converts values to other types if specified. + * @param message GetOpenIDConfigResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.AcceleratorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.GetOpenIDConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AcceleratorConfig to JSON. + * Converts this GetOpenIDConfigResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetNetworkPolicyRequest. */ - interface ISetNetworkPolicyRequest { - - /** SetNetworkPolicyRequest projectId */ - projectId?: (string|null); - - /** SetNetworkPolicyRequest zone */ - zone?: (string|null); - - /** SetNetworkPolicyRequest clusterId */ - clusterId?: (string|null); - - /** SetNetworkPolicyRequest networkPolicy */ - networkPolicy?: (google.container.v1.INetworkPolicy|null); + /** Properties of a GetJSONWebKeysRequest. */ + interface IGetJSONWebKeysRequest { - /** SetNetworkPolicyRequest name */ - name?: (string|null); + /** GetJSONWebKeysRequest parent */ + parent?: (string|null); } - /** Represents a SetNetworkPolicyRequest. */ - class SetNetworkPolicyRequest implements ISetNetworkPolicyRequest { + /** Represents a GetJSONWebKeysRequest. */ + class GetJSONWebKeysRequest implements IGetJSONWebKeysRequest { /** - * Constructs a new SetNetworkPolicyRequest. + * Constructs a new GetJSONWebKeysRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetNetworkPolicyRequest); - - /** SetNetworkPolicyRequest projectId. */ - public projectId: string; - - /** SetNetworkPolicyRequest zone. */ - public zone: string; - - /** SetNetworkPolicyRequest clusterId. */ - public clusterId: string; + constructor(properties?: google.container.v1.IGetJSONWebKeysRequest); - /** SetNetworkPolicyRequest networkPolicy. */ - public networkPolicy?: (google.container.v1.INetworkPolicy|null); - - /** SetNetworkPolicyRequest name. */ - public name: string; + /** GetJSONWebKeysRequest parent. */ + public parent: string; /** - * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * Creates a new GetJSONWebKeysRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SetNetworkPolicyRequest instance + * @returns GetJSONWebKeysRequest instance */ - public static create(properties?: google.container.v1.ISetNetworkPolicyRequest): google.container.v1.SetNetworkPolicyRequest; + public static create(properties?: google.container.v1.IGetJSONWebKeysRequest): google.container.v1.GetJSONWebKeysRequest; /** - * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. - * @param message SetNetworkPolicyRequest message or plain object to encode + * Encodes the specified GetJSONWebKeysRequest message. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages. + * @param message GetJSONWebKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. - * @param message SetNetworkPolicyRequest message or plain object to encode + * Encodes the specified GetJSONWebKeysRequest message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages. + * @param message GetJSONWebKeysRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetNetworkPolicyRequest + * @returns GetJSONWebKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetNetworkPolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetJSONWebKeysRequest; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetNetworkPolicyRequest + * @returns GetJSONWebKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetNetworkPolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetJSONWebKeysRequest; /** - * Verifies a SetNetworkPolicyRequest message. + * Verifies a GetJSONWebKeysRequest message. * @param message Plain 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 SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetJSONWebKeysRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetNetworkPolicyRequest + * @returns GetJSONWebKeysRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.GetJSONWebKeysRequest; /** - * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. - * @param message SetNetworkPolicyRequest + * Creates a plain object from a GetJSONWebKeysRequest message. Also converts values to other types if specified. + * @param message GetJSONWebKeysRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.SetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.GetJSONWebKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetNetworkPolicyRequest to JSON. + * Converts this GetJSONWebKeysRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetMaintenancePolicyRequest. */ - interface ISetMaintenancePolicyRequest { + /** Properties of a Jwk. */ + interface IJwk { - /** SetMaintenancePolicyRequest projectId */ - projectId?: (string|null); + /** Jwk kty */ + kty?: (string|null); - /** SetMaintenancePolicyRequest zone */ - zone?: (string|null); + /** Jwk alg */ + alg?: (string|null); - /** SetMaintenancePolicyRequest clusterId */ - clusterId?: (string|null); + /** Jwk use */ + use?: (string|null); - /** SetMaintenancePolicyRequest maintenancePolicy */ - maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + /** Jwk kid */ + kid?: (string|null); - /** SetMaintenancePolicyRequest name */ - name?: (string|null); + /** Jwk n */ + n?: (string|null); + + /** Jwk e */ + e?: (string|null); + + /** Jwk x */ + x?: (string|null); + + /** Jwk y */ + y?: (string|null); + + /** Jwk crv */ + crv?: (string|null); } - /** Represents a SetMaintenancePolicyRequest. */ - class SetMaintenancePolicyRequest implements ISetMaintenancePolicyRequest { + /** Represents a Jwk. */ + class Jwk implements IJwk { /** - * Constructs a new SetMaintenancePolicyRequest. + * Constructs a new Jwk. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetMaintenancePolicyRequest); + constructor(properties?: google.container.v1.IJwk); - /** SetMaintenancePolicyRequest projectId. */ - public projectId: string; + /** Jwk kty. */ + public kty: string; - /** SetMaintenancePolicyRequest zone. */ - public zone: string; + /** Jwk alg. */ + public alg: string; - /** SetMaintenancePolicyRequest clusterId. */ - public clusterId: string; + /** Jwk use. */ + public use: string; - /** SetMaintenancePolicyRequest maintenancePolicy. */ - public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + /** Jwk kid. */ + public kid: string; - /** SetMaintenancePolicyRequest name. */ - public name: string; + /** Jwk n. */ + public n: string; + + /** Jwk e. */ + public e: string; + + /** Jwk x. */ + public x: string; + + /** Jwk y. */ + public y: string; + + /** Jwk crv. */ + public crv: string; /** - * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * Creates a new Jwk instance using the specified properties. * @param [properties] Properties to set - * @returns SetMaintenancePolicyRequest instance + * @returns Jwk instance */ - public static create(properties?: google.container.v1.ISetMaintenancePolicyRequest): google.container.v1.SetMaintenancePolicyRequest; + public static create(properties?: google.container.v1.IJwk): google.container.v1.Jwk; /** - * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. - * @param message SetMaintenancePolicyRequest message or plain object to encode + * Encodes the specified Jwk message. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages. + * @param message Jwk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IJwk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. - * @param message SetMaintenancePolicyRequest message or plain object to encode + * Encodes the specified Jwk message, length delimited. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages. + * @param message Jwk message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IJwk, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. + * Decodes a Jwk message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetMaintenancePolicyRequest + * @returns Jwk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SetMaintenancePolicyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.Jwk; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a Jwk message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetMaintenancePolicyRequest + * @returns Jwk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SetMaintenancePolicyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.Jwk; /** - * Verifies a SetMaintenancePolicyRequest message. + * Verifies a Jwk message. * @param message Plain 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 SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Jwk message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetMaintenancePolicyRequest + * @returns Jwk */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetMaintenancePolicyRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.Jwk; /** - * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. - * @param message SetMaintenancePolicyRequest + * Creates a plain object from a Jwk message. Also converts values to other types if specified. + * @param message Jwk * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.SetMaintenancePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.Jwk, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetMaintenancePolicyRequest to JSON. + * Converts this Jwk to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StatusCondition. */ - interface IStatusCondition { - - /** StatusCondition code */ - code?: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code|null); + /** Properties of a GetJSONWebKeysResponse. */ + interface IGetJSONWebKeysResponse { - /** StatusCondition message */ - message?: (string|null); + /** GetJSONWebKeysResponse keys */ + keys?: (google.container.v1.IJwk[]|null); } - /** Represents a StatusCondition. */ - class StatusCondition implements IStatusCondition { + /** Represents a GetJSONWebKeysResponse. */ + class GetJSONWebKeysResponse implements IGetJSONWebKeysResponse { /** - * Constructs a new StatusCondition. + * Constructs a new GetJSONWebKeysResponse. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IStatusCondition); - - /** StatusCondition code. */ - public code: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code); + constructor(properties?: google.container.v1.IGetJSONWebKeysResponse); - /** StatusCondition message. */ - public message: string; + /** GetJSONWebKeysResponse keys. */ + public keys: google.container.v1.IJwk[]; /** - * Creates a new StatusCondition instance using the specified properties. + * Creates a new GetJSONWebKeysResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StatusCondition instance + * @returns GetJSONWebKeysResponse instance */ - public static create(properties?: google.container.v1.IStatusCondition): google.container.v1.StatusCondition; + public static create(properties?: google.container.v1.IGetJSONWebKeysResponse): google.container.v1.GetJSONWebKeysResponse; - /** - * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. - * @param message StatusCondition message or plain object to encode + /** + * Encodes the specified GetJSONWebKeysResponse message. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages. + * @param message GetJSONWebKeysResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IGetJSONWebKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. - * @param message StatusCondition message or plain object to encode + * Encodes the specified GetJSONWebKeysResponse message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages. + * @param message GetJSONWebKeysResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IGetJSONWebKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StatusCondition message from the specified reader or buffer. + * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StatusCondition + * @returns GetJSONWebKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.StatusCondition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.GetJSONWebKeysResponse; /** - * Decodes a StatusCondition message from the specified reader or buffer, length delimited. + * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StatusCondition + * @returns GetJSONWebKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.StatusCondition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.GetJSONWebKeysResponse; /** - * Verifies a StatusCondition message. + * Verifies a GetJSONWebKeysResponse message. * @param message Plain 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 StatusCondition message from a plain object. Also converts values to their respective internal types. + * Creates a GetJSONWebKeysResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StatusCondition + * @returns GetJSONWebKeysResponse */ - public static fromObject(object: { [k: string]: any }): google.container.v1.StatusCondition; + public static fromObject(object: { [k: string]: any }): google.container.v1.GetJSONWebKeysResponse; /** - * Creates a plain object from a StatusCondition message. Also converts values to other types if specified. - * @param message StatusCondition + * Creates a plain object from a GetJSONWebKeysResponse message. Also converts values to other types if specified. + * @param message GetJSONWebKeysResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.StatusCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.GetJSONWebKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StatusCondition to JSON. + * Converts this GetJSONWebKeysResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace StatusCondition { - - /** Code enum. */ - enum Code { - UNKNOWN = 0, - GCE_STOCKOUT = 1, - GKE_SERVICE_ACCOUNT_DELETED = 2, - GCE_QUOTA_EXCEEDED = 3, - SET_BY_OPERATOR = 4, - CLOUD_KMS_KEY_ERROR = 7 - } - } - - /** Properties of a NetworkConfig. */ - interface INetworkConfig { - - /** NetworkConfig network */ - network?: (string|null); - - /** NetworkConfig subnetwork */ - subnetwork?: (string|null); + /** Properties of a ReleaseChannel. */ + interface IReleaseChannel { - /** NetworkConfig enableIntraNodeVisibility */ - enableIntraNodeVisibility?: (boolean|null); + /** ReleaseChannel channel */ + channel?: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel|null); } - /** Represents a NetworkConfig. */ - class NetworkConfig implements INetworkConfig { + /** Represents a ReleaseChannel. */ + class ReleaseChannel implements IReleaseChannel { /** - * Constructs a new NetworkConfig. + * Constructs a new ReleaseChannel. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.INetworkConfig); - - /** NetworkConfig network. */ - public network: string; - - /** NetworkConfig subnetwork. */ - public subnetwork: string; + constructor(properties?: google.container.v1.IReleaseChannel); - /** NetworkConfig enableIntraNodeVisibility. */ - public enableIntraNodeVisibility: boolean; + /** ReleaseChannel channel. */ + public channel: (google.container.v1.ReleaseChannel.Channel|keyof typeof google.container.v1.ReleaseChannel.Channel); /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new ReleaseChannel instance using the specified properties. * @param [properties] Properties to set - * @returns NetworkConfig instance + * @returns ReleaseChannel instance */ - public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig; + public static create(properties?: google.container.v1.IReleaseChannel): google.container.v1.ReleaseChannel; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. - * @param message NetworkConfig message or plain object to encode + * Encodes the specified ReleaseChannel message. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages. + * @param message ReleaseChannel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IReleaseChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. - * @param message NetworkConfig message or plain object to encode + * Encodes the specified ReleaseChannel message, length delimited. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages. + * @param message ReleaseChannel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IReleaseChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a ReleaseChannel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NetworkConfig + * @returns ReleaseChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NetworkConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ReleaseChannel; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a ReleaseChannel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetworkConfig + * @returns ReleaseChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NetworkConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ReleaseChannel; /** - * Verifies a NetworkConfig message. + * Verifies a ReleaseChannel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ReleaseChannel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetworkConfig + * @returns ReleaseChannel */ - public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.ReleaseChannel; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. - * @param message NetworkConfig + * Creates a plain object from a ReleaseChannel message. Also converts values to other types if specified. + * @param message ReleaseChannel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.ReleaseChannel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetworkConfig to JSON. + * Converts this ReleaseChannel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + namespace ReleaseChannel { + + /** Channel enum. */ + enum Channel { + UNSPECIFIED = 0, + RAPID = 1, + REGULAR = 2, + STABLE = 3 + } + } + /** Properties of an IntraNodeVisibilityConfig. */ interface IIntraNodeVisibilityConfig { @@ -9017,6 +10892,96 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a WorkloadIdentityConfig. */ + interface IWorkloadIdentityConfig { + + /** WorkloadIdentityConfig workloadPool */ + workloadPool?: (string|null); + } + + /** Represents a WorkloadIdentityConfig. */ + class WorkloadIdentityConfig implements IWorkloadIdentityConfig { + + /** + * Constructs a new WorkloadIdentityConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IWorkloadIdentityConfig); + + /** WorkloadIdentityConfig workloadPool. */ + public workloadPool: string; + + /** + * Creates a new WorkloadIdentityConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkloadIdentityConfig instance + */ + public static create(properties?: google.container.v1.IWorkloadIdentityConfig): google.container.v1.WorkloadIdentityConfig; + + /** + * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages. + * @param message WorkloadIdentityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages. + * @param message WorkloadIdentityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IWorkloadIdentityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.WorkloadIdentityConfig; + + /** + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WorkloadIdentityConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.WorkloadIdentityConfig; + + /** + * Verifies a WorkloadIdentityConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WorkloadIdentityConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.WorkloadIdentityConfig; + + /** + * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified. + * @param message WorkloadIdentityConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.WorkloadIdentityConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this WorkloadIdentityConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a DatabaseEncryption. */ interface IDatabaseEncryption { @@ -9929,6 +11894,186 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a DefaultSnatStatus. */ + interface IDefaultSnatStatus { + + /** DefaultSnatStatus disabled */ + disabled?: (boolean|null); + } + + /** Represents a DefaultSnatStatus. */ + class DefaultSnatStatus implements IDefaultSnatStatus { + + /** + * Constructs a new DefaultSnatStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDefaultSnatStatus); + + /** DefaultSnatStatus disabled. */ + public disabled: boolean; + + /** + * Creates a new DefaultSnatStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns DefaultSnatStatus instance + */ + public static create(properties?: google.container.v1.IDefaultSnatStatus): google.container.v1.DefaultSnatStatus; + + /** + * Encodes the specified DefaultSnatStatus message. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages. + * @param message DefaultSnatStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IDefaultSnatStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DefaultSnatStatus message, length delimited. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages. + * @param message DefaultSnatStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IDefaultSnatStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DefaultSnatStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DefaultSnatStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.DefaultSnatStatus; + + /** + * Decodes a DefaultSnatStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DefaultSnatStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.DefaultSnatStatus; + + /** + * Verifies a DefaultSnatStatus message. + * @param message Plain 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 DefaultSnatStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DefaultSnatStatus + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.DefaultSnatStatus; + + /** + * Creates a plain object from a DefaultSnatStatus message. Also converts values to other types if specified. + * @param message DefaultSnatStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.DefaultSnatStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DefaultSnatStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ShieldedNodes. */ + interface IShieldedNodes { + + /** ShieldedNodes enabled */ + enabled?: (boolean|null); + } + + /** Represents a ShieldedNodes. */ + class ShieldedNodes implements IShieldedNodes { + + /** + * Constructs a new ShieldedNodes. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IShieldedNodes); + + /** ShieldedNodes enabled. */ + public enabled: boolean; + + /** + * Creates a new ShieldedNodes instance using the specified properties. + * @param [properties] Properties to set + * @returns ShieldedNodes instance + */ + public static create(properties?: google.container.v1.IShieldedNodes): google.container.v1.ShieldedNodes; + + /** + * Encodes the specified ShieldedNodes message. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages. + * @param message ShieldedNodes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IShieldedNodes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShieldedNodes message, length delimited. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages. + * @param message ShieldedNodes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IShieldedNodes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShieldedNodes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShieldedNodes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ShieldedNodes; + + /** + * Decodes a ShieldedNodes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShieldedNodes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ShieldedNodes; + + /** + * Verifies a ShieldedNodes message. + * @param message Plain 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 ShieldedNodes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShieldedNodes + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ShieldedNodes; + + /** + * Creates a plain object from a ShieldedNodes message. Also converts values to other types if specified. + * @param message ShieldedNodes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ShieldedNodes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShieldedNodes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } } diff --git a/protos/protos.js b/protos/protos.js index 5b10360..d908cb5 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -650,6 +650,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.container.v1.ClusterManager#getJSONWebKeys}. + * @memberof google.container.v1.ClusterManager + * @typedef GetJSONWebKeysCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.GetJSONWebKeysResponse} [response] GetJSONWebKeysResponse + */ + + /** + * Calls GetJSONWebKeys. + * @function getJSONWebKeys + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetJSONWebKeysRequest} request GetJSONWebKeysRequest message or plain object + * @param {google.container.v1.ClusterManager.GetJSONWebKeysCallback} callback Node-style callback called with the error, if any, and GetJSONWebKeysResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.getJSONWebKeys = function getJSONWebKeys(request, callback) { + return this.rpcCall(getJSONWebKeys, $root.google.container.v1.GetJSONWebKeysRequest, $root.google.container.v1.GetJSONWebKeysResponse, request, callback); + }, "name", { value: "GetJSONWebKeys" }); + + /** + * Calls GetJSONWebKeys. + * @function getJSONWebKeys + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetJSONWebKeysRequest} request GetJSONWebKeysRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.container.v1.ClusterManager#listNodePools}. * @memberof google.container.v1.ClusterManager @@ -1134,8 +1167,13 @@ * @property {Array.|null} [accelerators] NodeConfig accelerators * @property {string|null} [diskType] NodeConfig diskType * @property {string|null} [minCpuPlatform] NodeConfig minCpuPlatform + * @property {google.container.v1.IWorkloadMetadataConfig|null} [workloadMetadataConfig] NodeConfig workloadMetadataConfig * @property {Array.|null} [taints] NodeConfig taints + * @property {google.container.v1.ISandboxConfig|null} [sandboxConfig] NodeConfig sandboxConfig + * @property {string|null} [nodeGroup] NodeConfig nodeGroup + * @property {google.container.v1.IReservationAffinity|null} [reservationAffinity] NodeConfig reservationAffinity * @property {google.container.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] NodeConfig shieldedInstanceConfig + * @property {string|null} [bootDiskKmsKey] NodeConfig bootDiskKmsKey */ /** @@ -1263,6 +1301,14 @@ */ NodeConfig.prototype.minCpuPlatform = ""; + /** + * NodeConfig workloadMetadataConfig. + * @member {google.container.v1.IWorkloadMetadataConfig|null|undefined} workloadMetadataConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.workloadMetadataConfig = null; + /** * NodeConfig taints. * @member {Array.} taints @@ -1271,6 +1317,30 @@ */ NodeConfig.prototype.taints = $util.emptyArray; + /** + * NodeConfig sandboxConfig. + * @member {google.container.v1.ISandboxConfig|null|undefined} sandboxConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.sandboxConfig = null; + + /** + * NodeConfig nodeGroup. + * @member {string} nodeGroup + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.nodeGroup = ""; + + /** + * NodeConfig reservationAffinity. + * @member {google.container.v1.IReservationAffinity|null|undefined} reservationAffinity + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.reservationAffinity = null; + /** * NodeConfig shieldedInstanceConfig. * @member {google.container.v1.IShieldedInstanceConfig|null|undefined} shieldedInstanceConfig @@ -1279,6 +1349,14 @@ */ NodeConfig.prototype.shieldedInstanceConfig = null; + /** + * NodeConfig bootDiskKmsKey. + * @member {string} bootDiskKmsKey + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.bootDiskKmsKey = ""; + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -1334,11 +1412,21 @@ writer.uint32(/* id 12, wireType 2 =*/98).string(message.diskType); if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.minCpuPlatform); + if (message.workloadMetadataConfig != null && Object.hasOwnProperty.call(message, "workloadMetadataConfig")) + $root.google.container.v1.WorkloadMetadataConfig.encode(message.workloadMetadataConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.taints != null && message.taints.length) for (var i = 0; i < message.taints.length; ++i) $root.google.container.v1.NodeTaint.encode(message.taints[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.sandboxConfig != null && Object.hasOwnProperty.call(message, "sandboxConfig")) + $root.google.container.v1.SandboxConfig.encode(message.sandboxConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.nodeGroup != null && Object.hasOwnProperty.call(message, "nodeGroup")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.nodeGroup); + if (message.reservationAffinity != null && Object.hasOwnProperty.call(message, "reservationAffinity")) + $root.google.container.v1.ReservationAffinity.encode(message.reservationAffinity, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); if (message.shieldedInstanceConfig != null && Object.hasOwnProperty.call(message, "shieldedInstanceConfig")) $root.google.container.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.bootDiskKmsKey != null && Object.hasOwnProperty.call(message, "bootDiskKmsKey")) + writer.uint32(/* id 23, wireType 2 =*/186).string(message.bootDiskKmsKey); return writer; }; @@ -1456,14 +1544,29 @@ case 13: message.minCpuPlatform = reader.string(); break; + case 14: + message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.decode(reader, reader.uint32()); + break; case 15: if (!(message.taints && message.taints.length)) message.taints = []; message.taints.push($root.google.container.v1.NodeTaint.decode(reader, reader.uint32())); break; + case 17: + message.sandboxConfig = $root.google.container.v1.SandboxConfig.decode(reader, reader.uint32()); + break; + case 18: + message.nodeGroup = reader.string(); + break; + case 19: + message.reservationAffinity = $root.google.container.v1.ReservationAffinity.decode(reader, reader.uint32()); + break; case 20: message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32()); break; + case 23: + message.bootDiskKmsKey = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -1562,6 +1665,11 @@ if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) if (!$util.isString(message.minCpuPlatform)) return "minCpuPlatform: string expected"; + if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig")) { + var error = $root.google.container.v1.WorkloadMetadataConfig.verify(message.workloadMetadataConfig); + if (error) + return "workloadMetadataConfig." + error; + } if (message.taints != null && message.hasOwnProperty("taints")) { if (!Array.isArray(message.taints)) return "taints: array expected"; @@ -1571,11 +1679,27 @@ return "taints." + error; } } + if (message.sandboxConfig != null && message.hasOwnProperty("sandboxConfig")) { + var error = $root.google.container.v1.SandboxConfig.verify(message.sandboxConfig); + if (error) + return "sandboxConfig." + error; + } + if (message.nodeGroup != null && message.hasOwnProperty("nodeGroup")) + if (!$util.isString(message.nodeGroup)) + return "nodeGroup: string expected"; + if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) { + var error = $root.google.container.v1.ReservationAffinity.verify(message.reservationAffinity); + if (error) + return "reservationAffinity." + error; + } if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) { var error = $root.google.container.v1.ShieldedInstanceConfig.verify(message.shieldedInstanceConfig); if (error) return "shieldedInstanceConfig." + error; } + if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) + if (!$util.isString(message.bootDiskKmsKey)) + return "bootDiskKmsKey: string expected"; return null; }; @@ -1645,6 +1769,11 @@ message.diskType = String(object.diskType); if (object.minCpuPlatform != null) message.minCpuPlatform = String(object.minCpuPlatform); + if (object.workloadMetadataConfig != null) { + if (typeof object.workloadMetadataConfig !== "object") + throw TypeError(".google.container.v1.NodeConfig.workloadMetadataConfig: object expected"); + message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.fromObject(object.workloadMetadataConfig); + } if (object.taints) { if (!Array.isArray(object.taints)) throw TypeError(".google.container.v1.NodeConfig.taints: array expected"); @@ -1655,11 +1784,25 @@ message.taints[i] = $root.google.container.v1.NodeTaint.fromObject(object.taints[i]); } } + if (object.sandboxConfig != null) { + if (typeof object.sandboxConfig !== "object") + throw TypeError(".google.container.v1.NodeConfig.sandboxConfig: object expected"); + message.sandboxConfig = $root.google.container.v1.SandboxConfig.fromObject(object.sandboxConfig); + } + if (object.nodeGroup != null) + message.nodeGroup = String(object.nodeGroup); + if (object.reservationAffinity != null) { + if (typeof object.reservationAffinity !== "object") + throw TypeError(".google.container.v1.NodeConfig.reservationAffinity: object expected"); + message.reservationAffinity = $root.google.container.v1.ReservationAffinity.fromObject(object.reservationAffinity); + } if (object.shieldedInstanceConfig != null) { if (typeof object.shieldedInstanceConfig !== "object") throw TypeError(".google.container.v1.NodeConfig.shieldedInstanceConfig: object expected"); message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.fromObject(object.shieldedInstanceConfig); } + if (object.bootDiskKmsKey != null) + message.bootDiskKmsKey = String(object.bootDiskKmsKey); return message; }; @@ -1695,7 +1838,12 @@ object.preemptible = false; object.diskType = ""; object.minCpuPlatform = ""; + object.workloadMetadataConfig = null; + object.sandboxConfig = null; + object.nodeGroup = ""; + object.reservationAffinity = null; object.shieldedInstanceConfig = null; + object.bootDiskKmsKey = ""; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -1739,13 +1887,23 @@ object.diskType = message.diskType; if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) object.minCpuPlatform = message.minCpuPlatform; + if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig")) + object.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.toObject(message.workloadMetadataConfig, options); if (message.taints && message.taints.length) { object.taints = []; for (var j = 0; j < message.taints.length; ++j) object.taints[j] = $root.google.container.v1.NodeTaint.toObject(message.taints[j], options); } + if (message.sandboxConfig != null && message.hasOwnProperty("sandboxConfig")) + object.sandboxConfig = $root.google.container.v1.SandboxConfig.toObject(message.sandboxConfig, options); + if (message.nodeGroup != null && message.hasOwnProperty("nodeGroup")) + object.nodeGroup = message.nodeGroup; + if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) + object.reservationAffinity = $root.google.container.v1.ReservationAffinity.toObject(message.reservationAffinity, options); if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) object.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.toObject(message.shieldedInstanceConfig, options); + if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) + object.bootDiskKmsKey = message.bootDiskKmsKey; return object; }; @@ -1973,26 +2131,24 @@ return ShieldedInstanceConfig; })(); - v1.NodeTaint = (function() { + v1.SandboxConfig = (function() { /** - * Properties of a NodeTaint. + * Properties of a SandboxConfig. * @memberof google.container.v1 - * @interface INodeTaint - * @property {string|null} [key] NodeTaint key - * @property {string|null} [value] NodeTaint value - * @property {google.container.v1.NodeTaint.Effect|null} [effect] NodeTaint effect + * @interface ISandboxConfig + * @property {google.container.v1.SandboxConfig.Type|null} [type] SandboxConfig type */ /** - * Constructs a new NodeTaint. + * Constructs a new SandboxConfig. * @memberof google.container.v1 - * @classdesc Represents a NodeTaint. - * @implements INodeTaint + * @classdesc Represents a SandboxConfig. + * @implements ISandboxConfig * @constructor - * @param {google.container.v1.INodeTaint=} [properties] Properties to set + * @param {google.container.v1.ISandboxConfig=} [properties] Properties to set */ - function NodeTaint(properties) { + function SandboxConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2000,101 +2156,75 @@ } /** - * NodeTaint key. - * @member {string} key - * @memberof google.container.v1.NodeTaint - * @instance - */ - NodeTaint.prototype.key = ""; - - /** - * NodeTaint value. - * @member {string} value - * @memberof google.container.v1.NodeTaint - * @instance - */ - NodeTaint.prototype.value = ""; - - /** - * NodeTaint effect. - * @member {google.container.v1.NodeTaint.Effect} effect - * @memberof google.container.v1.NodeTaint + * SandboxConfig type. + * @member {google.container.v1.SandboxConfig.Type} type + * @memberof google.container.v1.SandboxConfig * @instance */ - NodeTaint.prototype.effect = 0; + SandboxConfig.prototype.type = 0; /** - * Creates a new NodeTaint instance using the specified properties. + * Creates a new SandboxConfig instance using the specified properties. * @function create - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static - * @param {google.container.v1.INodeTaint=} [properties] Properties to set - * @returns {google.container.v1.NodeTaint} NodeTaint instance + * @param {google.container.v1.ISandboxConfig=} [properties] Properties to set + * @returns {google.container.v1.SandboxConfig} SandboxConfig instance */ - NodeTaint.create = function create(properties) { - return new NodeTaint(properties); + SandboxConfig.create = function create(properties) { + return new SandboxConfig(properties); }; /** - * Encodes the specified NodeTaint message. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages. + * Encodes the specified SandboxConfig message. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static - * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode + * @param {google.container.v1.ISandboxConfig} message SandboxConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeTaint.encode = function encode(message, writer) { + SandboxConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.effect != null && Object.hasOwnProperty.call(message, "effect")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.effect); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); return writer; }; /** - * Encodes the specified NodeTaint message, length delimited. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages. + * Encodes the specified SandboxConfig message, length delimited. Does not implicitly {@link google.container.v1.SandboxConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static - * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode + * @param {google.container.v1.ISandboxConfig} message SandboxConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeTaint.encodeDelimited = function encodeDelimited(message, writer) { + SandboxConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeTaint message from the specified reader or buffer. + * Decodes a SandboxConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodeTaint} NodeTaint + * @returns {google.container.v1.SandboxConfig} SandboxConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeTaint.decode = function decode(reader, length) { + SandboxConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodeTaint(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SandboxConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; case 2: - message.value = reader.string(); - break; - case 3: - message.effect = reader.int32(); + message.type = reader.int32(); break; default: reader.skipType(tag & 7); @@ -2105,170 +2235,137 @@ }; /** - * Decodes a NodeTaint message from the specified reader or buffer, length delimited. + * Decodes a SandboxConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodeTaint} NodeTaint + * @returns {google.container.v1.SandboxConfig} SandboxConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeTaint.decodeDelimited = function decodeDelimited(reader) { + SandboxConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeTaint message. + * Verifies a SandboxConfig message. * @function verify - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeTaint.verify = function verify(message) { + SandboxConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.effect != null && message.hasOwnProperty("effect")) - switch (message.effect) { + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { default: - return "effect: enum value expected"; + return "type: enum value expected"; case 0: case 1: - case 2: - case 3: break; } return null; }; /** - * Creates a NodeTaint message from a plain object. Also converts values to their respective internal types. + * Creates a SandboxConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodeTaint} NodeTaint + * @returns {google.container.v1.SandboxConfig} SandboxConfig */ - NodeTaint.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodeTaint) + SandboxConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SandboxConfig) return object; - var message = new $root.google.container.v1.NodeTaint(); - if (object.key != null) - message.key = String(object.key); - if (object.value != null) - message.value = String(object.value); - switch (object.effect) { - case "EFFECT_UNSPECIFIED": + var message = new $root.google.container.v1.SandboxConfig(); + switch (object.type) { + case "UNSPECIFIED": case 0: - message.effect = 0; + message.type = 0; break; - case "NO_SCHEDULE": + case "GVISOR": case 1: - message.effect = 1; - break; - case "PREFER_NO_SCHEDULE": - case 2: - message.effect = 2; - break; - case "NO_EXECUTE": - case 3: - message.effect = 3; + message.type = 1; break; } return message; }; /** - * Creates a plain object from a NodeTaint message. Also converts values to other types if specified. + * Creates a plain object from a SandboxConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @static - * @param {google.container.v1.NodeTaint} message NodeTaint + * @param {google.container.v1.SandboxConfig} message SandboxConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeTaint.toObject = function toObject(message, options) { + SandboxConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.key = ""; - object.value = ""; - object.effect = options.enums === String ? "EFFECT_UNSPECIFIED" : 0; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.effect != null && message.hasOwnProperty("effect")) - object.effect = options.enums === String ? $root.google.container.v1.NodeTaint.Effect[message.effect] : message.effect; + if (options.defaults) + object.type = options.enums === String ? "UNSPECIFIED" : 0; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.container.v1.SandboxConfig.Type[message.type] : message.type; return object; }; /** - * Converts this NodeTaint to JSON. + * Converts this SandboxConfig to JSON. * @function toJSON - * @memberof google.container.v1.NodeTaint + * @memberof google.container.v1.SandboxConfig * @instance * @returns {Object.} JSON object */ - NodeTaint.prototype.toJSON = function toJSON() { + SandboxConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Effect enum. - * @name google.container.v1.NodeTaint.Effect + * Type enum. + * @name google.container.v1.SandboxConfig.Type * @enum {number} - * @property {number} EFFECT_UNSPECIFIED=0 EFFECT_UNSPECIFIED value - * @property {number} NO_SCHEDULE=1 NO_SCHEDULE value - * @property {number} PREFER_NO_SCHEDULE=2 PREFER_NO_SCHEDULE value - * @property {number} NO_EXECUTE=3 NO_EXECUTE value + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} GVISOR=1 GVISOR value */ - NodeTaint.Effect = (function() { + SandboxConfig.Type = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EFFECT_UNSPECIFIED"] = 0; - values[valuesById[1] = "NO_SCHEDULE"] = 1; - values[valuesById[2] = "PREFER_NO_SCHEDULE"] = 2; - values[valuesById[3] = "NO_EXECUTE"] = 3; + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "GVISOR"] = 1; return values; })(); - return NodeTaint; + return SandboxConfig; })(); - v1.MasterAuth = (function() { + v1.ReservationAffinity = (function() { /** - * Properties of a MasterAuth. + * Properties of a ReservationAffinity. * @memberof google.container.v1 - * @interface IMasterAuth - * @property {string|null} [username] MasterAuth username - * @property {string|null} [password] MasterAuth password - * @property {google.container.v1.IClientCertificateConfig|null} [clientCertificateConfig] MasterAuth clientCertificateConfig - * @property {string|null} [clusterCaCertificate] MasterAuth clusterCaCertificate - * @property {string|null} [clientCertificate] MasterAuth clientCertificate - * @property {string|null} [clientKey] MasterAuth clientKey + * @interface IReservationAffinity + * @property {google.container.v1.ReservationAffinity.Type|null} [consumeReservationType] ReservationAffinity consumeReservationType + * @property {string|null} [key] ReservationAffinity key + * @property {Array.|null} [values] ReservationAffinity values */ /** - * Constructs a new MasterAuth. + * Constructs a new ReservationAffinity. * @memberof google.container.v1 - * @classdesc Represents a MasterAuth. - * @implements IMasterAuth + * @classdesc Represents a ReservationAffinity. + * @implements IReservationAffinity * @constructor - * @param {google.container.v1.IMasterAuth=} [properties] Properties to set + * @param {google.container.v1.IReservationAffinity=} [properties] Properties to set */ - function MasterAuth(properties) { + function ReservationAffinity(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2276,140 +2373,104 @@ } /** - * MasterAuth username. - * @member {string} username - * @memberof google.container.v1.MasterAuth - * @instance - */ - MasterAuth.prototype.username = ""; - - /** - * MasterAuth password. - * @member {string} password - * @memberof google.container.v1.MasterAuth - * @instance - */ - MasterAuth.prototype.password = ""; - - /** - * MasterAuth clientCertificateConfig. - * @member {google.container.v1.IClientCertificateConfig|null|undefined} clientCertificateConfig - * @memberof google.container.v1.MasterAuth - * @instance - */ - MasterAuth.prototype.clientCertificateConfig = null; - - /** - * MasterAuth clusterCaCertificate. - * @member {string} clusterCaCertificate - * @memberof google.container.v1.MasterAuth + * ReservationAffinity consumeReservationType. + * @member {google.container.v1.ReservationAffinity.Type} consumeReservationType + * @memberof google.container.v1.ReservationAffinity * @instance */ - MasterAuth.prototype.clusterCaCertificate = ""; + ReservationAffinity.prototype.consumeReservationType = 0; /** - * MasterAuth clientCertificate. - * @member {string} clientCertificate - * @memberof google.container.v1.MasterAuth + * ReservationAffinity key. + * @member {string} key + * @memberof google.container.v1.ReservationAffinity * @instance */ - MasterAuth.prototype.clientCertificate = ""; + ReservationAffinity.prototype.key = ""; /** - * MasterAuth clientKey. - * @member {string} clientKey - * @memberof google.container.v1.MasterAuth + * ReservationAffinity values. + * @member {Array.} values + * @memberof google.container.v1.ReservationAffinity * @instance */ - MasterAuth.prototype.clientKey = ""; + ReservationAffinity.prototype.values = $util.emptyArray; /** - * Creates a new MasterAuth instance using the specified properties. + * Creates a new ReservationAffinity instance using the specified properties. * @function create - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static - * @param {google.container.v1.IMasterAuth=} [properties] Properties to set - * @returns {google.container.v1.MasterAuth} MasterAuth instance + * @param {google.container.v1.IReservationAffinity=} [properties] Properties to set + * @returns {google.container.v1.ReservationAffinity} ReservationAffinity instance */ - MasterAuth.create = function create(properties) { - return new MasterAuth(properties); + ReservationAffinity.create = function create(properties) { + return new ReservationAffinity(properties); }; /** - * Encodes the specified MasterAuth message. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages. * @function encode - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static - * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode + * @param {google.container.v1.IReservationAffinity} message ReservationAffinity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuth.encode = function encode(message, writer) { + ReservationAffinity.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); - if (message.clientCertificateConfig != null && Object.hasOwnProperty.call(message, "clientCertificateConfig")) - $root.google.container.v1.ClientCertificateConfig.encode(message.clientCertificateConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.clusterCaCertificate != null && Object.hasOwnProperty.call(message, "clusterCaCertificate")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); - if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); - if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey); + if (message.consumeReservationType != null && Object.hasOwnProperty.call(message, "consumeReservationType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.consumeReservationType); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.key); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.values[i]); return writer; }; /** - * Encodes the specified MasterAuth message, length delimited. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.container.v1.ReservationAffinity.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static - * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode + * @param {google.container.v1.IReservationAffinity} message ReservationAffinity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuth.encodeDelimited = function encodeDelimited(message, writer) { + ReservationAffinity.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MasterAuth message from the specified reader or buffer. + * Decodes a ReservationAffinity message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MasterAuth} MasterAuth + * @returns {google.container.v1.ReservationAffinity} ReservationAffinity * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterAuth.decode = function decode(reader, length) { + ReservationAffinity.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MasterAuth(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ReservationAffinity(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.username = reader.string(); + message.consumeReservationType = reader.int32(); break; case 2: - message.password = reader.string(); + message.key = reader.string(); break; case 3: - message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.decode(reader, reader.uint32()); - break; - case 100: - message.clusterCaCertificate = reader.string(); - break; - case 101: - message.clientCertificate = reader.string(); - break; - case 102: - message.clientKey = reader.string(); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -2420,153 +2481,180 @@ }; /** - * Decodes a MasterAuth message from the specified reader or buffer, length delimited. + * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MasterAuth} MasterAuth + * @returns {google.container.v1.ReservationAffinity} ReservationAffinity * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterAuth.decodeDelimited = function decodeDelimited(reader) { + ReservationAffinity.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MasterAuth message. + * Verifies a ReservationAffinity message. * @function verify - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterAuth.verify = function verify(message) { + ReservationAffinity.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) { - var error = $root.google.container.v1.ClientCertificateConfig.verify(message.clientCertificateConfig); - if (error) - return "clientCertificateConfig." + error; + if (message.consumeReservationType != null && message.hasOwnProperty("consumeReservationType")) + switch (message.consumeReservationType) { + default: + return "consumeReservationType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; } - if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) - if (!$util.isString(message.clusterCaCertificate)) - return "clusterCaCertificate: string expected"; - if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) - if (!$util.isString(message.clientCertificate)) - return "clientCertificate: string expected"; - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - if (!$util.isString(message.clientKey)) - return "clientKey: string expected"; return null; }; /** - * Creates a MasterAuth message from a plain object. Also converts values to their respective internal types. + * Creates a ReservationAffinity message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MasterAuth} MasterAuth + * @returns {google.container.v1.ReservationAffinity} ReservationAffinity */ - MasterAuth.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MasterAuth) + ReservationAffinity.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ReservationAffinity) return object; - var message = new $root.google.container.v1.MasterAuth(); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.clientCertificateConfig != null) { - if (typeof object.clientCertificateConfig !== "object") - throw TypeError(".google.container.v1.MasterAuth.clientCertificateConfig: object expected"); - message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.fromObject(object.clientCertificateConfig); + var message = new $root.google.container.v1.ReservationAffinity(); + switch (object.consumeReservationType) { + case "UNSPECIFIED": + case 0: + message.consumeReservationType = 0; + break; + case "NO_RESERVATION": + case 1: + message.consumeReservationType = 1; + break; + case "ANY_RESERVATION": + case 2: + message.consumeReservationType = 2; + break; + case "SPECIFIC_RESERVATION": + case 3: + message.consumeReservationType = 3; + break; + } + if (object.key != null) + message.key = String(object.key); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.container.v1.ReservationAffinity.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); } - if (object.clusterCaCertificate != null) - message.clusterCaCertificate = String(object.clusterCaCertificate); - if (object.clientCertificate != null) - message.clientCertificate = String(object.clientCertificate); - if (object.clientKey != null) - message.clientKey = String(object.clientKey); return message; }; /** - * Creates a plain object from a MasterAuth message. Also converts values to other types if specified. + * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @static - * @param {google.container.v1.MasterAuth} message MasterAuth + * @param {google.container.v1.ReservationAffinity} message ReservationAffinity * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterAuth.toObject = function toObject(message, options) { + ReservationAffinity.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.values = []; if (options.defaults) { - object.username = ""; - object.password = ""; - object.clientCertificateConfig = null; - object.clusterCaCertificate = ""; - object.clientCertificate = ""; - object.clientKey = ""; + object.consumeReservationType = options.enums === String ? "UNSPECIFIED" : 0; + object.key = ""; + } + if (message.consumeReservationType != null && message.hasOwnProperty("consumeReservationType")) + object.consumeReservationType = options.enums === String ? $root.google.container.v1.ReservationAffinity.Type[message.consumeReservationType] : message.consumeReservationType; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) - object.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.toObject(message.clientCertificateConfig, options); - if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) - object.clusterCaCertificate = message.clusterCaCertificate; - if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) - object.clientCertificate = message.clientCertificate; - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - object.clientKey = message.clientKey; return object; }; /** - * Converts this MasterAuth to JSON. + * Converts this ReservationAffinity to JSON. * @function toJSON - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ReservationAffinity * @instance * @returns {Object.} JSON object */ - MasterAuth.prototype.toJSON = function toJSON() { + ReservationAffinity.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MasterAuth; + /** + * Type enum. + * @name google.container.v1.ReservationAffinity.Type + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} NO_RESERVATION=1 NO_RESERVATION value + * @property {number} ANY_RESERVATION=2 ANY_RESERVATION value + * @property {number} SPECIFIC_RESERVATION=3 SPECIFIC_RESERVATION value + */ + ReservationAffinity.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_RESERVATION"] = 1; + values[valuesById[2] = "ANY_RESERVATION"] = 2; + values[valuesById[3] = "SPECIFIC_RESERVATION"] = 3; + return values; + })(); + + return ReservationAffinity; })(); - v1.ClientCertificateConfig = (function() { + v1.NodeTaint = (function() { /** - * Properties of a ClientCertificateConfig. + * Properties of a NodeTaint. * @memberof google.container.v1 - * @interface IClientCertificateConfig - * @property {boolean|null} [issueClientCertificate] ClientCertificateConfig issueClientCertificate + * @interface INodeTaint + * @property {string|null} [key] NodeTaint key + * @property {string|null} [value] NodeTaint value + * @property {google.container.v1.NodeTaint.Effect|null} [effect] NodeTaint effect */ /** - * Constructs a new ClientCertificateConfig. + * Constructs a new NodeTaint. * @memberof google.container.v1 - * @classdesc Represents a ClientCertificateConfig. - * @implements IClientCertificateConfig + * @classdesc Represents a NodeTaint. + * @implements INodeTaint * @constructor - * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set + * @param {google.container.v1.INodeTaint=} [properties] Properties to set */ - function ClientCertificateConfig(properties) { + function NodeTaint(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2574,75 +2662,101 @@ } /** - * ClientCertificateConfig issueClientCertificate. - * @member {boolean} issueClientCertificate - * @memberof google.container.v1.ClientCertificateConfig + * NodeTaint key. + * @member {string} key + * @memberof google.container.v1.NodeTaint * @instance */ - ClientCertificateConfig.prototype.issueClientCertificate = false; + NodeTaint.prototype.key = ""; /** - * Creates a new ClientCertificateConfig instance using the specified properties. + * NodeTaint value. + * @member {string} value + * @memberof google.container.v1.NodeTaint + * @instance + */ + NodeTaint.prototype.value = ""; + + /** + * NodeTaint effect. + * @member {google.container.v1.NodeTaint.Effect} effect + * @memberof google.container.v1.NodeTaint + * @instance + */ + NodeTaint.prototype.effect = 0; + + /** + * Creates a new NodeTaint instance using the specified properties. * @function create - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static - * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set - * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig instance + * @param {google.container.v1.INodeTaint=} [properties] Properties to set + * @returns {google.container.v1.NodeTaint} NodeTaint instance */ - ClientCertificateConfig.create = function create(properties) { - return new ClientCertificateConfig(properties); + NodeTaint.create = function create(properties) { + return new NodeTaint(properties); }; /** - * Encodes the specified ClientCertificateConfig message. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. + * Encodes the specified NodeTaint message. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages. * @function encode - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static - * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode + * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientCertificateConfig.encode = function encode(message, writer) { + NodeTaint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.issueClientCertificate != null && Object.hasOwnProperty.call(message, "issueClientCertificate")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.effect != null && Object.hasOwnProperty.call(message, "effect")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.effect); return writer; }; /** - * Encodes the specified ClientCertificateConfig message, length delimited. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. + * Encodes the specified NodeTaint message, length delimited. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static - * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode + * @param {google.container.v1.INodeTaint} message NodeTaint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientCertificateConfig.encodeDelimited = function encodeDelimited(message, writer) { + NodeTaint.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientCertificateConfig message from the specified reader or buffer. + * Decodes a NodeTaint message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig + * @returns {google.container.v1.NodeTaint} NodeTaint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientCertificateConfig.decode = function decode(reader, length) { + NodeTaint.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClientCertificateConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodeTaint(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.issueClientCertificate = reader.bool(); + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + case 3: + message.effect = reader.int32(); break; default: reader.skipType(tag & 7); @@ -2653,111 +2767,170 @@ }; /** - * Decodes a ClientCertificateConfig message from the specified reader or buffer, length delimited. + * Decodes a NodeTaint message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig + * @returns {google.container.v1.NodeTaint} NodeTaint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientCertificateConfig.decodeDelimited = function decodeDelimited(reader) { + NodeTaint.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientCertificateConfig message. + * Verifies a NodeTaint message. * @function verify - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientCertificateConfig.verify = function verify(message) { + NodeTaint.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) - if (typeof message.issueClientCertificate !== "boolean") - return "issueClientCertificate: boolean expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.effect != null && message.hasOwnProperty("effect")) + switch (message.effect) { + default: + return "effect: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a ClientCertificateConfig message from a plain object. Also converts values to their respective internal types. + * Creates a NodeTaint message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig + * @returns {google.container.v1.NodeTaint} NodeTaint */ - ClientCertificateConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ClientCertificateConfig) + NodeTaint.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeTaint) return object; - var message = new $root.google.container.v1.ClientCertificateConfig(); - if (object.issueClientCertificate != null) - message.issueClientCertificate = Boolean(object.issueClientCertificate); + var message = new $root.google.container.v1.NodeTaint(); + if (object.key != null) + message.key = String(object.key); + if (object.value != null) + message.value = String(object.value); + switch (object.effect) { + case "EFFECT_UNSPECIFIED": + case 0: + message.effect = 0; + break; + case "NO_SCHEDULE": + case 1: + message.effect = 1; + break; + case "PREFER_NO_SCHEDULE": + case 2: + message.effect = 2; + break; + case "NO_EXECUTE": + case 3: + message.effect = 3; + break; + } return message; }; /** - * Creates a plain object from a ClientCertificateConfig message. Also converts values to other types if specified. + * Creates a plain object from a NodeTaint message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @static - * @param {google.container.v1.ClientCertificateConfig} message ClientCertificateConfig + * @param {google.container.v1.NodeTaint} message NodeTaint * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientCertificateConfig.toObject = function toObject(message, options) { + NodeTaint.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.issueClientCertificate = false; - if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) - object.issueClientCertificate = message.issueClientCertificate; + if (options.defaults) { + object.key = ""; + object.value = ""; + object.effect = options.enums === String ? "EFFECT_UNSPECIFIED" : 0; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.effect != null && message.hasOwnProperty("effect")) + object.effect = options.enums === String ? $root.google.container.v1.NodeTaint.Effect[message.effect] : message.effect; return object; }; /** - * Converts this ClientCertificateConfig to JSON. + * Converts this NodeTaint to JSON. * @function toJSON - * @memberof google.container.v1.ClientCertificateConfig + * @memberof google.container.v1.NodeTaint * @instance * @returns {Object.} JSON object */ - ClientCertificateConfig.prototype.toJSON = function toJSON() { + NodeTaint.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientCertificateConfig; + /** + * Effect enum. + * @name google.container.v1.NodeTaint.Effect + * @enum {number} + * @property {number} EFFECT_UNSPECIFIED=0 EFFECT_UNSPECIFIED value + * @property {number} NO_SCHEDULE=1 NO_SCHEDULE value + * @property {number} PREFER_NO_SCHEDULE=2 PREFER_NO_SCHEDULE value + * @property {number} NO_EXECUTE=3 NO_EXECUTE value + */ + NodeTaint.Effect = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EFFECT_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_SCHEDULE"] = 1; + values[valuesById[2] = "PREFER_NO_SCHEDULE"] = 2; + values[valuesById[3] = "NO_EXECUTE"] = 3; + return values; + })(); + + return NodeTaint; })(); - v1.AddonsConfig = (function() { + v1.MasterAuth = (function() { /** - * Properties of an AddonsConfig. + * Properties of a MasterAuth. * @memberof google.container.v1 - * @interface IAddonsConfig - * @property {google.container.v1.IHttpLoadBalancing|null} [httpLoadBalancing] AddonsConfig httpLoadBalancing - * @property {google.container.v1.IHorizontalPodAutoscaling|null} [horizontalPodAutoscaling] AddonsConfig horizontalPodAutoscaling - * @property {google.container.v1.IKubernetesDashboard|null} [kubernetesDashboard] AddonsConfig kubernetesDashboard - * @property {google.container.v1.INetworkPolicyConfig|null} [networkPolicyConfig] AddonsConfig networkPolicyConfig - * @property {google.container.v1.ICloudRunConfig|null} [cloudRunConfig] AddonsConfig cloudRunConfig + * @interface IMasterAuth + * @property {string|null} [username] MasterAuth username + * @property {string|null} [password] MasterAuth password + * @property {google.container.v1.IClientCertificateConfig|null} [clientCertificateConfig] MasterAuth clientCertificateConfig + * @property {string|null} [clusterCaCertificate] MasterAuth clusterCaCertificate + * @property {string|null} [clientCertificate] MasterAuth clientCertificate + * @property {string|null} [clientKey] MasterAuth clientKey */ /** - * Constructs a new AddonsConfig. + * Constructs a new MasterAuth. * @memberof google.container.v1 - * @classdesc Represents an AddonsConfig. - * @implements IAddonsConfig + * @classdesc Represents a MasterAuth. + * @implements IMasterAuth * @constructor - * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set + * @param {google.container.v1.IMasterAuth=} [properties] Properties to set */ - function AddonsConfig(properties) { + function MasterAuth(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2765,127 +2938,140 @@ } /** - * AddonsConfig httpLoadBalancing. - * @member {google.container.v1.IHttpLoadBalancing|null|undefined} httpLoadBalancing - * @memberof google.container.v1.AddonsConfig + * MasterAuth username. + * @member {string} username + * @memberof google.container.v1.MasterAuth * @instance */ - AddonsConfig.prototype.httpLoadBalancing = null; + MasterAuth.prototype.username = ""; /** - * AddonsConfig horizontalPodAutoscaling. - * @member {google.container.v1.IHorizontalPodAutoscaling|null|undefined} horizontalPodAutoscaling - * @memberof google.container.v1.AddonsConfig + * MasterAuth password. + * @member {string} password + * @memberof google.container.v1.MasterAuth * @instance */ - AddonsConfig.prototype.horizontalPodAutoscaling = null; + MasterAuth.prototype.password = ""; /** - * AddonsConfig kubernetesDashboard. - * @member {google.container.v1.IKubernetesDashboard|null|undefined} kubernetesDashboard - * @memberof google.container.v1.AddonsConfig + * MasterAuth clientCertificateConfig. + * @member {google.container.v1.IClientCertificateConfig|null|undefined} clientCertificateConfig + * @memberof google.container.v1.MasterAuth * @instance */ - AddonsConfig.prototype.kubernetesDashboard = null; + MasterAuth.prototype.clientCertificateConfig = null; /** - * AddonsConfig networkPolicyConfig. - * @member {google.container.v1.INetworkPolicyConfig|null|undefined} networkPolicyConfig - * @memberof google.container.v1.AddonsConfig + * MasterAuth clusterCaCertificate. + * @member {string} clusterCaCertificate + * @memberof google.container.v1.MasterAuth * @instance */ - AddonsConfig.prototype.networkPolicyConfig = null; + MasterAuth.prototype.clusterCaCertificate = ""; /** - * AddonsConfig cloudRunConfig. - * @member {google.container.v1.ICloudRunConfig|null|undefined} cloudRunConfig - * @memberof google.container.v1.AddonsConfig + * MasterAuth clientCertificate. + * @member {string} clientCertificate + * @memberof google.container.v1.MasterAuth * @instance */ - AddonsConfig.prototype.cloudRunConfig = null; + MasterAuth.prototype.clientCertificate = ""; /** - * Creates a new AddonsConfig instance using the specified properties. + * MasterAuth clientKey. + * @member {string} clientKey + * @memberof google.container.v1.MasterAuth + * @instance + */ + MasterAuth.prototype.clientKey = ""; + + /** + * Creates a new MasterAuth instance using the specified properties. * @function create - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static - * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set - * @returns {google.container.v1.AddonsConfig} AddonsConfig instance + * @param {google.container.v1.IMasterAuth=} [properties] Properties to set + * @returns {google.container.v1.MasterAuth} MasterAuth instance */ - AddonsConfig.create = function create(properties) { - return new AddonsConfig(properties); + MasterAuth.create = function create(properties) { + return new MasterAuth(properties); }; /** - * Encodes the specified AddonsConfig message. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. + * Encodes the specified MasterAuth message. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. * @function encode - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static - * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode + * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddonsConfig.encode = function encode(message, writer) { + MasterAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.httpLoadBalancing != null && Object.hasOwnProperty.call(message, "httpLoadBalancing")) - $root.google.container.v1.HttpLoadBalancing.encode(message.httpLoadBalancing, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.horizontalPodAutoscaling != null && Object.hasOwnProperty.call(message, "horizontalPodAutoscaling")) - $root.google.container.v1.HorizontalPodAutoscaling.encode(message.horizontalPodAutoscaling, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.kubernetesDashboard != null && Object.hasOwnProperty.call(message, "kubernetesDashboard")) - $root.google.container.v1.KubernetesDashboard.encode(message.kubernetesDashboard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.networkPolicyConfig != null && Object.hasOwnProperty.call(message, "networkPolicyConfig")) - $root.google.container.v1.NetworkPolicyConfig.encode(message.networkPolicyConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.cloudRunConfig != null && Object.hasOwnProperty.call(message, "cloudRunConfig")) - $root.google.container.v1.CloudRunConfig.encode(message.cloudRunConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); + if (message.clientCertificateConfig != null && Object.hasOwnProperty.call(message, "clientCertificateConfig")) + $root.google.container.v1.ClientCertificateConfig.encode(message.clientCertificateConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.clusterCaCertificate != null && Object.hasOwnProperty.call(message, "clusterCaCertificate")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); + if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); + if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey); return writer; }; /** - * Encodes the specified AddonsConfig message, length delimited. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. + * Encodes the specified MasterAuth message, length delimited. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static - * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode + * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddonsConfig.encodeDelimited = function encodeDelimited(message, writer) { + MasterAuth.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddonsConfig message from the specified reader or buffer. + * Decodes a MasterAuth message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AddonsConfig} AddonsConfig + * @returns {google.container.v1.MasterAuth} MasterAuth * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddonsConfig.decode = function decode(reader, length) { + MasterAuth.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AddonsConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MasterAuth(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.decode(reader, reader.uint32()); + message.username = reader.string(); break; case 2: - message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.decode(reader, reader.uint32()); + message.password = reader.string(); break; case 3: - message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.decode(reader, reader.uint32()); + message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.decode(reader, reader.uint32()); break; - case 4: - message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.decode(reader, reader.uint32()); + case 100: + message.clusterCaCertificate = reader.string(); break; - case 7: - message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.decode(reader, reader.uint32()); + case 101: + message.clientCertificate = reader.string(); + break; + case 102: + message.clientKey = reader.string(); break; default: reader.skipType(tag & 7); @@ -2896,165 +3082,153 @@ }; /** - * Decodes an AddonsConfig message from the specified reader or buffer, length delimited. + * Decodes a MasterAuth message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AddonsConfig} AddonsConfig + * @returns {google.container.v1.MasterAuth} MasterAuth * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddonsConfig.decodeDelimited = function decodeDelimited(reader) { + MasterAuth.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddonsConfig message. + * Verifies a MasterAuth message. * @function verify - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddonsConfig.verify = function verify(message) { + MasterAuth.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) { - var error = $root.google.container.v1.HttpLoadBalancing.verify(message.httpLoadBalancing); - if (error) - return "httpLoadBalancing." + error; - } - if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) { - var error = $root.google.container.v1.HorizontalPodAutoscaling.verify(message.horizontalPodAutoscaling); - if (error) - return "horizontalPodAutoscaling." + error; - } - if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) { - var error = $root.google.container.v1.KubernetesDashboard.verify(message.kubernetesDashboard); - if (error) - return "kubernetesDashboard." + error; - } - if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) { - var error = $root.google.container.v1.NetworkPolicyConfig.verify(message.networkPolicyConfig); - if (error) - return "networkPolicyConfig." + error; - } - if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) { - var error = $root.google.container.v1.CloudRunConfig.verify(message.cloudRunConfig); + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) { + var error = $root.google.container.v1.ClientCertificateConfig.verify(message.clientCertificateConfig); if (error) - return "cloudRunConfig." + error; + return "clientCertificateConfig." + error; } + if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) + if (!$util.isString(message.clusterCaCertificate)) + return "clusterCaCertificate: string expected"; + if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) + if (!$util.isString(message.clientCertificate)) + return "clientCertificate: string expected"; + if (message.clientKey != null && message.hasOwnProperty("clientKey")) + if (!$util.isString(message.clientKey)) + return "clientKey: string expected"; return null; }; /** - * Creates an AddonsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MasterAuth message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AddonsConfig} AddonsConfig + * @returns {google.container.v1.MasterAuth} MasterAuth */ - AddonsConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AddonsConfig) + MasterAuth.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MasterAuth) return object; - var message = new $root.google.container.v1.AddonsConfig(); - if (object.httpLoadBalancing != null) { - if (typeof object.httpLoadBalancing !== "object") - throw TypeError(".google.container.v1.AddonsConfig.httpLoadBalancing: object expected"); - message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.fromObject(object.httpLoadBalancing); - } - if (object.horizontalPodAutoscaling != null) { - if (typeof object.horizontalPodAutoscaling !== "object") - throw TypeError(".google.container.v1.AddonsConfig.horizontalPodAutoscaling: object expected"); - message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.fromObject(object.horizontalPodAutoscaling); - } - if (object.kubernetesDashboard != null) { - if (typeof object.kubernetesDashboard !== "object") - throw TypeError(".google.container.v1.AddonsConfig.kubernetesDashboard: object expected"); - message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.fromObject(object.kubernetesDashboard); - } - if (object.networkPolicyConfig != null) { - if (typeof object.networkPolicyConfig !== "object") - throw TypeError(".google.container.v1.AddonsConfig.networkPolicyConfig: object expected"); - message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.fromObject(object.networkPolicyConfig); - } - if (object.cloudRunConfig != null) { - if (typeof object.cloudRunConfig !== "object") - throw TypeError(".google.container.v1.AddonsConfig.cloudRunConfig: object expected"); - message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.fromObject(object.cloudRunConfig); + var message = new $root.google.container.v1.MasterAuth(); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.clientCertificateConfig != null) { + if (typeof object.clientCertificateConfig !== "object") + throw TypeError(".google.container.v1.MasterAuth.clientCertificateConfig: object expected"); + message.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.fromObject(object.clientCertificateConfig); } + if (object.clusterCaCertificate != null) + message.clusterCaCertificate = String(object.clusterCaCertificate); + if (object.clientCertificate != null) + message.clientCertificate = String(object.clientCertificate); + if (object.clientKey != null) + message.clientKey = String(object.clientKey); return message; }; /** - * Creates a plain object from an AddonsConfig message. Also converts values to other types if specified. + * Creates a plain object from a MasterAuth message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @static - * @param {google.container.v1.AddonsConfig} message AddonsConfig + * @param {google.container.v1.MasterAuth} message MasterAuth * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddonsConfig.toObject = function toObject(message, options) { + MasterAuth.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.httpLoadBalancing = null; - object.horizontalPodAutoscaling = null; - object.kubernetesDashboard = null; - object.networkPolicyConfig = null; - object.cloudRunConfig = null; + object.username = ""; + object.password = ""; + object.clientCertificateConfig = null; + object.clusterCaCertificate = ""; + object.clientCertificate = ""; + object.clientKey = ""; } - if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) - object.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.toObject(message.httpLoadBalancing, options); - if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) - object.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.toObject(message.horizontalPodAutoscaling, options); - if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) - object.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.toObject(message.kubernetesDashboard, options); - if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) - object.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.toObject(message.networkPolicyConfig, options); - if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) - object.cloudRunConfig = $root.google.container.v1.CloudRunConfig.toObject(message.cloudRunConfig, options); + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) + object.clientCertificateConfig = $root.google.container.v1.ClientCertificateConfig.toObject(message.clientCertificateConfig, options); + if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) + object.clusterCaCertificate = message.clusterCaCertificate; + if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) + object.clientCertificate = message.clientCertificate; + if (message.clientKey != null && message.hasOwnProperty("clientKey")) + object.clientKey = message.clientKey; return object; }; /** - * Converts this AddonsConfig to JSON. + * Converts this MasterAuth to JSON. * @function toJSON - * @memberof google.container.v1.AddonsConfig + * @memberof google.container.v1.MasterAuth * @instance * @returns {Object.} JSON object */ - AddonsConfig.prototype.toJSON = function toJSON() { + MasterAuth.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AddonsConfig; + return MasterAuth; })(); - v1.HttpLoadBalancing = (function() { + v1.ClientCertificateConfig = (function() { /** - * Properties of a HttpLoadBalancing. + * Properties of a ClientCertificateConfig. * @memberof google.container.v1 - * @interface IHttpLoadBalancing - * @property {boolean|null} [disabled] HttpLoadBalancing disabled + * @interface IClientCertificateConfig + * @property {boolean|null} [issueClientCertificate] ClientCertificateConfig issueClientCertificate */ /** - * Constructs a new HttpLoadBalancing. + * Constructs a new ClientCertificateConfig. * @memberof google.container.v1 - * @classdesc Represents a HttpLoadBalancing. - * @implements IHttpLoadBalancing + * @classdesc Represents a ClientCertificateConfig. + * @implements IClientCertificateConfig * @constructor - * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set + * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set */ - function HttpLoadBalancing(properties) { + function ClientCertificateConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3062,75 +3236,75 @@ } /** - * HttpLoadBalancing disabled. - * @member {boolean} disabled - * @memberof google.container.v1.HttpLoadBalancing + * ClientCertificateConfig issueClientCertificate. + * @member {boolean} issueClientCertificate + * @memberof google.container.v1.ClientCertificateConfig * @instance */ - HttpLoadBalancing.prototype.disabled = false; + ClientCertificateConfig.prototype.issueClientCertificate = false; /** - * Creates a new HttpLoadBalancing instance using the specified properties. + * Creates a new ClientCertificateConfig instance using the specified properties. * @function create - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static - * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set - * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing instance + * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set + * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig instance */ - HttpLoadBalancing.create = function create(properties) { - return new HttpLoadBalancing(properties); + ClientCertificateConfig.create = function create(properties) { + return new ClientCertificateConfig(properties); }; /** - * Encodes the specified HttpLoadBalancing message. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. + * Encodes the specified ClientCertificateConfig message. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static - * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode + * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpLoadBalancing.encode = function encode(message, writer) { + ClientCertificateConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + if (message.issueClientCertificate != null && Object.hasOwnProperty.call(message, "issueClientCertificate")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate); return writer; }; /** - * Encodes the specified HttpLoadBalancing message, length delimited. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. + * Encodes the specified ClientCertificateConfig message, length delimited. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static - * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode + * @param {google.container.v1.IClientCertificateConfig} message ClientCertificateConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpLoadBalancing.encodeDelimited = function encodeDelimited(message, writer) { + ClientCertificateConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HttpLoadBalancing message from the specified reader or buffer. + * Decodes a ClientCertificateConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing + * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpLoadBalancing.decode = function decode(reader, length) { + ClientCertificateConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.HttpLoadBalancing(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClientCertificateConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.disabled = reader.bool(); + message.issueClientCertificate = reader.bool(); break; default: reader.skipType(tag & 7); @@ -3141,107 +3315,113 @@ }; /** - * Decodes a HttpLoadBalancing message from the specified reader or buffer, length delimited. + * Decodes a ClientCertificateConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing + * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpLoadBalancing.decodeDelimited = function decodeDelimited(reader) { + ClientCertificateConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HttpLoadBalancing message. + * Verifies a ClientCertificateConfig message. * @function verify - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HttpLoadBalancing.verify = function verify(message) { + ClientCertificateConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; + if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) + if (typeof message.issueClientCertificate !== "boolean") + return "issueClientCertificate: boolean expected"; return null; }; /** - * Creates a HttpLoadBalancing message from a plain object. Also converts values to their respective internal types. + * Creates a ClientCertificateConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing + * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig */ - HttpLoadBalancing.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.HttpLoadBalancing) + ClientCertificateConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ClientCertificateConfig) return object; - var message = new $root.google.container.v1.HttpLoadBalancing(); - if (object.disabled != null) - message.disabled = Boolean(object.disabled); + var message = new $root.google.container.v1.ClientCertificateConfig(); + if (object.issueClientCertificate != null) + message.issueClientCertificate = Boolean(object.issueClientCertificate); return message; }; /** - * Creates a plain object from a HttpLoadBalancing message. Also converts values to other types if specified. + * Creates a plain object from a ClientCertificateConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @static - * @param {google.container.v1.HttpLoadBalancing} message HttpLoadBalancing + * @param {google.container.v1.ClientCertificateConfig} message ClientCertificateConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HttpLoadBalancing.toObject = function toObject(message, options) { + ClientCertificateConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.disabled = false; - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; + object.issueClientCertificate = false; + if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) + object.issueClientCertificate = message.issueClientCertificate; return object; }; /** - * Converts this HttpLoadBalancing to JSON. + * Converts this ClientCertificateConfig to JSON. * @function toJSON - * @memberof google.container.v1.HttpLoadBalancing + * @memberof google.container.v1.ClientCertificateConfig * @instance * @returns {Object.} JSON object */ - HttpLoadBalancing.prototype.toJSON = function toJSON() { + ClientCertificateConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HttpLoadBalancing; + return ClientCertificateConfig; })(); - v1.HorizontalPodAutoscaling = (function() { + v1.AddonsConfig = (function() { /** - * Properties of a HorizontalPodAutoscaling. + * Properties of an AddonsConfig. * @memberof google.container.v1 - * @interface IHorizontalPodAutoscaling - * @property {boolean|null} [disabled] HorizontalPodAutoscaling disabled + * @interface IAddonsConfig + * @property {google.container.v1.IHttpLoadBalancing|null} [httpLoadBalancing] AddonsConfig httpLoadBalancing + * @property {google.container.v1.IHorizontalPodAutoscaling|null} [horizontalPodAutoscaling] AddonsConfig horizontalPodAutoscaling + * @property {google.container.v1.IKubernetesDashboard|null} [kubernetesDashboard] AddonsConfig kubernetesDashboard + * @property {google.container.v1.INetworkPolicyConfig|null} [networkPolicyConfig] AddonsConfig networkPolicyConfig + * @property {google.container.v1.ICloudRunConfig|null} [cloudRunConfig] AddonsConfig cloudRunConfig + * @property {google.container.v1.IDnsCacheConfig|null} [dnsCacheConfig] AddonsConfig dnsCacheConfig + * @property {google.container.v1.IConfigConnectorConfig|null} [configConnectorConfig] AddonsConfig configConnectorConfig */ /** - * Constructs a new HorizontalPodAutoscaling. + * Constructs a new AddonsConfig. * @memberof google.container.v1 - * @classdesc Represents a HorizontalPodAutoscaling. - * @implements IHorizontalPodAutoscaling + * @classdesc Represents an AddonsConfig. + * @implements IAddonsConfig * @constructor - * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set + * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set */ - function HorizontalPodAutoscaling(properties) { + function AddonsConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3249,75 +3429,153 @@ } /** - * HorizontalPodAutoscaling disabled. - * @member {boolean} disabled - * @memberof google.container.v1.HorizontalPodAutoscaling + * AddonsConfig httpLoadBalancing. + * @member {google.container.v1.IHttpLoadBalancing|null|undefined} httpLoadBalancing + * @memberof google.container.v1.AddonsConfig * @instance */ - HorizontalPodAutoscaling.prototype.disabled = false; + AddonsConfig.prototype.httpLoadBalancing = null; /** - * Creates a new HorizontalPodAutoscaling instance using the specified properties. + * AddonsConfig horizontalPodAutoscaling. + * @member {google.container.v1.IHorizontalPodAutoscaling|null|undefined} horizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.horizontalPodAutoscaling = null; + + /** + * AddonsConfig kubernetesDashboard. + * @member {google.container.v1.IKubernetesDashboard|null|undefined} kubernetesDashboard + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.kubernetesDashboard = null; + + /** + * AddonsConfig networkPolicyConfig. + * @member {google.container.v1.INetworkPolicyConfig|null|undefined} networkPolicyConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.networkPolicyConfig = null; + + /** + * AddonsConfig cloudRunConfig. + * @member {google.container.v1.ICloudRunConfig|null|undefined} cloudRunConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.cloudRunConfig = null; + + /** + * AddonsConfig dnsCacheConfig. + * @member {google.container.v1.IDnsCacheConfig|null|undefined} dnsCacheConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.dnsCacheConfig = null; + + /** + * AddonsConfig configConnectorConfig. + * @member {google.container.v1.IConfigConnectorConfig|null|undefined} configConnectorConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.configConnectorConfig = null; + + /** + * Creates a new AddonsConfig instance using the specified properties. * @function create - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static - * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling instance + * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set + * @returns {google.container.v1.AddonsConfig} AddonsConfig instance */ - HorizontalPodAutoscaling.create = function create(properties) { - return new HorizontalPodAutoscaling(properties); + AddonsConfig.create = function create(properties) { + return new AddonsConfig(properties); }; /** - * Encodes the specified HorizontalPodAutoscaling message. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. + * Encodes the specified AddonsConfig message. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static - * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode + * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HorizontalPodAutoscaling.encode = function encode(message, writer) { + AddonsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + if (message.httpLoadBalancing != null && Object.hasOwnProperty.call(message, "httpLoadBalancing")) + $root.google.container.v1.HttpLoadBalancing.encode(message.httpLoadBalancing, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.horizontalPodAutoscaling != null && Object.hasOwnProperty.call(message, "horizontalPodAutoscaling")) + $root.google.container.v1.HorizontalPodAutoscaling.encode(message.horizontalPodAutoscaling, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.kubernetesDashboard != null && Object.hasOwnProperty.call(message, "kubernetesDashboard")) + $root.google.container.v1.KubernetesDashboard.encode(message.kubernetesDashboard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.networkPolicyConfig != null && Object.hasOwnProperty.call(message, "networkPolicyConfig")) + $root.google.container.v1.NetworkPolicyConfig.encode(message.networkPolicyConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.cloudRunConfig != null && Object.hasOwnProperty.call(message, "cloudRunConfig")) + $root.google.container.v1.CloudRunConfig.encode(message.cloudRunConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.dnsCacheConfig != null && Object.hasOwnProperty.call(message, "dnsCacheConfig")) + $root.google.container.v1.DnsCacheConfig.encode(message.dnsCacheConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.configConnectorConfig != null && Object.hasOwnProperty.call(message, "configConnectorConfig")) + $root.google.container.v1.ConfigConnectorConfig.encode(message.configConnectorConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified HorizontalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. + * Encodes the specified AddonsConfig message, length delimited. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static - * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode + * @param {google.container.v1.IAddonsConfig} message AddonsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HorizontalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + AddonsConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer. + * Decodes an AddonsConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling + * @returns {google.container.v1.AddonsConfig} AddonsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HorizontalPodAutoscaling.decode = function decode(reader, length) { + AddonsConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.HorizontalPodAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AddonsConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.disabled = reader.bool(); + message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.decode(reader, reader.uint32()); + break; + case 2: + message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.decode(reader, reader.uint32()); + break; + case 3: + message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.decode(reader, reader.uint32()); + break; + case 4: + message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.decode(reader, reader.uint32()); + break; + case 7: + message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.decode(reader, reader.uint32()); + break; + case 8: + message.dnsCacheConfig = $root.google.container.v1.DnsCacheConfig.decode(reader, reader.uint32()); + break; + case 10: + message.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3328,107 +3586,191 @@ }; /** - * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer, length delimited. + * Decodes an AddonsConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling + * @returns {google.container.v1.AddonsConfig} AddonsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HorizontalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { + AddonsConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HorizontalPodAutoscaling message. + * Verifies an AddonsConfig message. * @function verify - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HorizontalPodAutoscaling.verify = function verify(message) { + AddonsConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; + if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) { + var error = $root.google.container.v1.HttpLoadBalancing.verify(message.httpLoadBalancing); + if (error) + return "httpLoadBalancing." + error; + } + if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) { + var error = $root.google.container.v1.HorizontalPodAutoscaling.verify(message.horizontalPodAutoscaling); + if (error) + return "horizontalPodAutoscaling." + error; + } + if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) { + var error = $root.google.container.v1.KubernetesDashboard.verify(message.kubernetesDashboard); + if (error) + return "kubernetesDashboard." + error; + } + if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) { + var error = $root.google.container.v1.NetworkPolicyConfig.verify(message.networkPolicyConfig); + if (error) + return "networkPolicyConfig." + error; + } + if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) { + var error = $root.google.container.v1.CloudRunConfig.verify(message.cloudRunConfig); + if (error) + return "cloudRunConfig." + error; + } + if (message.dnsCacheConfig != null && message.hasOwnProperty("dnsCacheConfig")) { + var error = $root.google.container.v1.DnsCacheConfig.verify(message.dnsCacheConfig); + if (error) + return "dnsCacheConfig." + error; + } + if (message.configConnectorConfig != null && message.hasOwnProperty("configConnectorConfig")) { + var error = $root.google.container.v1.ConfigConnectorConfig.verify(message.configConnectorConfig); + if (error) + return "configConnectorConfig." + error; + } return null; }; /** - * Creates a HorizontalPodAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates an AddonsConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling + * @returns {google.container.v1.AddonsConfig} AddonsConfig */ - HorizontalPodAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.HorizontalPodAutoscaling) + AddonsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AddonsConfig) return object; - var message = new $root.google.container.v1.HorizontalPodAutoscaling(); - if (object.disabled != null) - message.disabled = Boolean(object.disabled); + var message = new $root.google.container.v1.AddonsConfig(); + if (object.httpLoadBalancing != null) { + if (typeof object.httpLoadBalancing !== "object") + throw TypeError(".google.container.v1.AddonsConfig.httpLoadBalancing: object expected"); + message.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.fromObject(object.httpLoadBalancing); + } + if (object.horizontalPodAutoscaling != null) { + if (typeof object.horizontalPodAutoscaling !== "object") + throw TypeError(".google.container.v1.AddonsConfig.horizontalPodAutoscaling: object expected"); + message.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.fromObject(object.horizontalPodAutoscaling); + } + if (object.kubernetesDashboard != null) { + if (typeof object.kubernetesDashboard !== "object") + throw TypeError(".google.container.v1.AddonsConfig.kubernetesDashboard: object expected"); + message.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.fromObject(object.kubernetesDashboard); + } + if (object.networkPolicyConfig != null) { + if (typeof object.networkPolicyConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.networkPolicyConfig: object expected"); + message.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.fromObject(object.networkPolicyConfig); + } + if (object.cloudRunConfig != null) { + if (typeof object.cloudRunConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.cloudRunConfig: object expected"); + message.cloudRunConfig = $root.google.container.v1.CloudRunConfig.fromObject(object.cloudRunConfig); + } + if (object.dnsCacheConfig != null) { + if (typeof object.dnsCacheConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.dnsCacheConfig: object expected"); + message.dnsCacheConfig = $root.google.container.v1.DnsCacheConfig.fromObject(object.dnsCacheConfig); + } + if (object.configConnectorConfig != null) { + if (typeof object.configConnectorConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.configConnectorConfig: object expected"); + message.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.fromObject(object.configConnectorConfig); + } return message; }; /** - * Creates a plain object from a HorizontalPodAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from an AddonsConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @static - * @param {google.container.v1.HorizontalPodAutoscaling} message HorizontalPodAutoscaling + * @param {google.container.v1.AddonsConfig} message AddonsConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HorizontalPodAutoscaling.toObject = function toObject(message, options) { + AddonsConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.disabled = false; - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; + if (options.defaults) { + object.httpLoadBalancing = null; + object.horizontalPodAutoscaling = null; + object.kubernetesDashboard = null; + object.networkPolicyConfig = null; + object.cloudRunConfig = null; + object.dnsCacheConfig = null; + object.configConnectorConfig = null; + } + if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) + object.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.toObject(message.httpLoadBalancing, options); + if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) + object.horizontalPodAutoscaling = $root.google.container.v1.HorizontalPodAutoscaling.toObject(message.horizontalPodAutoscaling, options); + if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) + object.kubernetesDashboard = $root.google.container.v1.KubernetesDashboard.toObject(message.kubernetesDashboard, options); + if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) + object.networkPolicyConfig = $root.google.container.v1.NetworkPolicyConfig.toObject(message.networkPolicyConfig, options); + if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) + object.cloudRunConfig = $root.google.container.v1.CloudRunConfig.toObject(message.cloudRunConfig, options); + if (message.dnsCacheConfig != null && message.hasOwnProperty("dnsCacheConfig")) + object.dnsCacheConfig = $root.google.container.v1.DnsCacheConfig.toObject(message.dnsCacheConfig, options); + if (message.configConnectorConfig != null && message.hasOwnProperty("configConnectorConfig")) + object.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.toObject(message.configConnectorConfig, options); return object; }; /** - * Converts this HorizontalPodAutoscaling to JSON. + * Converts this AddonsConfig to JSON. * @function toJSON - * @memberof google.container.v1.HorizontalPodAutoscaling + * @memberof google.container.v1.AddonsConfig * @instance * @returns {Object.} JSON object */ - HorizontalPodAutoscaling.prototype.toJSON = function toJSON() { + AddonsConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HorizontalPodAutoscaling; + return AddonsConfig; })(); - v1.KubernetesDashboard = (function() { + v1.HttpLoadBalancing = (function() { /** - * Properties of a KubernetesDashboard. + * Properties of a HttpLoadBalancing. * @memberof google.container.v1 - * @interface IKubernetesDashboard - * @property {boolean|null} [disabled] KubernetesDashboard disabled + * @interface IHttpLoadBalancing + * @property {boolean|null} [disabled] HttpLoadBalancing disabled */ /** - * Constructs a new KubernetesDashboard. + * Constructs a new HttpLoadBalancing. * @memberof google.container.v1 - * @classdesc Represents a KubernetesDashboard. - * @implements IKubernetesDashboard + * @classdesc Represents a HttpLoadBalancing. + * @implements IHttpLoadBalancing * @constructor - * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set + * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set */ - function KubernetesDashboard(properties) { + function HttpLoadBalancing(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3436,35 +3778,35 @@ } /** - * KubernetesDashboard disabled. + * HttpLoadBalancing disabled. * @member {boolean} disabled - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @instance */ - KubernetesDashboard.prototype.disabled = false; + HttpLoadBalancing.prototype.disabled = false; /** - * Creates a new KubernetesDashboard instance using the specified properties. + * Creates a new HttpLoadBalancing instance using the specified properties. * @function create - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static - * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set - * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard instance + * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set + * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing instance */ - KubernetesDashboard.create = function create(properties) { - return new KubernetesDashboard(properties); + HttpLoadBalancing.create = function create(properties) { + return new HttpLoadBalancing(properties); }; /** - * Encodes the specified KubernetesDashboard message. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. + * Encodes the specified HttpLoadBalancing message. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. * @function encode - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static - * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode + * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KubernetesDashboard.encode = function encode(message, writer) { + HttpLoadBalancing.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) @@ -3473,33 +3815,33 @@ }; /** - * Encodes the specified KubernetesDashboard message, length delimited. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. + * Encodes the specified HttpLoadBalancing message, length delimited. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static - * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode + * @param {google.container.v1.IHttpLoadBalancing} message HttpLoadBalancing message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KubernetesDashboard.encodeDelimited = function encodeDelimited(message, writer) { + HttpLoadBalancing.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KubernetesDashboard message from the specified reader or buffer. + * Decodes a HttpLoadBalancing message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard + * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KubernetesDashboard.decode = function decode(reader, length) { + HttpLoadBalancing.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.KubernetesDashboard(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.HttpLoadBalancing(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3515,30 +3857,30 @@ }; /** - * Decodes a KubernetesDashboard message from the specified reader or buffer, length delimited. + * Decodes a HttpLoadBalancing message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard + * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KubernetesDashboard.decodeDelimited = function decodeDelimited(reader) { + HttpLoadBalancing.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KubernetesDashboard message. + * Verifies a HttpLoadBalancing message. * @function verify - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KubernetesDashboard.verify = function verify(message) { + HttpLoadBalancing.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.disabled != null && message.hasOwnProperty("disabled")) @@ -3548,32 +3890,32 @@ }; /** - * Creates a KubernetesDashboard message from a plain object. Also converts values to their respective internal types. + * Creates a HttpLoadBalancing message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static * @param {Object.} object Plain object - * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard + * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing */ - KubernetesDashboard.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.KubernetesDashboard) + HttpLoadBalancing.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.HttpLoadBalancing) return object; - var message = new $root.google.container.v1.KubernetesDashboard(); + var message = new $root.google.container.v1.HttpLoadBalancing(); if (object.disabled != null) message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a KubernetesDashboard message. Also converts values to other types if specified. + * Creates a plain object from a HttpLoadBalancing message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @static - * @param {google.container.v1.KubernetesDashboard} message KubernetesDashboard + * @param {google.container.v1.HttpLoadBalancing} message HttpLoadBalancing * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KubernetesDashboard.toObject = function toObject(message, options) { + HttpLoadBalancing.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -3585,37 +3927,37 @@ }; /** - * Converts this KubernetesDashboard to JSON. + * Converts this HttpLoadBalancing to JSON. * @function toJSON - * @memberof google.container.v1.KubernetesDashboard + * @memberof google.container.v1.HttpLoadBalancing * @instance * @returns {Object.} JSON object */ - KubernetesDashboard.prototype.toJSON = function toJSON() { + HttpLoadBalancing.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return KubernetesDashboard; + return HttpLoadBalancing; })(); - v1.NetworkPolicyConfig = (function() { + v1.HorizontalPodAutoscaling = (function() { /** - * Properties of a NetworkPolicyConfig. + * Properties of a HorizontalPodAutoscaling. * @memberof google.container.v1 - * @interface INetworkPolicyConfig - * @property {boolean|null} [disabled] NetworkPolicyConfig disabled + * @interface IHorizontalPodAutoscaling + * @property {boolean|null} [disabled] HorizontalPodAutoscaling disabled */ /** - * Constructs a new NetworkPolicyConfig. + * Constructs a new HorizontalPodAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a NetworkPolicyConfig. - * @implements INetworkPolicyConfig + * @classdesc Represents a HorizontalPodAutoscaling. + * @implements IHorizontalPodAutoscaling * @constructor - * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set + * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set */ - function NetworkPolicyConfig(properties) { + function HorizontalPodAutoscaling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3623,35 +3965,35 @@ } /** - * NetworkPolicyConfig disabled. + * HorizontalPodAutoscaling disabled. * @member {boolean} disabled - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @instance */ - NetworkPolicyConfig.prototype.disabled = false; + HorizontalPodAutoscaling.prototype.disabled = false; /** - * Creates a new NetworkPolicyConfig instance using the specified properties. + * Creates a new HorizontalPodAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static - * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set - * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig instance + * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling instance */ - NetworkPolicyConfig.create = function create(properties) { - return new NetworkPolicyConfig(properties); + HorizontalPodAutoscaling.create = function create(properties) { + return new HorizontalPodAutoscaling(properties); }; /** - * Encodes the specified NetworkPolicyConfig message. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. + * Encodes the specified HorizontalPodAutoscaling message. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static - * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode + * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicyConfig.encode = function encode(message, writer) { + HorizontalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) @@ -3660,33 +4002,33 @@ }; /** - * Encodes the specified NetworkPolicyConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. + * Encodes the specified HorizontalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static - * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode + * @param {google.container.v1.IHorizontalPodAutoscaling} message HorizontalPodAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicyConfig.encodeDelimited = function encodeDelimited(message, writer) { + HorizontalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkPolicyConfig message from the specified reader or buffer. + * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig + * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicyConfig.decode = function decode(reader, length) { + HorizontalPodAutoscaling.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkPolicyConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.HorizontalPodAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3702,30 +4044,30 @@ }; /** - * Decodes a NetworkPolicyConfig message from the specified reader or buffer, length delimited. + * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig + * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicyConfig.decodeDelimited = function decodeDelimited(reader) { + HorizontalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkPolicyConfig message. + * Verifies a HorizontalPodAutoscaling message. * @function verify - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkPolicyConfig.verify = function verify(message) { + HorizontalPodAutoscaling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.disabled != null && message.hasOwnProperty("disabled")) @@ -3735,32 +4077,32 @@ }; /** - * Creates a NetworkPolicyConfig message from a plain object. Also converts values to their respective internal types. + * Creates a HorizontalPodAutoscaling message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig + * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling */ - NetworkPolicyConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NetworkPolicyConfig) + HorizontalPodAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.HorizontalPodAutoscaling) return object; - var message = new $root.google.container.v1.NetworkPolicyConfig(); + var message = new $root.google.container.v1.HorizontalPodAutoscaling(); if (object.disabled != null) message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a NetworkPolicyConfig message. Also converts values to other types if specified. + * Creates a plain object from a HorizontalPodAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @static - * @param {google.container.v1.NetworkPolicyConfig} message NetworkPolicyConfig + * @param {google.container.v1.HorizontalPodAutoscaling} message HorizontalPodAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkPolicyConfig.toObject = function toObject(message, options) { + HorizontalPodAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -3772,41 +4114,37 @@ }; /** - * Converts this NetworkPolicyConfig to JSON. + * Converts this HorizontalPodAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.NetworkPolicyConfig + * @memberof google.container.v1.HorizontalPodAutoscaling * @instance * @returns {Object.} JSON object */ - NetworkPolicyConfig.prototype.toJSON = function toJSON() { + HorizontalPodAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NetworkPolicyConfig; + return HorizontalPodAutoscaling; })(); - v1.PrivateClusterConfig = (function() { + v1.KubernetesDashboard = (function() { /** - * Properties of a PrivateClusterConfig. + * Properties of a KubernetesDashboard. * @memberof google.container.v1 - * @interface IPrivateClusterConfig - * @property {boolean|null} [enablePrivateNodes] PrivateClusterConfig enablePrivateNodes - * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint - * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock - * @property {string|null} [privateEndpoint] PrivateClusterConfig privateEndpoint - * @property {string|null} [publicEndpoint] PrivateClusterConfig publicEndpoint + * @interface IKubernetesDashboard + * @property {boolean|null} [disabled] KubernetesDashboard disabled */ /** - * Constructs a new PrivateClusterConfig. + * Constructs a new KubernetesDashboard. * @memberof google.container.v1 - * @classdesc Represents a PrivateClusterConfig. - * @implements IPrivateClusterConfig + * @classdesc Represents a KubernetesDashboard. + * @implements IKubernetesDashboard * @constructor - * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set + * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set */ - function PrivateClusterConfig(properties) { + function KubernetesDashboard(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3814,127 +4152,75 @@ } /** - * PrivateClusterConfig enablePrivateNodes. - * @member {boolean} enablePrivateNodes - * @memberof google.container.v1.PrivateClusterConfig - * @instance - */ - PrivateClusterConfig.prototype.enablePrivateNodes = false; - - /** - * PrivateClusterConfig enablePrivateEndpoint. - * @member {boolean} enablePrivateEndpoint - * @memberof google.container.v1.PrivateClusterConfig - * @instance - */ - PrivateClusterConfig.prototype.enablePrivateEndpoint = false; - - /** - * PrivateClusterConfig masterIpv4CidrBlock. - * @member {string} masterIpv4CidrBlock - * @memberof google.container.v1.PrivateClusterConfig - * @instance - */ - PrivateClusterConfig.prototype.masterIpv4CidrBlock = ""; - - /** - * PrivateClusterConfig privateEndpoint. - * @member {string} privateEndpoint - * @memberof google.container.v1.PrivateClusterConfig - * @instance - */ - PrivateClusterConfig.prototype.privateEndpoint = ""; - - /** - * PrivateClusterConfig publicEndpoint. - * @member {string} publicEndpoint - * @memberof google.container.v1.PrivateClusterConfig + * KubernetesDashboard disabled. + * @member {boolean} disabled + * @memberof google.container.v1.KubernetesDashboard * @instance */ - PrivateClusterConfig.prototype.publicEndpoint = ""; + KubernetesDashboard.prototype.disabled = false; /** - * Creates a new PrivateClusterConfig instance using the specified properties. + * Creates a new KubernetesDashboard instance using the specified properties. * @function create - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static - * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set - * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig instance + * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set + * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard instance */ - PrivateClusterConfig.create = function create(properties) { - return new PrivateClusterConfig(properties); + KubernetesDashboard.create = function create(properties) { + return new KubernetesDashboard(properties); }; /** - * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. + * Encodes the specified KubernetesDashboard message. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. * @function encode - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static - * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode + * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateClusterConfig.encode = function encode(message, writer) { + KubernetesDashboard.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); - if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); - if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); - if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); - if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; /** - * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. + * Encodes the specified KubernetesDashboard message, length delimited. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static - * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode + * @param {google.container.v1.IKubernetesDashboard} message KubernetesDashboard message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) { + KubernetesDashboard.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * Decodes a KubernetesDashboard message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig + * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateClusterConfig.decode = function decode(reader, length) { + KubernetesDashboard.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.PrivateClusterConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.KubernetesDashboard(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enablePrivateNodes = reader.bool(); - break; - case 2: - message.enablePrivateEndpoint = reader.bool(); - break; - case 3: - message.masterIpv4CidrBlock = reader.string(); - break; - case 4: - message.privateEndpoint = reader.string(); - break; - case 5: - message.publicEndpoint = reader.string(); + message.disabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -3945,141 +4231,107 @@ }; /** - * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * Decodes a KubernetesDashboard message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig + * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) { + KubernetesDashboard.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateClusterConfig message. + * Verifies a KubernetesDashboard message. * @function verify - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateClusterConfig.verify = function verify(message) { + KubernetesDashboard.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) - if (typeof message.enablePrivateNodes !== "boolean") - return "enablePrivateNodes: boolean expected"; - if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) - if (typeof message.enablePrivateEndpoint !== "boolean") - return "enablePrivateEndpoint: boolean expected"; - if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) - if (!$util.isString(message.masterIpv4CidrBlock)) - return "masterIpv4CidrBlock: string expected"; - if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) - if (!$util.isString(message.privateEndpoint)) - return "privateEndpoint: string expected"; - if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) - if (!$util.isString(message.publicEndpoint)) - return "publicEndpoint: string expected"; + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; return null; }; /** - * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * Creates a KubernetesDashboard message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static * @param {Object.} object Plain object - * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig + * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard */ - PrivateClusterConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.PrivateClusterConfig) + KubernetesDashboard.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.KubernetesDashboard) return object; - var message = new $root.google.container.v1.PrivateClusterConfig(); - if (object.enablePrivateNodes != null) - message.enablePrivateNodes = Boolean(object.enablePrivateNodes); - if (object.enablePrivateEndpoint != null) - message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint); - if (object.masterIpv4CidrBlock != null) - message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock); - if (object.privateEndpoint != null) - message.privateEndpoint = String(object.privateEndpoint); - if (object.publicEndpoint != null) - message.publicEndpoint = String(object.publicEndpoint); + var message = new $root.google.container.v1.KubernetesDashboard(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. + * Creates a plain object from a KubernetesDashboard message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @static - * @param {google.container.v1.PrivateClusterConfig} message PrivateClusterConfig + * @param {google.container.v1.KubernetesDashboard} message KubernetesDashboard * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateClusterConfig.toObject = function toObject(message, options) { + KubernetesDashboard.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.enablePrivateNodes = false; - object.enablePrivateEndpoint = false; - object.masterIpv4CidrBlock = ""; - object.privateEndpoint = ""; - object.publicEndpoint = ""; - } - if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) - object.enablePrivateNodes = message.enablePrivateNodes; - if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) - object.enablePrivateEndpoint = message.enablePrivateEndpoint; - if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) - object.masterIpv4CidrBlock = message.masterIpv4CidrBlock; - if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) - object.privateEndpoint = message.privateEndpoint; - if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) - object.publicEndpoint = message.publicEndpoint; + if (options.defaults) + object.disabled = false; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; return object; }; /** - * Converts this PrivateClusterConfig to JSON. + * Converts this KubernetesDashboard to JSON. * @function toJSON - * @memberof google.container.v1.PrivateClusterConfig + * @memberof google.container.v1.KubernetesDashboard * @instance * @returns {Object.} JSON object */ - PrivateClusterConfig.prototype.toJSON = function toJSON() { + KubernetesDashboard.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PrivateClusterConfig; + return KubernetesDashboard; })(); - v1.AuthenticatorGroupsConfig = (function() { + v1.NetworkPolicyConfig = (function() { /** - * Properties of an AuthenticatorGroupsConfig. + * Properties of a NetworkPolicyConfig. * @memberof google.container.v1 - * @interface IAuthenticatorGroupsConfig - * @property {boolean|null} [enabled] AuthenticatorGroupsConfig enabled - * @property {string|null} [securityGroup] AuthenticatorGroupsConfig securityGroup + * @interface INetworkPolicyConfig + * @property {boolean|null} [disabled] NetworkPolicyConfig disabled */ /** - * Constructs a new AuthenticatorGroupsConfig. + * Constructs a new NetworkPolicyConfig. * @memberof google.container.v1 - * @classdesc Represents an AuthenticatorGroupsConfig. - * @implements IAuthenticatorGroupsConfig + * @classdesc Represents a NetworkPolicyConfig. + * @implements INetworkPolicyConfig * @constructor - * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set + * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set */ - function AuthenticatorGroupsConfig(properties) { + function NetworkPolicyConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4087,88 +4339,75 @@ } /** - * AuthenticatorGroupsConfig enabled. - * @member {boolean} enabled - * @memberof google.container.v1.AuthenticatorGroupsConfig - * @instance - */ - AuthenticatorGroupsConfig.prototype.enabled = false; - - /** - * AuthenticatorGroupsConfig securityGroup. - * @member {string} securityGroup - * @memberof google.container.v1.AuthenticatorGroupsConfig + * NetworkPolicyConfig disabled. + * @member {boolean} disabled + * @memberof google.container.v1.NetworkPolicyConfig * @instance */ - AuthenticatorGroupsConfig.prototype.securityGroup = ""; + NetworkPolicyConfig.prototype.disabled = false; /** - * Creates a new AuthenticatorGroupsConfig instance using the specified properties. + * Creates a new NetworkPolicyConfig instance using the specified properties. * @function create - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set - * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig instance + * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig instance */ - AuthenticatorGroupsConfig.create = function create(properties) { - return new AuthenticatorGroupsConfig(properties); + NetworkPolicyConfig.create = function create(properties) { + return new NetworkPolicyConfig(properties); }; /** - * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. + * Encodes the specified NetworkPolicyConfig message. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode + * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthenticatorGroupsConfig.encode = function encode(message, writer) { + NetworkPolicyConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.securityGroup != null && Object.hasOwnProperty.call(message, "securityGroup")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.securityGroup); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; /** - * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. + * Encodes the specified NetworkPolicyConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode + * @param {google.container.v1.INetworkPolicyConfig} message NetworkPolicyConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthenticatorGroupsConfig.encodeDelimited = function encodeDelimited(message, writer) { + NetworkPolicyConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer. + * Decodes a NetworkPolicyConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuthenticatorGroupsConfig.decode = function decode(reader, length) { + NetworkPolicyConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AuthenticatorGroupsConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkPolicyConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enabled = reader.bool(); - break; - case 2: - message.securityGroup = reader.string(); + message.disabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -4179,116 +4418,107 @@ }; /** - * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited. + * Decodes a NetworkPolicyConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuthenticatorGroupsConfig.decodeDelimited = function decodeDelimited(reader) { + NetworkPolicyConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuthenticatorGroupsConfig message. + * Verifies a NetworkPolicyConfig message. * @function verify - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuthenticatorGroupsConfig.verify = function verify(message) { + NetworkPolicyConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.securityGroup != null && message.hasOwnProperty("securityGroup")) - if (!$util.isString(message.securityGroup)) - return "securityGroup: string expected"; + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; return null; }; /** - * Creates an AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkPolicyConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig */ - AuthenticatorGroupsConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AuthenticatorGroupsConfig) + NetworkPolicyConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkPolicyConfig) return object; - var message = new $root.google.container.v1.AuthenticatorGroupsConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.securityGroup != null) - message.securityGroup = String(object.securityGroup); + var message = new $root.google.container.v1.NetworkPolicyConfig(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified. + * Creates a plain object from a NetworkPolicyConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.AuthenticatorGroupsConfig} message AuthenticatorGroupsConfig + * @param {google.container.v1.NetworkPolicyConfig} message NetworkPolicyConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuthenticatorGroupsConfig.toObject = function toObject(message, options) { + NetworkPolicyConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.enabled = false; - object.securityGroup = ""; - } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.securityGroup != null && message.hasOwnProperty("securityGroup")) - object.securityGroup = message.securityGroup; + if (options.defaults) + object.disabled = false; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; return object; }; /** - * Converts this AuthenticatorGroupsConfig to JSON. + * Converts this NetworkPolicyConfig to JSON. * @function toJSON - * @memberof google.container.v1.AuthenticatorGroupsConfig + * @memberof google.container.v1.NetworkPolicyConfig * @instance * @returns {Object.} JSON object */ - AuthenticatorGroupsConfig.prototype.toJSON = function toJSON() { + NetworkPolicyConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuthenticatorGroupsConfig; + return NetworkPolicyConfig; })(); - v1.CloudRunConfig = (function() { + v1.DnsCacheConfig = (function() { /** - * Properties of a CloudRunConfig. + * Properties of a DnsCacheConfig. * @memberof google.container.v1 - * @interface ICloudRunConfig - * @property {boolean|null} [disabled] CloudRunConfig disabled + * @interface IDnsCacheConfig + * @property {boolean|null} [enabled] DnsCacheConfig enabled */ /** - * Constructs a new CloudRunConfig. + * Constructs a new DnsCacheConfig. * @memberof google.container.v1 - * @classdesc Represents a CloudRunConfig. - * @implements ICloudRunConfig + * @classdesc Represents a DnsCacheConfig. + * @implements IDnsCacheConfig * @constructor - * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set + * @param {google.container.v1.IDnsCacheConfig=} [properties] Properties to set */ - function CloudRunConfig(properties) { + function DnsCacheConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4296,75 +4526,75 @@ } /** - * CloudRunConfig disabled. - * @member {boolean} disabled - * @memberof google.container.v1.CloudRunConfig + * DnsCacheConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.DnsCacheConfig * @instance */ - CloudRunConfig.prototype.disabled = false; + DnsCacheConfig.prototype.enabled = false; /** - * Creates a new CloudRunConfig instance using the specified properties. + * Creates a new DnsCacheConfig instance using the specified properties. * @function create - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static - * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set - * @returns {google.container.v1.CloudRunConfig} CloudRunConfig instance + * @param {google.container.v1.IDnsCacheConfig=} [properties] Properties to set + * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig instance */ - CloudRunConfig.create = function create(properties) { - return new CloudRunConfig(properties); + DnsCacheConfig.create = function create(properties) { + return new DnsCacheConfig(properties); }; /** - * Encodes the specified CloudRunConfig message. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages. + * Encodes the specified DnsCacheConfig message. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static - * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode + * @param {google.container.v1.IDnsCacheConfig} message DnsCacheConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CloudRunConfig.encode = function encode(message, writer) { + DnsCacheConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; /** - * Encodes the specified CloudRunConfig message, length delimited. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages. + * Encodes the specified DnsCacheConfig message, length delimited. Does not implicitly {@link google.container.v1.DnsCacheConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static - * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode + * @param {google.container.v1.IDnsCacheConfig} message DnsCacheConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CloudRunConfig.encodeDelimited = function encodeDelimited(message, writer) { + DnsCacheConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CloudRunConfig message from the specified reader or buffer. + * Decodes a DnsCacheConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CloudRunConfig} CloudRunConfig + * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CloudRunConfig.decode = function decode(reader, length) { + DnsCacheConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CloudRunConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DnsCacheConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.disabled = reader.bool(); + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -4375,109 +4605,107 @@ }; /** - * Decodes a CloudRunConfig message from the specified reader or buffer, length delimited. + * Decodes a DnsCacheConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CloudRunConfig} CloudRunConfig + * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CloudRunConfig.decodeDelimited = function decodeDelimited(reader) { + DnsCacheConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CloudRunConfig message. + * Verifies a DnsCacheConfig message. * @function verify - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CloudRunConfig.verify = function verify(message) { + DnsCacheConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; return null; }; /** - * Creates a CloudRunConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DnsCacheConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CloudRunConfig} CloudRunConfig + * @returns {google.container.v1.DnsCacheConfig} DnsCacheConfig */ - CloudRunConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CloudRunConfig) + DnsCacheConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DnsCacheConfig) return object; - var message = new $root.google.container.v1.CloudRunConfig(); - if (object.disabled != null) - message.disabled = Boolean(object.disabled); + var message = new $root.google.container.v1.DnsCacheConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a CloudRunConfig message. Also converts values to other types if specified. + * Creates a plain object from a DnsCacheConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @static - * @param {google.container.v1.CloudRunConfig} message CloudRunConfig + * @param {google.container.v1.DnsCacheConfig} message DnsCacheConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CloudRunConfig.toObject = function toObject(message, options) { + DnsCacheConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.disabled = false; - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; return object; }; /** - * Converts this CloudRunConfig to JSON. + * Converts this DnsCacheConfig to JSON. * @function toJSON - * @memberof google.container.v1.CloudRunConfig + * @memberof google.container.v1.DnsCacheConfig * @instance * @returns {Object.} JSON object */ - CloudRunConfig.prototype.toJSON = function toJSON() { + DnsCacheConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CloudRunConfig; + return DnsCacheConfig; })(); - v1.MasterAuthorizedNetworksConfig = (function() { + v1.PrivateClusterMasterGlobalAccessConfig = (function() { /** - * Properties of a MasterAuthorizedNetworksConfig. + * Properties of a PrivateClusterMasterGlobalAccessConfig. * @memberof google.container.v1 - * @interface IMasterAuthorizedNetworksConfig - * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled - * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks + * @interface IPrivateClusterMasterGlobalAccessConfig + * @property {boolean|null} [enabled] PrivateClusterMasterGlobalAccessConfig enabled */ /** - * Constructs a new MasterAuthorizedNetworksConfig. + * Constructs a new PrivateClusterMasterGlobalAccessConfig. * @memberof google.container.v1 - * @classdesc Represents a MasterAuthorizedNetworksConfig. - * @implements IMasterAuthorizedNetworksConfig + * @classdesc Represents a PrivateClusterMasterGlobalAccessConfig. + * @implements IPrivateClusterMasterGlobalAccessConfig * @constructor - * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set + * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig=} [properties] Properties to set */ - function MasterAuthorizedNetworksConfig(properties) { - this.cidrBlocks = []; + function PrivateClusterMasterGlobalAccessConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4485,92 +4713,76 @@ } /** - * MasterAuthorizedNetworksConfig enabled. + * PrivateClusterMasterGlobalAccessConfig enabled. * @member {boolean} enabled - * @memberof google.container.v1.MasterAuthorizedNetworksConfig - * @instance - */ - MasterAuthorizedNetworksConfig.prototype.enabled = false; - - /** - * MasterAuthorizedNetworksConfig cidrBlocks. - * @member {Array.} cidrBlocks - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @instance */ - MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; + PrivateClusterMasterGlobalAccessConfig.prototype.enabled = false; /** - * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * Creates a new PrivateClusterMasterGlobalAccessConfig instance using the specified properties. * @function create - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static - * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set - * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig instance + * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig=} [properties] Properties to set + * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig instance */ - MasterAuthorizedNetworksConfig.create = function create(properties) { - return new MasterAuthorizedNetworksConfig(properties); + PrivateClusterMasterGlobalAccessConfig.create = function create(properties) { + return new PrivateClusterMasterGlobalAccessConfig(properties); }; /** - * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * Encodes the specified PrivateClusterMasterGlobalAccessConfig message. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static - * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig} message PrivateClusterMasterGlobalAccessConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { + PrivateClusterMasterGlobalAccessConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.cidrBlocks != null && message.cidrBlocks.length) - for (var i = 0; i < message.cidrBlocks.length; ++i) - $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.encode(message.cidrBlocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * Encodes the specified PrivateClusterMasterGlobalAccessConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static - * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {google.container.v1.IPrivateClusterMasterGlobalAccessConfig} message PrivateClusterMasterGlobalAccessConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) { + PrivateClusterMasterGlobalAccessConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterAuthorizedNetworksConfig.decode = function decode(reader, length) { + PrivateClusterMasterGlobalAccessConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MasterAuthorizedNetworksConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.enabled = reader.bool(); break; - case 2: - if (!(message.cidrBlocks && message.cidrBlocks.length)) - message.cidrBlocks = []; - message.cidrBlocks.push($root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -4580,343 +4792,113 @@ }; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * Decodes a PrivateClusterMasterGlobalAccessConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) { + PrivateClusterMasterGlobalAccessConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MasterAuthorizedNetworksConfig message. + * Verifies a PrivateClusterMasterGlobalAccessConfig message. * @function verify - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterAuthorizedNetworksConfig.verify = function verify(message) { + PrivateClusterMasterGlobalAccessConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.enabled != null && message.hasOwnProperty("enabled")) if (typeof message.enabled !== "boolean") return "enabled: boolean expected"; - if (message.cidrBlocks != null && message.hasOwnProperty("cidrBlocks")) { - if (!Array.isArray(message.cidrBlocks)) - return "cidrBlocks: array expected"; - for (var i = 0; i < message.cidrBlocks.length; ++i) { - var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify(message.cidrBlocks[i]); - if (error) - return "cidrBlocks." + error; - } - } return null; }; /** - * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateClusterMasterGlobalAccessConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @returns {google.container.v1.PrivateClusterMasterGlobalAccessConfig} PrivateClusterMasterGlobalAccessConfig */ - MasterAuthorizedNetworksConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig) + PrivateClusterMasterGlobalAccessConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig) return object; - var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig(); + var message = new $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); if (object.enabled != null) message.enabled = Boolean(object.enabled); - if (object.cidrBlocks) { - if (!Array.isArray(object.cidrBlocks)) - throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: array expected"); - message.cidrBlocks = []; - for (var i = 0; i < object.cidrBlocks.length; ++i) { - if (typeof object.cidrBlocks[i] !== "object") - throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: object expected"); - message.cidrBlocks[i] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.fromObject(object.cidrBlocks[i]); - } - } return message; }; /** - * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. + * Creates a plain object from a PrivateClusterMasterGlobalAccessConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @static - * @param {google.container.v1.MasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig + * @param {google.container.v1.PrivateClusterMasterGlobalAccessConfig} message PrivateClusterMasterGlobalAccessConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterAuthorizedNetworksConfig.toObject = function toObject(message, options) { + PrivateClusterMasterGlobalAccessConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.cidrBlocks = []; if (options.defaults) object.enabled = false; if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; - if (message.cidrBlocks && message.cidrBlocks.length) { - object.cidrBlocks = []; - for (var j = 0; j < message.cidrBlocks.length; ++j) - object.cidrBlocks[j] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.toObject(message.cidrBlocks[j], options); - } return object; }; /** - * Converts this MasterAuthorizedNetworksConfig to JSON. + * Converts this PrivateClusterMasterGlobalAccessConfig to JSON. * @function toJSON - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig * @instance * @returns {Object.} JSON object */ - MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() { + PrivateClusterMasterGlobalAccessConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - MasterAuthorizedNetworksConfig.CidrBlock = (function() { - - /** - * Properties of a CidrBlock. - * @memberof google.container.v1.MasterAuthorizedNetworksConfig - * @interface ICidrBlock - * @property {string|null} [displayName] CidrBlock displayName - * @property {string|null} [cidrBlock] CidrBlock cidrBlock - */ - - /** - * Constructs a new CidrBlock. - * @memberof google.container.v1.MasterAuthorizedNetworksConfig - * @classdesc Represents a CidrBlock. - * @implements ICidrBlock - * @constructor - * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set - */ - function CidrBlock(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]]; - } - - /** - * CidrBlock displayName. - * @member {string} displayName - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @instance - */ - CidrBlock.prototype.displayName = ""; - - /** - * CidrBlock cidrBlock. - * @member {string} cidrBlock - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @instance - */ - CidrBlock.prototype.cidrBlock = ""; - - /** - * Creates a new CidrBlock instance using the specified properties. - * @function create - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set - * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock instance - */ - CidrBlock.create = function create(properties) { - return new CidrBlock(properties); - }; - - /** - * Encodes the specified CidrBlock message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. - * @function encode - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CidrBlock.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); - return writer; - }; - - /** - * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. - * @function encodeDelimited - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CidrBlock.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CidrBlock message from the specified reader or buffer. - * @function decode - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CidrBlock.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.displayName = reader.string(); - break; - case 2: - message.cidrBlock = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CidrBlock message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CidrBlock.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CidrBlock message. - * @function verify - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CidrBlock.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) - if (!$util.isString(message.cidrBlock)) - return "cidrBlock: string expected"; - return null; - }; - - /** - * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock - */ - CidrBlock.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - return object; - var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.cidrBlock != null) - message.cidrBlock = String(object.cidrBlock); - return message; - }; - - /** - * Creates a plain object from a CidrBlock message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @static - * @param {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} message CidrBlock - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CidrBlock.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.cidrBlock = ""; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) - object.cidrBlock = message.cidrBlock; - return object; - }; - - /** - * Converts this CidrBlock to JSON. - * @function toJSON - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @instance - * @returns {Object.} JSON object - */ - CidrBlock.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CidrBlock; - })(); - - return MasterAuthorizedNetworksConfig; + return PrivateClusterMasterGlobalAccessConfig; })(); - v1.LegacyAbac = (function() { + v1.PrivateClusterConfig = (function() { /** - * Properties of a LegacyAbac. + * Properties of a PrivateClusterConfig. * @memberof google.container.v1 - * @interface ILegacyAbac - * @property {boolean|null} [enabled] LegacyAbac enabled + * @interface IPrivateClusterConfig + * @property {boolean|null} [enablePrivateNodes] PrivateClusterConfig enablePrivateNodes + * @property {boolean|null} [enablePrivateEndpoint] PrivateClusterConfig enablePrivateEndpoint + * @property {string|null} [masterIpv4CidrBlock] PrivateClusterConfig masterIpv4CidrBlock + * @property {string|null} [privateEndpoint] PrivateClusterConfig privateEndpoint + * @property {string|null} [publicEndpoint] PrivateClusterConfig publicEndpoint + * @property {string|null} [peeringName] PrivateClusterConfig peeringName + * @property {google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null} [masterGlobalAccessConfig] PrivateClusterConfig masterGlobalAccessConfig */ /** - * Constructs a new LegacyAbac. + * Constructs a new PrivateClusterConfig. * @memberof google.container.v1 - * @classdesc Represents a LegacyAbac. - * @implements ILegacyAbac + * @classdesc Represents a PrivateClusterConfig. + * @implements IPrivateClusterConfig * @constructor - * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set + * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set */ - function LegacyAbac(properties) { + function PrivateClusterConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4924,75 +4906,153 @@ } /** - * LegacyAbac enabled. - * @member {boolean} enabled - * @memberof google.container.v1.LegacyAbac + * PrivateClusterConfig enablePrivateNodes. + * @member {boolean} enablePrivateNodes + * @memberof google.container.v1.PrivateClusterConfig * @instance */ - LegacyAbac.prototype.enabled = false; + PrivateClusterConfig.prototype.enablePrivateNodes = false; /** - * Creates a new LegacyAbac instance using the specified properties. + * PrivateClusterConfig enablePrivateEndpoint. + * @member {boolean} enablePrivateEndpoint + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.enablePrivateEndpoint = false; + + /** + * PrivateClusterConfig masterIpv4CidrBlock. + * @member {string} masterIpv4CidrBlock + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.masterIpv4CidrBlock = ""; + + /** + * PrivateClusterConfig privateEndpoint. + * @member {string} privateEndpoint + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.privateEndpoint = ""; + + /** + * PrivateClusterConfig publicEndpoint. + * @member {string} publicEndpoint + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.publicEndpoint = ""; + + /** + * PrivateClusterConfig peeringName. + * @member {string} peeringName + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.peeringName = ""; + + /** + * PrivateClusterConfig masterGlobalAccessConfig. + * @member {google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null|undefined} masterGlobalAccessConfig + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.masterGlobalAccessConfig = null; + + /** + * Creates a new PrivateClusterConfig instance using the specified properties. * @function create - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static - * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set - * @returns {google.container.v1.LegacyAbac} LegacyAbac instance + * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set + * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig instance */ - LegacyAbac.create = function create(properties) { - return new LegacyAbac(properties); + PrivateClusterConfig.create = function create(properties) { + return new PrivateClusterConfig(properties); }; /** - * Encodes the specified LegacyAbac message. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages. + * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static - * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode + * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LegacyAbac.encode = function encode(message, writer) { + PrivateClusterConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); + if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); + if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); + if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); + if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); + if (message.peeringName != null && Object.hasOwnProperty.call(message, "peeringName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.peeringName); + if (message.masterGlobalAccessConfig != null && Object.hasOwnProperty.call(message, "masterGlobalAccessConfig")) + $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.encode(message.masterGlobalAccessConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified LegacyAbac message, length delimited. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages. + * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static - * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode + * @param {google.container.v1.IPrivateClusterConfig} message PrivateClusterConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LegacyAbac.encodeDelimited = function encodeDelimited(message, writer) { + PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LegacyAbac message from the specified reader or buffer. + * Decodes a PrivateClusterConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.LegacyAbac} LegacyAbac + * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LegacyAbac.decode = function decode(reader, length) { + PrivateClusterConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.LegacyAbac(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.PrivateClusterConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enabled = reader.bool(); + message.enablePrivateNodes = reader.bool(); + break; + case 2: + message.enablePrivateEndpoint = reader.bool(); + break; + case 3: + message.masterIpv4CidrBlock = reader.string(); + break; + case 4: + message.privateEndpoint = reader.string(); + break; + case 5: + message.publicEndpoint = reader.string(); + break; + case 7: + message.peeringName = reader.string(); + break; + case 8: + message.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -5003,108 +5063,162 @@ }; /** - * Decodes a LegacyAbac message from the specified reader or buffer, length delimited. + * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.LegacyAbac} LegacyAbac + * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LegacyAbac.decodeDelimited = function decodeDelimited(reader) { + PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LegacyAbac message. + * Verifies a PrivateClusterConfig message. * @function verify - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LegacyAbac.verify = function verify(message) { + PrivateClusterConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; + if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) + if (typeof message.enablePrivateNodes !== "boolean") + return "enablePrivateNodes: boolean expected"; + if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + if (typeof message.enablePrivateEndpoint !== "boolean") + return "enablePrivateEndpoint: boolean expected"; + if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + if (!$util.isString(message.masterIpv4CidrBlock)) + return "masterIpv4CidrBlock: string expected"; + if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + if (!$util.isString(message.privateEndpoint)) + return "privateEndpoint: string expected"; + if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + if (!$util.isString(message.publicEndpoint)) + return "publicEndpoint: string expected"; + if (message.peeringName != null && message.hasOwnProperty("peeringName")) + if (!$util.isString(message.peeringName)) + return "peeringName: string expected"; + if (message.masterGlobalAccessConfig != null && message.hasOwnProperty("masterGlobalAccessConfig")) { + var error = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.verify(message.masterGlobalAccessConfig); + if (error) + return "masterGlobalAccessConfig." + error; + } return null; }; /** - * Creates a LegacyAbac message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.LegacyAbac} LegacyAbac + * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig */ - LegacyAbac.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.LegacyAbac) + PrivateClusterConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.PrivateClusterConfig) return object; - var message = new $root.google.container.v1.LegacyAbac(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); + var message = new $root.google.container.v1.PrivateClusterConfig(); + if (object.enablePrivateNodes != null) + message.enablePrivateNodes = Boolean(object.enablePrivateNodes); + if (object.enablePrivateEndpoint != null) + message.enablePrivateEndpoint = Boolean(object.enablePrivateEndpoint); + if (object.masterIpv4CidrBlock != null) + message.masterIpv4CidrBlock = String(object.masterIpv4CidrBlock); + if (object.privateEndpoint != null) + message.privateEndpoint = String(object.privateEndpoint); + if (object.publicEndpoint != null) + message.publicEndpoint = String(object.publicEndpoint); + if (object.peeringName != null) + message.peeringName = String(object.peeringName); + if (object.masterGlobalAccessConfig != null) { + if (typeof object.masterGlobalAccessConfig !== "object") + throw TypeError(".google.container.v1.PrivateClusterConfig.masterGlobalAccessConfig: object expected"); + message.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.fromObject(object.masterGlobalAccessConfig); + } return message; }; /** - * Creates a plain object from a LegacyAbac message. Also converts values to other types if specified. + * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @static - * @param {google.container.v1.LegacyAbac} message LegacyAbac + * @param {google.container.v1.PrivateClusterConfig} message PrivateClusterConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LegacyAbac.toObject = function toObject(message, options) { + PrivateClusterConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.enabled = false; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; + if (options.defaults) { + object.enablePrivateNodes = false; + object.enablePrivateEndpoint = false; + object.masterIpv4CidrBlock = ""; + object.privateEndpoint = ""; + object.publicEndpoint = ""; + object.peeringName = ""; + object.masterGlobalAccessConfig = null; + } + if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) + object.enablePrivateNodes = message.enablePrivateNodes; + if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + object.enablePrivateEndpoint = message.enablePrivateEndpoint; + if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + object.masterIpv4CidrBlock = message.masterIpv4CidrBlock; + if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + object.privateEndpoint = message.privateEndpoint; + if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + object.publicEndpoint = message.publicEndpoint; + if (message.peeringName != null && message.hasOwnProperty("peeringName")) + object.peeringName = message.peeringName; + if (message.masterGlobalAccessConfig != null && message.hasOwnProperty("masterGlobalAccessConfig")) + object.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.toObject(message.masterGlobalAccessConfig, options); return object; }; /** - * Converts this LegacyAbac to JSON. + * Converts this PrivateClusterConfig to JSON. * @function toJSON - * @memberof google.container.v1.LegacyAbac + * @memberof google.container.v1.PrivateClusterConfig * @instance * @returns {Object.} JSON object */ - LegacyAbac.prototype.toJSON = function toJSON() { + PrivateClusterConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LegacyAbac; + return PrivateClusterConfig; })(); - v1.NetworkPolicy = (function() { + v1.AuthenticatorGroupsConfig = (function() { /** - * Properties of a NetworkPolicy. + * Properties of an AuthenticatorGroupsConfig. * @memberof google.container.v1 - * @interface INetworkPolicy - * @property {google.container.v1.NetworkPolicy.Provider|null} [provider] NetworkPolicy provider - * @property {boolean|null} [enabled] NetworkPolicy enabled + * @interface IAuthenticatorGroupsConfig + * @property {boolean|null} [enabled] AuthenticatorGroupsConfig enabled + * @property {string|null} [securityGroup] AuthenticatorGroupsConfig securityGroup */ /** - * Constructs a new NetworkPolicy. + * Constructs a new AuthenticatorGroupsConfig. * @memberof google.container.v1 - * @classdesc Represents a NetworkPolicy. - * @implements INetworkPolicy + * @classdesc Represents an AuthenticatorGroupsConfig. + * @implements IAuthenticatorGroupsConfig * @constructor - * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set + * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set */ - function NetworkPolicy(properties) { + function AuthenticatorGroupsConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5112,88 +5226,88 @@ } /** - * NetworkPolicy provider. - * @member {google.container.v1.NetworkPolicy.Provider} provider - * @memberof google.container.v1.NetworkPolicy + * AuthenticatorGroupsConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.AuthenticatorGroupsConfig * @instance */ - NetworkPolicy.prototype.provider = 0; + AuthenticatorGroupsConfig.prototype.enabled = false; /** - * NetworkPolicy enabled. - * @member {boolean} enabled - * @memberof google.container.v1.NetworkPolicy + * AuthenticatorGroupsConfig securityGroup. + * @member {string} securityGroup + * @memberof google.container.v1.AuthenticatorGroupsConfig * @instance */ - NetworkPolicy.prototype.enabled = false; + AuthenticatorGroupsConfig.prototype.securityGroup = ""; /** - * Creates a new NetworkPolicy instance using the specified properties. + * Creates a new AuthenticatorGroupsConfig instance using the specified properties. * @function create - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static - * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set - * @returns {google.container.v1.NetworkPolicy} NetworkPolicy instance + * @param {google.container.v1.IAuthenticatorGroupsConfig=} [properties] Properties to set + * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig instance */ - NetworkPolicy.create = function create(properties) { - return new NetworkPolicy(properties); + AuthenticatorGroupsConfig.create = function create(properties) { + return new AuthenticatorGroupsConfig(properties); }; /** - * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. + * Encodes the specified AuthenticatorGroupsConfig message. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static - * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.encode = function encode(message, writer) { + AuthenticatorGroupsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.provider != null && Object.hasOwnProperty.call(message, "provider")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.securityGroup != null && Object.hasOwnProperty.call(message, "securityGroup")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.securityGroup); return writer; }; /** - * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. + * Encodes the specified AuthenticatorGroupsConfig message, length delimited. Does not implicitly {@link google.container.v1.AuthenticatorGroupsConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static - * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode + * @param {google.container.v1.IAuthenticatorGroupsConfig} message AuthenticatorGroupsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { + AuthenticatorGroupsConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkPolicy message from the specified reader or buffer. + * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NetworkPolicy} NetworkPolicy + * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicy.decode = function decode(reader, length) { + AuthenticatorGroupsConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AuthenticatorGroupsConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.provider = reader.int32(); + message.enabled = reader.bool(); break; case 2: - message.enabled = reader.bool(); + message.securityGroup = reader.string(); break; default: reader.skipType(tag & 7); @@ -5204,143 +5318,117 @@ }; /** - * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NetworkPolicy} NetworkPolicy + * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { + AuthenticatorGroupsConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkPolicy message. + * Verifies an AuthenticatorGroupsConfig message. * @function verify - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkPolicy.verify = function verify(message) { + AuthenticatorGroupsConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.provider != null && message.hasOwnProperty("provider")) - switch (message.provider) { - default: - return "provider: enum value expected"; - case 0: - case 1: - break; - } if (message.enabled != null && message.hasOwnProperty("enabled")) if (typeof message.enabled !== "boolean") return "enabled: boolean expected"; + if (message.securityGroup != null && message.hasOwnProperty("securityGroup")) + if (!$util.isString(message.securityGroup)) + return "securityGroup: string expected"; return null; }; /** - * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * Creates an AuthenticatorGroupsConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NetworkPolicy} NetworkPolicy + * @returns {google.container.v1.AuthenticatorGroupsConfig} AuthenticatorGroupsConfig */ - NetworkPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NetworkPolicy) + AuthenticatorGroupsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AuthenticatorGroupsConfig) return object; - var message = new $root.google.container.v1.NetworkPolicy(); - switch (object.provider) { - case "PROVIDER_UNSPECIFIED": - case 0: - message.provider = 0; - break; - case "CALICO": - case 1: - message.provider = 1; - break; - } + var message = new $root.google.container.v1.AuthenticatorGroupsConfig(); if (object.enabled != null) message.enabled = Boolean(object.enabled); + if (object.securityGroup != null) + message.securityGroup = String(object.securityGroup); return message; }; /** - * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * Creates a plain object from an AuthenticatorGroupsConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @static - * @param {google.container.v1.NetworkPolicy} message NetworkPolicy + * @param {google.container.v1.AuthenticatorGroupsConfig} message AuthenticatorGroupsConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkPolicy.toObject = function toObject(message, options) { + AuthenticatorGroupsConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.provider = options.enums === String ? "PROVIDER_UNSPECIFIED" : 0; object.enabled = false; + object.securityGroup = ""; } - if (message.provider != null && message.hasOwnProperty("provider")) - object.provider = options.enums === String ? $root.google.container.v1.NetworkPolicy.Provider[message.provider] : message.provider; if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; + if (message.securityGroup != null && message.hasOwnProperty("securityGroup")) + object.securityGroup = message.securityGroup; return object; }; /** - * Converts this NetworkPolicy to JSON. + * Converts this AuthenticatorGroupsConfig to JSON. * @function toJSON - * @memberof google.container.v1.NetworkPolicy + * @memberof google.container.v1.AuthenticatorGroupsConfig * @instance * @returns {Object.} JSON object */ - NetworkPolicy.prototype.toJSON = function toJSON() { + AuthenticatorGroupsConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Provider enum. - * @name google.container.v1.NetworkPolicy.Provider - * @enum {number} - * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value - * @property {number} CALICO=1 CALICO value - */ - NetworkPolicy.Provider = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PROVIDER_UNSPECIFIED"] = 0; - values[valuesById[1] = "CALICO"] = 1; - return values; - })(); - - return NetworkPolicy; + return AuthenticatorGroupsConfig; })(); - v1.BinaryAuthorization = (function() { + v1.CloudRunConfig = (function() { /** - * Properties of a BinaryAuthorization. + * Properties of a CloudRunConfig. * @memberof google.container.v1 - * @interface IBinaryAuthorization - * @property {boolean|null} [enabled] BinaryAuthorization enabled + * @interface ICloudRunConfig + * @property {boolean|null} [disabled] CloudRunConfig disabled + * @property {google.container.v1.CloudRunConfig.LoadBalancerType|null} [loadBalancerType] CloudRunConfig loadBalancerType */ /** - * Constructs a new BinaryAuthorization. + * Constructs a new CloudRunConfig. * @memberof google.container.v1 - * @classdesc Represents a BinaryAuthorization. - * @implements IBinaryAuthorization + * @classdesc Represents a CloudRunConfig. + * @implements ICloudRunConfig * @constructor - * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set + * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set */ - function BinaryAuthorization(properties) { + function CloudRunConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5348,75 +5436,88 @@ } /** - * BinaryAuthorization enabled. - * @member {boolean} enabled - * @memberof google.container.v1.BinaryAuthorization + * CloudRunConfig disabled. + * @member {boolean} disabled + * @memberof google.container.v1.CloudRunConfig * @instance */ - BinaryAuthorization.prototype.enabled = false; + CloudRunConfig.prototype.disabled = false; /** - * Creates a new BinaryAuthorization instance using the specified properties. + * CloudRunConfig loadBalancerType. + * @member {google.container.v1.CloudRunConfig.LoadBalancerType} loadBalancerType + * @memberof google.container.v1.CloudRunConfig + * @instance + */ + CloudRunConfig.prototype.loadBalancerType = 0; + + /** + * Creates a new CloudRunConfig instance using the specified properties. * @function create - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set - * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization instance + * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set + * @returns {google.container.v1.CloudRunConfig} CloudRunConfig instance */ - BinaryAuthorization.create = function create(properties) { - return new BinaryAuthorization(properties); + CloudRunConfig.create = function create(properties) { + return new CloudRunConfig(properties); }; /** - * Encodes the specified BinaryAuthorization message. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages. + * Encodes the specified CloudRunConfig message. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode + * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BinaryAuthorization.encode = function encode(message, writer) { + CloudRunConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + if (message.loadBalancerType != null && Object.hasOwnProperty.call(message, "loadBalancerType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.loadBalancerType); return writer; }; /** - * Encodes the specified BinaryAuthorization message, length delimited. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages. + * Encodes the specified CloudRunConfig message, length delimited. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode + * @param {google.container.v1.ICloudRunConfig} message CloudRunConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BinaryAuthorization.encodeDelimited = function encodeDelimited(message, writer) { + CloudRunConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BinaryAuthorization message from the specified reader or buffer. + * Decodes a CloudRunConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization + * @returns {google.container.v1.CloudRunConfig} CloudRunConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BinaryAuthorization.decode = function decode(reader, length) { + CloudRunConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.BinaryAuthorization(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CloudRunConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enabled = reader.bool(); + message.disabled = reader.bool(); + break; + case 3: + message.loadBalancerType = reader.int32(); break; default: reader.skipType(tag & 7); @@ -5427,118 +5528,150 @@ }; /** - * Decodes a BinaryAuthorization message from the specified reader or buffer, length delimited. + * Decodes a CloudRunConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization + * @returns {google.container.v1.CloudRunConfig} CloudRunConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BinaryAuthorization.decodeDelimited = function decodeDelimited(reader) { + CloudRunConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BinaryAuthorization message. + * Verifies a CloudRunConfig message. * @function verify - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BinaryAuthorization.verify = function verify(message) { + CloudRunConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; + if (message.loadBalancerType != null && message.hasOwnProperty("loadBalancerType")) + switch (message.loadBalancerType) { + default: + return "loadBalancerType: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a BinaryAuthorization message from a plain object. Also converts values to their respective internal types. + * Creates a CloudRunConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization + * @returns {google.container.v1.CloudRunConfig} CloudRunConfig */ - BinaryAuthorization.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.BinaryAuthorization) + CloudRunConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CloudRunConfig) return object; - var message = new $root.google.container.v1.BinaryAuthorization(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); + var message = new $root.google.container.v1.CloudRunConfig(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + switch (object.loadBalancerType) { + case "LOAD_BALANCER_TYPE_UNSPECIFIED": + case 0: + message.loadBalancerType = 0; + break; + case "LOAD_BALANCER_TYPE_EXTERNAL": + case 1: + message.loadBalancerType = 1; + break; + case "LOAD_BALANCER_TYPE_INTERNAL": + case 2: + message.loadBalancerType = 2; + break; + } return message; }; /** - * Creates a plain object from a BinaryAuthorization message. Also converts values to other types if specified. + * Creates a plain object from a CloudRunConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.BinaryAuthorization} message BinaryAuthorization + * @param {google.container.v1.CloudRunConfig} message CloudRunConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BinaryAuthorization.toObject = function toObject(message, options) { + CloudRunConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.enabled = false; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; + if (options.defaults) { + object.disabled = false; + object.loadBalancerType = options.enums === String ? "LOAD_BALANCER_TYPE_UNSPECIFIED" : 0; + } + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.loadBalancerType != null && message.hasOwnProperty("loadBalancerType")) + object.loadBalancerType = options.enums === String ? $root.google.container.v1.CloudRunConfig.LoadBalancerType[message.loadBalancerType] : message.loadBalancerType; return object; }; /** - * Converts this BinaryAuthorization to JSON. + * Converts this CloudRunConfig to JSON. * @function toJSON - * @memberof google.container.v1.BinaryAuthorization + * @memberof google.container.v1.CloudRunConfig * @instance * @returns {Object.} JSON object */ - BinaryAuthorization.prototype.toJSON = function toJSON() { + CloudRunConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BinaryAuthorization; + /** + * LoadBalancerType enum. + * @name google.container.v1.CloudRunConfig.LoadBalancerType + * @enum {number} + * @property {number} LOAD_BALANCER_TYPE_UNSPECIFIED=0 LOAD_BALANCER_TYPE_UNSPECIFIED value + * @property {number} LOAD_BALANCER_TYPE_EXTERNAL=1 LOAD_BALANCER_TYPE_EXTERNAL value + * @property {number} LOAD_BALANCER_TYPE_INTERNAL=2 LOAD_BALANCER_TYPE_INTERNAL value + */ + CloudRunConfig.LoadBalancerType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOAD_BALANCER_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LOAD_BALANCER_TYPE_EXTERNAL"] = 1; + values[valuesById[2] = "LOAD_BALANCER_TYPE_INTERNAL"] = 2; + return values; + })(); + + return CloudRunConfig; })(); - v1.IPAllocationPolicy = (function() { + v1.ConfigConnectorConfig = (function() { /** - * Properties of a IPAllocationPolicy. + * Properties of a ConfigConnectorConfig. * @memberof google.container.v1 - * @interface IIPAllocationPolicy - * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases - * @property {boolean|null} [createSubnetwork] IPAllocationPolicy createSubnetwork - * @property {string|null} [subnetworkName] IPAllocationPolicy subnetworkName - * @property {string|null} [clusterIpv4Cidr] IPAllocationPolicy clusterIpv4Cidr - * @property {string|null} [nodeIpv4Cidr] IPAllocationPolicy nodeIpv4Cidr - * @property {string|null} [servicesIpv4Cidr] IPAllocationPolicy servicesIpv4Cidr - * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName - * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName - * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock - * @property {string|null} [nodeIpv4CidrBlock] IPAllocationPolicy nodeIpv4CidrBlock - * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock - * @property {string|null} [tpuIpv4CidrBlock] IPAllocationPolicy tpuIpv4CidrBlock + * @interface IConfigConnectorConfig + * @property {boolean|null} [enabled] ConfigConnectorConfig enabled */ /** - * Constructs a new IPAllocationPolicy. + * Constructs a new ConfigConnectorConfig. * @memberof google.container.v1 - * @classdesc Represents a IPAllocationPolicy. - * @implements IIPAllocationPolicy + * @classdesc Represents a ConfigConnectorConfig. + * @implements IConfigConnectorConfig * @constructor - * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set + * @param {google.container.v1.IConfigConnectorConfig=} [properties] Properties to set */ - function IPAllocationPolicy(properties) { + function ConfigConnectorConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5546,218 +5679,75 @@ } /** - * IPAllocationPolicy useIpAliases. - * @member {boolean} useIpAliases - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.useIpAliases = false; - - /** - * IPAllocationPolicy createSubnetwork. - * @member {boolean} createSubnetwork - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.createSubnetwork = false; - - /** - * IPAllocationPolicy subnetworkName. - * @member {string} subnetworkName - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.subnetworkName = ""; - - /** - * IPAllocationPolicy clusterIpv4Cidr. - * @member {string} clusterIpv4Cidr - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.clusterIpv4Cidr = ""; - - /** - * IPAllocationPolicy nodeIpv4Cidr. - * @member {string} nodeIpv4Cidr - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.nodeIpv4Cidr = ""; - - /** - * IPAllocationPolicy servicesIpv4Cidr. - * @member {string} servicesIpv4Cidr - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.servicesIpv4Cidr = ""; - - /** - * IPAllocationPolicy clusterSecondaryRangeName. - * @member {string} clusterSecondaryRangeName - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.clusterSecondaryRangeName = ""; - - /** - * IPAllocationPolicy servicesSecondaryRangeName. - * @member {string} servicesSecondaryRangeName - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.servicesSecondaryRangeName = ""; - - /** - * IPAllocationPolicy clusterIpv4CidrBlock. - * @member {string} clusterIpv4CidrBlock - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.clusterIpv4CidrBlock = ""; - - /** - * IPAllocationPolicy nodeIpv4CidrBlock. - * @member {string} nodeIpv4CidrBlock - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.nodeIpv4CidrBlock = ""; - - /** - * IPAllocationPolicy servicesIpv4CidrBlock. - * @member {string} servicesIpv4CidrBlock - * @memberof google.container.v1.IPAllocationPolicy - * @instance - */ - IPAllocationPolicy.prototype.servicesIpv4CidrBlock = ""; - - /** - * IPAllocationPolicy tpuIpv4CidrBlock. - * @member {string} tpuIpv4CidrBlock - * @memberof google.container.v1.IPAllocationPolicy + * ConfigConnectorConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ConfigConnectorConfig * @instance */ - IPAllocationPolicy.prototype.tpuIpv4CidrBlock = ""; + ConfigConnectorConfig.prototype.enabled = false; /** - * Creates a new IPAllocationPolicy instance using the specified properties. + * Creates a new ConfigConnectorConfig instance using the specified properties. * @function create - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static - * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set - * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy instance + * @param {google.container.v1.IConfigConnectorConfig=} [properties] Properties to set + * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig instance */ - IPAllocationPolicy.create = function create(properties) { - return new IPAllocationPolicy(properties); + ConfigConnectorConfig.create = function create(properties) { + return new ConfigConnectorConfig(properties); }; /** - * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages. + * Encodes the specified ConfigConnectorConfig message. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static - * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode + * @param {google.container.v1.IConfigConnectorConfig} message ConfigConnectorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IPAllocationPolicy.encode = function encode(message, writer) { + ConfigConnectorConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); - if (message.createSubnetwork != null && Object.hasOwnProperty.call(message, "createSubnetwork")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); - if (message.subnetworkName != null && Object.hasOwnProperty.call(message, "subnetworkName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); - if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); - if (message.nodeIpv4Cidr != null && Object.hasOwnProperty.call(message, "nodeIpv4Cidr")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); - if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); - if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); - if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); - if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); - if (message.nodeIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrBlock")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); - if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); - if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; /** - * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages. + * Encodes the specified ConfigConnectorConfig message, length delimited. Does not implicitly {@link google.container.v1.ConfigConnectorConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static - * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode + * @param {google.container.v1.IConfigConnectorConfig} message ConfigConnectorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + ConfigConnectorConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a IPAllocationPolicy message from the specified reader or buffer. + * Decodes a ConfigConnectorConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IPAllocationPolicy.decode = function decode(reader, length) { + ConfigConnectorConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.IPAllocationPolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ConfigConnectorConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.useIpAliases = reader.bool(); - break; - case 2: - message.createSubnetwork = reader.bool(); - break; - case 3: - message.subnetworkName = reader.string(); - break; - case 4: - message.clusterIpv4Cidr = reader.string(); - break; - case 5: - message.nodeIpv4Cidr = reader.string(); - break; - case 6: - message.servicesIpv4Cidr = reader.string(); - break; - case 7: - message.clusterSecondaryRangeName = reader.string(); - break; - case 8: - message.servicesSecondaryRangeName = reader.string(); - break; - case 9: - message.clusterIpv4CidrBlock = reader.string(); - break; - case 10: - message.nodeIpv4CidrBlock = reader.string(); - break; - case 11: - message.servicesIpv4CidrBlock = reader.string(); - break; - case 13: - message.tpuIpv4CidrBlock = reader.string(); + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -5768,248 +5758,109 @@ }; /** - * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited. + * Decodes a ConfigConnectorConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) { + ConfigConnectorConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a IPAllocationPolicy message. + * Verifies a ConfigConnectorConfig message. * @function verify - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IPAllocationPolicy.verify = function verify(message) { + ConfigConnectorConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) - if (typeof message.useIpAliases !== "boolean") - return "useIpAliases: boolean expected"; - if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) - if (typeof message.createSubnetwork !== "boolean") - return "createSubnetwork: boolean expected"; - if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) - if (!$util.isString(message.subnetworkName)) - return "subnetworkName: string expected"; - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) - if (!$util.isString(message.clusterIpv4Cidr)) - return "clusterIpv4Cidr: string expected"; - if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) - if (!$util.isString(message.nodeIpv4Cidr)) - return "nodeIpv4Cidr: string expected"; - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) - if (!$util.isString(message.servicesIpv4Cidr)) - return "servicesIpv4Cidr: string expected"; - if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) - if (!$util.isString(message.clusterSecondaryRangeName)) - return "clusterSecondaryRangeName: string expected"; - if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) - if (!$util.isString(message.servicesSecondaryRangeName)) - return "servicesSecondaryRangeName: string expected"; - if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) - if (!$util.isString(message.clusterIpv4CidrBlock)) - return "clusterIpv4CidrBlock: string expected"; - if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) - if (!$util.isString(message.nodeIpv4CidrBlock)) - return "nodeIpv4CidrBlock: string expected"; - if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) - if (!$util.isString(message.servicesIpv4CidrBlock)) - return "servicesIpv4CidrBlock: string expected"; - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) - if (!$util.isString(message.tpuIpv4CidrBlock)) - return "tpuIpv4CidrBlock: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; return null; }; /** - * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types. + * Creates a ConfigConnectorConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + * @returns {google.container.v1.ConfigConnectorConfig} ConfigConnectorConfig */ - IPAllocationPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.IPAllocationPolicy) + ConfigConnectorConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ConfigConnectorConfig) return object; - var message = new $root.google.container.v1.IPAllocationPolicy(); - if (object.useIpAliases != null) - message.useIpAliases = Boolean(object.useIpAliases); - if (object.createSubnetwork != null) - message.createSubnetwork = Boolean(object.createSubnetwork); - if (object.subnetworkName != null) - message.subnetworkName = String(object.subnetworkName); - if (object.clusterIpv4Cidr != null) - message.clusterIpv4Cidr = String(object.clusterIpv4Cidr); - if (object.nodeIpv4Cidr != null) - message.nodeIpv4Cidr = String(object.nodeIpv4Cidr); - if (object.servicesIpv4Cidr != null) - message.servicesIpv4Cidr = String(object.servicesIpv4Cidr); - if (object.clusterSecondaryRangeName != null) - message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName); - if (object.servicesSecondaryRangeName != null) - message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName); - if (object.clusterIpv4CidrBlock != null) - message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock); - if (object.nodeIpv4CidrBlock != null) - message.nodeIpv4CidrBlock = String(object.nodeIpv4CidrBlock); - if (object.servicesIpv4CidrBlock != null) - message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock); - if (object.tpuIpv4CidrBlock != null) - message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock); + var message = new $root.google.container.v1.ConfigConnectorConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified. + * Creates a plain object from a ConfigConnectorConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @static - * @param {google.container.v1.IPAllocationPolicy} message IPAllocationPolicy + * @param {google.container.v1.ConfigConnectorConfig} message ConfigConnectorConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IPAllocationPolicy.toObject = function toObject(message, options) { + ConfigConnectorConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.useIpAliases = false; - object.createSubnetwork = false; - object.subnetworkName = ""; - object.clusterIpv4Cidr = ""; - object.nodeIpv4Cidr = ""; - object.servicesIpv4Cidr = ""; - object.clusterSecondaryRangeName = ""; - object.servicesSecondaryRangeName = ""; - object.clusterIpv4CidrBlock = ""; - object.nodeIpv4CidrBlock = ""; - object.servicesIpv4CidrBlock = ""; - object.tpuIpv4CidrBlock = ""; - } - if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) - object.useIpAliases = message.useIpAliases; - if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) - object.createSubnetwork = message.createSubnetwork; - if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) - object.subnetworkName = message.subnetworkName; - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) - object.clusterIpv4Cidr = message.clusterIpv4Cidr; - if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) - object.nodeIpv4Cidr = message.nodeIpv4Cidr; - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) - object.servicesIpv4Cidr = message.servicesIpv4Cidr; - if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) - object.clusterSecondaryRangeName = message.clusterSecondaryRangeName; - if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) - object.servicesSecondaryRangeName = message.servicesSecondaryRangeName; - if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) - object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock; - if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) - object.nodeIpv4CidrBlock = message.nodeIpv4CidrBlock; - if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) - object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock; - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) - object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; return object; }; /** - * Converts this IPAllocationPolicy to JSON. + * Converts this ConfigConnectorConfig to JSON. * @function toJSON - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.ConfigConnectorConfig * @instance * @returns {Object.} JSON object */ - IPAllocationPolicy.prototype.toJSON = function toJSON() { + ConfigConnectorConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IPAllocationPolicy; + return ConfigConnectorConfig; })(); - v1.Cluster = (function() { + v1.MasterAuthorizedNetworksConfig = (function() { /** - * Properties of a Cluster. + * Properties of a MasterAuthorizedNetworksConfig. * @memberof google.container.v1 - * @interface ICluster - * @property {string|null} [name] Cluster name - * @property {string|null} [description] Cluster description - * @property {number|null} [initialNodeCount] Cluster initialNodeCount - * @property {google.container.v1.INodeConfig|null} [nodeConfig] Cluster nodeConfig - * @property {google.container.v1.IMasterAuth|null} [masterAuth] Cluster masterAuth - * @property {string|null} [loggingService] Cluster loggingService - * @property {string|null} [monitoringService] Cluster monitoringService - * @property {string|null} [network] Cluster network - * @property {string|null} [clusterIpv4Cidr] Cluster clusterIpv4Cidr - * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] Cluster addonsConfig - * @property {string|null} [subnetwork] Cluster subnetwork - * @property {Array.|null} [nodePools] Cluster nodePools - * @property {Array.|null} [locations] Cluster locations - * @property {boolean|null} [enableKubernetesAlpha] Cluster enableKubernetesAlpha - * @property {Object.|null} [resourceLabels] Cluster resourceLabels - * @property {string|null} [labelFingerprint] Cluster labelFingerprint - * @property {google.container.v1.ILegacyAbac|null} [legacyAbac] Cluster legacyAbac - * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] Cluster networkPolicy - * @property {google.container.v1.IIPAllocationPolicy|null} [ipAllocationPolicy] Cluster ipAllocationPolicy - * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [masterAuthorizedNetworksConfig] Cluster masterAuthorizedNetworksConfig - * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] Cluster maintenancePolicy - * @property {google.container.v1.IBinaryAuthorization|null} [binaryAuthorization] Cluster binaryAuthorization - * @property {google.container.v1.IClusterAutoscaling|null} [autoscaling] Cluster autoscaling - * @property {google.container.v1.INetworkConfig|null} [networkConfig] Cluster networkConfig - * @property {google.container.v1.IMaxPodsConstraint|null} [defaultMaxPodsConstraint] Cluster defaultMaxPodsConstraint - * @property {google.container.v1.IResourceUsageExportConfig|null} [resourceUsageExportConfig] Cluster resourceUsageExportConfig - * @property {google.container.v1.IAuthenticatorGroupsConfig|null} [authenticatorGroupsConfig] Cluster authenticatorGroupsConfig - * @property {google.container.v1.IPrivateClusterConfig|null} [privateClusterConfig] Cluster privateClusterConfig - * @property {google.container.v1.IDatabaseEncryption|null} [databaseEncryption] Cluster databaseEncryption - * @property {google.container.v1.IVerticalPodAutoscaling|null} [verticalPodAutoscaling] Cluster verticalPodAutoscaling - * @property {string|null} [selfLink] Cluster selfLink - * @property {string|null} [zone] Cluster zone - * @property {string|null} [endpoint] Cluster endpoint - * @property {string|null} [initialClusterVersion] Cluster initialClusterVersion - * @property {string|null} [currentMasterVersion] Cluster currentMasterVersion - * @property {string|null} [currentNodeVersion] Cluster currentNodeVersion - * @property {string|null} [createTime] Cluster createTime - * @property {google.container.v1.Cluster.Status|null} [status] Cluster status - * @property {string|null} [statusMessage] Cluster statusMessage - * @property {number|null} [nodeIpv4CidrSize] Cluster nodeIpv4CidrSize - * @property {string|null} [servicesIpv4Cidr] Cluster servicesIpv4Cidr - * @property {Array.|null} [instanceGroupUrls] Cluster instanceGroupUrls - * @property {number|null} [currentNodeCount] Cluster currentNodeCount - * @property {string|null} [expireTime] Cluster expireTime - * @property {string|null} [location] Cluster location - * @property {boolean|null} [enableTpu] Cluster enableTpu - * @property {string|null} [tpuIpv4CidrBlock] Cluster tpuIpv4CidrBlock - * @property {Array.|null} [conditions] Cluster conditions + * @interface IMasterAuthorizedNetworksConfig + * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled + * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks */ /** - * Constructs a new Cluster. + * Constructs a new MasterAuthorizedNetworksConfig. * @memberof google.container.v1 - * @classdesc Represents a Cluster. - * @implements ICluster + * @classdesc Represents a MasterAuthorizedNetworksConfig. + * @implements IMasterAuthorizedNetworksConfig * @constructor - * @param {google.container.v1.ICluster=} [properties] Properties to set + * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set */ - function Cluster(properties) { - this.nodePools = []; - this.locations = []; - this.resourceLabels = {}; - this.instanceGroupUrls = []; - this.conditions = []; + function MasterAuthorizedNetworksConfig(properties) { + this.cidrBlocks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6017,718 +5868,938 @@ } /** - * Cluster name. - * @member {string} name - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.name = ""; - - /** - * Cluster description. - * @member {string} description - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.description = ""; - - /** - * Cluster initialNodeCount. - * @member {number} initialNodeCount - * @memberof google.container.v1.Cluster + * MasterAuthorizedNetworksConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.MasterAuthorizedNetworksConfig * @instance */ - Cluster.prototype.initialNodeCount = 0; + MasterAuthorizedNetworksConfig.prototype.enabled = false; /** - * Cluster nodeConfig. - * @member {google.container.v1.INodeConfig|null|undefined} nodeConfig - * @memberof google.container.v1.Cluster + * MasterAuthorizedNetworksConfig cidrBlocks. + * @member {Array.} cidrBlocks + * @memberof google.container.v1.MasterAuthorizedNetworksConfig * @instance */ - Cluster.prototype.nodeConfig = null; + MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; /** - * Cluster masterAuth. - * @member {google.container.v1.IMasterAuth|null|undefined} masterAuth - * @memberof google.container.v1.Cluster - * @instance + * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set + * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig instance */ - Cluster.prototype.masterAuth = null; + MasterAuthorizedNetworksConfig.create = function create(properties) { + return new MasterAuthorizedNetworksConfig(properties); + }; /** - * Cluster loggingService. - * @member {string} loggingService - * @memberof google.container.v1.Cluster - * @instance + * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Cluster.prototype.loggingService = ""; + MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.cidrBlocks != null && message.cidrBlocks.length) + for (var i = 0; i < message.cidrBlocks.length; ++i) + $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.encode(message.cidrBlocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Cluster monitoringService. - * @member {string} monitoringService - * @memberof google.container.v1.Cluster - * @instance + * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Cluster.prototype.monitoringService = ""; + MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Cluster network. - * @member {string} network - * @memberof google.container.v1.Cluster - * @instance + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.prototype.network = ""; + MasterAuthorizedNetworksConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MasterAuthorizedNetworksConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + case 2: + if (!(message.cidrBlocks && message.cidrBlocks.length)) + message.cidrBlocks = []; + message.cidrBlocks.push($root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Cluster clusterIpv4Cidr. - * @member {string} clusterIpv4Cidr - * @memberof google.container.v1.Cluster - * @instance + * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.prototype.clusterIpv4Cidr = ""; + MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Cluster addonsConfig. - * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig - * @memberof google.container.v1.Cluster - * @instance + * Verifies a MasterAuthorizedNetworksConfig message. + * @function verify + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Cluster.prototype.addonsConfig = null; + MasterAuthorizedNetworksConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.cidrBlocks != null && message.hasOwnProperty("cidrBlocks")) { + if (!Array.isArray(message.cidrBlocks)) + return "cidrBlocks: array expected"; + for (var i = 0; i < message.cidrBlocks.length; ++i) { + var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify(message.cidrBlocks[i]); + if (error) + return "cidrBlocks." + error; + } + } + return null; + }; /** - * Cluster subnetwork. - * @member {string} subnetwork - * @memberof google.container.v1.Cluster - * @instance + * Creates a MasterAuthorizedNetworksConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig */ - Cluster.prototype.subnetwork = ""; + MasterAuthorizedNetworksConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig) + return object; + var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.cidrBlocks) { + if (!Array.isArray(object.cidrBlocks)) + throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: array expected"); + message.cidrBlocks = []; + for (var i = 0; i < object.cidrBlocks.length; ++i) { + if (typeof object.cidrBlocks[i] !== "object") + throw TypeError(".google.container.v1.MasterAuthorizedNetworksConfig.cidrBlocks: object expected"); + message.cidrBlocks[i] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.fromObject(object.cidrBlocks[i]); + } + } + return message; + }; /** - * Cluster nodePools. - * @member {Array.} nodePools - * @memberof google.container.v1.Cluster - * @instance + * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {google.container.v1.MasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Cluster.prototype.nodePools = $util.emptyArray; + MasterAuthorizedNetworksConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.cidrBlocks = []; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.cidrBlocks && message.cidrBlocks.length) { + object.cidrBlocks = []; + for (var j = 0; j < message.cidrBlocks.length; ++j) + object.cidrBlocks[j] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.toObject(message.cidrBlocks[j], options); + } + return object; + }; /** - * Cluster locations. - * @member {Array.} locations - * @memberof google.container.v1.Cluster + * Converts this MasterAuthorizedNetworksConfig to JSON. + * @function toJSON + * @memberof google.container.v1.MasterAuthorizedNetworksConfig * @instance + * @returns {Object.} JSON object */ - Cluster.prototype.locations = $util.emptyArray; + MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Cluster enableKubernetesAlpha. - * @member {boolean} enableKubernetesAlpha - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.enableKubernetesAlpha = false; + MasterAuthorizedNetworksConfig.CidrBlock = (function() { - /** - * Cluster resourceLabels. - * @member {Object.} resourceLabels - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.resourceLabels = $util.emptyObject; + /** + * Properties of a CidrBlock. + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @interface ICidrBlock + * @property {string|null} [displayName] CidrBlock displayName + * @property {string|null} [cidrBlock] CidrBlock cidrBlock + */ - /** - * Cluster labelFingerprint. - * @member {string} labelFingerprint - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.labelFingerprint = ""; + /** + * Constructs a new CidrBlock. + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @classdesc Represents a CidrBlock. + * @implements ICidrBlock + * @constructor + * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set + */ + function CidrBlock(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]]; + } - /** - * Cluster legacyAbac. - * @member {google.container.v1.ILegacyAbac|null|undefined} legacyAbac - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.legacyAbac = null; + /** + * CidrBlock displayName. + * @member {string} displayName + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + */ + CidrBlock.prototype.displayName = ""; - /** - * Cluster networkPolicy. - * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.networkPolicy = null; + /** + * CidrBlock cidrBlock. + * @member {string} cidrBlock + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + */ + CidrBlock.prototype.cidrBlock = ""; - /** - * Cluster ipAllocationPolicy. - * @member {google.container.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.ipAllocationPolicy = null; + /** + * Creates a new CidrBlock instance using the specified properties. + * @function create + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock=} [properties] Properties to set + * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock instance + */ + CidrBlock.create = function create(properties) { + return new CidrBlock(properties); + }; - /** - * Cluster masterAuthorizedNetworksConfig. - * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} masterAuthorizedNetworksConfig - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.masterAuthorizedNetworksConfig = null; + /** + * Encodes the specified CidrBlock message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CidrBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); + return writer; + }; - /** - * Cluster maintenancePolicy. - * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.maintenancePolicy = null; + /** + * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock} message CidrBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CidrBlock.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Cluster binaryAuthorization. - * @member {google.container.v1.IBinaryAuthorization|null|undefined} binaryAuthorization - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.binaryAuthorization = null; + /** + * Decodes a CidrBlock message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CidrBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.displayName = reader.string(); + break; + case 2: + message.cidrBlock = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Cluster autoscaling. - * @member {google.container.v1.IClusterAutoscaling|null|undefined} autoscaling - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.autoscaling = null; + /** + * Decodes a CidrBlock message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CidrBlock.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Cluster networkConfig. - * @member {google.container.v1.INetworkConfig|null|undefined} networkConfig - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.networkConfig = null; + /** + * Verifies a CidrBlock message. + * @function verify + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CidrBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) + if (!$util.isString(message.cidrBlock)) + return "cidrBlock: string expected"; + return null; + }; - /** - * Cluster defaultMaxPodsConstraint. - * @member {google.container.v1.IMaxPodsConstraint|null|undefined} defaultMaxPodsConstraint - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.defaultMaxPodsConstraint = null; + /** + * Creates a CidrBlock message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} CidrBlock + */ + CidrBlock.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) + return object; + var message = new $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.cidrBlock != null) + message.cidrBlock = String(object.cidrBlock); + return message; + }; - /** - * Cluster resourceUsageExportConfig. - * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} resourceUsageExportConfig - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.resourceUsageExportConfig = null; + /** + * Creates a plain object from a CidrBlock message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} message CidrBlock + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CidrBlock.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.cidrBlock = ""; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) + object.cidrBlock = message.cidrBlock; + return object; + }; - /** - * Cluster authenticatorGroupsConfig. - * @member {google.container.v1.IAuthenticatorGroupsConfig|null|undefined} authenticatorGroupsConfig - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.authenticatorGroupsConfig = null; + /** + * Converts this CidrBlock to JSON. + * @function toJSON + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + * @returns {Object.} JSON object + */ + CidrBlock.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Cluster privateClusterConfig. - * @member {google.container.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.privateClusterConfig = null; + return CidrBlock; + })(); + + return MasterAuthorizedNetworksConfig; + })(); + + v1.LegacyAbac = (function() { /** - * Cluster databaseEncryption. - * @member {google.container.v1.IDatabaseEncryption|null|undefined} databaseEncryption - * @memberof google.container.v1.Cluster - * @instance + * Properties of a LegacyAbac. + * @memberof google.container.v1 + * @interface ILegacyAbac + * @property {boolean|null} [enabled] LegacyAbac enabled */ - Cluster.prototype.databaseEncryption = null; /** - * Cluster verticalPodAutoscaling. - * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} verticalPodAutoscaling - * @memberof google.container.v1.Cluster - * @instance + * Constructs a new LegacyAbac. + * @memberof google.container.v1 + * @classdesc Represents a LegacyAbac. + * @implements ILegacyAbac + * @constructor + * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set */ - Cluster.prototype.verticalPodAutoscaling = null; + function LegacyAbac(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]]; + } /** - * Cluster selfLink. - * @member {string} selfLink - * @memberof google.container.v1.Cluster + * LegacyAbac enabled. + * @member {boolean} enabled + * @memberof google.container.v1.LegacyAbac * @instance */ - Cluster.prototype.selfLink = ""; + LegacyAbac.prototype.enabled = false; /** - * Cluster zone. - * @member {string} zone - * @memberof google.container.v1.Cluster - * @instance + * Creates a new LegacyAbac instance using the specified properties. + * @function create + * @memberof google.container.v1.LegacyAbac + * @static + * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set + * @returns {google.container.v1.LegacyAbac} LegacyAbac instance */ - Cluster.prototype.zone = ""; + LegacyAbac.create = function create(properties) { + return new LegacyAbac(properties); + }; /** - * Cluster endpoint. - * @member {string} endpoint - * @memberof google.container.v1.Cluster - * @instance + * Encodes the specified LegacyAbac message. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages. + * @function encode + * @memberof google.container.v1.LegacyAbac + * @static + * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Cluster.prototype.endpoint = ""; + LegacyAbac.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; /** - * Cluster initialClusterVersion. - * @member {string} initialClusterVersion - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.initialClusterVersion = ""; - - /** - * Cluster currentMasterVersion. - * @member {string} currentMasterVersion - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.currentMasterVersion = ""; - - /** - * Cluster currentNodeVersion. - * @member {string} currentNodeVersion - * @memberof google.container.v1.Cluster - * @instance + * Encodes the specified LegacyAbac message, length delimited. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.LegacyAbac + * @static + * @param {google.container.v1.ILegacyAbac} message LegacyAbac message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Cluster.prototype.currentNodeVersion = ""; + LegacyAbac.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Cluster createTime. - * @member {string} createTime - * @memberof google.container.v1.Cluster - * @instance + * Decodes a LegacyAbac message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.LegacyAbac + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.LegacyAbac} LegacyAbac + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.prototype.createTime = ""; + LegacyAbac.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.LegacyAbac(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Cluster status. - * @member {google.container.v1.Cluster.Status} status - * @memberof google.container.v1.Cluster - * @instance + * Decodes a LegacyAbac message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.LegacyAbac + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.LegacyAbac} LegacyAbac + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.prototype.status = 0; + LegacyAbac.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Cluster statusMessage. - * @member {string} statusMessage - * @memberof google.container.v1.Cluster - * @instance + * Verifies a LegacyAbac message. + * @function verify + * @memberof google.container.v1.LegacyAbac + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Cluster.prototype.statusMessage = ""; + LegacyAbac.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; /** - * Cluster nodeIpv4CidrSize. - * @member {number} nodeIpv4CidrSize - * @memberof google.container.v1.Cluster - * @instance + * Creates a LegacyAbac message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.LegacyAbac + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.LegacyAbac} LegacyAbac */ - Cluster.prototype.nodeIpv4CidrSize = 0; + LegacyAbac.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.LegacyAbac) + return object; + var message = new $root.google.container.v1.LegacyAbac(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; /** - * Cluster servicesIpv4Cidr. - * @member {string} servicesIpv4Cidr - * @memberof google.container.v1.Cluster - * @instance + * Creates a plain object from a LegacyAbac message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.LegacyAbac + * @static + * @param {google.container.v1.LegacyAbac} message LegacyAbac + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Cluster.prototype.servicesIpv4Cidr = ""; + LegacyAbac.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; /** - * Cluster instanceGroupUrls. - * @member {Array.} instanceGroupUrls - * @memberof google.container.v1.Cluster + * Converts this LegacyAbac to JSON. + * @function toJSON + * @memberof google.container.v1.LegacyAbac * @instance + * @returns {Object.} JSON object */ - Cluster.prototype.instanceGroupUrls = $util.emptyArray; + LegacyAbac.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Cluster currentNodeCount. - * @member {number} currentNodeCount - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.currentNodeCount = 0; + return LegacyAbac; + })(); - /** - * Cluster expireTime. - * @member {string} expireTime - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.expireTime = ""; + v1.NetworkPolicy = (function() { /** - * Cluster location. - * @member {string} location - * @memberof google.container.v1.Cluster - * @instance + * Properties of a NetworkPolicy. + * @memberof google.container.v1 + * @interface INetworkPolicy + * @property {google.container.v1.NetworkPolicy.Provider|null} [provider] NetworkPolicy provider + * @property {boolean|null} [enabled] NetworkPolicy enabled */ - Cluster.prototype.location = ""; /** - * Cluster enableTpu. - * @member {boolean} enableTpu - * @memberof google.container.v1.Cluster - * @instance + * Constructs a new NetworkPolicy. + * @memberof google.container.v1 + * @classdesc Represents a NetworkPolicy. + * @implements INetworkPolicy + * @constructor + * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set */ - Cluster.prototype.enableTpu = false; + function NetworkPolicy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Cluster tpuIpv4CidrBlock. - * @member {string} tpuIpv4CidrBlock - * @memberof google.container.v1.Cluster + * NetworkPolicy provider. + * @member {google.container.v1.NetworkPolicy.Provider} provider + * @memberof google.container.v1.NetworkPolicy * @instance */ - Cluster.prototype.tpuIpv4CidrBlock = ""; + NetworkPolicy.prototype.provider = 0; /** - * Cluster conditions. - * @member {Array.} conditions - * @memberof google.container.v1.Cluster + * NetworkPolicy enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NetworkPolicy * @instance */ - Cluster.prototype.conditions = $util.emptyArray; + NetworkPolicy.prototype.enabled = false; /** - * Creates a new Cluster instance using the specified properties. + * Creates a new NetworkPolicy instance using the specified properties. * @function create - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.NetworkPolicy * @static - * @param {google.container.v1.ICluster=} [properties] Properties to set - * @returns {google.container.v1.Cluster} Cluster instance + * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set + * @returns {google.container.v1.NetworkPolicy} NetworkPolicy instance */ - Cluster.create = function create(properties) { - return new Cluster(properties); + NetworkPolicy.create = function create(properties) { + return new NetworkPolicy(properties); }; /** - * Encodes the specified Cluster message. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages. + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. * @function encode - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.NetworkPolicy * @static - * @param {google.container.v1.ICluster} message Cluster message or plain object to encode + * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cluster.encode = function encode(message, writer) { + NetworkPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig")) - $root.google.container.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.masterAuth != null && Object.hasOwnProperty.call(message, "masterAuth")) - $root.google.container.v1.MasterAuth.encode(message.masterAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); - if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); - if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); - if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig")) - $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.subnetwork); - if (message.nodePools != null && message.nodePools.length) - for (var i = 0; i < message.nodePools.length; ++i) - $root.google.container.v1.NodePool.encode(message.nodePools[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.locations != null && message.locations.length) - for (var i = 0; i < message.locations.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.locations[i]); - if (message.enableKubernetesAlpha != null && Object.hasOwnProperty.call(message, "enableKubernetesAlpha")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); - if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) - for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceLabels[keys[i]]).ldelim(); - if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); - if (message.legacyAbac != null && Object.hasOwnProperty.call(message, "legacyAbac")) - $root.google.container.v1.LegacyAbac.encode(message.legacyAbac, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) - $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy")) - $root.google.container.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.masterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "masterAuthorizedNetworksConfig")) - $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) - $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.binaryAuthorization != null && Object.hasOwnProperty.call(message, "binaryAuthorization")) - $root.google.container.v1.BinaryAuthorization.encode(message.binaryAuthorization, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); - if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) - $root.google.container.v1.ClusterAutoscaling.encode(message.autoscaling, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig")) - $root.google.container.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); - if (message.defaultMaxPodsConstraint != null && Object.hasOwnProperty.call(message, "defaultMaxPodsConstraint")) - $root.google.container.v1.MaxPodsConstraint.encode(message.defaultMaxPodsConstraint, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); - if (message.resourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "resourceUsageExportConfig")) - $root.google.container.v1.ResourceUsageExportConfig.encode(message.resourceUsageExportConfig, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); - if (message.authenticatorGroupsConfig != null && Object.hasOwnProperty.call(message, "authenticatorGroupsConfig")) - $root.google.container.v1.AuthenticatorGroupsConfig.encode(message.authenticatorGroupsConfig, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); - if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig")) - $root.google.container.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); - if (message.databaseEncryption != null && Object.hasOwnProperty.call(message, "databaseEncryption")) - $root.google.container.v1.DatabaseEncryption.encode(message.databaseEncryption, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); - if (message.verticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "verticalPodAutoscaling")) - $root.google.container.v1.VerticalPodAutoscaling.encode(message.verticalPodAutoscaling, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); - if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); - if (message.initialClusterVersion != null && Object.hasOwnProperty.call(message, "initialClusterVersion")) - writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); - if (message.currentMasterVersion != null && Object.hasOwnProperty.call(message, "currentMasterVersion")) - writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); - if (message.currentNodeVersion != null && Object.hasOwnProperty.call(message, "currentNodeVersion")) - writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); - if (message.nodeIpv4CidrSize != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrSize")) - writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); - if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) - writer.uint32(/* id 110, wireType 2 =*/882).string(message.servicesIpv4Cidr); - if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) - for (var i = 0; i < message.instanceGroupUrls.length; ++i) - writer.uint32(/* id 111, wireType 2 =*/890).string(message.instanceGroupUrls[i]); - if (message.currentNodeCount != null && Object.hasOwnProperty.call(message, "currentNodeCount")) - writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); - if (message.enableTpu != null && Object.hasOwnProperty.call(message, "enableTpu")) - writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu); - if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) - writer.uint32(/* id 116, wireType 2 =*/930).string(message.tpuIpv4CidrBlock); - if (message.conditions != null && message.conditions.length) - for (var i = 0; i < message.conditions.length; ++i) - $root.google.container.v1.StatusCondition.encode(message.conditions[i], writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); + if (message.provider != null && Object.hasOwnProperty.call(message, "provider")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); return writer; }; /** - * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages. + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.NetworkPolicy * @static - * @param {google.container.v1.ICluster} message Cluster message or plain object to encode + * @param {google.container.v1.INetworkPolicy} message NetworkPolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Cluster.encodeDelimited = function encodeDelimited(message, writer) { + NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Cluster message from the specified reader or buffer. + * Decodes a NetworkPolicy message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.NetworkPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.Cluster} Cluster + * @returns {google.container.v1.NetworkPolicy} NetworkPolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.decode = function decode(reader, length) { + NetworkPolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Cluster(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkPolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.provider = reader.int32(); break; case 2: - message.description = reader.string(); - break; - case 3: - message.initialNodeCount = reader.int32(); - break; - case 4: - message.nodeConfig = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); - break; - case 5: - message.masterAuth = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32()); - break; - case 6: - message.loggingService = reader.string(); - break; - case 7: - message.monitoringService = reader.string(); - break; - case 8: - message.network = reader.string(); - break; - case 9: - message.clusterIpv4Cidr = reader.string(); - break; - case 10: - message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); - break; - case 11: - message.subnetwork = reader.string(); - break; - case 12: - if (!(message.nodePools && message.nodePools.length)) - message.nodePools = []; - message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); - break; - case 13: - if (!(message.locations && message.locations.length)) - message.locations = []; - message.locations.push(reader.string()); - break; - case 14: - message.enableKubernetesAlpha = reader.bool(); - break; - case 15: - if (message.resourceLabels === $util.emptyObject) - message.resourceLabels = {}; - 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.resourceLabels[key] = value; - break; - case 16: - message.labelFingerprint = reader.string(); - break; - case 18: - message.legacyAbac = $root.google.container.v1.LegacyAbac.decode(reader, reader.uint32()); - break; - case 19: - message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); - break; - case 20: - message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.decode(reader, reader.uint32()); - break; - case 22: - message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32()); - break; - case 23: - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); - break; - case 24: - message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32()); - break; - case 26: - message.autoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32()); - break; - case 27: - message.networkConfig = $root.google.container.v1.NetworkConfig.decode(reader, reader.uint32()); - break; - case 30: - message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); - break; - case 33: - message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32()); - break; - case 34: - message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32()); - break; - case 37: - message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.decode(reader, reader.uint32()); - break; - case 38: - message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32()); - break; - case 39: - message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32()); - break; - case 100: - message.selfLink = reader.string(); + message.enabled = reader.bool(); break; - case 101: - message.zone = reader.string(); + default: + reader.skipType(tag & 7); break; - case 102: - message.endpoint = reader.string(); + } + } + return message; + }; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NetworkPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NetworkPolicy} NetworkPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkPolicy message. + * @function verify + * @memberof google.container.v1.NetworkPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.provider != null && message.hasOwnProperty("provider")) + switch (message.provider) { + default: + return "provider: enum value expected"; + case 0: + case 1: break; - case 103: - message.initialClusterVersion = reader.string(); - break; - case 104: - message.currentMasterVersion = reader.string(); - break; - case 105: - message.currentNodeVersion = reader.string(); - break; - case 106: - message.createTime = reader.string(); - break; - case 107: - message.status = reader.int32(); - break; - case 108: - message.statusMessage = reader.string(); - break; - case 109: - message.nodeIpv4CidrSize = reader.int32(); - break; - case 110: - message.servicesIpv4Cidr = reader.string(); - break; - case 111: - if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) - message.instanceGroupUrls = []; - message.instanceGroupUrls.push(reader.string()); - break; - case 112: - message.currentNodeCount = reader.int32(); - break; - case 113: - message.expireTime = reader.string(); - break; - case 114: - message.location = reader.string(); - break; - case 115: - message.enableTpu = reader.bool(); - break; - case 116: - message.tpuIpv4CidrBlock = reader.string(); - break; - case 118: - if (!(message.conditions && message.conditions.length)) - message.conditions = []; - message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NetworkPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NetworkPolicy} NetworkPolicy + */ + NetworkPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkPolicy) + return object; + var message = new $root.google.container.v1.NetworkPolicy(); + switch (object.provider) { + case "PROVIDER_UNSPECIFIED": + case 0: + message.provider = 0; + break; + case "CALICO": + case 1: + message.provider = 1; + break; + } + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NetworkPolicy + * @static + * @param {google.container.v1.NetworkPolicy} message NetworkPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.provider = options.enums === String ? "PROVIDER_UNSPECIFIED" : 0; + object.enabled = false; + } + if (message.provider != null && message.hasOwnProperty("provider")) + object.provider = options.enums === String ? $root.google.container.v1.NetworkPolicy.Provider[message.provider] : message.provider; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this NetworkPolicy to JSON. + * @function toJSON + * @memberof google.container.v1.NetworkPolicy + * @instance + * @returns {Object.} JSON object + */ + NetworkPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Provider enum. + * @name google.container.v1.NetworkPolicy.Provider + * @enum {number} + * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value + * @property {number} CALICO=1 CALICO value + */ + NetworkPolicy.Provider = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROVIDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "CALICO"] = 1; + return values; + })(); + + return NetworkPolicy; + })(); + + v1.BinaryAuthorization = (function() { + + /** + * Properties of a BinaryAuthorization. + * @memberof google.container.v1 + * @interface IBinaryAuthorization + * @property {boolean|null} [enabled] BinaryAuthorization enabled + */ + + /** + * Constructs a new BinaryAuthorization. + * @memberof google.container.v1 + * @classdesc Represents a BinaryAuthorization. + * @implements IBinaryAuthorization + * @constructor + * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set + */ + function BinaryAuthorization(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]]; + } + + /** + * BinaryAuthorization enabled. + * @member {boolean} enabled + * @memberof google.container.v1.BinaryAuthorization + * @instance + */ + BinaryAuthorization.prototype.enabled = false; + + /** + * Creates a new BinaryAuthorization instance using the specified properties. + * @function create + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {google.container.v1.IBinaryAuthorization=} [properties] Properties to set + * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization instance + */ + BinaryAuthorization.create = function create(properties) { + return new BinaryAuthorization(properties); + }; + + /** + * Encodes the specified BinaryAuthorization message. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages. + * @function encode + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BinaryAuthorization.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified BinaryAuthorization message, length delimited. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {google.container.v1.IBinaryAuthorization} message BinaryAuthorization message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BinaryAuthorization.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BinaryAuthorization message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BinaryAuthorization.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.BinaryAuthorization(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -6739,722 +6810,5371 @@ }; /** - * Decodes a Cluster message from the specified reader or buffer, length delimited. + * Decodes a BinaryAuthorization message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.BinaryAuthorization * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.Cluster} Cluster + * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Cluster.decodeDelimited = function decodeDelimited(reader) { + BinaryAuthorization.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Cluster message. + * Verifies a BinaryAuthorization message. * @function verify - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.BinaryAuthorization * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Cluster.verify = function verify(message) { + BinaryAuthorization.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - if (!$util.isInteger(message.initialNodeCount)) - return "initialNodeCount: integer expected"; - if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) { - var error = $root.google.container.v1.NodeConfig.verify(message.nodeConfig); - if (error) - return "nodeConfig." + error; - } - if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) { - var error = $root.google.container.v1.MasterAuth.verify(message.masterAuth); + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a BinaryAuthorization message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.BinaryAuthorization} BinaryAuthorization + */ + BinaryAuthorization.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.BinaryAuthorization) + return object; + var message = new $root.google.container.v1.BinaryAuthorization(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a BinaryAuthorization message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {google.container.v1.BinaryAuthorization} message BinaryAuthorization + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BinaryAuthorization.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this BinaryAuthorization to JSON. + * @function toJSON + * @memberof google.container.v1.BinaryAuthorization + * @instance + * @returns {Object.} JSON object + */ + BinaryAuthorization.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BinaryAuthorization; + })(); + + v1.IPAllocationPolicy = (function() { + + /** + * Properties of a IPAllocationPolicy. + * @memberof google.container.v1 + * @interface IIPAllocationPolicy + * @property {boolean|null} [useIpAliases] IPAllocationPolicy useIpAliases + * @property {boolean|null} [createSubnetwork] IPAllocationPolicy createSubnetwork + * @property {string|null} [subnetworkName] IPAllocationPolicy subnetworkName + * @property {string|null} [clusterIpv4Cidr] IPAllocationPolicy clusterIpv4Cidr + * @property {string|null} [nodeIpv4Cidr] IPAllocationPolicy nodeIpv4Cidr + * @property {string|null} [servicesIpv4Cidr] IPAllocationPolicy servicesIpv4Cidr + * @property {string|null} [clusterSecondaryRangeName] IPAllocationPolicy clusterSecondaryRangeName + * @property {string|null} [servicesSecondaryRangeName] IPAllocationPolicy servicesSecondaryRangeName + * @property {string|null} [clusterIpv4CidrBlock] IPAllocationPolicy clusterIpv4CidrBlock + * @property {string|null} [nodeIpv4CidrBlock] IPAllocationPolicy nodeIpv4CidrBlock + * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock + * @property {string|null} [tpuIpv4CidrBlock] IPAllocationPolicy tpuIpv4CidrBlock + * @property {boolean|null} [useRoutes] IPAllocationPolicy useRoutes + */ + + /** + * Constructs a new IPAllocationPolicy. + * @memberof google.container.v1 + * @classdesc Represents a IPAllocationPolicy. + * @implements IIPAllocationPolicy + * @constructor + * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set + */ + function IPAllocationPolicy(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]]; + } + + /** + * IPAllocationPolicy useIpAliases. + * @member {boolean} useIpAliases + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.useIpAliases = false; + + /** + * IPAllocationPolicy createSubnetwork. + * @member {boolean} createSubnetwork + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.createSubnetwork = false; + + /** + * IPAllocationPolicy subnetworkName. + * @member {string} subnetworkName + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.subnetworkName = ""; + + /** + * IPAllocationPolicy clusterIpv4Cidr. + * @member {string} clusterIpv4Cidr + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.clusterIpv4Cidr = ""; + + /** + * IPAllocationPolicy nodeIpv4Cidr. + * @member {string} nodeIpv4Cidr + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.nodeIpv4Cidr = ""; + + /** + * IPAllocationPolicy servicesIpv4Cidr. + * @member {string} servicesIpv4Cidr + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.servicesIpv4Cidr = ""; + + /** + * IPAllocationPolicy clusterSecondaryRangeName. + * @member {string} clusterSecondaryRangeName + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.clusterSecondaryRangeName = ""; + + /** + * IPAllocationPolicy servicesSecondaryRangeName. + * @member {string} servicesSecondaryRangeName + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.servicesSecondaryRangeName = ""; + + /** + * IPAllocationPolicy clusterIpv4CidrBlock. + * @member {string} clusterIpv4CidrBlock + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.clusterIpv4CidrBlock = ""; + + /** + * IPAllocationPolicy nodeIpv4CidrBlock. + * @member {string} nodeIpv4CidrBlock + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.nodeIpv4CidrBlock = ""; + + /** + * IPAllocationPolicy servicesIpv4CidrBlock. + * @member {string} servicesIpv4CidrBlock + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.servicesIpv4CidrBlock = ""; + + /** + * IPAllocationPolicy tpuIpv4CidrBlock. + * @member {string} tpuIpv4CidrBlock + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.tpuIpv4CidrBlock = ""; + + /** + * IPAllocationPolicy useRoutes. + * @member {boolean} useRoutes + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.useRoutes = false; + + /** + * Creates a new IPAllocationPolicy instance using the specified properties. + * @function create + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set + * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy instance + */ + IPAllocationPolicy.create = function create(properties) { + return new IPAllocationPolicy(properties); + }; + + /** + * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages. + * @function encode + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IPAllocationPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); + if (message.createSubnetwork != null && Object.hasOwnProperty.call(message, "createSubnetwork")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); + if (message.subnetworkName != null && Object.hasOwnProperty.call(message, "subnetworkName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); + if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); + if (message.nodeIpv4Cidr != null && Object.hasOwnProperty.call(message, "nodeIpv4Cidr")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); + if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); + if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); + if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); + if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); + if (message.nodeIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrBlock")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); + if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); + if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock); + if (message.useRoutes != null && Object.hasOwnProperty.call(message, "useRoutes")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.useRoutes); + return writer; + }; + + /** + * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a IPAllocationPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IPAllocationPolicy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.IPAllocationPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.useIpAliases = reader.bool(); + break; + case 2: + message.createSubnetwork = reader.bool(); + break; + case 3: + message.subnetworkName = reader.string(); + break; + case 4: + message.clusterIpv4Cidr = reader.string(); + break; + case 5: + message.nodeIpv4Cidr = reader.string(); + break; + case 6: + message.servicesIpv4Cidr = reader.string(); + break; + case 7: + message.clusterSecondaryRangeName = reader.string(); + break; + case 8: + message.servicesSecondaryRangeName = reader.string(); + break; + case 9: + message.clusterIpv4CidrBlock = reader.string(); + break; + case 10: + message.nodeIpv4CidrBlock = reader.string(); + break; + case 11: + message.servicesIpv4CidrBlock = reader.string(); + break; + case 13: + message.tpuIpv4CidrBlock = reader.string(); + break; + case 15: + message.useRoutes = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IPAllocationPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a IPAllocationPolicy message. + * @function verify + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IPAllocationPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) + if (typeof message.useIpAliases !== "boolean") + return "useIpAliases: boolean expected"; + if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) + if (typeof message.createSubnetwork !== "boolean") + return "createSubnetwork: boolean expected"; + if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) + if (!$util.isString(message.subnetworkName)) + return "subnetworkName: string expected"; + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + if (!$util.isString(message.clusterIpv4Cidr)) + return "clusterIpv4Cidr: string expected"; + if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) + if (!$util.isString(message.nodeIpv4Cidr)) + return "nodeIpv4Cidr: string expected"; + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + if (!$util.isString(message.servicesIpv4Cidr)) + return "servicesIpv4Cidr: string expected"; + if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) + if (!$util.isString(message.clusterSecondaryRangeName)) + return "clusterSecondaryRangeName: string expected"; + if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) + if (!$util.isString(message.servicesSecondaryRangeName)) + return "servicesSecondaryRangeName: string expected"; + if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) + if (!$util.isString(message.clusterIpv4CidrBlock)) + return "clusterIpv4CidrBlock: string expected"; + if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) + if (!$util.isString(message.nodeIpv4CidrBlock)) + return "nodeIpv4CidrBlock: string expected"; + if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) + if (!$util.isString(message.servicesIpv4CidrBlock)) + return "servicesIpv4CidrBlock: string expected"; + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + if (!$util.isString(message.tpuIpv4CidrBlock)) + return "tpuIpv4CidrBlock: string expected"; + if (message.useRoutes != null && message.hasOwnProperty("useRoutes")) + if (typeof message.useRoutes !== "boolean") + return "useRoutes: boolean expected"; + return null; + }; + + /** + * Creates a IPAllocationPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + */ + IPAllocationPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.IPAllocationPolicy) + return object; + var message = new $root.google.container.v1.IPAllocationPolicy(); + if (object.useIpAliases != null) + message.useIpAliases = Boolean(object.useIpAliases); + if (object.createSubnetwork != null) + message.createSubnetwork = Boolean(object.createSubnetwork); + if (object.subnetworkName != null) + message.subnetworkName = String(object.subnetworkName); + if (object.clusterIpv4Cidr != null) + message.clusterIpv4Cidr = String(object.clusterIpv4Cidr); + if (object.nodeIpv4Cidr != null) + message.nodeIpv4Cidr = String(object.nodeIpv4Cidr); + if (object.servicesIpv4Cidr != null) + message.servicesIpv4Cidr = String(object.servicesIpv4Cidr); + if (object.clusterSecondaryRangeName != null) + message.clusterSecondaryRangeName = String(object.clusterSecondaryRangeName); + if (object.servicesSecondaryRangeName != null) + message.servicesSecondaryRangeName = String(object.servicesSecondaryRangeName); + if (object.clusterIpv4CidrBlock != null) + message.clusterIpv4CidrBlock = String(object.clusterIpv4CidrBlock); + if (object.nodeIpv4CidrBlock != null) + message.nodeIpv4CidrBlock = String(object.nodeIpv4CidrBlock); + if (object.servicesIpv4CidrBlock != null) + message.servicesIpv4CidrBlock = String(object.servicesIpv4CidrBlock); + if (object.tpuIpv4CidrBlock != null) + message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock); + if (object.useRoutes != null) + message.useRoutes = Boolean(object.useRoutes); + return message; + }; + + /** + * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {google.container.v1.IPAllocationPolicy} message IPAllocationPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IPAllocationPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useIpAliases = false; + object.createSubnetwork = false; + object.subnetworkName = ""; + object.clusterIpv4Cidr = ""; + object.nodeIpv4Cidr = ""; + object.servicesIpv4Cidr = ""; + object.clusterSecondaryRangeName = ""; + object.servicesSecondaryRangeName = ""; + object.clusterIpv4CidrBlock = ""; + object.nodeIpv4CidrBlock = ""; + object.servicesIpv4CidrBlock = ""; + object.tpuIpv4CidrBlock = ""; + object.useRoutes = false; + } + if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) + object.useIpAliases = message.useIpAliases; + if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) + object.createSubnetwork = message.createSubnetwork; + if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) + object.subnetworkName = message.subnetworkName; + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + object.clusterIpv4Cidr = message.clusterIpv4Cidr; + if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) + object.nodeIpv4Cidr = message.nodeIpv4Cidr; + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + object.servicesIpv4Cidr = message.servicesIpv4Cidr; + if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) + object.clusterSecondaryRangeName = message.clusterSecondaryRangeName; + if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) + object.servicesSecondaryRangeName = message.servicesSecondaryRangeName; + if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) + object.clusterIpv4CidrBlock = message.clusterIpv4CidrBlock; + if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) + object.nodeIpv4CidrBlock = message.nodeIpv4CidrBlock; + if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) + object.servicesIpv4CidrBlock = message.servicesIpv4CidrBlock; + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock; + if (message.useRoutes != null && message.hasOwnProperty("useRoutes")) + object.useRoutes = message.useRoutes; + return object; + }; + + /** + * Converts this IPAllocationPolicy to JSON. + * @function toJSON + * @memberof google.container.v1.IPAllocationPolicy + * @instance + * @returns {Object.} JSON object + */ + IPAllocationPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IPAllocationPolicy; + })(); + + v1.Cluster = (function() { + + /** + * Properties of a Cluster. + * @memberof google.container.v1 + * @interface ICluster + * @property {string|null} [name] Cluster name + * @property {string|null} [description] Cluster description + * @property {number|null} [initialNodeCount] Cluster initialNodeCount + * @property {google.container.v1.INodeConfig|null} [nodeConfig] Cluster nodeConfig + * @property {google.container.v1.IMasterAuth|null} [masterAuth] Cluster masterAuth + * @property {string|null} [loggingService] Cluster loggingService + * @property {string|null} [monitoringService] Cluster monitoringService + * @property {string|null} [network] Cluster network + * @property {string|null} [clusterIpv4Cidr] Cluster clusterIpv4Cidr + * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] Cluster addonsConfig + * @property {string|null} [subnetwork] Cluster subnetwork + * @property {Array.|null} [nodePools] Cluster nodePools + * @property {Array.|null} [locations] Cluster locations + * @property {boolean|null} [enableKubernetesAlpha] Cluster enableKubernetesAlpha + * @property {Object.|null} [resourceLabels] Cluster resourceLabels + * @property {string|null} [labelFingerprint] Cluster labelFingerprint + * @property {google.container.v1.ILegacyAbac|null} [legacyAbac] Cluster legacyAbac + * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] Cluster networkPolicy + * @property {google.container.v1.IIPAllocationPolicy|null} [ipAllocationPolicy] Cluster ipAllocationPolicy + * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [masterAuthorizedNetworksConfig] Cluster masterAuthorizedNetworksConfig + * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] Cluster maintenancePolicy + * @property {google.container.v1.IBinaryAuthorization|null} [binaryAuthorization] Cluster binaryAuthorization + * @property {google.container.v1.IClusterAutoscaling|null} [autoscaling] Cluster autoscaling + * @property {google.container.v1.INetworkConfig|null} [networkConfig] Cluster networkConfig + * @property {google.container.v1.IMaxPodsConstraint|null} [defaultMaxPodsConstraint] Cluster defaultMaxPodsConstraint + * @property {google.container.v1.IResourceUsageExportConfig|null} [resourceUsageExportConfig] Cluster resourceUsageExportConfig + * @property {google.container.v1.IAuthenticatorGroupsConfig|null} [authenticatorGroupsConfig] Cluster authenticatorGroupsConfig + * @property {google.container.v1.IPrivateClusterConfig|null} [privateClusterConfig] Cluster privateClusterConfig + * @property {google.container.v1.IDatabaseEncryption|null} [databaseEncryption] Cluster databaseEncryption + * @property {google.container.v1.IVerticalPodAutoscaling|null} [verticalPodAutoscaling] Cluster verticalPodAutoscaling + * @property {google.container.v1.IShieldedNodes|null} [shieldedNodes] Cluster shieldedNodes + * @property {google.container.v1.IReleaseChannel|null} [releaseChannel] Cluster releaseChannel + * @property {google.container.v1.IWorkloadIdentityConfig|null} [workloadIdentityConfig] Cluster workloadIdentityConfig + * @property {string|null} [selfLink] Cluster selfLink + * @property {string|null} [zone] Cluster zone + * @property {string|null} [endpoint] Cluster endpoint + * @property {string|null} [initialClusterVersion] Cluster initialClusterVersion + * @property {string|null} [currentMasterVersion] Cluster currentMasterVersion + * @property {string|null} [currentNodeVersion] Cluster currentNodeVersion + * @property {string|null} [createTime] Cluster createTime + * @property {google.container.v1.Cluster.Status|null} [status] Cluster status + * @property {string|null} [statusMessage] Cluster statusMessage + * @property {number|null} [nodeIpv4CidrSize] Cluster nodeIpv4CidrSize + * @property {string|null} [servicesIpv4Cidr] Cluster servicesIpv4Cidr + * @property {Array.|null} [instanceGroupUrls] Cluster instanceGroupUrls + * @property {number|null} [currentNodeCount] Cluster currentNodeCount + * @property {string|null} [expireTime] Cluster expireTime + * @property {string|null} [location] Cluster location + * @property {boolean|null} [enableTpu] Cluster enableTpu + * @property {string|null} [tpuIpv4CidrBlock] Cluster tpuIpv4CidrBlock + * @property {Array.|null} [conditions] Cluster conditions + */ + + /** + * Constructs a new Cluster. + * @memberof google.container.v1 + * @classdesc Represents a Cluster. + * @implements ICluster + * @constructor + * @param {google.container.v1.ICluster=} [properties] Properties to set + */ + function Cluster(properties) { + this.nodePools = []; + this.locations = []; + this.resourceLabels = {}; + this.instanceGroupUrls = []; + this.conditions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Cluster name. + * @member {string} name + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.name = ""; + + /** + * Cluster description. + * @member {string} description + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.description = ""; + + /** + * Cluster initialNodeCount. + * @member {number} initialNodeCount + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.initialNodeCount = 0; + + /** + * Cluster nodeConfig. + * @member {google.container.v1.INodeConfig|null|undefined} nodeConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.nodeConfig = null; + + /** + * Cluster masterAuth. + * @member {google.container.v1.IMasterAuth|null|undefined} masterAuth + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.masterAuth = null; + + /** + * Cluster loggingService. + * @member {string} loggingService + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.loggingService = ""; + + /** + * Cluster monitoringService. + * @member {string} monitoringService + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.monitoringService = ""; + + /** + * Cluster network. + * @member {string} network + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.network = ""; + + /** + * Cluster clusterIpv4Cidr. + * @member {string} clusterIpv4Cidr + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.clusterIpv4Cidr = ""; + + /** + * Cluster addonsConfig. + * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.addonsConfig = null; + + /** + * Cluster subnetwork. + * @member {string} subnetwork + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.subnetwork = ""; + + /** + * Cluster nodePools. + * @member {Array.} nodePools + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.nodePools = $util.emptyArray; + + /** + * Cluster locations. + * @member {Array.} locations + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.locations = $util.emptyArray; + + /** + * Cluster enableKubernetesAlpha. + * @member {boolean} enableKubernetesAlpha + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.enableKubernetesAlpha = false; + + /** + * Cluster resourceLabels. + * @member {Object.} resourceLabels + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.resourceLabels = $util.emptyObject; + + /** + * Cluster labelFingerprint. + * @member {string} labelFingerprint + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.labelFingerprint = ""; + + /** + * Cluster legacyAbac. + * @member {google.container.v1.ILegacyAbac|null|undefined} legacyAbac + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.legacyAbac = null; + + /** + * Cluster networkPolicy. + * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.networkPolicy = null; + + /** + * Cluster ipAllocationPolicy. + * @member {google.container.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.ipAllocationPolicy = null; + + /** + * Cluster masterAuthorizedNetworksConfig. + * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} masterAuthorizedNetworksConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.masterAuthorizedNetworksConfig = null; + + /** + * Cluster maintenancePolicy. + * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.maintenancePolicy = null; + + /** + * Cluster binaryAuthorization. + * @member {google.container.v1.IBinaryAuthorization|null|undefined} binaryAuthorization + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.binaryAuthorization = null; + + /** + * Cluster autoscaling. + * @member {google.container.v1.IClusterAutoscaling|null|undefined} autoscaling + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.autoscaling = null; + + /** + * Cluster networkConfig. + * @member {google.container.v1.INetworkConfig|null|undefined} networkConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.networkConfig = null; + + /** + * Cluster defaultMaxPodsConstraint. + * @member {google.container.v1.IMaxPodsConstraint|null|undefined} defaultMaxPodsConstraint + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.defaultMaxPodsConstraint = null; + + /** + * Cluster resourceUsageExportConfig. + * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} resourceUsageExportConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.resourceUsageExportConfig = null; + + /** + * Cluster authenticatorGroupsConfig. + * @member {google.container.v1.IAuthenticatorGroupsConfig|null|undefined} authenticatorGroupsConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.authenticatorGroupsConfig = null; + + /** + * Cluster privateClusterConfig. + * @member {google.container.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.privateClusterConfig = null; + + /** + * Cluster databaseEncryption. + * @member {google.container.v1.IDatabaseEncryption|null|undefined} databaseEncryption + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.databaseEncryption = null; + + /** + * Cluster verticalPodAutoscaling. + * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} verticalPodAutoscaling + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.verticalPodAutoscaling = null; + + /** + * Cluster shieldedNodes. + * @member {google.container.v1.IShieldedNodes|null|undefined} shieldedNodes + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.shieldedNodes = null; + + /** + * Cluster releaseChannel. + * @member {google.container.v1.IReleaseChannel|null|undefined} releaseChannel + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.releaseChannel = null; + + /** + * Cluster workloadIdentityConfig. + * @member {google.container.v1.IWorkloadIdentityConfig|null|undefined} workloadIdentityConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.workloadIdentityConfig = null; + + /** + * Cluster selfLink. + * @member {string} selfLink + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.selfLink = ""; + + /** + * Cluster zone. + * @member {string} zone + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.zone = ""; + + /** + * Cluster endpoint. + * @member {string} endpoint + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.endpoint = ""; + + /** + * Cluster initialClusterVersion. + * @member {string} initialClusterVersion + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.initialClusterVersion = ""; + + /** + * Cluster currentMasterVersion. + * @member {string} currentMasterVersion + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.currentMasterVersion = ""; + + /** + * Cluster currentNodeVersion. + * @member {string} currentNodeVersion + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.currentNodeVersion = ""; + + /** + * Cluster createTime. + * @member {string} createTime + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.createTime = ""; + + /** + * Cluster status. + * @member {google.container.v1.Cluster.Status} status + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.status = 0; + + /** + * Cluster statusMessage. + * @member {string} statusMessage + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.statusMessage = ""; + + /** + * Cluster nodeIpv4CidrSize. + * @member {number} nodeIpv4CidrSize + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.nodeIpv4CidrSize = 0; + + /** + * Cluster servicesIpv4Cidr. + * @member {string} servicesIpv4Cidr + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.servicesIpv4Cidr = ""; + + /** + * Cluster instanceGroupUrls. + * @member {Array.} instanceGroupUrls + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.instanceGroupUrls = $util.emptyArray; + + /** + * Cluster currentNodeCount. + * @member {number} currentNodeCount + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.currentNodeCount = 0; + + /** + * Cluster expireTime. + * @member {string} expireTime + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.expireTime = ""; + + /** + * Cluster location. + * @member {string} location + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.location = ""; + + /** + * Cluster enableTpu. + * @member {boolean} enableTpu + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.enableTpu = false; + + /** + * Cluster tpuIpv4CidrBlock. + * @member {string} tpuIpv4CidrBlock + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.tpuIpv4CidrBlock = ""; + + /** + * Cluster conditions. + * @member {Array.} conditions + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.conditions = $util.emptyArray; + + /** + * Creates a new Cluster instance using the specified properties. + * @function create + * @memberof google.container.v1.Cluster + * @static + * @param {google.container.v1.ICluster=} [properties] Properties to set + * @returns {google.container.v1.Cluster} Cluster instance + */ + Cluster.create = function create(properties) { + return new Cluster(properties); + }; + + /** + * Encodes the specified Cluster message. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages. + * @function encode + * @memberof google.container.v1.Cluster + * @static + * @param {google.container.v1.ICluster} message Cluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Cluster.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); + if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig")) + $root.google.container.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.masterAuth != null && Object.hasOwnProperty.call(message, "masterAuth")) + $root.google.container.v1.MasterAuth.encode(message.masterAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); + if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); + if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); + if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.subnetwork); + if (message.nodePools != null && message.nodePools.length) + for (var i = 0; i < message.nodePools.length; ++i) + $root.google.container.v1.NodePool.encode(message.nodePools[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.locations != null && message.locations.length) + for (var i = 0; i < message.locations.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.locations[i]); + if (message.enableKubernetesAlpha != null && Object.hasOwnProperty.call(message, "enableKubernetesAlpha")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); + if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) + for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceLabels[keys[i]]).ldelim(); + if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); + if (message.legacyAbac != null && Object.hasOwnProperty.call(message, "legacyAbac")) + $root.google.container.v1.LegacyAbac.encode(message.legacyAbac, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.ipAllocationPolicy != null && Object.hasOwnProperty.call(message, "ipAllocationPolicy")) + $root.google.container.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.masterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "masterAuthorizedNetworksConfig")) + $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) + $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.binaryAuthorization != null && Object.hasOwnProperty.call(message, "binaryAuthorization")) + $root.google.container.v1.BinaryAuthorization.encode(message.binaryAuthorization, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) + $root.google.container.v1.ClusterAutoscaling.encode(message.autoscaling, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig")) + $root.google.container.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.defaultMaxPodsConstraint != null && Object.hasOwnProperty.call(message, "defaultMaxPodsConstraint")) + $root.google.container.v1.MaxPodsConstraint.encode(message.defaultMaxPodsConstraint, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); + if (message.resourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "resourceUsageExportConfig")) + $root.google.container.v1.ResourceUsageExportConfig.encode(message.resourceUsageExportConfig, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); + if (message.authenticatorGroupsConfig != null && Object.hasOwnProperty.call(message, "authenticatorGroupsConfig")) + $root.google.container.v1.AuthenticatorGroupsConfig.encode(message.authenticatorGroupsConfig, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); + if (message.privateClusterConfig != null && Object.hasOwnProperty.call(message, "privateClusterConfig")) + $root.google.container.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); + if (message.databaseEncryption != null && Object.hasOwnProperty.call(message, "databaseEncryption")) + $root.google.container.v1.DatabaseEncryption.encode(message.databaseEncryption, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); + if (message.verticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "verticalPodAutoscaling")) + $root.google.container.v1.VerticalPodAutoscaling.encode(message.verticalPodAutoscaling, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); + if (message.shieldedNodes != null && Object.hasOwnProperty.call(message, "shieldedNodes")) + $root.google.container.v1.ShieldedNodes.encode(message.shieldedNodes, writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); + if (message.releaseChannel != null && Object.hasOwnProperty.call(message, "releaseChannel")) + $root.google.container.v1.ReleaseChannel.encode(message.releaseChannel, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); + if (message.workloadIdentityConfig != null && Object.hasOwnProperty.call(message, "workloadIdentityConfig")) + $root.google.container.v1.WorkloadIdentityConfig.encode(message.workloadIdentityConfig, writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); + if (message.initialClusterVersion != null && Object.hasOwnProperty.call(message, "initialClusterVersion")) + writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); + if (message.currentMasterVersion != null && Object.hasOwnProperty.call(message, "currentMasterVersion")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); + if (message.currentNodeVersion != null && Object.hasOwnProperty.call(message, "currentNodeVersion")) + writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); + if (message.nodeIpv4CidrSize != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrSize")) + writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); + if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) + writer.uint32(/* id 110, wireType 2 =*/882).string(message.servicesIpv4Cidr); + if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) + for (var i = 0; i < message.instanceGroupUrls.length; ++i) + writer.uint32(/* id 111, wireType 2 =*/890).string(message.instanceGroupUrls[i]); + if (message.currentNodeCount != null && Object.hasOwnProperty.call(message, "currentNodeCount")) + writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); + if (message.enableTpu != null && Object.hasOwnProperty.call(message, "enableTpu")) + writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu); + if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) + writer.uint32(/* id 116, wireType 2 =*/930).string(message.tpuIpv4CidrBlock); + if (message.conditions != null && message.conditions.length) + for (var i = 0; i < message.conditions.length; ++i) + $root.google.container.v1.StatusCondition.encode(message.conditions[i], writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.Cluster + * @static + * @param {google.container.v1.ICluster} message Cluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Cluster.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Cluster message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.Cluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.Cluster} Cluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Cluster.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Cluster(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.initialNodeCount = reader.int32(); + break; + case 4: + message.nodeConfig = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + break; + case 5: + message.masterAuth = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32()); + break; + case 6: + message.loggingService = reader.string(); + break; + case 7: + message.monitoringService = reader.string(); + break; + case 8: + message.network = reader.string(); + break; + case 9: + message.clusterIpv4Cidr = reader.string(); + break; + case 10: + message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); + break; + case 11: + message.subnetwork = reader.string(); + break; + case 12: + if (!(message.nodePools && message.nodePools.length)) + message.nodePools = []; + message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); + break; + case 13: + if (!(message.locations && message.locations.length)) + message.locations = []; + message.locations.push(reader.string()); + break; + case 14: + message.enableKubernetesAlpha = reader.bool(); + break; + case 15: + if (message.resourceLabels === $util.emptyObject) + message.resourceLabels = {}; + 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.resourceLabels[key] = value; + break; + case 16: + message.labelFingerprint = reader.string(); + break; + case 18: + message.legacyAbac = $root.google.container.v1.LegacyAbac.decode(reader, reader.uint32()); + break; + case 19: + message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + case 20: + message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.decode(reader, reader.uint32()); + break; + case 22: + message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32()); + break; + case 23: + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); + break; + case 24: + message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32()); + break; + case 26: + message.autoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32()); + break; + case 27: + message.networkConfig = $root.google.container.v1.NetworkConfig.decode(reader, reader.uint32()); + break; + case 30: + message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); + break; + case 33: + message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32()); + break; + case 34: + message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32()); + break; + case 37: + message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.decode(reader, reader.uint32()); + break; + case 38: + message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32()); + break; + case 39: + message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32()); + break; + case 40: + message.shieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32()); + break; + case 41: + message.releaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32()); + break; + case 43: + message.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.decode(reader, reader.uint32()); + break; + case 100: + message.selfLink = reader.string(); + break; + case 101: + message.zone = reader.string(); + break; + case 102: + message.endpoint = reader.string(); + break; + case 103: + message.initialClusterVersion = reader.string(); + break; + case 104: + message.currentMasterVersion = reader.string(); + break; + case 105: + message.currentNodeVersion = reader.string(); + break; + case 106: + message.createTime = reader.string(); + break; + case 107: + message.status = reader.int32(); + break; + case 108: + message.statusMessage = reader.string(); + break; + case 109: + message.nodeIpv4CidrSize = reader.int32(); + break; + case 110: + message.servicesIpv4Cidr = reader.string(); + break; + case 111: + if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) + message.instanceGroupUrls = []; + message.instanceGroupUrls.push(reader.string()); + break; + case 112: + message.currentNodeCount = reader.int32(); + break; + case 113: + message.expireTime = reader.string(); + break; + case 114: + message.location = reader.string(); + break; + case 115: + message.enableTpu = reader.bool(); + break; + case 116: + message.tpuIpv4CidrBlock = reader.string(); + break; + case 118: + if (!(message.conditions && message.conditions.length)) + message.conditions = []; + message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Cluster message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.Cluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.Cluster} Cluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Cluster.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Cluster message. + * @function verify + * @memberof google.container.v1.Cluster + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Cluster.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (!$util.isInteger(message.initialNodeCount)) + return "initialNodeCount: integer expected"; + if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) { + var error = $root.google.container.v1.NodeConfig.verify(message.nodeConfig); + if (error) + return "nodeConfig." + error; + } + if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) { + var error = $root.google.container.v1.MasterAuth.verify(message.masterAuth); + if (error) + return "masterAuth." + error; + } + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + if (!$util.isString(message.loggingService)) + return "loggingService: string expected"; + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + if (!$util.isString(message.monitoringService)) + return "monitoringService: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + if (!$util.isString(message.clusterIpv4Cidr)) + return "clusterIpv4Cidr: string expected"; + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) { + var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig); + if (error) + return "addonsConfig." + error; + } + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.nodePools != null && message.hasOwnProperty("nodePools")) { + if (!Array.isArray(message.nodePools)) + return "nodePools: array expected"; + for (var i = 0; i < message.nodePools.length; ++i) { + var error = $root.google.container.v1.NodePool.verify(message.nodePools[i]); + if (error) + return "nodePools." + error; + } + } + if (message.locations != null && message.hasOwnProperty("locations")) { + if (!Array.isArray(message.locations)) + return "locations: array expected"; + for (var i = 0; i < message.locations.length; ++i) + if (!$util.isString(message.locations[i])) + return "locations: string[] expected"; + } + if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha")) + if (typeof message.enableKubernetesAlpha !== "boolean") + return "enableKubernetesAlpha: boolean expected"; + if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) { + if (!$util.isObject(message.resourceLabels)) + return "resourceLabels: object expected"; + var key = Object.keys(message.resourceLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceLabels[key[i]])) + return "resourceLabels: string{k:string} expected"; + } + if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) + if (!$util.isString(message.labelFingerprint)) + return "labelFingerprint: string expected"; + if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) { + var error = $root.google.container.v1.LegacyAbac.verify(message.legacyAbac); + if (error) + return "legacyAbac." + error; + } + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; + } + if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) { + var error = $root.google.container.v1.IPAllocationPolicy.verify(message.ipAllocationPolicy); + if (error) + return "ipAllocationPolicy." + error; + } + if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) { + var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.masterAuthorizedNetworksConfig); + if (error) + return "masterAuthorizedNetworksConfig." + error; + } + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { + var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); + if (error) + return "maintenancePolicy." + error; + } + if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization")) { + var error = $root.google.container.v1.BinaryAuthorization.verify(message.binaryAuthorization); + if (error) + return "binaryAuthorization." + error; + } + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) { + var error = $root.google.container.v1.ClusterAutoscaling.verify(message.autoscaling); + if (error) + return "autoscaling." + error; + } + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) { + var error = $root.google.container.v1.NetworkConfig.verify(message.networkConfig); + if (error) + return "networkConfig." + error; + } + if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint")) { + var error = $root.google.container.v1.MaxPodsConstraint.verify(message.defaultMaxPodsConstraint); + if (error) + return "defaultMaxPodsConstraint." + error; + } + if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig")) { + var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.resourceUsageExportConfig); + if (error) + return "resourceUsageExportConfig." + error; + } + if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig")) { + var error = $root.google.container.v1.AuthenticatorGroupsConfig.verify(message.authenticatorGroupsConfig); + if (error) + return "authenticatorGroupsConfig." + error; + } + if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) { + var error = $root.google.container.v1.PrivateClusterConfig.verify(message.privateClusterConfig); + if (error) + return "privateClusterConfig." + error; + } + if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption")) { + var error = $root.google.container.v1.DatabaseEncryption.verify(message.databaseEncryption); + if (error) + return "databaseEncryption." + error; + } + if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling")) { + var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.verticalPodAutoscaling); + if (error) + return "verticalPodAutoscaling." + error; + } + if (message.shieldedNodes != null && message.hasOwnProperty("shieldedNodes")) { + var error = $root.google.container.v1.ShieldedNodes.verify(message.shieldedNodes); + if (error) + return "shieldedNodes." + error; + } + if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) { + var error = $root.google.container.v1.ReleaseChannel.verify(message.releaseChannel); + if (error) + return "releaseChannel." + error; + } + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) { + var error = $root.google.container.v1.WorkloadIdentityConfig.verify(message.workloadIdentityConfig); + if (error) + return "workloadIdentityConfig." + error; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) + if (!$util.isString(message.initialClusterVersion)) + return "initialClusterVersion: string expected"; + if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) + if (!$util.isString(message.currentMasterVersion)) + return "currentMasterVersion: string expected"; + if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) + if (!$util.isString(message.currentNodeVersion)) + return "currentNodeVersion: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) + if (!$util.isString(message.createTime)) + return "createTime: string expected"; + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) + if (!$util.isInteger(message.nodeIpv4CidrSize)) + return "nodeIpv4CidrSize: integer expected"; + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + if (!$util.isString(message.servicesIpv4Cidr)) + return "servicesIpv4Cidr: string expected"; + if (message.instanceGroupUrls != null && message.hasOwnProperty("instanceGroupUrls")) { + if (!Array.isArray(message.instanceGroupUrls)) + return "instanceGroupUrls: array expected"; + for (var i = 0; i < message.instanceGroupUrls.length; ++i) + if (!$util.isString(message.instanceGroupUrls[i])) + return "instanceGroupUrls: string[] expected"; + } + if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount")) + if (!$util.isInteger(message.currentNodeCount)) + return "currentNodeCount: integer expected"; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + if (!$util.isString(message.expireTime)) + return "expireTime: string expected"; + if (message.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; + if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) + if (typeof message.enableTpu !== "boolean") + return "enableTpu: boolean expected"; + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + if (!$util.isString(message.tpuIpv4CidrBlock)) + return "tpuIpv4CidrBlock: string expected"; + if (message.conditions != null && message.hasOwnProperty("conditions")) { + if (!Array.isArray(message.conditions)) + return "conditions: array expected"; + for (var i = 0; i < message.conditions.length; ++i) { + var error = $root.google.container.v1.StatusCondition.verify(message.conditions[i]); + if (error) + return "conditions." + error; + } + } + return null; + }; + + /** + * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.Cluster + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.Cluster} Cluster + */ + Cluster.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.Cluster) + return object; + var message = new $root.google.container.v1.Cluster(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.initialNodeCount != null) + message.initialNodeCount = object.initialNodeCount | 0; + if (object.nodeConfig != null) { + if (typeof object.nodeConfig !== "object") + throw TypeError(".google.container.v1.Cluster.nodeConfig: object expected"); + message.nodeConfig = $root.google.container.v1.NodeConfig.fromObject(object.nodeConfig); + } + if (object.masterAuth != null) { + if (typeof object.masterAuth !== "object") + throw TypeError(".google.container.v1.Cluster.masterAuth: object expected"); + message.masterAuth = $root.google.container.v1.MasterAuth.fromObject(object.masterAuth); + } + if (object.loggingService != null) + message.loggingService = String(object.loggingService); + if (object.monitoringService != null) + message.monitoringService = String(object.monitoringService); + if (object.network != null) + message.network = String(object.network); + if (object.clusterIpv4Cidr != null) + message.clusterIpv4Cidr = String(object.clusterIpv4Cidr); + if (object.addonsConfig != null) { + if (typeof object.addonsConfig !== "object") + throw TypeError(".google.container.v1.Cluster.addonsConfig: object expected"); + message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig); + } + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.nodePools) { + if (!Array.isArray(object.nodePools)) + throw TypeError(".google.container.v1.Cluster.nodePools: array expected"); + message.nodePools = []; + for (var i = 0; i < object.nodePools.length; ++i) { + if (typeof object.nodePools[i] !== "object") + throw TypeError(".google.container.v1.Cluster.nodePools: object expected"); + message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); + } + } + if (object.locations) { + if (!Array.isArray(object.locations)) + throw TypeError(".google.container.v1.Cluster.locations: array expected"); + message.locations = []; + for (var i = 0; i < object.locations.length; ++i) + message.locations[i] = String(object.locations[i]); + } + if (object.enableKubernetesAlpha != null) + message.enableKubernetesAlpha = Boolean(object.enableKubernetesAlpha); + if (object.resourceLabels) { + if (typeof object.resourceLabels !== "object") + throw TypeError(".google.container.v1.Cluster.resourceLabels: object expected"); + message.resourceLabels = {}; + for (var keys = Object.keys(object.resourceLabels), i = 0; i < keys.length; ++i) + message.resourceLabels[keys[i]] = String(object.resourceLabels[keys[i]]); + } + if (object.labelFingerprint != null) + message.labelFingerprint = String(object.labelFingerprint); + if (object.legacyAbac != null) { + if (typeof object.legacyAbac !== "object") + throw TypeError(".google.container.v1.Cluster.legacyAbac: object expected"); + message.legacyAbac = $root.google.container.v1.LegacyAbac.fromObject(object.legacyAbac); + } + if (object.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.container.v1.Cluster.networkPolicy: object expected"); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); + } + if (object.ipAllocationPolicy != null) { + if (typeof object.ipAllocationPolicy !== "object") + throw TypeError(".google.container.v1.Cluster.ipAllocationPolicy: object expected"); + message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy); + } + if (object.masterAuthorizedNetworksConfig != null) { + if (typeof object.masterAuthorizedNetworksConfig !== "object") + throw TypeError(".google.container.v1.Cluster.masterAuthorizedNetworksConfig: object expected"); + message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.masterAuthorizedNetworksConfig); + } + if (object.maintenancePolicy != null) { + if (typeof object.maintenancePolicy !== "object") + throw TypeError(".google.container.v1.Cluster.maintenancePolicy: object expected"); + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); + } + if (object.binaryAuthorization != null) { + if (typeof object.binaryAuthorization !== "object") + throw TypeError(".google.container.v1.Cluster.binaryAuthorization: object expected"); + message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.binaryAuthorization); + } + if (object.autoscaling != null) { + if (typeof object.autoscaling !== "object") + throw TypeError(".google.container.v1.Cluster.autoscaling: object expected"); + message.autoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.autoscaling); + } + if (object.networkConfig != null) { + if (typeof object.networkConfig !== "object") + throw TypeError(".google.container.v1.Cluster.networkConfig: object expected"); + message.networkConfig = $root.google.container.v1.NetworkConfig.fromObject(object.networkConfig); + } + if (object.defaultMaxPodsConstraint != null) { + if (typeof object.defaultMaxPodsConstraint !== "object") + throw TypeError(".google.container.v1.Cluster.defaultMaxPodsConstraint: object expected"); + message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.defaultMaxPodsConstraint); + } + if (object.resourceUsageExportConfig != null) { + if (typeof object.resourceUsageExportConfig !== "object") + throw TypeError(".google.container.v1.Cluster.resourceUsageExportConfig: object expected"); + message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.resourceUsageExportConfig); + } + if (object.authenticatorGroupsConfig != null) { + if (typeof object.authenticatorGroupsConfig !== "object") + throw TypeError(".google.container.v1.Cluster.authenticatorGroupsConfig: object expected"); + message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.fromObject(object.authenticatorGroupsConfig); + } + if (object.privateClusterConfig != null) { + if (typeof object.privateClusterConfig !== "object") + throw TypeError(".google.container.v1.Cluster.privateClusterConfig: object expected"); + message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.fromObject(object.privateClusterConfig); + } + if (object.databaseEncryption != null) { + if (typeof object.databaseEncryption !== "object") + throw TypeError(".google.container.v1.Cluster.databaseEncryption: object expected"); + message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.databaseEncryption); + } + if (object.verticalPodAutoscaling != null) { + if (typeof object.verticalPodAutoscaling !== "object") + throw TypeError(".google.container.v1.Cluster.verticalPodAutoscaling: object expected"); + message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.verticalPodAutoscaling); + } + if (object.shieldedNodes != null) { + if (typeof object.shieldedNodes !== "object") + throw TypeError(".google.container.v1.Cluster.shieldedNodes: object expected"); + message.shieldedNodes = $root.google.container.v1.ShieldedNodes.fromObject(object.shieldedNodes); + } + if (object.releaseChannel != null) { + if (typeof object.releaseChannel !== "object") + throw TypeError(".google.container.v1.Cluster.releaseChannel: object expected"); + message.releaseChannel = $root.google.container.v1.ReleaseChannel.fromObject(object.releaseChannel); + } + if (object.workloadIdentityConfig != null) { + if (typeof object.workloadIdentityConfig !== "object") + throw TypeError(".google.container.v1.Cluster.workloadIdentityConfig: object expected"); + message.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.fromObject(object.workloadIdentityConfig); + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.zone != null) + message.zone = String(object.zone); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.initialClusterVersion != null) + message.initialClusterVersion = String(object.initialClusterVersion); + if (object.currentMasterVersion != null) + message.currentMasterVersion = String(object.currentMasterVersion); + if (object.currentNodeVersion != null) + message.currentNodeVersion = String(object.currentNodeVersion); + if (object.createTime != null) + message.createTime = String(object.createTime); + switch (object.status) { + case "STATUS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "PROVISIONING": + case 1: + message.status = 1; + break; + case "RUNNING": + case 2: + message.status = 2; + break; + case "RECONCILING": + case 3: + message.status = 3; + break; + case "STOPPING": + case 4: + message.status = 4; + break; + case "ERROR": + case 5: + message.status = 5; + break; + case "DEGRADED": + case 6: + message.status = 6; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.nodeIpv4CidrSize != null) + message.nodeIpv4CidrSize = object.nodeIpv4CidrSize | 0; + if (object.servicesIpv4Cidr != null) + message.servicesIpv4Cidr = String(object.servicesIpv4Cidr); + if (object.instanceGroupUrls) { + if (!Array.isArray(object.instanceGroupUrls)) + throw TypeError(".google.container.v1.Cluster.instanceGroupUrls: array expected"); + message.instanceGroupUrls = []; + for (var i = 0; i < object.instanceGroupUrls.length; ++i) + message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); + } + if (object.currentNodeCount != null) + message.currentNodeCount = object.currentNodeCount | 0; + if (object.expireTime != null) + message.expireTime = String(object.expireTime); + if (object.location != null) + message.location = String(object.location); + if (object.enableTpu != null) + message.enableTpu = Boolean(object.enableTpu); + if (object.tpuIpv4CidrBlock != null) + message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock); + if (object.conditions) { + if (!Array.isArray(object.conditions)) + throw TypeError(".google.container.v1.Cluster.conditions: array expected"); + message.conditions = []; + for (var i = 0; i < object.conditions.length; ++i) { + if (typeof object.conditions[i] !== "object") + throw TypeError(".google.container.v1.Cluster.conditions: object expected"); + message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.Cluster + * @static + * @param {google.container.v1.Cluster} message Cluster + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Cluster.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.nodePools = []; + object.locations = []; + object.instanceGroupUrls = []; + object.conditions = []; + } + if (options.objects || options.defaults) + object.resourceLabels = {}; + if (options.defaults) { + object.name = ""; + object.description = ""; + object.initialNodeCount = 0; + object.nodeConfig = null; + object.masterAuth = null; + object.loggingService = ""; + object.monitoringService = ""; + object.network = ""; + object.clusterIpv4Cidr = ""; + object.addonsConfig = null; + object.subnetwork = ""; + object.enableKubernetesAlpha = false; + object.labelFingerprint = ""; + object.legacyAbac = null; + object.networkPolicy = null; + object.ipAllocationPolicy = null; + object.masterAuthorizedNetworksConfig = null; + object.maintenancePolicy = null; + object.binaryAuthorization = null; + object.autoscaling = null; + object.networkConfig = null; + object.defaultMaxPodsConstraint = null; + object.resourceUsageExportConfig = null; + object.authenticatorGroupsConfig = null; + object.privateClusterConfig = null; + object.databaseEncryption = null; + object.verticalPodAutoscaling = null; + object.shieldedNodes = null; + object.releaseChannel = null; + object.workloadIdentityConfig = null; + object.selfLink = ""; + object.zone = ""; + object.endpoint = ""; + object.initialClusterVersion = ""; + object.currentMasterVersion = ""; + object.currentNodeVersion = ""; + object.createTime = ""; + object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; + object.statusMessage = ""; + object.nodeIpv4CidrSize = 0; + object.servicesIpv4Cidr = ""; + object.currentNodeCount = 0; + object.expireTime = ""; + object.location = ""; + object.enableTpu = false; + object.tpuIpv4CidrBlock = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + object.initialNodeCount = message.initialNodeCount; + if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) + object.nodeConfig = $root.google.container.v1.NodeConfig.toObject(message.nodeConfig, options); + if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) + object.masterAuth = $root.google.container.v1.MasterAuth.toObject(message.masterAuth, options); + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + object.loggingService = message.loggingService; + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + object.monitoringService = message.monitoringService; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + object.clusterIpv4Cidr = message.clusterIpv4Cidr; + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options); + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.nodePools && message.nodePools.length) { + object.nodePools = []; + for (var j = 0; j < message.nodePools.length; ++j) + object.nodePools[j] = $root.google.container.v1.NodePool.toObject(message.nodePools[j], options); + } + if (message.locations && message.locations.length) { + object.locations = []; + for (var j = 0; j < message.locations.length; ++j) + object.locations[j] = message.locations[j]; + } + if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha")) + object.enableKubernetesAlpha = message.enableKubernetesAlpha; + var keys2; + if (message.resourceLabels && (keys2 = Object.keys(message.resourceLabels)).length) { + object.resourceLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceLabels[keys2[j]] = message.resourceLabels[keys2[j]]; + } + if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) + object.labelFingerprint = message.labelFingerprint; + if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) + object.legacyAbac = $root.google.container.v1.LegacyAbac.toObject(message.legacyAbac, options); + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); + if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) + object.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options); + if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) + object.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.masterAuthorizedNetworksConfig, options); + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); + if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization")) + object.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.binaryAuthorization, options); + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + object.autoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.autoscaling, options); + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) + object.networkConfig = $root.google.container.v1.NetworkConfig.toObject(message.networkConfig, options); + if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint")) + object.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.defaultMaxPodsConstraint, options); + if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig")) + object.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.resourceUsageExportConfig, options); + if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig")) + object.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.toObject(message.authenticatorGroupsConfig, options); + if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) + object.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, options); + if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption")) + object.databaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.databaseEncryption, options); + if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling")) + object.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.verticalPodAutoscaling, options); + if (message.shieldedNodes != null && message.hasOwnProperty("shieldedNodes")) + object.shieldedNodes = $root.google.container.v1.ShieldedNodes.toObject(message.shieldedNodes, options); + if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) + object.releaseChannel = $root.google.container.v1.ReleaseChannel.toObject(message.releaseChannel, options); + if (message.workloadIdentityConfig != null && message.hasOwnProperty("workloadIdentityConfig")) + object.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.toObject(message.workloadIdentityConfig, options); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + object.selfLink = message.selfLink; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) + object.initialClusterVersion = message.initialClusterVersion; + if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) + object.currentMasterVersion = message.currentMasterVersion; + if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) + object.currentNodeVersion = message.currentNodeVersion; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = message.createTime; + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.Cluster.Status[message.status] : message.status; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) + object.nodeIpv4CidrSize = message.nodeIpv4CidrSize; + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + object.servicesIpv4Cidr = message.servicesIpv4Cidr; + if (message.instanceGroupUrls && message.instanceGroupUrls.length) { + object.instanceGroupUrls = []; + for (var j = 0; j < message.instanceGroupUrls.length; ++j) + object.instanceGroupUrls[j] = message.instanceGroupUrls[j]; + } + if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount")) + object.currentNodeCount = message.currentNodeCount; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = message.expireTime; + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) + object.enableTpu = message.enableTpu; + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock; + if (message.conditions && message.conditions.length) { + object.conditions = []; + for (var j = 0; j < message.conditions.length; ++j) + object.conditions[j] = $root.google.container.v1.StatusCondition.toObject(message.conditions[j], options); + } + return object; + }; + + /** + * Converts this Cluster to JSON. + * @function toJSON + * @memberof google.container.v1.Cluster + * @instance + * @returns {Object.} JSON object + */ + Cluster.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Status enum. + * @name google.container.v1.Cluster.Status + * @enum {number} + * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value + * @property {number} PROVISIONING=1 PROVISIONING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} RECONCILING=3 RECONCILING value + * @property {number} STOPPING=4 STOPPING value + * @property {number} ERROR=5 ERROR value + * @property {number} DEGRADED=6 DEGRADED value + */ + Cluster.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROVISIONING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "RECONCILING"] = 3; + values[valuesById[4] = "STOPPING"] = 4; + values[valuesById[5] = "ERROR"] = 5; + values[valuesById[6] = "DEGRADED"] = 6; + return values; + })(); + + return Cluster; + })(); + + v1.ClusterUpdate = (function() { + + /** + * Properties of a ClusterUpdate. + * @memberof google.container.v1 + * @interface IClusterUpdate + * @property {string|null} [desiredNodeVersion] ClusterUpdate desiredNodeVersion + * @property {string|null} [desiredMonitoringService] ClusterUpdate desiredMonitoringService + * @property {google.container.v1.IAddonsConfig|null} [desiredAddonsConfig] ClusterUpdate desiredAddonsConfig + * @property {string|null} [desiredNodePoolId] ClusterUpdate desiredNodePoolId + * @property {string|null} [desiredImageType] ClusterUpdate desiredImageType + * @property {google.container.v1.IDatabaseEncryption|null} [desiredDatabaseEncryption] ClusterUpdate desiredDatabaseEncryption + * @property {google.container.v1.IWorkloadIdentityConfig|null} [desiredWorkloadIdentityConfig] ClusterUpdate desiredWorkloadIdentityConfig + * @property {google.container.v1.IShieldedNodes|null} [desiredShieldedNodes] ClusterUpdate desiredShieldedNodes + * @property {google.container.v1.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling + * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations + * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [desiredMasterAuthorizedNetworksConfig] ClusterUpdate desiredMasterAuthorizedNetworksConfig + * @property {google.container.v1.IClusterAutoscaling|null} [desiredClusterAutoscaling] ClusterUpdate desiredClusterAutoscaling + * @property {google.container.v1.IBinaryAuthorization|null} [desiredBinaryAuthorization] ClusterUpdate desiredBinaryAuthorization + * @property {string|null} [desiredLoggingService] ClusterUpdate desiredLoggingService + * @property {google.container.v1.IResourceUsageExportConfig|null} [desiredResourceUsageExportConfig] ClusterUpdate desiredResourceUsageExportConfig + * @property {google.container.v1.IVerticalPodAutoscaling|null} [desiredVerticalPodAutoscaling] ClusterUpdate desiredVerticalPodAutoscaling + * @property {google.container.v1.IPrivateClusterConfig|null} [desiredPrivateClusterConfig] ClusterUpdate desiredPrivateClusterConfig + * @property {google.container.v1.IIntraNodeVisibilityConfig|null} [desiredIntraNodeVisibilityConfig] ClusterUpdate desiredIntraNodeVisibilityConfig + * @property {google.container.v1.IDefaultSnatStatus|null} [desiredDefaultSnatStatus] ClusterUpdate desiredDefaultSnatStatus + * @property {google.container.v1.IReleaseChannel|null} [desiredReleaseChannel] ClusterUpdate desiredReleaseChannel + * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion + */ + + /** + * Constructs a new ClusterUpdate. + * @memberof google.container.v1 + * @classdesc Represents a ClusterUpdate. + * @implements IClusterUpdate + * @constructor + * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set + */ + function ClusterUpdate(properties) { + this.desiredLocations = []; + 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]]; + } + + /** + * ClusterUpdate desiredNodeVersion. + * @member {string} desiredNodeVersion + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodeVersion = ""; + + /** + * ClusterUpdate desiredMonitoringService. + * @member {string} desiredMonitoringService + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredMonitoringService = ""; + + /** + * ClusterUpdate desiredAddonsConfig. + * @member {google.container.v1.IAddonsConfig|null|undefined} desiredAddonsConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredAddonsConfig = null; + + /** + * ClusterUpdate desiredNodePoolId. + * @member {string} desiredNodePoolId + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolId = ""; + + /** + * ClusterUpdate desiredImageType. + * @member {string} desiredImageType + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredImageType = ""; + + /** + * ClusterUpdate desiredDatabaseEncryption. + * @member {google.container.v1.IDatabaseEncryption|null|undefined} desiredDatabaseEncryption + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredDatabaseEncryption = null; + + /** + * ClusterUpdate desiredWorkloadIdentityConfig. + * @member {google.container.v1.IWorkloadIdentityConfig|null|undefined} desiredWorkloadIdentityConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredWorkloadIdentityConfig = null; + + /** + * ClusterUpdate desiredShieldedNodes. + * @member {google.container.v1.IShieldedNodes|null|undefined} desiredShieldedNodes + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredShieldedNodes = null; + + /** + * ClusterUpdate desiredNodePoolAutoscaling. + * @member {google.container.v1.INodePoolAutoscaling|null|undefined} desiredNodePoolAutoscaling + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolAutoscaling = null; + + /** + * ClusterUpdate desiredLocations. + * @member {Array.} desiredLocations + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredLocations = $util.emptyArray; + + /** + * ClusterUpdate desiredMasterAuthorizedNetworksConfig. + * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} desiredMasterAuthorizedNetworksConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredMasterAuthorizedNetworksConfig = null; + + /** + * ClusterUpdate desiredClusterAutoscaling. + * @member {google.container.v1.IClusterAutoscaling|null|undefined} desiredClusterAutoscaling + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredClusterAutoscaling = null; + + /** + * ClusterUpdate desiredBinaryAuthorization. + * @member {google.container.v1.IBinaryAuthorization|null|undefined} desiredBinaryAuthorization + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredBinaryAuthorization = null; + + /** + * ClusterUpdate desiredLoggingService. + * @member {string} desiredLoggingService + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredLoggingService = ""; + + /** + * ClusterUpdate desiredResourceUsageExportConfig. + * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} desiredResourceUsageExportConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredResourceUsageExportConfig = null; + + /** + * ClusterUpdate desiredVerticalPodAutoscaling. + * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} desiredVerticalPodAutoscaling + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredVerticalPodAutoscaling = null; + + /** + * ClusterUpdate desiredPrivateClusterConfig. + * @member {google.container.v1.IPrivateClusterConfig|null|undefined} desiredPrivateClusterConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredPrivateClusterConfig = null; + + /** + * ClusterUpdate desiredIntraNodeVisibilityConfig. + * @member {google.container.v1.IIntraNodeVisibilityConfig|null|undefined} desiredIntraNodeVisibilityConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredIntraNodeVisibilityConfig = null; + + /** + * ClusterUpdate desiredDefaultSnatStatus. + * @member {google.container.v1.IDefaultSnatStatus|null|undefined} desiredDefaultSnatStatus + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredDefaultSnatStatus = null; + + /** + * ClusterUpdate desiredReleaseChannel. + * @member {google.container.v1.IReleaseChannel|null|undefined} desiredReleaseChannel + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredReleaseChannel = null; + + /** + * ClusterUpdate desiredMasterVersion. + * @member {string} desiredMasterVersion + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredMasterVersion = ""; + + /** + * Creates a new ClusterUpdate instance using the specified properties. + * @function create + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set + * @returns {google.container.v1.ClusterUpdate} ClusterUpdate instance + */ + ClusterUpdate.create = function create(properties) { + return new ClusterUpdate(properties); + }; + + /** + * Encodes the specified ClusterUpdate message. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClusterUpdate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.desiredNodeVersion != null && Object.hasOwnProperty.call(message, "desiredNodeVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); + if (message.desiredMonitoringService != null && Object.hasOwnProperty.call(message, "desiredMonitoringService")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); + if (message.desiredAddonsConfig != null && Object.hasOwnProperty.call(message, "desiredAddonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.desiredAddonsConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.desiredNodePoolId != null && Object.hasOwnProperty.call(message, "desiredNodePoolId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); + if (message.desiredImageType != null && Object.hasOwnProperty.call(message, "desiredImageType")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); + if (message.desiredNodePoolAutoscaling != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.desiredNodePoolAutoscaling, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.desiredLocations != null && message.desiredLocations.length) + for (var i = 0; i < message.desiredLocations.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.desiredLocations[i]); + if (message.desiredMasterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "desiredMasterAuthorizedNetworksConfig")) + $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.desiredMasterAuthorizedNetworksConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.desiredClusterAutoscaling != null && Object.hasOwnProperty.call(message, "desiredClusterAutoscaling")) + $root.google.container.v1.ClusterAutoscaling.encode(message.desiredClusterAutoscaling, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.desiredBinaryAuthorization != null && Object.hasOwnProperty.call(message, "desiredBinaryAuthorization")) + $root.google.container.v1.BinaryAuthorization.encode(message.desiredBinaryAuthorization, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.desiredLoggingService != null && Object.hasOwnProperty.call(message, "desiredLoggingService")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService); + if (message.desiredResourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "desiredResourceUsageExportConfig")) + $root.google.container.v1.ResourceUsageExportConfig.encode(message.desiredResourceUsageExportConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.desiredVerticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "desiredVerticalPodAutoscaling")) + $root.google.container.v1.VerticalPodAutoscaling.encode(message.desiredVerticalPodAutoscaling, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.desiredPrivateClusterConfig != null && Object.hasOwnProperty.call(message, "desiredPrivateClusterConfig")) + $root.google.container.v1.PrivateClusterConfig.encode(message.desiredPrivateClusterConfig, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.desiredIntraNodeVisibilityConfig != null && Object.hasOwnProperty.call(message, "desiredIntraNodeVisibilityConfig")) + $root.google.container.v1.IntraNodeVisibilityConfig.encode(message.desiredIntraNodeVisibilityConfig, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.desiredDefaultSnatStatus != null && Object.hasOwnProperty.call(message, "desiredDefaultSnatStatus")) + $root.google.container.v1.DefaultSnatStatus.encode(message.desiredDefaultSnatStatus, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.desiredReleaseChannel != null && Object.hasOwnProperty.call(message, "desiredReleaseChannel")) + $root.google.container.v1.ReleaseChannel.encode(message.desiredReleaseChannel, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.desiredDatabaseEncryption != null && Object.hasOwnProperty.call(message, "desiredDatabaseEncryption")) + $root.google.container.v1.DatabaseEncryption.encode(message.desiredDatabaseEncryption, writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); + if (message.desiredWorkloadIdentityConfig != null && Object.hasOwnProperty.call(message, "desiredWorkloadIdentityConfig")) + $root.google.container.v1.WorkloadIdentityConfig.encode(message.desiredWorkloadIdentityConfig, writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); + if (message.desiredShieldedNodes != null && Object.hasOwnProperty.call(message, "desiredShieldedNodes")) + $root.google.container.v1.ShieldedNodes.encode(message.desiredShieldedNodes, writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim(); + if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); + return writer; + }; + + /** + * Encodes the specified ClusterUpdate message, length delimited. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClusterUpdate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ClusterUpdate message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClusterUpdate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClusterUpdate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: + message.desiredNodeVersion = reader.string(); + break; + case 5: + message.desiredMonitoringService = reader.string(); + break; + case 6: + message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); + break; + case 7: + message.desiredNodePoolId = reader.string(); + break; + case 8: + message.desiredImageType = reader.string(); + break; + case 46: + message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32()); + break; + case 47: + message.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.decode(reader, reader.uint32()); + break; + case 48: + message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32()); + break; + case 9: + message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + break; + case 10: + if (!(message.desiredLocations && message.desiredLocations.length)) + message.desiredLocations = []; + message.desiredLocations.push(reader.string()); + break; + case 12: + message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32()); + break; + case 15: + message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32()); + break; + case 16: + message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32()); + break; + case 19: + message.desiredLoggingService = reader.string(); + break; + case 21: + message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32()); + break; + case 22: + message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32()); + break; + case 25: + message.desiredPrivateClusterConfig = $root.google.container.v1.PrivateClusterConfig.decode(reader, reader.uint32()); + break; + case 26: + message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.decode(reader, reader.uint32()); + break; + case 28: + message.desiredDefaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.decode(reader, reader.uint32()); + break; + case 31: + message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32()); + break; + case 100: + message.desiredMasterVersion = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ClusterUpdate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClusterUpdate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ClusterUpdate message. + * @function verify + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClusterUpdate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) + if (!$util.isString(message.desiredNodeVersion)) + return "desiredNodeVersion: string expected"; + if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) + if (!$util.isString(message.desiredMonitoringService)) + return "desiredMonitoringService: string expected"; + if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) { + var error = $root.google.container.v1.AddonsConfig.verify(message.desiredAddonsConfig); + if (error) + return "desiredAddonsConfig." + error; + } + if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) + if (!$util.isString(message.desiredNodePoolId)) + return "desiredNodePoolId: string expected"; + if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) + if (!$util.isString(message.desiredImageType)) + return "desiredImageType: string expected"; + if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption")) { + var error = $root.google.container.v1.DatabaseEncryption.verify(message.desiredDatabaseEncryption); + if (error) + return "desiredDatabaseEncryption." + error; + } + if (message.desiredWorkloadIdentityConfig != null && message.hasOwnProperty("desiredWorkloadIdentityConfig")) { + var error = $root.google.container.v1.WorkloadIdentityConfig.verify(message.desiredWorkloadIdentityConfig); + if (error) + return "desiredWorkloadIdentityConfig." + error; + } + if (message.desiredShieldedNodes != null && message.hasOwnProperty("desiredShieldedNodes")) { + var error = $root.google.container.v1.ShieldedNodes.verify(message.desiredShieldedNodes); + if (error) + return "desiredShieldedNodes." + error; + } + if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) { + var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.desiredNodePoolAutoscaling); + if (error) + return "desiredNodePoolAutoscaling." + error; + } + if (message.desiredLocations != null && message.hasOwnProperty("desiredLocations")) { + if (!Array.isArray(message.desiredLocations)) + return "desiredLocations: array expected"; + for (var i = 0; i < message.desiredLocations.length; ++i) + if (!$util.isString(message.desiredLocations[i])) + return "desiredLocations: string[] expected"; + } + if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) { + var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.desiredMasterAuthorizedNetworksConfig); + if (error) + return "desiredMasterAuthorizedNetworksConfig." + error; + } + if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling")) { + var error = $root.google.container.v1.ClusterAutoscaling.verify(message.desiredClusterAutoscaling); + if (error) + return "desiredClusterAutoscaling." + error; + } + if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization")) { + var error = $root.google.container.v1.BinaryAuthorization.verify(message.desiredBinaryAuthorization); + if (error) + return "desiredBinaryAuthorization." + error; + } + if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService")) + if (!$util.isString(message.desiredLoggingService)) + return "desiredLoggingService: string expected"; + if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) { + var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.desiredResourceUsageExportConfig); + if (error) + return "desiredResourceUsageExportConfig." + error; + } + if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling")) { + var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.desiredVerticalPodAutoscaling); + if (error) + return "desiredVerticalPodAutoscaling." + error; + } + if (message.desiredPrivateClusterConfig != null && message.hasOwnProperty("desiredPrivateClusterConfig")) { + var error = $root.google.container.v1.PrivateClusterConfig.verify(message.desiredPrivateClusterConfig); + if (error) + return "desiredPrivateClusterConfig." + error; + } + if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) { + var error = $root.google.container.v1.IntraNodeVisibilityConfig.verify(message.desiredIntraNodeVisibilityConfig); + if (error) + return "desiredIntraNodeVisibilityConfig." + error; + } + if (message.desiredDefaultSnatStatus != null && message.hasOwnProperty("desiredDefaultSnatStatus")) { + var error = $root.google.container.v1.DefaultSnatStatus.verify(message.desiredDefaultSnatStatus); + if (error) + return "desiredDefaultSnatStatus." + error; + } + if (message.desiredReleaseChannel != null && message.hasOwnProperty("desiredReleaseChannel")) { + var error = $root.google.container.v1.ReleaseChannel.verify(message.desiredReleaseChannel); + if (error) + return "desiredReleaseChannel." + error; + } + if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) + if (!$util.isString(message.desiredMasterVersion)) + return "desiredMasterVersion: string expected"; + return null; + }; + + /** + * Creates a ClusterUpdate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + */ + ClusterUpdate.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ClusterUpdate) + return object; + var message = new $root.google.container.v1.ClusterUpdate(); + if (object.desiredNodeVersion != null) + message.desiredNodeVersion = String(object.desiredNodeVersion); + if (object.desiredMonitoringService != null) + message.desiredMonitoringService = String(object.desiredMonitoringService); + if (object.desiredAddonsConfig != null) { + if (typeof object.desiredAddonsConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredAddonsConfig: object expected"); + message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.desiredAddonsConfig); + } + if (object.desiredNodePoolId != null) + message.desiredNodePoolId = String(object.desiredNodePoolId); + if (object.desiredImageType != null) + message.desiredImageType = String(object.desiredImageType); + if (object.desiredDatabaseEncryption != null) { + if (typeof object.desiredDatabaseEncryption !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredDatabaseEncryption: object expected"); + message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.desiredDatabaseEncryption); + } + if (object.desiredWorkloadIdentityConfig != null) { + if (typeof object.desiredWorkloadIdentityConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredWorkloadIdentityConfig: object expected"); + message.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.fromObject(object.desiredWorkloadIdentityConfig); + } + if (object.desiredShieldedNodes != null) { + if (typeof object.desiredShieldedNodes !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredShieldedNodes: object expected"); + message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.fromObject(object.desiredShieldedNodes); + } + if (object.desiredNodePoolAutoscaling != null) { + if (typeof object.desiredNodePoolAutoscaling !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoscaling: object expected"); + message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.desiredNodePoolAutoscaling); + } + if (object.desiredLocations) { + if (!Array.isArray(object.desiredLocations)) + throw TypeError(".google.container.v1.ClusterUpdate.desiredLocations: array expected"); + message.desiredLocations = []; + for (var i = 0; i < object.desiredLocations.length; ++i) + message.desiredLocations[i] = String(object.desiredLocations[i]); + } + if (object.desiredMasterAuthorizedNetworksConfig != null) { + if (typeof object.desiredMasterAuthorizedNetworksConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredMasterAuthorizedNetworksConfig: object expected"); + message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.desiredMasterAuthorizedNetworksConfig); + } + if (object.desiredClusterAutoscaling != null) { + if (typeof object.desiredClusterAutoscaling !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredClusterAutoscaling: object expected"); + message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.desiredClusterAutoscaling); + } + if (object.desiredBinaryAuthorization != null) { + if (typeof object.desiredBinaryAuthorization !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredBinaryAuthorization: object expected"); + message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.desiredBinaryAuthorization); + } + if (object.desiredLoggingService != null) + message.desiredLoggingService = String(object.desiredLoggingService); + if (object.desiredResourceUsageExportConfig != null) { + if (typeof object.desiredResourceUsageExportConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredResourceUsageExportConfig: object expected"); + message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.desiredResourceUsageExportConfig); + } + if (object.desiredVerticalPodAutoscaling != null) { + if (typeof object.desiredVerticalPodAutoscaling !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredVerticalPodAutoscaling: object expected"); + message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.desiredVerticalPodAutoscaling); + } + if (object.desiredPrivateClusterConfig != null) { + if (typeof object.desiredPrivateClusterConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredPrivateClusterConfig: object expected"); + message.desiredPrivateClusterConfig = $root.google.container.v1.PrivateClusterConfig.fromObject(object.desiredPrivateClusterConfig); + } + if (object.desiredIntraNodeVisibilityConfig != null) { + if (typeof object.desiredIntraNodeVisibilityConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredIntraNodeVisibilityConfig: object expected"); + message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.fromObject(object.desiredIntraNodeVisibilityConfig); + } + if (object.desiredDefaultSnatStatus != null) { + if (typeof object.desiredDefaultSnatStatus !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredDefaultSnatStatus: object expected"); + message.desiredDefaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.fromObject(object.desiredDefaultSnatStatus); + } + if (object.desiredReleaseChannel != null) { + if (typeof object.desiredReleaseChannel !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredReleaseChannel: object expected"); + message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.fromObject(object.desiredReleaseChannel); + } + if (object.desiredMasterVersion != null) + message.desiredMasterVersion = String(object.desiredMasterVersion); + return message; + }; + + /** + * Creates a plain object from a ClusterUpdate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {google.container.v1.ClusterUpdate} message ClusterUpdate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClusterUpdate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.desiredLocations = []; + if (options.defaults) { + object.desiredNodeVersion = ""; + object.desiredMonitoringService = ""; + object.desiredAddonsConfig = null; + object.desiredNodePoolId = ""; + object.desiredImageType = ""; + object.desiredNodePoolAutoscaling = null; + object.desiredMasterAuthorizedNetworksConfig = null; + object.desiredClusterAutoscaling = null; + object.desiredBinaryAuthorization = null; + object.desiredLoggingService = ""; + object.desiredResourceUsageExportConfig = null; + object.desiredVerticalPodAutoscaling = null; + object.desiredPrivateClusterConfig = null; + object.desiredIntraNodeVisibilityConfig = null; + object.desiredDefaultSnatStatus = null; + object.desiredReleaseChannel = null; + object.desiredDatabaseEncryption = null; + object.desiredWorkloadIdentityConfig = null; + object.desiredShieldedNodes = null; + object.desiredMasterVersion = ""; + } + if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) + object.desiredNodeVersion = message.desiredNodeVersion; + if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) + object.desiredMonitoringService = message.desiredMonitoringService; + if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) + object.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.desiredAddonsConfig, options); + if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) + object.desiredNodePoolId = message.desiredNodePoolId; + if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) + object.desiredImageType = message.desiredImageType; + if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) + object.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.desiredNodePoolAutoscaling, options); + if (message.desiredLocations && message.desiredLocations.length) { + object.desiredLocations = []; + for (var j = 0; j < message.desiredLocations.length; ++j) + object.desiredLocations[j] = message.desiredLocations[j]; + } + if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) + object.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.desiredMasterAuthorizedNetworksConfig, options); + if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling")) + object.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.desiredClusterAutoscaling, options); + if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization")) + object.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.desiredBinaryAuthorization, options); + if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService")) + object.desiredLoggingService = message.desiredLoggingService; + if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) + object.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.desiredResourceUsageExportConfig, options); + if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling")) + object.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.desiredVerticalPodAutoscaling, options); + if (message.desiredPrivateClusterConfig != null && message.hasOwnProperty("desiredPrivateClusterConfig")) + object.desiredPrivateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.desiredPrivateClusterConfig, options); + if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) + object.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.toObject(message.desiredIntraNodeVisibilityConfig, options); + if (message.desiredDefaultSnatStatus != null && message.hasOwnProperty("desiredDefaultSnatStatus")) + object.desiredDefaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.toObject(message.desiredDefaultSnatStatus, options); + if (message.desiredReleaseChannel != null && message.hasOwnProperty("desiredReleaseChannel")) + object.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.toObject(message.desiredReleaseChannel, options); + if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption")) + object.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.desiredDatabaseEncryption, options); + if (message.desiredWorkloadIdentityConfig != null && message.hasOwnProperty("desiredWorkloadIdentityConfig")) + object.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.toObject(message.desiredWorkloadIdentityConfig, options); + if (message.desiredShieldedNodes != null && message.hasOwnProperty("desiredShieldedNodes")) + object.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.toObject(message.desiredShieldedNodes, options); + if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) + object.desiredMasterVersion = message.desiredMasterVersion; + return object; + }; + + /** + * Converts this ClusterUpdate to JSON. + * @function toJSON + * @memberof google.container.v1.ClusterUpdate + * @instance + * @returns {Object.} JSON object + */ + ClusterUpdate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ClusterUpdate; + })(); + + v1.Operation = (function() { + + /** + * Properties of an Operation. + * @memberof google.container.v1 + * @interface IOperation + * @property {string|null} [name] Operation name + * @property {string|null} [zone] Operation zone + * @property {google.container.v1.Operation.Type|null} [operationType] Operation operationType + * @property {google.container.v1.Operation.Status|null} [status] Operation status + * @property {string|null} [detail] Operation detail + * @property {string|null} [statusMessage] Operation statusMessage + * @property {string|null} [selfLink] Operation selfLink + * @property {string|null} [targetLink] Operation targetLink + * @property {string|null} [location] Operation location + * @property {string|null} [startTime] Operation startTime + * @property {string|null} [endTime] Operation endTime + * @property {google.container.v1.IOperationProgress|null} [progress] Operation progress + * @property {Array.|null} [clusterConditions] Operation clusterConditions + * @property {Array.|null} [nodepoolConditions] Operation nodepoolConditions + */ + + /** + * Constructs a new Operation. + * @memberof google.container.v1 + * @classdesc Represents an Operation. + * @implements IOperation + * @constructor + * @param {google.container.v1.IOperation=} [properties] Properties to set + */ + function Operation(properties) { + this.clusterConditions = []; + this.nodepoolConditions = []; + 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]]; + } + + /** + * Operation name. + * @member {string} name + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.name = ""; + + /** + * Operation zone. + * @member {string} zone + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.zone = ""; + + /** + * Operation operationType. + * @member {google.container.v1.Operation.Type} operationType + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.operationType = 0; + + /** + * Operation status. + * @member {google.container.v1.Operation.Status} status + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.status = 0; + + /** + * Operation detail. + * @member {string} detail + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.detail = ""; + + /** + * Operation statusMessage. + * @member {string} statusMessage + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.statusMessage = ""; + + /** + * Operation selfLink. + * @member {string} selfLink + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.selfLink = ""; + + /** + * Operation targetLink. + * @member {string} targetLink + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.targetLink = ""; + + /** + * Operation location. + * @member {string} location + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.location = ""; + + /** + * Operation startTime. + * @member {string} startTime + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.startTime = ""; + + /** + * Operation endTime. + * @member {string} endTime + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.endTime = ""; + + /** + * Operation progress. + * @member {google.container.v1.IOperationProgress|null|undefined} progress + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.progress = null; + + /** + * Operation clusterConditions. + * @member {Array.} clusterConditions + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.clusterConditions = $util.emptyArray; + + /** + * Operation nodepoolConditions. + * @member {Array.} nodepoolConditions + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.nodepoolConditions = $util.emptyArray; + + /** + * Creates a new Operation instance using the specified properties. + * @function create + * @memberof google.container.v1.Operation + * @static + * @param {google.container.v1.IOperation=} [properties] Properties to set + * @returns {google.container.v1.Operation} Operation instance + */ + Operation.create = function create(properties) { + return new Operation(properties); + }; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages. + * @function encode + * @memberof google.container.v1.Operation + * @static + * @param {google.container.v1.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); + if (message.targetLink != null && Object.hasOwnProperty.call(message, "targetLink")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); + if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.endTime); + if (message.progress != null && Object.hasOwnProperty.call(message, "progress")) + $root.google.container.v1.OperationProgress.encode(message.progress, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.clusterConditions != null && message.clusterConditions.length) + for (var i = 0; i < message.clusterConditions.length; ++i) + $root.google.container.v1.StatusCondition.encode(message.clusterConditions[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.nodepoolConditions != null && message.nodepoolConditions.length) + for (var i = 0; i < message.nodepoolConditions.length; ++i) + $root.google.container.v1.StatusCondition.encode(message.nodepoolConditions[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.Operation + * @static + * @param {google.container.v1.IOperation} message Operation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Operation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.operationType = reader.int32(); + break; + case 4: + message.status = reader.int32(); + break; + case 8: + message.detail = reader.string(); + break; + case 5: + message.statusMessage = reader.string(); + break; + case 6: + message.selfLink = reader.string(); + break; + case 7: + message.targetLink = reader.string(); + break; + case 9: + message.location = reader.string(); + break; + case 10: + message.startTime = reader.string(); + break; + case 11: + message.endTime = reader.string(); + break; + case 12: + message.progress = $root.google.container.v1.OperationProgress.decode(reader, reader.uint32()); + break; + case 13: + if (!(message.clusterConditions && message.clusterConditions.length)) + message.clusterConditions = []; + message.clusterConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + break; + case 14: + if (!(message.nodepoolConditions && message.nodepoolConditions.length)) + message.nodepoolConditions = []; + message.nodepoolConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.Operation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.Operation} Operation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Operation message. + * @function verify + * @memberof google.container.v1.Operation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.operationType != null && message.hasOwnProperty("operationType")) + switch (message.operationType) { + default: + return "operationType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + break; + } + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.detail != null && message.hasOwnProperty("detail")) + if (!$util.isString(message.detail)) + return "detail: string expected"; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + if (message.targetLink != null && message.hasOwnProperty("targetLink")) + if (!$util.isString(message.targetLink)) + return "targetLink: string expected"; + if (message.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) + if (!$util.isString(message.startTime)) + return "startTime: string expected"; + if (message.endTime != null && message.hasOwnProperty("endTime")) + if (!$util.isString(message.endTime)) + return "endTime: string expected"; + if (message.progress != null && message.hasOwnProperty("progress")) { + var error = $root.google.container.v1.OperationProgress.verify(message.progress); + if (error) + return "progress." + error; + } + if (message.clusterConditions != null && message.hasOwnProperty("clusterConditions")) { + if (!Array.isArray(message.clusterConditions)) + return "clusterConditions: array expected"; + for (var i = 0; i < message.clusterConditions.length; ++i) { + var error = $root.google.container.v1.StatusCondition.verify(message.clusterConditions[i]); + if (error) + return "clusterConditions." + error; + } + } + if (message.nodepoolConditions != null && message.hasOwnProperty("nodepoolConditions")) { + if (!Array.isArray(message.nodepoolConditions)) + return "nodepoolConditions: array expected"; + for (var i = 0; i < message.nodepoolConditions.length; ++i) { + var error = $root.google.container.v1.StatusCondition.verify(message.nodepoolConditions[i]); + if (error) + return "nodepoolConditions." + error; + } + } + return null; + }; + + /** + * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.Operation + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.Operation} Operation + */ + Operation.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.Operation) + return object; + var message = new $root.google.container.v1.Operation(); + if (object.name != null) + message.name = String(object.name); + if (object.zone != null) + message.zone = String(object.zone); + switch (object.operationType) { + case "TYPE_UNSPECIFIED": + case 0: + message.operationType = 0; + break; + case "CREATE_CLUSTER": + case 1: + message.operationType = 1; + break; + case "DELETE_CLUSTER": + case 2: + message.operationType = 2; + break; + case "UPGRADE_MASTER": + case 3: + message.operationType = 3; + break; + case "UPGRADE_NODES": + case 4: + message.operationType = 4; + break; + case "REPAIR_CLUSTER": + case 5: + message.operationType = 5; + break; + case "UPDATE_CLUSTER": + case 6: + message.operationType = 6; + break; + case "CREATE_NODE_POOL": + case 7: + message.operationType = 7; + break; + case "DELETE_NODE_POOL": + case 8: + message.operationType = 8; + break; + case "SET_NODE_POOL_MANAGEMENT": + case 9: + message.operationType = 9; + break; + case "AUTO_REPAIR_NODES": + case 10: + message.operationType = 10; + break; + case "AUTO_UPGRADE_NODES": + case 11: + message.operationType = 11; + break; + case "SET_LABELS": + case 12: + message.operationType = 12; + break; + case "SET_MASTER_AUTH": + case 13: + message.operationType = 13; + break; + case "SET_NODE_POOL_SIZE": + case 14: + message.operationType = 14; + break; + case "SET_NETWORK_POLICY": + case 15: + message.operationType = 15; + break; + case "SET_MAINTENANCE_POLICY": + case 16: + message.operationType = 16; + break; + } + switch (object.status) { + case "STATUS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "PENDING": + case 1: + message.status = 1; + break; + case "RUNNING": + case 2: + message.status = 2; + break; + case "DONE": + case 3: + message.status = 3; + break; + case "ABORTING": + case 4: + message.status = 4; + break; + } + if (object.detail != null) + message.detail = String(object.detail); + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.targetLink != null) + message.targetLink = String(object.targetLink); + if (object.location != null) + message.location = String(object.location); + if (object.startTime != null) + message.startTime = String(object.startTime); + if (object.endTime != null) + message.endTime = String(object.endTime); + if (object.progress != null) { + if (typeof object.progress !== "object") + throw TypeError(".google.container.v1.Operation.progress: object expected"); + message.progress = $root.google.container.v1.OperationProgress.fromObject(object.progress); + } + if (object.clusterConditions) { + if (!Array.isArray(object.clusterConditions)) + throw TypeError(".google.container.v1.Operation.clusterConditions: array expected"); + message.clusterConditions = []; + for (var i = 0; i < object.clusterConditions.length; ++i) { + if (typeof object.clusterConditions[i] !== "object") + throw TypeError(".google.container.v1.Operation.clusterConditions: object expected"); + message.clusterConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.clusterConditions[i]); + } + } + if (object.nodepoolConditions) { + if (!Array.isArray(object.nodepoolConditions)) + throw TypeError(".google.container.v1.Operation.nodepoolConditions: array expected"); + message.nodepoolConditions = []; + for (var i = 0; i < object.nodepoolConditions.length; ++i) { + if (typeof object.nodepoolConditions[i] !== "object") + throw TypeError(".google.container.v1.Operation.nodepoolConditions: object expected"); + message.nodepoolConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.nodepoolConditions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.Operation + * @static + * @param {google.container.v1.Operation} message Operation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Operation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.clusterConditions = []; + object.nodepoolConditions = []; + } + if (options.defaults) { + object.name = ""; + object.zone = ""; + object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; + object.statusMessage = ""; + object.selfLink = ""; + object.targetLink = ""; + object.detail = ""; + object.location = ""; + object.startTime = ""; + object.endTime = ""; + object.progress = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.operationType != null && message.hasOwnProperty("operationType")) + object.operationType = options.enums === String ? $root.google.container.v1.Operation.Type[message.operationType] : message.operationType; + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] : message.status; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + object.selfLink = message.selfLink; + if (message.targetLink != null && message.hasOwnProperty("targetLink")) + object.targetLink = message.targetLink; + if (message.detail != null && message.hasOwnProperty("detail")) + object.detail = message.detail; + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = message.startTime; + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = message.endTime; + if (message.progress != null && message.hasOwnProperty("progress")) + object.progress = $root.google.container.v1.OperationProgress.toObject(message.progress, options); + if (message.clusterConditions && message.clusterConditions.length) { + object.clusterConditions = []; + for (var j = 0; j < message.clusterConditions.length; ++j) + object.clusterConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.clusterConditions[j], options); + } + if (message.nodepoolConditions && message.nodepoolConditions.length) { + object.nodepoolConditions = []; + for (var j = 0; j < message.nodepoolConditions.length; ++j) + object.nodepoolConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.nodepoolConditions[j], options); + } + return object; + }; + + /** + * Converts this Operation to JSON. + * @function toJSON + * @memberof google.container.v1.Operation + * @instance + * @returns {Object.} JSON object + */ + Operation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Status enum. + * @name google.container.v1.Operation.Status + * @enum {number} + * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} DONE=3 DONE value + * @property {number} ABORTING=4 ABORTING value + */ + Operation.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "DONE"] = 3; + values[valuesById[4] = "ABORTING"] = 4; + return values; + })(); + + /** + * Type enum. + * @name google.container.v1.Operation.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} CREATE_CLUSTER=1 CREATE_CLUSTER value + * @property {number} DELETE_CLUSTER=2 DELETE_CLUSTER value + * @property {number} UPGRADE_MASTER=3 UPGRADE_MASTER value + * @property {number} UPGRADE_NODES=4 UPGRADE_NODES value + * @property {number} REPAIR_CLUSTER=5 REPAIR_CLUSTER value + * @property {number} UPDATE_CLUSTER=6 UPDATE_CLUSTER value + * @property {number} CREATE_NODE_POOL=7 CREATE_NODE_POOL value + * @property {number} DELETE_NODE_POOL=8 DELETE_NODE_POOL value + * @property {number} SET_NODE_POOL_MANAGEMENT=9 SET_NODE_POOL_MANAGEMENT value + * @property {number} AUTO_REPAIR_NODES=10 AUTO_REPAIR_NODES value + * @property {number} AUTO_UPGRADE_NODES=11 AUTO_UPGRADE_NODES value + * @property {number} SET_LABELS=12 SET_LABELS value + * @property {number} SET_MASTER_AUTH=13 SET_MASTER_AUTH value + * @property {number} SET_NODE_POOL_SIZE=14 SET_NODE_POOL_SIZE value + * @property {number} SET_NETWORK_POLICY=15 SET_NETWORK_POLICY value + * @property {number} SET_MAINTENANCE_POLICY=16 SET_MAINTENANCE_POLICY value + */ + Operation.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CREATE_CLUSTER"] = 1; + values[valuesById[2] = "DELETE_CLUSTER"] = 2; + values[valuesById[3] = "UPGRADE_MASTER"] = 3; + values[valuesById[4] = "UPGRADE_NODES"] = 4; + values[valuesById[5] = "REPAIR_CLUSTER"] = 5; + values[valuesById[6] = "UPDATE_CLUSTER"] = 6; + values[valuesById[7] = "CREATE_NODE_POOL"] = 7; + values[valuesById[8] = "DELETE_NODE_POOL"] = 8; + values[valuesById[9] = "SET_NODE_POOL_MANAGEMENT"] = 9; + values[valuesById[10] = "AUTO_REPAIR_NODES"] = 10; + values[valuesById[11] = "AUTO_UPGRADE_NODES"] = 11; + values[valuesById[12] = "SET_LABELS"] = 12; + values[valuesById[13] = "SET_MASTER_AUTH"] = 13; + values[valuesById[14] = "SET_NODE_POOL_SIZE"] = 14; + values[valuesById[15] = "SET_NETWORK_POLICY"] = 15; + values[valuesById[16] = "SET_MAINTENANCE_POLICY"] = 16; + return values; + })(); + + return Operation; + })(); + + v1.OperationProgress = (function() { + + /** + * Properties of an OperationProgress. + * @memberof google.container.v1 + * @interface IOperationProgress + * @property {string|null} [name] OperationProgress name + * @property {google.container.v1.Operation.Status|null} [status] OperationProgress status + * @property {Array.|null} [metrics] OperationProgress metrics + * @property {Array.|null} [stages] OperationProgress stages + */ + + /** + * Constructs a new OperationProgress. + * @memberof google.container.v1 + * @classdesc Represents an OperationProgress. + * @implements IOperationProgress + * @constructor + * @param {google.container.v1.IOperationProgress=} [properties] Properties to set + */ + function OperationProgress(properties) { + this.metrics = []; + this.stages = []; + 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]]; + } + + /** + * OperationProgress name. + * @member {string} name + * @memberof google.container.v1.OperationProgress + * @instance + */ + OperationProgress.prototype.name = ""; + + /** + * OperationProgress status. + * @member {google.container.v1.Operation.Status} status + * @memberof google.container.v1.OperationProgress + * @instance + */ + OperationProgress.prototype.status = 0; + + /** + * OperationProgress metrics. + * @member {Array.} metrics + * @memberof google.container.v1.OperationProgress + * @instance + */ + OperationProgress.prototype.metrics = $util.emptyArray; + + /** + * OperationProgress stages. + * @member {Array.} stages + * @memberof google.container.v1.OperationProgress + * @instance + */ + OperationProgress.prototype.stages = $util.emptyArray; + + /** + * Creates a new OperationProgress instance using the specified properties. + * @function create + * @memberof google.container.v1.OperationProgress + * @static + * @param {google.container.v1.IOperationProgress=} [properties] Properties to set + * @returns {google.container.v1.OperationProgress} OperationProgress instance + */ + OperationProgress.create = function create(properties) { + return new OperationProgress(properties); + }; + + /** + * Encodes the specified OperationProgress message. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages. + * @function encode + * @memberof google.container.v1.OperationProgress + * @static + * @param {google.container.v1.IOperationProgress} message OperationProgress message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationProgress.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.container.v1.OperationProgress.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.stages != null && message.stages.length) + for (var i = 0; i < message.stages.length; ++i) + $root.google.container.v1.OperationProgress.encode(message.stages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OperationProgress message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.OperationProgress + * @static + * @param {google.container.v1.IOperationProgress} message OperationProgress message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OperationProgress.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OperationProgress message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.OperationProgress + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.OperationProgress} OperationProgress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationProgress.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.OperationProgress(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.status = reader.int32(); + break; + case 3: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.container.v1.OperationProgress.Metric.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.stages && message.stages.length)) + message.stages = []; + message.stages.push($root.google.container.v1.OperationProgress.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OperationProgress message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.OperationProgress + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.OperationProgress} OperationProgress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OperationProgress.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OperationProgress message. + * @function verify + * @memberof google.container.v1.OperationProgress + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OperationProgress.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.container.v1.OperationProgress.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.stages != null && message.hasOwnProperty("stages")) { + if (!Array.isArray(message.stages)) + return "stages: array expected"; + for (var i = 0; i < message.stages.length; ++i) { + var error = $root.google.container.v1.OperationProgress.verify(message.stages[i]); + if (error) + return "stages." + error; + } + } + return null; + }; + + /** + * Creates an OperationProgress message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.OperationProgress + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.OperationProgress} OperationProgress + */ + OperationProgress.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.OperationProgress) + return object; + var message = new $root.google.container.v1.OperationProgress(); + if (object.name != null) + message.name = String(object.name); + switch (object.status) { + case "STATUS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "PENDING": + case 1: + message.status = 1; + break; + case "RUNNING": + case 2: + message.status = 2; + break; + case "DONE": + case 3: + message.status = 3; + break; + case "ABORTING": + case 4: + message.status = 4; + break; + } + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.container.v1.OperationProgress.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.container.v1.OperationProgress.metrics: object expected"); + message.metrics[i] = $root.google.container.v1.OperationProgress.Metric.fromObject(object.metrics[i]); + } + } + if (object.stages) { + if (!Array.isArray(object.stages)) + throw TypeError(".google.container.v1.OperationProgress.stages: array expected"); + message.stages = []; + for (var i = 0; i < object.stages.length; ++i) { + if (typeof object.stages[i] !== "object") + throw TypeError(".google.container.v1.OperationProgress.stages: object expected"); + message.stages[i] = $root.google.container.v1.OperationProgress.fromObject(object.stages[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OperationProgress message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.OperationProgress + * @static + * @param {google.container.v1.OperationProgress} message OperationProgress + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OperationProgress.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.metrics = []; + object.stages = []; + } + if (options.defaults) { + object.name = ""; + object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] : message.status; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.container.v1.OperationProgress.Metric.toObject(message.metrics[j], options); + } + if (message.stages && message.stages.length) { + object.stages = []; + for (var j = 0; j < message.stages.length; ++j) + object.stages[j] = $root.google.container.v1.OperationProgress.toObject(message.stages[j], options); + } + return object; + }; + + /** + * Converts this OperationProgress to JSON. + * @function toJSON + * @memberof google.container.v1.OperationProgress + * @instance + * @returns {Object.} JSON object + */ + OperationProgress.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + OperationProgress.Metric = (function() { + + /** + * Properties of a Metric. + * @memberof google.container.v1.OperationProgress + * @interface IMetric + * @property {string|null} [name] Metric name + * @property {number|Long|null} [intValue] Metric intValue + * @property {number|null} [doubleValue] Metric doubleValue + * @property {string|null} [stringValue] Metric stringValue + */ + + /** + * Constructs a new Metric. + * @memberof google.container.v1.OperationProgress + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.container.v1.OperationProgress.IMetric=} [properties] Properties to set + */ + function Metric(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]]; + } + + /** + * Metric name. + * @member {string} name + * @memberof google.container.v1.OperationProgress.Metric + * @instance + */ + Metric.prototype.name = ""; + + /** + * Metric intValue. + * @member {number|Long} intValue + * @memberof google.container.v1.OperationProgress.Metric + * @instance + */ + Metric.prototype.intValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Metric doubleValue. + * @member {number} doubleValue + * @memberof google.container.v1.OperationProgress.Metric + * @instance + */ + Metric.prototype.doubleValue = 0; + + /** + * Metric stringValue. + * @member {string} stringValue + * @memberof google.container.v1.OperationProgress.Metric + * @instance + */ + Metric.prototype.stringValue = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Metric value. + * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value + * @memberof google.container.v1.OperationProgress.Metric + * @instance + */ + Object.defineProperty(Metric.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {google.container.v1.OperationProgress.IMetric=} [properties] Properties to set + * @returns {google.container.v1.OperationProgress.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages. + * @function encode + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {google.container.v1.OperationProgress.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.intValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.stringValue); + return writer; + }; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.container.v1.OperationProgress.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {google.container.v1.OperationProgress.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.OperationProgress.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.OperationProgress.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.intValue = reader.int64(); + break; + case 3: + message.doubleValue = reader.double(); + break; + case 4: + message.stringValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.OperationProgress.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + properties.value = 1; + if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) + return "intValue: integer|Long expected"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.OperationProgress.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.OperationProgress.Metric) + return object; + var message = new $root.google.container.v1.OperationProgress.Metric(); + if (object.name != null) + message.name = String(object.name); + if (object.intValue != null) + if ($util.Long) + (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; + else if (typeof object.intValue === "string") + message.intValue = parseInt(object.intValue, 10); + else if (typeof object.intValue === "number") + message.intValue = object.intValue; + else if (typeof object.intValue === "object") + message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + return message; + }; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {google.container.v1.OperationProgress.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (typeof message.intValue === "number") + object.intValue = options.longs === String ? String(message.intValue) : message.intValue; + else + object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; + if (options.oneofs) + object.value = "intValue"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.value = "doubleValue"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; + } + return object; + }; + + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.container.v1.OperationProgress.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Metric; + })(); + + return OperationProgress; + })(); + + v1.CreateClusterRequest = (function() { + + /** + * Properties of a CreateClusterRequest. + * @memberof google.container.v1 + * @interface ICreateClusterRequest + * @property {string|null} [projectId] CreateClusterRequest projectId + * @property {string|null} [zone] CreateClusterRequest zone + * @property {google.container.v1.ICluster|null} [cluster] CreateClusterRequest cluster + * @property {string|null} [parent] CreateClusterRequest parent + */ + + /** + * Constructs a new CreateClusterRequest. + * @memberof google.container.v1 + * @classdesc Represents a CreateClusterRequest. + * @implements ICreateClusterRequest + * @constructor + * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set + */ + function CreateClusterRequest(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]]; + } + + /** + * CreateClusterRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.projectId = ""; + + /** + * CreateClusterRequest zone. + * @member {string} zone + * @memberof google.container.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.zone = ""; + + /** + * CreateClusterRequest cluster. + * @member {google.container.v1.ICluster|null|undefined} cluster + * @memberof google.container.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.cluster = null; + + /** + * CreateClusterRequest parent. + * @member {string} parent + * @memberof google.container.v1.CreateClusterRequest + * @instance + */ + CreateClusterRequest.prototype.parent = ""; + + /** + * Creates a new CreateClusterRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set + * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest instance + */ + CreateClusterRequest.create = function create(properties) { + return new CreateClusterRequest(properties); + }; + + /** + * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateClusterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + $root.google.container.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); + return writer; + }; + + /** + * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateClusterRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateClusterRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CreateClusterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.cluster = $root.google.container.v1.Cluster.decode(reader, reader.uint32()); + break; + case 5: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateClusterRequest message. + * @function verify + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateClusterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) { + var error = $root.google.container.v1.Cluster.verify(message.cluster); + if (error) + return "cluster." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + */ + CreateClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CreateClusterRequest) + return object; + var message = new $root.google.container.v1.CreateClusterRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.cluster != null) { + if (typeof object.cluster !== "object") + throw TypeError(".google.container.v1.CreateClusterRequest.cluster: object expected"); + message.cluster = $root.google.container.v1.Cluster.fromObject(object.cluster); + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {google.container.v1.CreateClusterRequest} message CreateClusterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateClusterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.cluster = null; + object.parent = ""; + } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.cluster != null && message.hasOwnProperty("cluster")) + object.cluster = $root.google.container.v1.Cluster.toObject(message.cluster, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this CreateClusterRequest to JSON. + * @function toJSON + * @memberof google.container.v1.CreateClusterRequest + * @instance + * @returns {Object.} JSON object + */ + CreateClusterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateClusterRequest; + })(); + + v1.GetClusterRequest = (function() { + + /** + * Properties of a GetClusterRequest. + * @memberof google.container.v1 + * @interface IGetClusterRequest + * @property {string|null} [projectId] GetClusterRequest projectId + * @property {string|null} [zone] GetClusterRequest zone + * @property {string|null} [clusterId] GetClusterRequest clusterId + * @property {string|null} [name] GetClusterRequest name + */ + + /** + * Constructs a new GetClusterRequest. + * @memberof google.container.v1 + * @classdesc Represents a GetClusterRequest. + * @implements IGetClusterRequest + * @constructor + * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set + */ + function GetClusterRequest(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]]; + } + + /** + * GetClusterRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.GetClusterRequest + * @instance + */ + GetClusterRequest.prototype.projectId = ""; + + /** + * GetClusterRequest zone. + * @member {string} zone + * @memberof google.container.v1.GetClusterRequest + * @instance + */ + GetClusterRequest.prototype.zone = ""; + + /** + * GetClusterRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.GetClusterRequest + * @instance + */ + GetClusterRequest.prototype.clusterId = ""; + + /** + * GetClusterRequest name. + * @member {string} name + * @memberof google.container.v1.GetClusterRequest + * @instance + */ + GetClusterRequest.prototype.name = ""; + + /** + * Creates a new GetClusterRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set + * @returns {google.container.v1.GetClusterRequest} GetClusterRequest instance + */ + GetClusterRequest.create = function create(properties) { + return new GetClusterRequest(properties); + }; + + /** + * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetClusterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetClusterRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetClusterRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetClusterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 5: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetClusterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetClusterRequest message. + * @function verify + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetClusterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + */ + GetClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetClusterRequest) + return object; + var message = new $root.google.container.v1.GetClusterRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {google.container.v1.GetClusterRequest} message GetClusterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetClusterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.name = ""; + } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetClusterRequest to JSON. + * @function toJSON + * @memberof google.container.v1.GetClusterRequest + * @instance + * @returns {Object.} JSON object + */ + GetClusterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetClusterRequest; + })(); + + v1.UpdateClusterRequest = (function() { + + /** + * Properties of an UpdateClusterRequest. + * @memberof google.container.v1 + * @interface IUpdateClusterRequest + * @property {string|null} [projectId] UpdateClusterRequest projectId + * @property {string|null} [zone] UpdateClusterRequest zone + * @property {string|null} [clusterId] UpdateClusterRequest clusterId + * @property {google.container.v1.IClusterUpdate|null} [update] UpdateClusterRequest update + * @property {string|null} [name] UpdateClusterRequest name + */ + + /** + * Constructs a new UpdateClusterRequest. + * @memberof google.container.v1 + * @classdesc Represents an UpdateClusterRequest. + * @implements IUpdateClusterRequest + * @constructor + * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set + */ + function UpdateClusterRequest(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]]; + } + + /** + * UpdateClusterRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.UpdateClusterRequest + * @instance + */ + UpdateClusterRequest.prototype.projectId = ""; + + /** + * UpdateClusterRequest zone. + * @member {string} zone + * @memberof google.container.v1.UpdateClusterRequest + * @instance + */ + UpdateClusterRequest.prototype.zone = ""; + + /** + * UpdateClusterRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.UpdateClusterRequest + * @instance + */ + UpdateClusterRequest.prototype.clusterId = ""; + + /** + * UpdateClusterRequest update. + * @member {google.container.v1.IClusterUpdate|null|undefined} update + * @memberof google.container.v1.UpdateClusterRequest + * @instance + */ + UpdateClusterRequest.prototype.update = null; + + /** + * UpdateClusterRequest name. + * @member {string} name + * @memberof google.container.v1.UpdateClusterRequest + * @instance + */ + UpdateClusterRequest.prototype.name = ""; + + /** + * Creates a new UpdateClusterRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set + * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest instance + */ + UpdateClusterRequest.create = function create(properties) { + return new UpdateClusterRequest(properties); + }; + + /** + * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateClusterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.update != null && Object.hasOwnProperty.call(message, "update")) + $root.google.container.v1.ClusterUpdate.encode(message.update, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + return writer; + }; + + /** + * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateClusterRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateClusterRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UpdateClusterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.update = $root.google.container.v1.ClusterUpdate.decode(reader, reader.uint32()); + break; + case 5: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateClusterRequest message. + * @function verify + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateClusterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.update != null && message.hasOwnProperty("update")) { + var error = $root.google.container.v1.ClusterUpdate.verify(message.update); if (error) - return "masterAuth." + error; + return "update." + error; } - if (message.loggingService != null && message.hasOwnProperty("loggingService")) - if (!$util.isString(message.loggingService)) - return "loggingService: string expected"; - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) - if (!$util.isString(message.monitoringService)) - return "monitoringService: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) - if (!$util.isString(message.clusterIpv4Cidr)) - return "clusterIpv4Cidr: string expected"; - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) { - var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig); - if (error) - return "addonsConfig." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + */ + UpdateClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpdateClusterRequest) + return object; + var message = new $root.google.container.v1.UpdateClusterRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.update != null) { + if (typeof object.update !== "object") + throw TypeError(".google.container.v1.UpdateClusterRequest.update: object expected"); + message.update = $root.google.container.v1.ClusterUpdate.fromObject(object.update); } - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - if (!$util.isString(message.subnetwork)) - return "subnetwork: string expected"; - if (message.nodePools != null && message.hasOwnProperty("nodePools")) { - if (!Array.isArray(message.nodePools)) - return "nodePools: array expected"; - for (var i = 0; i < message.nodePools.length; ++i) { - var error = $root.google.container.v1.NodePool.verify(message.nodePools[i]); - if (error) - return "nodePools." + error; - } + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {google.container.v1.UpdateClusterRequest} message UpdateClusterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateClusterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.update = null; + object.name = ""; } - if (message.locations != null && message.hasOwnProperty("locations")) { - if (!Array.isArray(message.locations)) - return "locations: array expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.update != null && message.hasOwnProperty("update")) + object.update = $root.google.container.v1.ClusterUpdate.toObject(message.update, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this UpdateClusterRequest to JSON. + * @function toJSON + * @memberof google.container.v1.UpdateClusterRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateClusterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateClusterRequest; + })(); + + v1.UpdateNodePoolRequest = (function() { + + /** + * Properties of an UpdateNodePoolRequest. + * @memberof google.container.v1 + * @interface IUpdateNodePoolRequest + * @property {string|null} [projectId] UpdateNodePoolRequest projectId + * @property {string|null} [zone] UpdateNodePoolRequest zone + * @property {string|null} [clusterId] UpdateNodePoolRequest clusterId + * @property {string|null} [nodePoolId] UpdateNodePoolRequest nodePoolId + * @property {string|null} [nodeVersion] UpdateNodePoolRequest nodeVersion + * @property {string|null} [imageType] UpdateNodePoolRequest imageType + * @property {string|null} [name] UpdateNodePoolRequest name + * @property {Array.|null} [locations] UpdateNodePoolRequest locations + * @property {google.container.v1.IWorkloadMetadataConfig|null} [workloadMetadataConfig] UpdateNodePoolRequest workloadMetadataConfig + * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] UpdateNodePoolRequest upgradeSettings + */ + + /** + * Constructs a new UpdateNodePoolRequest. + * @memberof google.container.v1 + * @classdesc Represents an UpdateNodePoolRequest. + * @implements IUpdateNodePoolRequest + * @constructor + * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set + */ + function UpdateNodePoolRequest(properties) { + this.locations = []; + 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]]; + } + + /** + * UpdateNodePoolRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.projectId = ""; + + /** + * UpdateNodePoolRequest zone. + * @member {string} zone + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.zone = ""; + + /** + * UpdateNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.clusterId = ""; + + /** + * UpdateNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.nodePoolId = ""; + + /** + * UpdateNodePoolRequest nodeVersion. + * @member {string} nodeVersion + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.nodeVersion = ""; + + /** + * UpdateNodePoolRequest imageType. + * @member {string} imageType + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.imageType = ""; + + /** + * UpdateNodePoolRequest name. + * @member {string} name + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.name = ""; + + /** + * UpdateNodePoolRequest locations. + * @member {Array.} locations + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.locations = $util.emptyArray; + + /** + * UpdateNodePoolRequest workloadMetadataConfig. + * @member {google.container.v1.IWorkloadMetadataConfig|null|undefined} workloadMetadataConfig + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.workloadMetadataConfig = null; + + /** + * UpdateNodePoolRequest upgradeSettings. + * @member {google.container.v1.NodePool.IUpgradeSettings|null|undefined} upgradeSettings + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.upgradeSettings = null; + + /** + * Creates a new UpdateNodePoolRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest instance + */ + UpdateNodePoolRequest.create = function create(properties) { + return new UpdateNodePoolRequest(properties); + }; + + /** + * Encodes the specified UpdateNodePoolRequest message. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateNodePoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.nodeVersion != null && Object.hasOwnProperty.call(message, "nodeVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); + if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + if (message.locations != null && message.locations.length) for (var i = 0; i < message.locations.length; ++i) - if (!$util.isString(message.locations[i])) - return "locations: string[] expected"; - } - if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha")) - if (typeof message.enableKubernetesAlpha !== "boolean") - return "enableKubernetesAlpha: boolean expected"; - if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) { - if (!$util.isObject(message.resourceLabels)) - return "resourceLabels: object expected"; - var key = Object.keys(message.resourceLabels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.resourceLabels[key[i]])) - return "resourceLabels: string{k:string} expected"; - } - if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) - if (!$util.isString(message.labelFingerprint)) - return "labelFingerprint: string expected"; - if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) { - var error = $root.google.container.v1.LegacyAbac.verify(message.legacyAbac); - if (error) - return "legacyAbac." + error; - } - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; - } - if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) { - var error = $root.google.container.v1.IPAllocationPolicy.verify(message.ipAllocationPolicy); - if (error) - return "ipAllocationPolicy." + error; - } - if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) { - var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.masterAuthorizedNetworksConfig); - if (error) - return "masterAuthorizedNetworksConfig." + error; - } - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { - var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); - if (error) - return "maintenancePolicy." + error; - } - if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization")) { - var error = $root.google.container.v1.BinaryAuthorization.verify(message.binaryAuthorization); - if (error) - return "binaryAuthorization." + error; - } - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) { - var error = $root.google.container.v1.ClusterAutoscaling.verify(message.autoscaling); - if (error) - return "autoscaling." + error; - } - if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) { - var error = $root.google.container.v1.NetworkConfig.verify(message.networkConfig); - if (error) - return "networkConfig." + error; - } - if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint")) { - var error = $root.google.container.v1.MaxPodsConstraint.verify(message.defaultMaxPodsConstraint); - if (error) - return "defaultMaxPodsConstraint." + error; - } - if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig")) { - var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.resourceUsageExportConfig); - if (error) - return "resourceUsageExportConfig." + error; - } - if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig")) { - var error = $root.google.container.v1.AuthenticatorGroupsConfig.verify(message.authenticatorGroupsConfig); - if (error) - return "authenticatorGroupsConfig." + error; - } - if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) { - var error = $root.google.container.v1.PrivateClusterConfig.verify(message.privateClusterConfig); - if (error) - return "privateClusterConfig." + error; - } - if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption")) { - var error = $root.google.container.v1.DatabaseEncryption.verify(message.databaseEncryption); - if (error) - return "databaseEncryption." + error; - } - if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling")) { - var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.verticalPodAutoscaling); - if (error) - return "verticalPodAutoscaling." + error; - } - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - if (!$util.isString(message.selfLink)) - return "selfLink: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) - if (!$util.isString(message.initialClusterVersion)) - return "initialClusterVersion: string expected"; - if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) - if (!$util.isString(message.currentMasterVersion)) - return "currentMasterVersion: string expected"; - if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) - if (!$util.isString(message.currentNodeVersion)) - return "currentNodeVersion: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) - if (!$util.isString(message.createTime)) - return "createTime: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: + writer.uint32(/* id 13, wireType 2 =*/106).string(message.locations[i]); + if (message.workloadMetadataConfig != null && Object.hasOwnProperty.call(message, "workloadMetadataConfig")) + $root.google.container.v1.WorkloadMetadataConfig.encode(message.workloadMetadataConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.upgradeSettings != null && Object.hasOwnProperty.call(message, "upgradeSettings")) + $root.google.container.v1.NodePool.UpgradeSettings.encode(message.upgradeSettings, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateNodePoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNodePoolRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UpdateNodePoolRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: + message.projectId = reader.string(); + break; case 2: + message.zone = reader.string(); + break; case 3: + message.clusterId = reader.string(); + break; case 4: + message.nodePoolId = reader.string(); + break; case 5: + message.nodeVersion = reader.string(); + break; case 6: + message.imageType = reader.string(); + break; + case 8: + message.name = reader.string(); + break; + case 13: + if (!(message.locations && message.locations.length)) + message.locations = []; + message.locations.push(reader.string()); + break; + case 14: + message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.decode(reader, reader.uint32()); + break; + case 15: + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); break; } - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) - if (!$util.isInteger(message.nodeIpv4CidrSize)) - return "nodeIpv4CidrSize: integer expected"; - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) - if (!$util.isString(message.servicesIpv4Cidr)) - return "servicesIpv4Cidr: string expected"; - if (message.instanceGroupUrls != null && message.hasOwnProperty("instanceGroupUrls")) { - if (!Array.isArray(message.instanceGroupUrls)) - return "instanceGroupUrls: array expected"; - for (var i = 0; i < message.instanceGroupUrls.length; ++i) - if (!$util.isString(message.instanceGroupUrls[i])) - return "instanceGroupUrls: string[] expected"; } - if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount")) - if (!$util.isInteger(message.currentNodeCount)) - return "currentNodeCount: integer expected"; - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - if (!$util.isString(message.expireTime)) - return "expireTime: string expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) - if (typeof message.enableTpu !== "boolean") - return "enableTpu: boolean expected"; - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) - if (!$util.isString(message.tpuIpv4CidrBlock)) - return "tpuIpv4CidrBlock: string expected"; - if (message.conditions != null && message.hasOwnProperty("conditions")) { - if (!Array.isArray(message.conditions)) - return "conditions: array expected"; - for (var i = 0; i < message.conditions.length; ++i) { - var error = $root.google.container.v1.StatusCondition.verify(message.conditions[i]); - if (error) - return "conditions." + error; - } + return message; + }; + + /** + * Decodes an UpdateNodePoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateNodePoolRequest message. + * @function verify + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateNodePoolRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) + if (!$util.isString(message.nodeVersion)) + return "nodeVersion: string expected"; + if (message.imageType != null && message.hasOwnProperty("imageType")) + if (!$util.isString(message.imageType)) + return "imageType: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.locations != null && message.hasOwnProperty("locations")) { + if (!Array.isArray(message.locations)) + return "locations: array expected"; + for (var i = 0; i < message.locations.length; ++i) + if (!$util.isString(message.locations[i])) + return "locations: string[] expected"; + } + if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig")) { + var error = $root.google.container.v1.WorkloadMetadataConfig.verify(message.workloadMetadataConfig); + if (error) + return "workloadMetadataConfig." + error; + } + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) { + var error = $root.google.container.v1.NodePool.UpgradeSettings.verify(message.upgradeSettings); + if (error) + return "upgradeSettings." + error; } return null; }; /** - * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.UpdateNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.Cluster} Cluster + * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest */ - Cluster.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.Cluster) + UpdateNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpdateNodePoolRequest) return object; - var message = new $root.google.container.v1.Cluster(); - if (object.name != null) - message.name = String(object.name); - if (object.description != null) - message.description = String(object.description); - if (object.initialNodeCount != null) - message.initialNodeCount = object.initialNodeCount | 0; - if (object.nodeConfig != null) { - if (typeof object.nodeConfig !== "object") - throw TypeError(".google.container.v1.Cluster.nodeConfig: object expected"); - message.nodeConfig = $root.google.container.v1.NodeConfig.fromObject(object.nodeConfig); - } - if (object.masterAuth != null) { - if (typeof object.masterAuth !== "object") - throw TypeError(".google.container.v1.Cluster.masterAuth: object expected"); - message.masterAuth = $root.google.container.v1.MasterAuth.fromObject(object.masterAuth); - } - if (object.loggingService != null) - message.loggingService = String(object.loggingService); - if (object.monitoringService != null) - message.monitoringService = String(object.monitoringService); - if (object.network != null) - message.network = String(object.network); - if (object.clusterIpv4Cidr != null) - message.clusterIpv4Cidr = String(object.clusterIpv4Cidr); - if (object.addonsConfig != null) { - if (typeof object.addonsConfig !== "object") - throw TypeError(".google.container.v1.Cluster.addonsConfig: object expected"); - message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig); - } - if (object.subnetwork != null) - message.subnetwork = String(object.subnetwork); - if (object.nodePools) { - if (!Array.isArray(object.nodePools)) - throw TypeError(".google.container.v1.Cluster.nodePools: array expected"); - message.nodePools = []; - for (var i = 0; i < object.nodePools.length; ++i) { - if (typeof object.nodePools[i] !== "object") - throw TypeError(".google.container.v1.Cluster.nodePools: object expected"); - message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); - } - } - if (object.locations) { - if (!Array.isArray(object.locations)) - throw TypeError(".google.container.v1.Cluster.locations: array expected"); - message.locations = []; - for (var i = 0; i < object.locations.length; ++i) - message.locations[i] = String(object.locations[i]); - } - if (object.enableKubernetesAlpha != null) - message.enableKubernetesAlpha = Boolean(object.enableKubernetesAlpha); - if (object.resourceLabels) { - if (typeof object.resourceLabels !== "object") - throw TypeError(".google.container.v1.Cluster.resourceLabels: object expected"); - message.resourceLabels = {}; - for (var keys = Object.keys(object.resourceLabels), i = 0; i < keys.length; ++i) - message.resourceLabels[keys[i]] = String(object.resourceLabels[keys[i]]); - } - if (object.labelFingerprint != null) - message.labelFingerprint = String(object.labelFingerprint); - if (object.legacyAbac != null) { - if (typeof object.legacyAbac !== "object") - throw TypeError(".google.container.v1.Cluster.legacyAbac: object expected"); - message.legacyAbac = $root.google.container.v1.LegacyAbac.fromObject(object.legacyAbac); - } - if (object.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.container.v1.Cluster.networkPolicy: object expected"); - message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); - } - if (object.ipAllocationPolicy != null) { - if (typeof object.ipAllocationPolicy !== "object") - throw TypeError(".google.container.v1.Cluster.ipAllocationPolicy: object expected"); - message.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.fromObject(object.ipAllocationPolicy); - } - if (object.masterAuthorizedNetworksConfig != null) { - if (typeof object.masterAuthorizedNetworksConfig !== "object") - throw TypeError(".google.container.v1.Cluster.masterAuthorizedNetworksConfig: object expected"); - message.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.masterAuthorizedNetworksConfig); - } - if (object.maintenancePolicy != null) { - if (typeof object.maintenancePolicy !== "object") - throw TypeError(".google.container.v1.Cluster.maintenancePolicy: object expected"); - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); - } - if (object.binaryAuthorization != null) { - if (typeof object.binaryAuthorization !== "object") - throw TypeError(".google.container.v1.Cluster.binaryAuthorization: object expected"); - message.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.binaryAuthorization); - } - if (object.autoscaling != null) { - if (typeof object.autoscaling !== "object") - throw TypeError(".google.container.v1.Cluster.autoscaling: object expected"); - message.autoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.autoscaling); - } - if (object.networkConfig != null) { - if (typeof object.networkConfig !== "object") - throw TypeError(".google.container.v1.Cluster.networkConfig: object expected"); - message.networkConfig = $root.google.container.v1.NetworkConfig.fromObject(object.networkConfig); - } - if (object.defaultMaxPodsConstraint != null) { - if (typeof object.defaultMaxPodsConstraint !== "object") - throw TypeError(".google.container.v1.Cluster.defaultMaxPodsConstraint: object expected"); - message.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.defaultMaxPodsConstraint); - } - if (object.resourceUsageExportConfig != null) { - if (typeof object.resourceUsageExportConfig !== "object") - throw TypeError(".google.container.v1.Cluster.resourceUsageExportConfig: object expected"); - message.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.resourceUsageExportConfig); - } - if (object.authenticatorGroupsConfig != null) { - if (typeof object.authenticatorGroupsConfig !== "object") - throw TypeError(".google.container.v1.Cluster.authenticatorGroupsConfig: object expected"); - message.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.fromObject(object.authenticatorGroupsConfig); - } - if (object.privateClusterConfig != null) { - if (typeof object.privateClusterConfig !== "object") - throw TypeError(".google.container.v1.Cluster.privateClusterConfig: object expected"); - message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.fromObject(object.privateClusterConfig); - } - if (object.databaseEncryption != null) { - if (typeof object.databaseEncryption !== "object") - throw TypeError(".google.container.v1.Cluster.databaseEncryption: object expected"); - message.databaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.databaseEncryption); - } - if (object.verticalPodAutoscaling != null) { - if (typeof object.verticalPodAutoscaling !== "object") - throw TypeError(".google.container.v1.Cluster.verticalPodAutoscaling: object expected"); - message.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.verticalPodAutoscaling); - } - if (object.selfLink != null) - message.selfLink = String(object.selfLink); + var message = new $root.google.container.v1.UpdateNodePoolRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.initialClusterVersion != null) - message.initialClusterVersion = String(object.initialClusterVersion); - if (object.currentMasterVersion != null) - message.currentMasterVersion = String(object.currentMasterVersion); - if (object.currentNodeVersion != null) - message.currentNodeVersion = String(object.currentNodeVersion); - if (object.createTime != null) - message.createTime = String(object.createTime); - switch (object.status) { - case "STATUS_UNSPECIFIED": - case 0: - message.status = 0; - break; - case "PROVISIONING": - case 1: - message.status = 1; - break; - case "RUNNING": - case 2: - message.status = 2; - break; - case "RECONCILING": - case 3: - message.status = 3; - break; - case "STOPPING": - case 4: - message.status = 4; - break; - case "ERROR": - case 5: - message.status = 5; - break; - case "DEGRADED": - case 6: - message.status = 6; - break; - } - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.nodeIpv4CidrSize != null) - message.nodeIpv4CidrSize = object.nodeIpv4CidrSize | 0; - if (object.servicesIpv4Cidr != null) - message.servicesIpv4Cidr = String(object.servicesIpv4Cidr); - if (object.instanceGroupUrls) { - if (!Array.isArray(object.instanceGroupUrls)) - throw TypeError(".google.container.v1.Cluster.instanceGroupUrls: array expected"); - message.instanceGroupUrls = []; - for (var i = 0; i < object.instanceGroupUrls.length; ++i) - message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); - } - if (object.currentNodeCount != null) - message.currentNodeCount = object.currentNodeCount | 0; - if (object.expireTime != null) - message.expireTime = String(object.expireTime); - if (object.location != null) - message.location = String(object.location); - if (object.enableTpu != null) - message.enableTpu = Boolean(object.enableTpu); - if (object.tpuIpv4CidrBlock != null) - message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock); - if (object.conditions) { - if (!Array.isArray(object.conditions)) - throw TypeError(".google.container.v1.Cluster.conditions: array expected"); - message.conditions = []; - for (var i = 0; i < object.conditions.length; ++i) { - if (typeof object.conditions[i] !== "object") - throw TypeError(".google.container.v1.Cluster.conditions: object expected"); - message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); - } + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); + if (object.nodeVersion != null) + message.nodeVersion = String(object.nodeVersion); + if (object.imageType != null) + message.imageType = String(object.imageType); + if (object.name != null) + message.name = String(object.name); + if (object.locations) { + if (!Array.isArray(object.locations)) + throw TypeError(".google.container.v1.UpdateNodePoolRequest.locations: array expected"); + message.locations = []; + for (var i = 0; i < object.locations.length; ++i) + message.locations[i] = String(object.locations[i]); + } + if (object.workloadMetadataConfig != null) { + if (typeof object.workloadMetadataConfig !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.workloadMetadataConfig: object expected"); + message.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.fromObject(object.workloadMetadataConfig); + } + if (object.upgradeSettings != null) { + if (typeof object.upgradeSettings !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.upgradeSettings: object expected"); + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); } return message; }; /** - * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * Creates a plain object from an UpdateNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.UpdateNodePoolRequest * @static - * @param {google.container.v1.Cluster} message Cluster + * @param {google.container.v1.UpdateNodePoolRequest} message UpdateNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Cluster.toObject = function toObject(message, options) { + UpdateNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.nodePools = []; + if (options.arrays || options.defaults) object.locations = []; - object.instanceGroupUrls = []; - object.conditions = []; - } - if (options.objects || options.defaults) - object.resourceLabels = {}; if (options.defaults) { - object.name = ""; - object.description = ""; - object.initialNodeCount = 0; - object.nodeConfig = null; - object.masterAuth = null; - object.loggingService = ""; - object.monitoringService = ""; - object.network = ""; - object.clusterIpv4Cidr = ""; - object.addonsConfig = null; - object.subnetwork = ""; - object.enableKubernetesAlpha = false; - object.labelFingerprint = ""; - object.legacyAbac = null; - object.networkPolicy = null; - object.ipAllocationPolicy = null; - object.masterAuthorizedNetworksConfig = null; - object.maintenancePolicy = null; - object.binaryAuthorization = null; - object.autoscaling = null; - object.networkConfig = null; - object.defaultMaxPodsConstraint = null; - object.resourceUsageExportConfig = null; - object.authenticatorGroupsConfig = null; - object.privateClusterConfig = null; - object.databaseEncryption = null; - object.verticalPodAutoscaling = null; - object.selfLink = ""; + object.projectId = ""; object.zone = ""; - object.endpoint = ""; - object.initialClusterVersion = ""; - object.currentMasterVersion = ""; - object.currentNodeVersion = ""; - object.createTime = ""; - object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; - object.statusMessage = ""; - object.nodeIpv4CidrSize = 0; - object.servicesIpv4Cidr = ""; - object.currentNodeCount = 0; - object.expireTime = ""; - object.location = ""; - object.enableTpu = false; - object.tpuIpv4CidrBlock = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.nodeVersion = ""; + object.imageType = ""; + object.name = ""; + object.workloadMetadataConfig = null; + object.upgradeSettings = null; } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; + if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) + object.nodeVersion = message.nodeVersion; + if (message.imageType != null && message.hasOwnProperty("imageType")) + object.imageType = message.imageType; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - object.initialNodeCount = message.initialNodeCount; - if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) - object.nodeConfig = $root.google.container.v1.NodeConfig.toObject(message.nodeConfig, options); - if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) - object.masterAuth = $root.google.container.v1.MasterAuth.toObject(message.masterAuth, options); - if (message.loggingService != null && message.hasOwnProperty("loggingService")) - object.loggingService = message.loggingService; - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) - object.monitoringService = message.monitoringService; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) - object.clusterIpv4Cidr = message.clusterIpv4Cidr; - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) - object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options); - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - object.subnetwork = message.subnetwork; - if (message.nodePools && message.nodePools.length) { - object.nodePools = []; - for (var j = 0; j < message.nodePools.length; ++j) - object.nodePools[j] = $root.google.container.v1.NodePool.toObject(message.nodePools[j], options); - } if (message.locations && message.locations.length) { object.locations = []; for (var j = 0; j < message.locations.length; ++j) object.locations[j] = message.locations[j]; } - if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha")) - object.enableKubernetesAlpha = message.enableKubernetesAlpha; - var keys2; - if (message.resourceLabels && (keys2 = Object.keys(message.resourceLabels)).length) { - object.resourceLabels = {}; - for (var j = 0; j < keys2.length; ++j) - object.resourceLabels[keys2[j]] = message.resourceLabels[keys2[j]]; - } - if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) - object.labelFingerprint = message.labelFingerprint; - if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) - object.legacyAbac = $root.google.container.v1.LegacyAbac.toObject(message.legacyAbac, options); - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); - if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) - object.ipAllocationPolicy = $root.google.container.v1.IPAllocationPolicy.toObject(message.ipAllocationPolicy, options); - if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) - object.masterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.masterAuthorizedNetworksConfig, options); - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) - object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); - if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization")) - object.binaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.binaryAuthorization, options); - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) - object.autoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.autoscaling, options); - if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) - object.networkConfig = $root.google.container.v1.NetworkConfig.toObject(message.networkConfig, options); - if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint")) - object.defaultMaxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.defaultMaxPodsConstraint, options); - if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig")) - object.resourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.resourceUsageExportConfig, options); - if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig")) - object.authenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.toObject(message.authenticatorGroupsConfig, options); - if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) - object.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, options); - if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption")) - object.databaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.databaseEncryption, options); - if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling")) - object.verticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.verticalPodAutoscaling, options); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - object.selfLink = message.selfLink; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) - object.initialClusterVersion = message.initialClusterVersion; - if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) - object.currentMasterVersion = message.currentMasterVersion; - if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) - object.currentNodeVersion = message.currentNodeVersion; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = message.createTime; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.google.container.v1.Cluster.Status[message.status] : message.status; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) - object.nodeIpv4CidrSize = message.nodeIpv4CidrSize; - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) - object.servicesIpv4Cidr = message.servicesIpv4Cidr; - if (message.instanceGroupUrls && message.instanceGroupUrls.length) { - object.instanceGroupUrls = []; - for (var j = 0; j < message.instanceGroupUrls.length; ++j) - object.instanceGroupUrls[j] = message.instanceGroupUrls[j]; - } - if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount")) - object.currentNodeCount = message.currentNodeCount; - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = message.expireTime; - if (message.location != null && message.hasOwnProperty("location")) - object.location = message.location; - if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) - object.enableTpu = message.enableTpu; - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) - object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock; - if (message.conditions && message.conditions.length) { - object.conditions = []; - for (var j = 0; j < message.conditions.length; ++j) - object.conditions[j] = $root.google.container.v1.StatusCondition.toObject(message.conditions[j], options); - } + if (message.workloadMetadataConfig != null && message.hasOwnProperty("workloadMetadataConfig")) + object.workloadMetadataConfig = $root.google.container.v1.WorkloadMetadataConfig.toObject(message.workloadMetadataConfig, options); + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) + object.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.toObject(message.upgradeSettings, options); return object; }; /** - * Converts this Cluster to JSON. + * Converts this UpdateNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.UpdateNodePoolRequest * @instance * @returns {Object.} JSON object */ - Cluster.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Status enum. - * @name google.container.v1.Cluster.Status - * @enum {number} - * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value - * @property {number} PROVISIONING=1 PROVISIONING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} RECONCILING=3 RECONCILING value - * @property {number} STOPPING=4 STOPPING value - * @property {number} ERROR=5 ERROR value - * @property {number} DEGRADED=6 DEGRADED value - */ - Cluster.Status = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0; - values[valuesById[1] = "PROVISIONING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "RECONCILING"] = 3; - values[valuesById[4] = "STOPPING"] = 4; - values[valuesById[5] = "ERROR"] = 5; - values[valuesById[6] = "DEGRADED"] = 6; - return values; - })(); - - return Cluster; - })(); - - v1.ClusterUpdate = (function() { - - /** - * Properties of a ClusterUpdate. - * @memberof google.container.v1 - * @interface IClusterUpdate - * @property {string|null} [desiredNodeVersion] ClusterUpdate desiredNodeVersion - * @property {string|null} [desiredMonitoringService] ClusterUpdate desiredMonitoringService - * @property {google.container.v1.IAddonsConfig|null} [desiredAddonsConfig] ClusterUpdate desiredAddonsConfig - * @property {string|null} [desiredNodePoolId] ClusterUpdate desiredNodePoolId - * @property {string|null} [desiredImageType] ClusterUpdate desiredImageType - * @property {google.container.v1.IDatabaseEncryption|null} [desiredDatabaseEncryption] ClusterUpdate desiredDatabaseEncryption - * @property {google.container.v1.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling - * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations - * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [desiredMasterAuthorizedNetworksConfig] ClusterUpdate desiredMasterAuthorizedNetworksConfig - * @property {google.container.v1.IClusterAutoscaling|null} [desiredClusterAutoscaling] ClusterUpdate desiredClusterAutoscaling - * @property {google.container.v1.IBinaryAuthorization|null} [desiredBinaryAuthorization] ClusterUpdate desiredBinaryAuthorization - * @property {string|null} [desiredLoggingService] ClusterUpdate desiredLoggingService - * @property {google.container.v1.IResourceUsageExportConfig|null} [desiredResourceUsageExportConfig] ClusterUpdate desiredResourceUsageExportConfig - * @property {google.container.v1.IVerticalPodAutoscaling|null} [desiredVerticalPodAutoscaling] ClusterUpdate desiredVerticalPodAutoscaling - * @property {google.container.v1.IIntraNodeVisibilityConfig|null} [desiredIntraNodeVisibilityConfig] ClusterUpdate desiredIntraNodeVisibilityConfig - * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion - */ + UpdateNodePoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateNodePoolRequest; + })(); + + v1.SetNodePoolAutoscalingRequest = (function() { /** - * Constructs a new ClusterUpdate. + * Properties of a SetNodePoolAutoscalingRequest. * @memberof google.container.v1 - * @classdesc Represents a ClusterUpdate. - * @implements IClusterUpdate + * @interface ISetNodePoolAutoscalingRequest + * @property {string|null} [projectId] SetNodePoolAutoscalingRequest projectId + * @property {string|null} [zone] SetNodePoolAutoscalingRequest zone + * @property {string|null} [clusterId] SetNodePoolAutoscalingRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolAutoscalingRequest nodePoolId + * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] SetNodePoolAutoscalingRequest autoscaling + * @property {string|null} [name] SetNodePoolAutoscalingRequest name + */ + + /** + * Constructs a new SetNodePoolAutoscalingRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNodePoolAutoscalingRequest. + * @implements ISetNodePoolAutoscalingRequest * @constructor - * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set + * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set */ - function ClusterUpdate(properties) { - this.desiredLocations = []; + function SetNodePoolAutoscalingRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7462,273 +12182,429 @@ } /** - * ClusterUpdate desiredNodeVersion. - * @member {string} desiredNodeVersion - * @memberof google.container.v1.ClusterUpdate + * SetNodePoolAutoscalingRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolAutoscalingRequest * @instance */ - ClusterUpdate.prototype.desiredNodeVersion = ""; + SetNodePoolAutoscalingRequest.prototype.projectId = ""; /** - * ClusterUpdate desiredMonitoringService. - * @member {string} desiredMonitoringService - * @memberof google.container.v1.ClusterUpdate + * SetNodePoolAutoscalingRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolAutoscalingRequest * @instance */ - ClusterUpdate.prototype.desiredMonitoringService = ""; + SetNodePoolAutoscalingRequest.prototype.zone = ""; /** - * ClusterUpdate desiredAddonsConfig. - * @member {google.container.v1.IAddonsConfig|null|undefined} desiredAddonsConfig - * @memberof google.container.v1.ClusterUpdate + * SetNodePoolAutoscalingRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolAutoscalingRequest * @instance */ - ClusterUpdate.prototype.desiredAddonsConfig = null; + SetNodePoolAutoscalingRequest.prototype.clusterId = ""; /** - * ClusterUpdate desiredNodePoolId. - * @member {string} desiredNodePoolId - * @memberof google.container.v1.ClusterUpdate + * SetNodePoolAutoscalingRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolAutoscalingRequest * @instance */ - ClusterUpdate.prototype.desiredNodePoolId = ""; + SetNodePoolAutoscalingRequest.prototype.nodePoolId = ""; /** - * ClusterUpdate desiredImageType. - * @member {string} desiredImageType - * @memberof google.container.v1.ClusterUpdate + * SetNodePoolAutoscalingRequest autoscaling. + * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling + * @memberof google.container.v1.SetNodePoolAutoscalingRequest * @instance */ - ClusterUpdate.prototype.desiredImageType = ""; + SetNodePoolAutoscalingRequest.prototype.autoscaling = null; /** - * ClusterUpdate desiredDatabaseEncryption. - * @member {google.container.v1.IDatabaseEncryption|null|undefined} desiredDatabaseEncryption - * @memberof google.container.v1.ClusterUpdate + * SetNodePoolAutoscalingRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolAutoscalingRequest * @instance */ - ClusterUpdate.prototype.desiredDatabaseEncryption = null; + SetNodePoolAutoscalingRequest.prototype.name = ""; /** - * ClusterUpdate desiredNodePoolAutoscaling. - * @member {google.container.v1.INodePoolAutoscaling|null|undefined} desiredNodePoolAutoscaling - * @memberof google.container.v1.ClusterUpdate - * @instance + * Creates a new SetNodePoolAutoscalingRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest instance */ - ClusterUpdate.prototype.desiredNodePoolAutoscaling = null; + SetNodePoolAutoscalingRequest.create = function create(properties) { + return new SetNodePoolAutoscalingRequest(properties); + }; + + /** + * Encodes the specified SetNodePoolAutoscalingRequest message. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNodePoolAutoscalingRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetNodePoolAutoscalingRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNodePoolAutoscalingRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNodePoolAutoscalingRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolAutoscalingRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 5: + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + break; + case 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNodePoolAutoscalingRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetNodePoolAutoscalingRequest message. + * @function verify + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetNodePoolAutoscalingRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) { + var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); + if (error) + return "autoscaling." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a SetNodePoolAutoscalingRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + */ + SetNodePoolAutoscalingRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolAutoscalingRequest) + return object; + var message = new $root.google.container.v1.SetNodePoolAutoscalingRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); + if (object.autoscaling != null) { + if (typeof object.autoscaling !== "object") + throw TypeError(".google.container.v1.SetNodePoolAutoscalingRequest.autoscaling: object expected"); + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); + } + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * ClusterUpdate desiredLocations. - * @member {Array.} desiredLocations - * @memberof google.container.v1.ClusterUpdate - * @instance + * Creates a plain object from a SetNodePoolAutoscalingRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {google.container.v1.SetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ClusterUpdate.prototype.desiredLocations = $util.emptyArray; + SetNodePoolAutoscalingRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.autoscaling = null; + object.name = ""; + } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * ClusterUpdate desiredMasterAuthorizedNetworksConfig. - * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} desiredMasterAuthorizedNetworksConfig - * @memberof google.container.v1.ClusterUpdate + * Converts this SetNodePoolAutoscalingRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetNodePoolAutoscalingRequest * @instance + * @returns {Object.} JSON object */ - ClusterUpdate.prototype.desiredMasterAuthorizedNetworksConfig = null; + SetNodePoolAutoscalingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetNodePoolAutoscalingRequest; + })(); + + v1.SetLoggingServiceRequest = (function() { /** - * ClusterUpdate desiredClusterAutoscaling. - * @member {google.container.v1.IClusterAutoscaling|null|undefined} desiredClusterAutoscaling - * @memberof google.container.v1.ClusterUpdate - * @instance + * Properties of a SetLoggingServiceRequest. + * @memberof google.container.v1 + * @interface ISetLoggingServiceRequest + * @property {string|null} [projectId] SetLoggingServiceRequest projectId + * @property {string|null} [zone] SetLoggingServiceRequest zone + * @property {string|null} [clusterId] SetLoggingServiceRequest clusterId + * @property {string|null} [loggingService] SetLoggingServiceRequest loggingService + * @property {string|null} [name] SetLoggingServiceRequest name */ - ClusterUpdate.prototype.desiredClusterAutoscaling = null; /** - * ClusterUpdate desiredBinaryAuthorization. - * @member {google.container.v1.IBinaryAuthorization|null|undefined} desiredBinaryAuthorization - * @memberof google.container.v1.ClusterUpdate - * @instance + * Constructs a new SetLoggingServiceRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetLoggingServiceRequest. + * @implements ISetLoggingServiceRequest + * @constructor + * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set */ - ClusterUpdate.prototype.desiredBinaryAuthorization = null; + function SetLoggingServiceRequest(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]]; + } /** - * ClusterUpdate desiredLoggingService. - * @member {string} desiredLoggingService - * @memberof google.container.v1.ClusterUpdate + * SetLoggingServiceRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLoggingServiceRequest * @instance */ - ClusterUpdate.prototype.desiredLoggingService = ""; + SetLoggingServiceRequest.prototype.projectId = ""; /** - * ClusterUpdate desiredResourceUsageExportConfig. - * @member {google.container.v1.IResourceUsageExportConfig|null|undefined} desiredResourceUsageExportConfig - * @memberof google.container.v1.ClusterUpdate + * SetLoggingServiceRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetLoggingServiceRequest * @instance */ - ClusterUpdate.prototype.desiredResourceUsageExportConfig = null; + SetLoggingServiceRequest.prototype.zone = ""; /** - * ClusterUpdate desiredVerticalPodAutoscaling. - * @member {google.container.v1.IVerticalPodAutoscaling|null|undefined} desiredVerticalPodAutoscaling - * @memberof google.container.v1.ClusterUpdate + * SetLoggingServiceRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetLoggingServiceRequest * @instance */ - ClusterUpdate.prototype.desiredVerticalPodAutoscaling = null; + SetLoggingServiceRequest.prototype.clusterId = ""; /** - * ClusterUpdate desiredIntraNodeVisibilityConfig. - * @member {google.container.v1.IIntraNodeVisibilityConfig|null|undefined} desiredIntraNodeVisibilityConfig - * @memberof google.container.v1.ClusterUpdate + * SetLoggingServiceRequest loggingService. + * @member {string} loggingService + * @memberof google.container.v1.SetLoggingServiceRequest * @instance */ - ClusterUpdate.prototype.desiredIntraNodeVisibilityConfig = null; + SetLoggingServiceRequest.prototype.loggingService = ""; /** - * ClusterUpdate desiredMasterVersion. - * @member {string} desiredMasterVersion - * @memberof google.container.v1.ClusterUpdate + * SetLoggingServiceRequest name. + * @member {string} name + * @memberof google.container.v1.SetLoggingServiceRequest * @instance */ - ClusterUpdate.prototype.desiredMasterVersion = ""; + SetLoggingServiceRequest.prototype.name = ""; /** - * Creates a new ClusterUpdate instance using the specified properties. + * Creates a new SetLoggingServiceRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static - * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set - * @returns {google.container.v1.ClusterUpdate} ClusterUpdate instance + * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest instance */ - ClusterUpdate.create = function create(properties) { - return new ClusterUpdate(properties); + SetLoggingServiceRequest.create = function create(properties) { + return new SetLoggingServiceRequest(properties); }; /** - * Encodes the specified ClusterUpdate message. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages. + * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static - * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode + * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterUpdate.encode = function encode(message, writer) { + SetLoggingServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.desiredNodeVersion != null && Object.hasOwnProperty.call(message, "desiredNodeVersion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); - if (message.desiredMonitoringService != null && Object.hasOwnProperty.call(message, "desiredMonitoringService")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); - if (message.desiredAddonsConfig != null && Object.hasOwnProperty.call(message, "desiredAddonsConfig")) - $root.google.container.v1.AddonsConfig.encode(message.desiredAddonsConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.desiredNodePoolId != null && Object.hasOwnProperty.call(message, "desiredNodePoolId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); - if (message.desiredImageType != null && Object.hasOwnProperty.call(message, "desiredImageType")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); - if (message.desiredNodePoolAutoscaling != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoscaling")) - $root.google.container.v1.NodePoolAutoscaling.encode(message.desiredNodePoolAutoscaling, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.desiredLocations != null && message.desiredLocations.length) - for (var i = 0; i < message.desiredLocations.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.desiredLocations[i]); - if (message.desiredMasterAuthorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "desiredMasterAuthorizedNetworksConfig")) - $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.desiredMasterAuthorizedNetworksConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.desiredClusterAutoscaling != null && Object.hasOwnProperty.call(message, "desiredClusterAutoscaling")) - $root.google.container.v1.ClusterAutoscaling.encode(message.desiredClusterAutoscaling, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.desiredBinaryAuthorization != null && Object.hasOwnProperty.call(message, "desiredBinaryAuthorization")) - $root.google.container.v1.BinaryAuthorization.encode(message.desiredBinaryAuthorization, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.desiredLoggingService != null && Object.hasOwnProperty.call(message, "desiredLoggingService")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService); - if (message.desiredResourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "desiredResourceUsageExportConfig")) - $root.google.container.v1.ResourceUsageExportConfig.encode(message.desiredResourceUsageExportConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.desiredVerticalPodAutoscaling != null && Object.hasOwnProperty.call(message, "desiredVerticalPodAutoscaling")) - $root.google.container.v1.VerticalPodAutoscaling.encode(message.desiredVerticalPodAutoscaling, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.desiredIntraNodeVisibilityConfig != null && Object.hasOwnProperty.call(message, "desiredIntraNodeVisibilityConfig")) - $root.google.container.v1.IntraNodeVisibilityConfig.encode(message.desiredIntraNodeVisibilityConfig, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.desiredDatabaseEncryption != null && Object.hasOwnProperty.call(message, "desiredDatabaseEncryption")) - $root.google.container.v1.DatabaseEncryption.encode(message.desiredDatabaseEncryption, writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); - if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; /** - * Encodes the specified ClusterUpdate message, length delimited. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages. + * Encodes the specified SetLoggingServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static - * @param {google.container.v1.IClusterUpdate} message ClusterUpdate message or plain object to encode + * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterUpdate.encodeDelimited = function encodeDelimited(message, writer) { + SetLoggingServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClusterUpdate message from the specified reader or buffer. + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterUpdate.decode = function decode(reader, length) { + SetLoggingServiceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClusterUpdate(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLoggingServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: - message.desiredNodeVersion = reader.string(); - break; - case 5: - message.desiredMonitoringService = reader.string(); - break; - case 6: - message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); - break; - case 7: - message.desiredNodePoolId = reader.string(); - break; - case 8: - message.desiredImageType = reader.string(); - break; - case 46: - message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.decode(reader, reader.uint32()); - break; - case 9: - message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); - break; - case 10: - if (!(message.desiredLocations && message.desiredLocations.length)) - message.desiredLocations = []; - message.desiredLocations.push(reader.string()); - break; - case 12: - message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32()); - break; - case 15: - message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.decode(reader, reader.uint32()); - break; - case 16: - message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.decode(reader, reader.uint32()); - break; - case 19: - message.desiredLoggingService = reader.string(); + case 1: + message.projectId = reader.string(); break; - case 21: - message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.decode(reader, reader.uint32()); + case 2: + message.zone = reader.string(); break; - case 22: - message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.decode(reader, reader.uint32()); + case 3: + message.clusterId = reader.string(); break; - case 26: - message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.decode(reader, reader.uint32()); + case 4: + message.loggingService = reader.string(); break; - case 100: - message.desiredMasterVersion = reader.string(); + case 5: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -7739,300 +12615,144 @@ }; /** - * Decodes a ClusterUpdate message from the specified reader or buffer, length delimited. + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterUpdate.decodeDelimited = function decodeDelimited(reader) { + SetLoggingServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClusterUpdate message. + * Verifies a SetLoggingServiceRequest message. * @function verify - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClusterUpdate.verify = function verify(message) { + SetLoggingServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) - if (!$util.isString(message.desiredNodeVersion)) - return "desiredNodeVersion: string expected"; - if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) - if (!$util.isString(message.desiredMonitoringService)) - return "desiredMonitoringService: string expected"; - if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) { - var error = $root.google.container.v1.AddonsConfig.verify(message.desiredAddonsConfig); - if (error) - return "desiredAddonsConfig." + error; - } - if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) - if (!$util.isString(message.desiredNodePoolId)) - return "desiredNodePoolId: string expected"; - if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) - if (!$util.isString(message.desiredImageType)) - return "desiredImageType: string expected"; - if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption")) { - var error = $root.google.container.v1.DatabaseEncryption.verify(message.desiredDatabaseEncryption); - if (error) - return "desiredDatabaseEncryption." + error; - } - if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) { - var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.desiredNodePoolAutoscaling); - if (error) - return "desiredNodePoolAutoscaling." + error; - } - if (message.desiredLocations != null && message.hasOwnProperty("desiredLocations")) { - if (!Array.isArray(message.desiredLocations)) - return "desiredLocations: array expected"; - for (var i = 0; i < message.desiredLocations.length; ++i) - if (!$util.isString(message.desiredLocations[i])) - return "desiredLocations: string[] expected"; - } - if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) { - var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.desiredMasterAuthorizedNetworksConfig); - if (error) - return "desiredMasterAuthorizedNetworksConfig." + error; - } - if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling")) { - var error = $root.google.container.v1.ClusterAutoscaling.verify(message.desiredClusterAutoscaling); - if (error) - return "desiredClusterAutoscaling." + error; - } - if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization")) { - var error = $root.google.container.v1.BinaryAuthorization.verify(message.desiredBinaryAuthorization); - if (error) - return "desiredBinaryAuthorization." + error; - } - if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService")) - if (!$util.isString(message.desiredLoggingService)) - return "desiredLoggingService: string expected"; - if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) { - var error = $root.google.container.v1.ResourceUsageExportConfig.verify(message.desiredResourceUsageExportConfig); - if (error) - return "desiredResourceUsageExportConfig." + error; - } - if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling")) { - var error = $root.google.container.v1.VerticalPodAutoscaling.verify(message.desiredVerticalPodAutoscaling); - if (error) - return "desiredVerticalPodAutoscaling." + error; - } - if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) { - var error = $root.google.container.v1.IntraNodeVisibilityConfig.verify(message.desiredIntraNodeVisibilityConfig); - if (error) - return "desiredIntraNodeVisibilityConfig." + error; - } - if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) - if (!$util.isString(message.desiredMasterVersion)) - return "desiredMasterVersion: string expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + if (!$util.isString(message.loggingService)) + return "loggingService: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ClusterUpdate message from a plain object. Also converts values to their respective internal types. + * Creates a SetLoggingServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest */ - ClusterUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ClusterUpdate) + SetLoggingServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLoggingServiceRequest) return object; - var message = new $root.google.container.v1.ClusterUpdate(); - if (object.desiredNodeVersion != null) - message.desiredNodeVersion = String(object.desiredNodeVersion); - if (object.desiredMonitoringService != null) - message.desiredMonitoringService = String(object.desiredMonitoringService); - if (object.desiredAddonsConfig != null) { - if (typeof object.desiredAddonsConfig !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredAddonsConfig: object expected"); - message.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.desiredAddonsConfig); - } - if (object.desiredNodePoolId != null) - message.desiredNodePoolId = String(object.desiredNodePoolId); - if (object.desiredImageType != null) - message.desiredImageType = String(object.desiredImageType); - if (object.desiredDatabaseEncryption != null) { - if (typeof object.desiredDatabaseEncryption !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredDatabaseEncryption: object expected"); - message.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.fromObject(object.desiredDatabaseEncryption); - } - if (object.desiredNodePoolAutoscaling != null) { - if (typeof object.desiredNodePoolAutoscaling !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoscaling: object expected"); - message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.desiredNodePoolAutoscaling); - } - if (object.desiredLocations) { - if (!Array.isArray(object.desiredLocations)) - throw TypeError(".google.container.v1.ClusterUpdate.desiredLocations: array expected"); - message.desiredLocations = []; - for (var i = 0; i < object.desiredLocations.length; ++i) - message.desiredLocations[i] = String(object.desiredLocations[i]); - } - if (object.desiredMasterAuthorizedNetworksConfig != null) { - if (typeof object.desiredMasterAuthorizedNetworksConfig !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredMasterAuthorizedNetworksConfig: object expected"); - message.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.desiredMasterAuthorizedNetworksConfig); - } - if (object.desiredClusterAutoscaling != null) { - if (typeof object.desiredClusterAutoscaling !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredClusterAutoscaling: object expected"); - message.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.fromObject(object.desiredClusterAutoscaling); - } - if (object.desiredBinaryAuthorization != null) { - if (typeof object.desiredBinaryAuthorization !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredBinaryAuthorization: object expected"); - message.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.fromObject(object.desiredBinaryAuthorization); - } - if (object.desiredLoggingService != null) - message.desiredLoggingService = String(object.desiredLoggingService); - if (object.desiredResourceUsageExportConfig != null) { - if (typeof object.desiredResourceUsageExportConfig !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredResourceUsageExportConfig: object expected"); - message.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.fromObject(object.desiredResourceUsageExportConfig); - } - if (object.desiredVerticalPodAutoscaling != null) { - if (typeof object.desiredVerticalPodAutoscaling !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredVerticalPodAutoscaling: object expected"); - message.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.fromObject(object.desiredVerticalPodAutoscaling); - } - if (object.desiredIntraNodeVisibilityConfig != null) { - if (typeof object.desiredIntraNodeVisibilityConfig !== "object") - throw TypeError(".google.container.v1.ClusterUpdate.desiredIntraNodeVisibilityConfig: object expected"); - message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.fromObject(object.desiredIntraNodeVisibilityConfig); - } - if (object.desiredMasterVersion != null) - message.desiredMasterVersion = String(object.desiredMasterVersion); + var message = new $root.google.container.v1.SetLoggingServiceRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.loggingService != null) + message.loggingService = String(object.loggingService); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ClusterUpdate message. Also converts values to other types if specified. + * Creates a plain object from a SetLoggingServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @static - * @param {google.container.v1.ClusterUpdate} message ClusterUpdate + * @param {google.container.v1.SetLoggingServiceRequest} message SetLoggingServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClusterUpdate.toObject = function toObject(message, options) { + SetLoggingServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.desiredLocations = []; if (options.defaults) { - object.desiredNodeVersion = ""; - object.desiredMonitoringService = ""; - object.desiredAddonsConfig = null; - object.desiredNodePoolId = ""; - object.desiredImageType = ""; - object.desiredNodePoolAutoscaling = null; - object.desiredMasterAuthorizedNetworksConfig = null; - object.desiredClusterAutoscaling = null; - object.desiredBinaryAuthorization = null; - object.desiredLoggingService = ""; - object.desiredResourceUsageExportConfig = null; - object.desiredVerticalPodAutoscaling = null; - object.desiredIntraNodeVisibilityConfig = null; - object.desiredDatabaseEncryption = null; - object.desiredMasterVersion = ""; - } - if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) - object.desiredNodeVersion = message.desiredNodeVersion; - if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) - object.desiredMonitoringService = message.desiredMonitoringService; - if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) - object.desiredAddonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.desiredAddonsConfig, options); - if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) - object.desiredNodePoolId = message.desiredNodePoolId; - if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) - object.desiredImageType = message.desiredImageType; - if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) - object.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.desiredNodePoolAutoscaling, options); - if (message.desiredLocations && message.desiredLocations.length) { - object.desiredLocations = []; - for (var j = 0; j < message.desiredLocations.length; ++j) - object.desiredLocations[j] = message.desiredLocations[j]; - } - if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) - object.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.desiredMasterAuthorizedNetworksConfig, options); - if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling")) - object.desiredClusterAutoscaling = $root.google.container.v1.ClusterAutoscaling.toObject(message.desiredClusterAutoscaling, options); - if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization")) - object.desiredBinaryAuthorization = $root.google.container.v1.BinaryAuthorization.toObject(message.desiredBinaryAuthorization, options); - if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService")) - object.desiredLoggingService = message.desiredLoggingService; - if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) - object.desiredResourceUsageExportConfig = $root.google.container.v1.ResourceUsageExportConfig.toObject(message.desiredResourceUsageExportConfig, options); - if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling")) - object.desiredVerticalPodAutoscaling = $root.google.container.v1.VerticalPodAutoscaling.toObject(message.desiredVerticalPodAutoscaling, options); - if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) - object.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.toObject(message.desiredIntraNodeVisibilityConfig, options); - if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption")) - object.desiredDatabaseEncryption = $root.google.container.v1.DatabaseEncryption.toObject(message.desiredDatabaseEncryption, options); - if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) - object.desiredMasterVersion = message.desiredMasterVersion; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.loggingService = ""; + object.name = ""; + } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + object.loggingService = message.loggingService; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ClusterUpdate to JSON. + * Converts this SetLoggingServiceRequest to JSON. * @function toJSON - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.SetLoggingServiceRequest * @instance * @returns {Object.} JSON object */ - ClusterUpdate.prototype.toJSON = function toJSON() { + SetLoggingServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClusterUpdate; + return SetLoggingServiceRequest; })(); - v1.Operation = (function() { + v1.SetMonitoringServiceRequest = (function() { /** - * Properties of an Operation. + * Properties of a SetMonitoringServiceRequest. * @memberof google.container.v1 - * @interface IOperation - * @property {string|null} [name] Operation name - * @property {string|null} [zone] Operation zone - * @property {google.container.v1.Operation.Type|null} [operationType] Operation operationType - * @property {google.container.v1.Operation.Status|null} [status] Operation status - * @property {string|null} [detail] Operation detail - * @property {string|null} [statusMessage] Operation statusMessage - * @property {string|null} [selfLink] Operation selfLink - * @property {string|null} [targetLink] Operation targetLink - * @property {string|null} [location] Operation location - * @property {string|null} [startTime] Operation startTime - * @property {string|null} [endTime] Operation endTime - * @property {Array.|null} [clusterConditions] Operation clusterConditions - * @property {Array.|null} [nodepoolConditions] Operation nodepoolConditions + * @interface ISetMonitoringServiceRequest + * @property {string|null} [projectId] SetMonitoringServiceRequest projectId + * @property {string|null} [zone] SetMonitoringServiceRequest zone + * @property {string|null} [clusterId] SetMonitoringServiceRequest clusterId + * @property {string|null} [monitoringService] SetMonitoringServiceRequest monitoringService + * @property {string|null} [name] SetMonitoringServiceRequest name */ /** - * Constructs a new Operation. + * Constructs a new SetMonitoringServiceRequest. * @memberof google.container.v1 - * @classdesc Represents an Operation. - * @implements IOperation + * @classdesc Represents a SetMonitoringServiceRequest. + * @implements ISetMonitoringServiceRequest * @constructor - * @param {google.container.v1.IOperation=} [properties] Properties to set + * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set */ - function Operation(properties) { - this.clusterConditions = []; - this.nodepoolConditions = []; + function SetMonitoringServiceRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8040,237 +12760,127 @@ } /** - * Operation name. - * @member {string} name - * @memberof google.container.v1.Operation + * SetMonitoringServiceRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetMonitoringServiceRequest * @instance */ - Operation.prototype.name = ""; + SetMonitoringServiceRequest.prototype.projectId = ""; /** - * Operation zone. + * SetMonitoringServiceRequest zone. * @member {string} zone - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.zone = ""; - - /** - * Operation operationType. - * @member {google.container.v1.Operation.Type} operationType - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.operationType = 0; - - /** - * Operation status. - * @member {google.container.v1.Operation.Status} status - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.status = 0; - - /** - * Operation detail. - * @member {string} detail - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.detail = ""; - - /** - * Operation statusMessage. - * @member {string} statusMessage - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.statusMessage = ""; - - /** - * Operation selfLink. - * @member {string} selfLink - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.selfLink = ""; - - /** - * Operation targetLink. - * @member {string} targetLink - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.targetLink = ""; - - /** - * Operation location. - * @member {string} location - * @memberof google.container.v1.Operation - * @instance - */ - Operation.prototype.location = ""; - - /** - * Operation startTime. - * @member {string} startTime - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @instance */ - Operation.prototype.startTime = ""; + SetMonitoringServiceRequest.prototype.zone = ""; /** - * Operation endTime. - * @member {string} endTime - * @memberof google.container.v1.Operation + * SetMonitoringServiceRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetMonitoringServiceRequest * @instance */ - Operation.prototype.endTime = ""; + SetMonitoringServiceRequest.prototype.clusterId = ""; /** - * Operation clusterConditions. - * @member {Array.} clusterConditions - * @memberof google.container.v1.Operation + * SetMonitoringServiceRequest monitoringService. + * @member {string} monitoringService + * @memberof google.container.v1.SetMonitoringServiceRequest * @instance */ - Operation.prototype.clusterConditions = $util.emptyArray; + SetMonitoringServiceRequest.prototype.monitoringService = ""; /** - * Operation nodepoolConditions. - * @member {Array.} nodepoolConditions - * @memberof google.container.v1.Operation + * SetMonitoringServiceRequest name. + * @member {string} name + * @memberof google.container.v1.SetMonitoringServiceRequest * @instance */ - Operation.prototype.nodepoolConditions = $util.emptyArray; + SetMonitoringServiceRequest.prototype.name = ""; /** - * Creates a new Operation instance using the specified properties. + * Creates a new SetMonitoringServiceRequest instance using the specified properties. * @function create - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @static - * @param {google.container.v1.IOperation=} [properties] Properties to set - * @returns {google.container.v1.Operation} Operation instance + * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest instance */ - Operation.create = function create(properties) { - return new Operation(properties); + SetMonitoringServiceRequest.create = function create(properties) { + return new SetMonitoringServiceRequest(properties); }; /** - * Encodes the specified Operation message. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages. + * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @static - * @param {google.container.v1.IOperation} message Operation message or plain object to encode + * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operation.encode = function encode(message, writer) { + SetMonitoringServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); - if (message.targetLink != null && Object.hasOwnProperty.call(message, "targetLink")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); - if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.endTime); - if (message.clusterConditions != null && message.clusterConditions.length) - for (var i = 0; i < message.clusterConditions.length; ++i) - $root.google.container.v1.StatusCondition.encode(message.clusterConditions[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.nodepoolConditions != null && message.nodepoolConditions.length) - for (var i = 0; i < message.nodepoolConditions.length; ++i) - $root.google.container.v1.StatusCondition.encode(message.nodepoolConditions[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages. + * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @static - * @param {google.container.v1.IOperation} message Operation message or plain object to encode + * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Operation.encodeDelimited = function encodeDelimited(message, writer) { + SetMonitoringServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Operation message from the specified reader or buffer. + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.Operation} Operation + * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operation.decode = function decode(reader, length) { + SetMonitoringServiceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Operation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMonitoringServiceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.projectId = reader.string(); break; case 2: message.zone = reader.string(); break; case 3: - message.operationType = reader.int32(); - break; - case 4: - message.status = reader.int32(); - break; - case 8: - message.detail = reader.string(); - break; - case 5: - message.statusMessage = reader.string(); - break; - case 6: - message.selfLink = reader.string(); - break; - case 7: - message.targetLink = reader.string(); - break; - case 9: - message.location = reader.string(); - break; - case 10: - message.startTime = reader.string(); - break; - case 11: - message.endTime = reader.string(); + message.clusterId = reader.string(); break; - case 13: - if (!(message.clusterConditions && message.clusterConditions.length)) - message.clusterConditions = []; - message.clusterConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + case 4: + message.monitoringService = reader.string(); break; - case 14: - if (!(message.nodepoolConditions && message.nodepoolConditions.length)) - message.nodepoolConditions = []; - message.nodepoolConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + case 6: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -8281,423 +12891,144 @@ }; /** - * Decodes an Operation message from the specified reader or buffer, length delimited. + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.Operation} Operation + * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Operation.decodeDelimited = function decodeDelimited(reader) { + SetMonitoringServiceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Operation message. + * Verifies a SetMonitoringServiceRequest message. * @function verify - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Operation.verify = function verify(message) { + SetMonitoringServiceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.operationType != null && message.hasOwnProperty("operationType")) - switch (message.operationType) { - default: - return "operationType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - break; - } - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.detail != null && message.hasOwnProperty("detail")) - if (!$util.isString(message.detail)) - return "detail: string expected"; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - if (!$util.isString(message.selfLink)) - return "selfLink: string expected"; - if (message.targetLink != null && message.hasOwnProperty("targetLink")) - if (!$util.isString(message.targetLink)) - return "targetLink: string expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) - if (!$util.isString(message.startTime)) - return "startTime: string expected"; - if (message.endTime != null && message.hasOwnProperty("endTime")) - if (!$util.isString(message.endTime)) - return "endTime: string expected"; - if (message.clusterConditions != null && message.hasOwnProperty("clusterConditions")) { - if (!Array.isArray(message.clusterConditions)) - return "clusterConditions: array expected"; - for (var i = 0; i < message.clusterConditions.length; ++i) { - var error = $root.google.container.v1.StatusCondition.verify(message.clusterConditions[i]); - if (error) - return "clusterConditions." + error; - } - } - if (message.nodepoolConditions != null && message.hasOwnProperty("nodepoolConditions")) { - if (!Array.isArray(message.nodepoolConditions)) - return "nodepoolConditions: array expected"; - for (var i = 0; i < message.nodepoolConditions.length; ++i) { - var error = $root.google.container.v1.StatusCondition.verify(message.nodepoolConditions[i]); - if (error) - return "nodepoolConditions." + error; - } - } + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + if (!$util.isString(message.monitoringService)) + return "monitoringService: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an Operation message from a plain object. Also converts values to their respective internal types. + * Creates a SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.Operation - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.Operation} Operation - */ - Operation.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.Operation) - return object; - var message = new $root.google.container.v1.Operation(); - if (object.name != null) - message.name = String(object.name); - if (object.zone != null) - message.zone = String(object.zone); - switch (object.operationType) { - case "TYPE_UNSPECIFIED": - case 0: - message.operationType = 0; - break; - case "CREATE_CLUSTER": - case 1: - message.operationType = 1; - break; - case "DELETE_CLUSTER": - case 2: - message.operationType = 2; - break; - case "UPGRADE_MASTER": - case 3: - message.operationType = 3; - break; - case "UPGRADE_NODES": - case 4: - message.operationType = 4; - break; - case "REPAIR_CLUSTER": - case 5: - message.operationType = 5; - break; - case "UPDATE_CLUSTER": - case 6: - message.operationType = 6; - break; - case "CREATE_NODE_POOL": - case 7: - message.operationType = 7; - break; - case "DELETE_NODE_POOL": - case 8: - message.operationType = 8; - break; - case "SET_NODE_POOL_MANAGEMENT": - case 9: - message.operationType = 9; - break; - case "AUTO_REPAIR_NODES": - case 10: - message.operationType = 10; - break; - case "AUTO_UPGRADE_NODES": - case 11: - message.operationType = 11; - break; - case "SET_LABELS": - case 12: - message.operationType = 12; - break; - case "SET_MASTER_AUTH": - case 13: - message.operationType = 13; - break; - case "SET_NODE_POOL_SIZE": - case 14: - message.operationType = 14; - break; - case "SET_NETWORK_POLICY": - case 15: - message.operationType = 15; - break; - case "SET_MAINTENANCE_POLICY": - case 16: - message.operationType = 16; - break; - } - switch (object.status) { - case "STATUS_UNSPECIFIED": - case 0: - message.status = 0; - break; - case "PENDING": - case 1: - message.status = 1; - break; - case "RUNNING": - case 2: - message.status = 2; - break; - case "DONE": - case 3: - message.status = 3; - break; - case "ABORTING": - case 4: - message.status = 4; - break; - } - if (object.detail != null) - message.detail = String(object.detail); - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.selfLink != null) - message.selfLink = String(object.selfLink); - if (object.targetLink != null) - message.targetLink = String(object.targetLink); - if (object.location != null) - message.location = String(object.location); - if (object.startTime != null) - message.startTime = String(object.startTime); - if (object.endTime != null) - message.endTime = String(object.endTime); - if (object.clusterConditions) { - if (!Array.isArray(object.clusterConditions)) - throw TypeError(".google.container.v1.Operation.clusterConditions: array expected"); - message.clusterConditions = []; - for (var i = 0; i < object.clusterConditions.length; ++i) { - if (typeof object.clusterConditions[i] !== "object") - throw TypeError(".google.container.v1.Operation.clusterConditions: object expected"); - message.clusterConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.clusterConditions[i]); - } - } - if (object.nodepoolConditions) { - if (!Array.isArray(object.nodepoolConditions)) - throw TypeError(".google.container.v1.Operation.nodepoolConditions: array expected"); - message.nodepoolConditions = []; - for (var i = 0; i < object.nodepoolConditions.length; ++i) { - if (typeof object.nodepoolConditions[i] !== "object") - throw TypeError(".google.container.v1.Operation.nodepoolConditions: object expected"); - message.nodepoolConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.nodepoolConditions[i]); - } - } + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest + */ + SetMonitoringServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMonitoringServiceRequest) + return object; + var message = new $root.google.container.v1.SetMonitoringServiceRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.monitoringService != null) + message.monitoringService = String(object.monitoringService); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an Operation message. Also converts values to other types if specified. + * Creates a plain object from a SetMonitoringServiceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @static - * @param {google.container.v1.Operation} message Operation + * @param {google.container.v1.SetMonitoringServiceRequest} message SetMonitoringServiceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Operation.toObject = function toObject(message, options) { + SetMonitoringServiceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.clusterConditions = []; - object.nodepoolConditions = []; - } if (options.defaults) { - object.name = ""; + object.projectId = ""; object.zone = ""; - object.operationType = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; - object.statusMessage = ""; - object.selfLink = ""; - object.targetLink = ""; - object.detail = ""; - object.location = ""; - object.startTime = ""; - object.endTime = ""; + object.clusterId = ""; + object.monitoringService = ""; + object.name = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.operationType != null && message.hasOwnProperty("operationType")) - object.operationType = options.enums === String ? $root.google.container.v1.Operation.Type[message.operationType] : message.operationType; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] : message.status; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - object.selfLink = message.selfLink; - if (message.targetLink != null && message.hasOwnProperty("targetLink")) - object.targetLink = message.targetLink; - if (message.detail != null && message.hasOwnProperty("detail")) - object.detail = message.detail; - if (message.location != null && message.hasOwnProperty("location")) - object.location = message.location; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = message.startTime; - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = message.endTime; - if (message.clusterConditions && message.clusterConditions.length) { - object.clusterConditions = []; - for (var j = 0; j < message.clusterConditions.length; ++j) - object.clusterConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.clusterConditions[j], options); - } - if (message.nodepoolConditions && message.nodepoolConditions.length) { - object.nodepoolConditions = []; - for (var j = 0; j < message.nodepoolConditions.length; ++j) - object.nodepoolConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.nodepoolConditions[j], options); - } + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + object.monitoringService = message.monitoringService; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this Operation to JSON. + * Converts this SetMonitoringServiceRequest to JSON. * @function toJSON - * @memberof google.container.v1.Operation + * @memberof google.container.v1.SetMonitoringServiceRequest * @instance * @returns {Object.} JSON object */ - Operation.prototype.toJSON = function toJSON() { + SetMonitoringServiceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Status enum. - * @name google.container.v1.Operation.Status - * @enum {number} - * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} DONE=3 DONE value - * @property {number} ABORTING=4 ABORTING value - */ - Operation.Status = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "DONE"] = 3; - values[valuesById[4] = "ABORTING"] = 4; - return values; - })(); - - /** - * Type enum. - * @name google.container.v1.Operation.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} CREATE_CLUSTER=1 CREATE_CLUSTER value - * @property {number} DELETE_CLUSTER=2 DELETE_CLUSTER value - * @property {number} UPGRADE_MASTER=3 UPGRADE_MASTER value - * @property {number} UPGRADE_NODES=4 UPGRADE_NODES value - * @property {number} REPAIR_CLUSTER=5 REPAIR_CLUSTER value - * @property {number} UPDATE_CLUSTER=6 UPDATE_CLUSTER value - * @property {number} CREATE_NODE_POOL=7 CREATE_NODE_POOL value - * @property {number} DELETE_NODE_POOL=8 DELETE_NODE_POOL value - * @property {number} SET_NODE_POOL_MANAGEMENT=9 SET_NODE_POOL_MANAGEMENT value - * @property {number} AUTO_REPAIR_NODES=10 AUTO_REPAIR_NODES value - * @property {number} AUTO_UPGRADE_NODES=11 AUTO_UPGRADE_NODES value - * @property {number} SET_LABELS=12 SET_LABELS value - * @property {number} SET_MASTER_AUTH=13 SET_MASTER_AUTH value - * @property {number} SET_NODE_POOL_SIZE=14 SET_NODE_POOL_SIZE value - * @property {number} SET_NETWORK_POLICY=15 SET_NETWORK_POLICY value - * @property {number} SET_MAINTENANCE_POLICY=16 SET_MAINTENANCE_POLICY value - */ - Operation.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "CREATE_CLUSTER"] = 1; - values[valuesById[2] = "DELETE_CLUSTER"] = 2; - values[valuesById[3] = "UPGRADE_MASTER"] = 3; - values[valuesById[4] = "UPGRADE_NODES"] = 4; - values[valuesById[5] = "REPAIR_CLUSTER"] = 5; - values[valuesById[6] = "UPDATE_CLUSTER"] = 6; - values[valuesById[7] = "CREATE_NODE_POOL"] = 7; - values[valuesById[8] = "DELETE_NODE_POOL"] = 8; - values[valuesById[9] = "SET_NODE_POOL_MANAGEMENT"] = 9; - values[valuesById[10] = "AUTO_REPAIR_NODES"] = 10; - values[valuesById[11] = "AUTO_UPGRADE_NODES"] = 11; - values[valuesById[12] = "SET_LABELS"] = 12; - values[valuesById[13] = "SET_MASTER_AUTH"] = 13; - values[valuesById[14] = "SET_NODE_POOL_SIZE"] = 14; - values[valuesById[15] = "SET_NETWORK_POLICY"] = 15; - values[valuesById[16] = "SET_MAINTENANCE_POLICY"] = 16; - return values; - })(); - - return Operation; + return SetMonitoringServiceRequest; })(); - v1.CreateClusterRequest = (function() { + v1.SetAddonsConfigRequest = (function() { /** - * Properties of a CreateClusterRequest. + * Properties of a SetAddonsConfigRequest. * @memberof google.container.v1 - * @interface ICreateClusterRequest - * @property {string|null} [projectId] CreateClusterRequest projectId - * @property {string|null} [zone] CreateClusterRequest zone - * @property {google.container.v1.ICluster|null} [cluster] CreateClusterRequest cluster - * @property {string|null} [parent] CreateClusterRequest parent + * @interface ISetAddonsConfigRequest + * @property {string|null} [projectId] SetAddonsConfigRequest projectId + * @property {string|null} [zone] SetAddonsConfigRequest zone + * @property {string|null} [clusterId] SetAddonsConfigRequest clusterId + * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] SetAddonsConfigRequest addonsConfig + * @property {string|null} [name] SetAddonsConfigRequest name */ /** - * Constructs a new CreateClusterRequest. + * Constructs a new SetAddonsConfigRequest. * @memberof google.container.v1 - * @classdesc Represents a CreateClusterRequest. - * @implements ICreateClusterRequest + * @classdesc Represents a SetAddonsConfigRequest. + * @implements ISetAddonsConfigRequest * @constructor - * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set + * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set */ - function CreateClusterRequest(properties) { + function SetAddonsConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8705,100 +13036,110 @@ } /** - * CreateClusterRequest projectId. + * SetAddonsConfigRequest projectId. * @member {string} projectId - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @instance */ - CreateClusterRequest.prototype.projectId = ""; + SetAddonsConfigRequest.prototype.projectId = ""; /** - * CreateClusterRequest zone. + * SetAddonsConfigRequest zone. * @member {string} zone - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @instance */ - CreateClusterRequest.prototype.zone = ""; + SetAddonsConfigRequest.prototype.zone = ""; /** - * CreateClusterRequest cluster. - * @member {google.container.v1.ICluster|null|undefined} cluster - * @memberof google.container.v1.CreateClusterRequest + * SetAddonsConfigRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetAddonsConfigRequest * @instance */ - CreateClusterRequest.prototype.cluster = null; + SetAddonsConfigRequest.prototype.clusterId = ""; /** - * CreateClusterRequest parent. - * @member {string} parent - * @memberof google.container.v1.CreateClusterRequest + * SetAddonsConfigRequest addonsConfig. + * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig + * @memberof google.container.v1.SetAddonsConfigRequest * @instance */ - CreateClusterRequest.prototype.parent = ""; + SetAddonsConfigRequest.prototype.addonsConfig = null; /** - * Creates a new CreateClusterRequest instance using the specified properties. + * SetAddonsConfigRequest name. + * @member {string} name + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.name = ""; + + /** + * Creates a new SetAddonsConfigRequest instance using the specified properties. * @function create - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static - * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest instance + * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest instance */ - CreateClusterRequest.create = function create(properties) { - return new CreateClusterRequest(properties); + SetAddonsConfigRequest.create = function create(properties) { + return new SetAddonsConfigRequest(properties); }; /** - * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages. + * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static - * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateClusterRequest.encode = function encode(message, writer) { + SetAddonsConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) - $root.google.container.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages. + * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static - * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest message or plain object to encode + * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetAddonsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer. + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateClusterRequest.decode = function decode(reader, length) { + SetAddonsConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CreateClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetAddonsConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8809,10 +13150,13 @@ message.zone = reader.string(); break; case 3: - message.cluster = $root.google.container.v1.Cluster.decode(reader, reader.uint32()); + message.clusterId = reader.string(); break; - case 5: - message.parent = reader.string(); + case 4: + message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); + break; + case 6: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -8823,30 +13167,30 @@ }; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + SetAddonsConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateClusterRequest message. + * Verifies a SetAddonsConfigRequest message. * @function verify - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateClusterRequest.verify = function verify(message) { + SetAddonsConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -8855,108 +13199,118 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) { - var error = $root.google.container.v1.Cluster.verify(message.cluster); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) { + var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig); if (error) - return "cluster." + error; + return "addonsConfig." + error; } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest */ - CreateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CreateClusterRequest) + SetAddonsConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetAddonsConfigRequest) return object; - var message = new $root.google.container.v1.CreateClusterRequest(); + var message = new $root.google.container.v1.SetAddonsConfigRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.cluster != null) { - if (typeof object.cluster !== "object") - throw TypeError(".google.container.v1.CreateClusterRequest.cluster: object expected"); - message.cluster = $root.google.container.v1.Cluster.fromObject(object.cluster); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.addonsConfig != null) { + if (typeof object.addonsConfig !== "object") + throw TypeError(".google.container.v1.SetAddonsConfigRequest.addonsConfig: object expected"); + message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig); } - if (object.parent != null) - message.parent = String(object.parent); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetAddonsConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @static - * @param {google.container.v1.CreateClusterRequest} message CreateClusterRequest + * @param {google.container.v1.SetAddonsConfigRequest} message SetAddonsConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateClusterRequest.toObject = function toObject(message, options) { + SetAddonsConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.cluster = null; - object.parent = ""; + object.clusterId = ""; + object.addonsConfig = null; + object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.cluster != null && message.hasOwnProperty("cluster")) - object.cluster = $root.google.container.v1.Cluster.toObject(message.cluster, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateClusterRequest to JSON. + * Converts this SetAddonsConfigRequest to JSON. * @function toJSON - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.SetAddonsConfigRequest * @instance * @returns {Object.} JSON object */ - CreateClusterRequest.prototype.toJSON = function toJSON() { + SetAddonsConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateClusterRequest; + return SetAddonsConfigRequest; })(); - v1.GetClusterRequest = (function() { + v1.SetLocationsRequest = (function() { /** - * Properties of a GetClusterRequest. + * Properties of a SetLocationsRequest. * @memberof google.container.v1 - * @interface IGetClusterRequest - * @property {string|null} [projectId] GetClusterRequest projectId - * @property {string|null} [zone] GetClusterRequest zone - * @property {string|null} [clusterId] GetClusterRequest clusterId - * @property {string|null} [name] GetClusterRequest name + * @interface ISetLocationsRequest + * @property {string|null} [projectId] SetLocationsRequest projectId + * @property {string|null} [zone] SetLocationsRequest zone + * @property {string|null} [clusterId] SetLocationsRequest clusterId + * @property {Array.|null} [locations] SetLocationsRequest locations + * @property {string|null} [name] SetLocationsRequest name */ /** - * Constructs a new GetClusterRequest. + * Constructs a new SetLocationsRequest. * @memberof google.container.v1 - * @classdesc Represents a GetClusterRequest. - * @implements IGetClusterRequest + * @classdesc Represents a SetLocationsRequest. + * @implements ISetLocationsRequest * @constructor - * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set + * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set */ - function GetClusterRequest(properties) { + function SetLocationsRequest(properties) { + this.locations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8964,59 +13318,67 @@ } /** - * GetClusterRequest projectId. + * SetLocationsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @instance */ - GetClusterRequest.prototype.projectId = ""; + SetLocationsRequest.prototype.projectId = ""; /** - * GetClusterRequest zone. + * SetLocationsRequest zone. * @member {string} zone - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @instance */ - GetClusterRequest.prototype.zone = ""; + SetLocationsRequest.prototype.zone = ""; /** - * GetClusterRequest clusterId. + * SetLocationsRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @instance */ - GetClusterRequest.prototype.clusterId = ""; + SetLocationsRequest.prototype.clusterId = ""; /** - * GetClusterRequest name. + * SetLocationsRequest locations. + * @member {Array.} locations + * @memberof google.container.v1.SetLocationsRequest + * @instance + */ + SetLocationsRequest.prototype.locations = $util.emptyArray; + + /** + * SetLocationsRequest name. * @member {string} name - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @instance */ - GetClusterRequest.prototype.name = ""; + SetLocationsRequest.prototype.name = ""; /** - * Creates a new GetClusterRequest instance using the specified properties. + * Creates a new SetLocationsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static - * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.GetClusterRequest} GetClusterRequest instance + * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest instance */ - GetClusterRequest.create = function create(properties) { - return new GetClusterRequest(properties); + SetLocationsRequest.create = function create(properties) { + return new SetLocationsRequest(properties); }; /** - * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages. + * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static - * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetClusterRequest.encode = function encode(message, writer) { + SetLocationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -9025,39 +13387,42 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.locations != null && message.locations.length) + for (var i = 0; i < message.locations.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.locations[i]); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages. + * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static - * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest message or plain object to encode + * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetLocationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetClusterRequest message from the specified reader or buffer. + * Decodes a SetLocationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetClusterRequest.decode = function decode(reader, length) { + SetLocationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLocationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9070,7 +13435,12 @@ case 3: message.clusterId = reader.string(); break; - case 5: + case 4: + if (!(message.locations && message.locations.length)) + message.locations = []; + message.locations.push(reader.string()); + break; + case 6: message.name = reader.string(); break; default: @@ -9082,30 +13452,30 @@ }; /** - * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetClusterRequest.decodeDelimited = function decodeDelimited(reader) { + SetLocationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetClusterRequest message. + * Verifies a SetLocationsRequest message. * @function verify - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetClusterRequest.verify = function verify(message) { + SetLocationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9117,6 +13487,13 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string expected"; + if (message.locations != null && message.hasOwnProperty("locations")) { + if (!Array.isArray(message.locations)) + return "locations: array expected"; + for (var i = 0; i < message.locations.length; ++i) + if (!$util.isString(message.locations[i])) + return "locations: string[] expected"; + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -9124,41 +13501,50 @@ }; /** - * Creates a GetClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetLocationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest */ - GetClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetClusterRequest) + SetLocationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLocationsRequest) return object; - var message = new $root.google.container.v1.GetClusterRequest(); + var message = new $root.google.container.v1.SetLocationsRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); if (object.clusterId != null) message.clusterId = String(object.clusterId); + if (object.locations) { + if (!Array.isArray(object.locations)) + throw TypeError(".google.container.v1.SetLocationsRequest.locations: array expected"); + message.locations = []; + for (var i = 0; i < object.locations.length; ++i) + message.locations[i] = String(object.locations[i]); + } if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetLocationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @static - * @param {google.container.v1.GetClusterRequest} message GetClusterRequest + * @param {google.container.v1.SetLocationsRequest} message SetLocationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetClusterRequest.toObject = function toObject(message, options) { + SetLocationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.locations = []; if (options.defaults) { object.projectId = ""; object.zone = ""; @@ -9171,47 +13557,52 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; + if (message.locations && message.locations.length) { + object.locations = []; + for (var j = 0; j < message.locations.length; ++j) + object.locations[j] = message.locations[j]; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this GetClusterRequest to JSON. + * Converts this SetLocationsRequest to JSON. * @function toJSON - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.SetLocationsRequest * @instance * @returns {Object.} JSON object */ - GetClusterRequest.prototype.toJSON = function toJSON() { + SetLocationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetClusterRequest; + return SetLocationsRequest; })(); - v1.UpdateClusterRequest = (function() { + v1.UpdateMasterRequest = (function() { /** - * Properties of an UpdateClusterRequest. + * Properties of an UpdateMasterRequest. * @memberof google.container.v1 - * @interface IUpdateClusterRequest - * @property {string|null} [projectId] UpdateClusterRequest projectId - * @property {string|null} [zone] UpdateClusterRequest zone - * @property {string|null} [clusterId] UpdateClusterRequest clusterId - * @property {google.container.v1.IClusterUpdate|null} [update] UpdateClusterRequest update - * @property {string|null} [name] UpdateClusterRequest name + * @interface IUpdateMasterRequest + * @property {string|null} [projectId] UpdateMasterRequest projectId + * @property {string|null} [zone] UpdateMasterRequest zone + * @property {string|null} [clusterId] UpdateMasterRequest clusterId + * @property {string|null} [masterVersion] UpdateMasterRequest masterVersion + * @property {string|null} [name] UpdateMasterRequest name */ /** - * Constructs a new UpdateClusterRequest. + * Constructs a new UpdateMasterRequest. * @memberof google.container.v1 - * @classdesc Represents an UpdateClusterRequest. - * @implements IUpdateClusterRequest + * @classdesc Represents an UpdateMasterRequest. + * @implements IUpdateMasterRequest * @constructor - * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set + * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set */ - function UpdateClusterRequest(properties) { + function UpdateMasterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9219,67 +13610,67 @@ } /** - * UpdateClusterRequest projectId. + * UpdateMasterRequest projectId. * @member {string} projectId - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @instance */ - UpdateClusterRequest.prototype.projectId = ""; + UpdateMasterRequest.prototype.projectId = ""; /** - * UpdateClusterRequest zone. + * UpdateMasterRequest zone. * @member {string} zone - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @instance */ - UpdateClusterRequest.prototype.zone = ""; + UpdateMasterRequest.prototype.zone = ""; /** - * UpdateClusterRequest clusterId. + * UpdateMasterRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @instance */ - UpdateClusterRequest.prototype.clusterId = ""; + UpdateMasterRequest.prototype.clusterId = ""; /** - * UpdateClusterRequest update. - * @member {google.container.v1.IClusterUpdate|null|undefined} update - * @memberof google.container.v1.UpdateClusterRequest + * UpdateMasterRequest masterVersion. + * @member {string} masterVersion + * @memberof google.container.v1.UpdateMasterRequest * @instance */ - UpdateClusterRequest.prototype.update = null; + UpdateMasterRequest.prototype.masterVersion = ""; /** - * UpdateClusterRequest name. + * UpdateMasterRequest name. * @member {string} name - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @instance */ - UpdateClusterRequest.prototype.name = ""; + UpdateMasterRequest.prototype.name = ""; /** - * Creates a new UpdateClusterRequest instance using the specified properties. + * Creates a new UpdateMasterRequest instance using the specified properties. * @function create - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static - * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest instance + * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest instance */ - UpdateClusterRequest.create = function create(properties) { - return new UpdateClusterRequest(properties); + UpdateMasterRequest.create = function create(properties) { + return new UpdateMasterRequest(properties); }; /** - * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages. + * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static - * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateClusterRequest.encode = function encode(message, writer) { + UpdateMasterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -9288,41 +13679,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.update != null && Object.hasOwnProperty.call(message, "update")) - $root.google.container.v1.ClusterUpdate.encode(message.update, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.masterVersion != null && Object.hasOwnProperty.call(message, "masterVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages. + * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static - * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest message or plain object to encode + * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateMasterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer. + * Decodes an UpdateMasterRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateClusterRequest.decode = function decode(reader, length) { + UpdateMasterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UpdateClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UpdateMasterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9336,9 +13727,9 @@ message.clusterId = reader.string(); break; case 4: - message.update = $root.google.container.v1.ClusterUpdate.decode(reader, reader.uint32()); + message.masterVersion = reader.string(); break; - case 5: + case 7: message.name = reader.string(); break; default: @@ -9350,30 +13741,30 @@ }; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateMasterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateClusterRequest message. + * Verifies an UpdateMasterRequest message. * @function verify - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateClusterRequest.verify = function verify(message) { + UpdateMasterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9385,11 +13776,9 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string expected"; - if (message.update != null && message.hasOwnProperty("update")) { - var error = $root.google.container.v1.ClusterUpdate.verify(message.update); - if (error) - return "update." + error; - } + if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) + if (!$util.isString(message.masterVersion)) + return "masterVersion: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -9397,43 +13786,40 @@ }; /** - * Creates an UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateMasterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest */ - UpdateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.UpdateClusterRequest) + UpdateMasterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpdateMasterRequest) return object; - var message = new $root.google.container.v1.UpdateClusterRequest(); + var message = new $root.google.container.v1.UpdateMasterRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); if (object.clusterId != null) message.clusterId = String(object.clusterId); - if (object.update != null) { - if (typeof object.update !== "object") - throw TypeError(".google.container.v1.UpdateClusterRequest.update: object expected"); - message.update = $root.google.container.v1.ClusterUpdate.fromObject(object.update); - } + if (object.masterVersion != null) + message.masterVersion = String(object.masterVersion); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateMasterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @static - * @param {google.container.v1.UpdateClusterRequest} message UpdateClusterRequest + * @param {google.container.v1.UpdateMasterRequest} message UpdateMasterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateClusterRequest.toObject = function toObject(message, options) { + UpdateMasterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -9441,7 +13827,7 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.update = null; + object.masterVersion = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9450,51 +13836,50 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; - if (message.update != null && message.hasOwnProperty("update")) - object.update = $root.google.container.v1.ClusterUpdate.toObject(message.update, options); + if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) + object.masterVersion = message.masterVersion; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this UpdateClusterRequest to JSON. + * Converts this UpdateMasterRequest to JSON. * @function toJSON - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.UpdateMasterRequest * @instance * @returns {Object.} JSON object */ - UpdateClusterRequest.prototype.toJSON = function toJSON() { + UpdateMasterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateClusterRequest; + return UpdateMasterRequest; })(); - v1.UpdateNodePoolRequest = (function() { + v1.SetMasterAuthRequest = (function() { /** - * Properties of an UpdateNodePoolRequest. + * Properties of a SetMasterAuthRequest. * @memberof google.container.v1 - * @interface IUpdateNodePoolRequest - * @property {string|null} [projectId] UpdateNodePoolRequest projectId - * @property {string|null} [zone] UpdateNodePoolRequest zone - * @property {string|null} [clusterId] UpdateNodePoolRequest clusterId - * @property {string|null} [nodePoolId] UpdateNodePoolRequest nodePoolId - * @property {string|null} [nodeVersion] UpdateNodePoolRequest nodeVersion - * @property {string|null} [imageType] UpdateNodePoolRequest imageType - * @property {string|null} [name] UpdateNodePoolRequest name + * @interface ISetMasterAuthRequest + * @property {string|null} [projectId] SetMasterAuthRequest projectId + * @property {string|null} [zone] SetMasterAuthRequest zone + * @property {string|null} [clusterId] SetMasterAuthRequest clusterId + * @property {google.container.v1.SetMasterAuthRequest.Action|null} [action] SetMasterAuthRequest action + * @property {google.container.v1.IMasterAuth|null} [update] SetMasterAuthRequest update + * @property {string|null} [name] SetMasterAuthRequest name */ /** - * Constructs a new UpdateNodePoolRequest. + * Constructs a new SetMasterAuthRequest. * @memberof google.container.v1 - * @classdesc Represents an UpdateNodePoolRequest. - * @implements IUpdateNodePoolRequest + * @classdesc Represents a SetMasterAuthRequest. + * @implements ISetMasterAuthRequest * @constructor - * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set */ - function UpdateNodePoolRequest(properties) { + function SetMasterAuthRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9502,83 +13887,75 @@ } /** - * UpdateNodePoolRequest projectId. + * SetMasterAuthRequest projectId. * @member {string} projectId - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @instance */ - UpdateNodePoolRequest.prototype.projectId = ""; + SetMasterAuthRequest.prototype.projectId = ""; /** - * UpdateNodePoolRequest zone. + * SetMasterAuthRequest zone. * @member {string} zone - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @instance */ - UpdateNodePoolRequest.prototype.zone = ""; + SetMasterAuthRequest.prototype.zone = ""; /** - * UpdateNodePoolRequest clusterId. + * SetMasterAuthRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.UpdateNodePoolRequest - * @instance - */ - UpdateNodePoolRequest.prototype.clusterId = ""; - - /** - * UpdateNodePoolRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @instance */ - UpdateNodePoolRequest.prototype.nodePoolId = ""; + SetMasterAuthRequest.prototype.clusterId = ""; /** - * UpdateNodePoolRequest nodeVersion. - * @member {string} nodeVersion - * @memberof google.container.v1.UpdateNodePoolRequest + * SetMasterAuthRequest action. + * @member {google.container.v1.SetMasterAuthRequest.Action} action + * @memberof google.container.v1.SetMasterAuthRequest * @instance */ - UpdateNodePoolRequest.prototype.nodeVersion = ""; + SetMasterAuthRequest.prototype.action = 0; /** - * UpdateNodePoolRequest imageType. - * @member {string} imageType - * @memberof google.container.v1.UpdateNodePoolRequest + * SetMasterAuthRequest update. + * @member {google.container.v1.IMasterAuth|null|undefined} update + * @memberof google.container.v1.SetMasterAuthRequest * @instance */ - UpdateNodePoolRequest.prototype.imageType = ""; + SetMasterAuthRequest.prototype.update = null; /** - * UpdateNodePoolRequest name. + * SetMasterAuthRequest name. * @member {string} name - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @instance */ - UpdateNodePoolRequest.prototype.name = ""; + SetMasterAuthRequest.prototype.name = ""; /** - * Creates a new UpdateNodePoolRequest instance using the specified properties. + * Creates a new SetMasterAuthRequest instance using the specified properties. * @function create - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static - * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest instance + * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest instance */ - UpdateNodePoolRequest.create = function create(properties) { - return new UpdateNodePoolRequest(properties); + SetMasterAuthRequest.create = function create(properties) { + return new SetMasterAuthRequest(properties); }; /** - * Encodes the specified UpdateNodePoolRequest message. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages. + * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static - * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode + * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateNodePoolRequest.encode = function encode(message, writer) { + SetMasterAuthRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -9587,45 +13964,43 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeVersion != null && Object.hasOwnProperty.call(message, "nodeVersion")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); - if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); + if (message.update != null && Object.hasOwnProperty.call(message, "update")) + $root.google.container.v1.MasterAuth.encode(message.update, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified UpdateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages. + * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static - * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest message or plain object to encode + * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetMasterAuthRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateNodePoolRequest message from the specified reader or buffer. + * Decodes a SetMasterAuthRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateNodePoolRequest.decode = function decode(reader, length) { + SetMasterAuthRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UpdateNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMasterAuthRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9639,15 +14014,12 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); + message.action = reader.int32(); break; case 5: - message.nodeVersion = reader.string(); - break; - case 6: - message.imageType = reader.string(); + message.update = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32()); break; - case 8: + case 7: message.name = reader.string(); break; default: @@ -9659,30 +14031,30 @@ }; /** - * Decodes an UpdateNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + SetMasterAuthRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateNodePoolRequest message. + * Verifies a SetMasterAuthRequest message. * @function verify - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateNodePoolRequest.verify = function verify(message) { + SetMasterAuthRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9694,15 +14066,21 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string expected"; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - if (!$util.isString(message.nodePoolId)) - return "nodePoolId: string expected"; - if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) - if (!$util.isString(message.nodeVersion)) - return "nodeVersion: string expected"; - if (message.imageType != null && message.hasOwnProperty("imageType")) - if (!$util.isString(message.imageType)) - return "imageType: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + switch (message.action) { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.update != null && message.hasOwnProperty("update")) { + var error = $root.google.container.v1.MasterAuth.verify(message.update); + if (error) + return "update." + error; + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -9710,44 +14088,61 @@ }; /** - * Creates an UpdateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest */ - UpdateNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.UpdateNodePoolRequest) + SetMasterAuthRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMasterAuthRequest) return object; - var message = new $root.google.container.v1.UpdateNodePoolRequest(); + var message = new $root.google.container.v1.SetMasterAuthRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); if (object.clusterId != null) message.clusterId = String(object.clusterId); - if (object.nodePoolId != null) - message.nodePoolId = String(object.nodePoolId); - if (object.nodeVersion != null) - message.nodeVersion = String(object.nodeVersion); - if (object.imageType != null) - message.imageType = String(object.imageType); + switch (object.action) { + case "UNKNOWN": + case 0: + message.action = 0; + break; + case "SET_PASSWORD": + case 1: + message.action = 1; + break; + case "GENERATE_PASSWORD": + case 2: + message.action = 2; + break; + case "SET_USERNAME": + case 3: + message.action = 3; + break; + } + if (object.update != null) { + if (typeof object.update !== "object") + throw TypeError(".google.container.v1.SetMasterAuthRequest.update: object expected"); + message.update = $root.google.container.v1.MasterAuth.fromObject(object.update); + } if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetMasterAuthRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @static - * @param {google.container.v1.UpdateNodePoolRequest} message UpdateNodePoolRequest + * @param {google.container.v1.SetMasterAuthRequest} message SetMasterAuthRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateNodePoolRequest.toObject = function toObject(message, options) { + SetMasterAuthRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -9755,9 +14150,8 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; - object.nodeVersion = ""; - object.imageType = ""; + object.action = options.enums === String ? "UNKNOWN" : 0; + object.update = null; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9766,54 +14160,68 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; - if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) - object.nodeVersion = message.nodeVersion; - if (message.imageType != null && message.hasOwnProperty("imageType")) - object.imageType = message.imageType; + if (message.action != null && message.hasOwnProperty("action")) + object.action = options.enums === String ? $root.google.container.v1.SetMasterAuthRequest.Action[message.action] : message.action; + if (message.update != null && message.hasOwnProperty("update")) + object.update = $root.google.container.v1.MasterAuth.toObject(message.update, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this UpdateNodePoolRequest to JSON. + * Converts this SetMasterAuthRequest to JSON. * @function toJSON - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.SetMasterAuthRequest * @instance * @returns {Object.} JSON object */ - UpdateNodePoolRequest.prototype.toJSON = function toJSON() { + SetMasterAuthRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateNodePoolRequest; + /** + * Action enum. + * @name google.container.v1.SetMasterAuthRequest.Action + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} SET_PASSWORD=1 SET_PASSWORD value + * @property {number} GENERATE_PASSWORD=2 GENERATE_PASSWORD value + * @property {number} SET_USERNAME=3 SET_USERNAME value + */ + SetMasterAuthRequest.Action = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "SET_PASSWORD"] = 1; + values[valuesById[2] = "GENERATE_PASSWORD"] = 2; + values[valuesById[3] = "SET_USERNAME"] = 3; + return values; + })(); + + return SetMasterAuthRequest; })(); - v1.SetNodePoolAutoscalingRequest = (function() { + v1.DeleteClusterRequest = (function() { /** - * Properties of a SetNodePoolAutoscalingRequest. + * Properties of a DeleteClusterRequest. * @memberof google.container.v1 - * @interface ISetNodePoolAutoscalingRequest - * @property {string|null} [projectId] SetNodePoolAutoscalingRequest projectId - * @property {string|null} [zone] SetNodePoolAutoscalingRequest zone - * @property {string|null} [clusterId] SetNodePoolAutoscalingRequest clusterId - * @property {string|null} [nodePoolId] SetNodePoolAutoscalingRequest nodePoolId - * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] SetNodePoolAutoscalingRequest autoscaling - * @property {string|null} [name] SetNodePoolAutoscalingRequest name + * @interface IDeleteClusterRequest + * @property {string|null} [projectId] DeleteClusterRequest projectId + * @property {string|null} [zone] DeleteClusterRequest zone + * @property {string|null} [clusterId] DeleteClusterRequest clusterId + * @property {string|null} [name] DeleteClusterRequest name */ /** - * Constructs a new SetNodePoolAutoscalingRequest. + * Constructs a new DeleteClusterRequest. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolAutoscalingRequest. - * @implements ISetNodePoolAutoscalingRequest + * @classdesc Represents a DeleteClusterRequest. + * @implements IDeleteClusterRequest * @constructor - * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set + * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set */ - function SetNodePoolAutoscalingRequest(properties) { + function DeleteClusterRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9821,75 +14229,59 @@ } /** - * SetNodePoolAutoscalingRequest projectId. + * DeleteClusterRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @instance */ - SetNodePoolAutoscalingRequest.prototype.projectId = ""; + DeleteClusterRequest.prototype.projectId = ""; /** - * SetNodePoolAutoscalingRequest zone. + * DeleteClusterRequest zone. * @member {string} zone - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @instance */ - SetNodePoolAutoscalingRequest.prototype.zone = ""; + DeleteClusterRequest.prototype.zone = ""; /** - * SetNodePoolAutoscalingRequest clusterId. + * DeleteClusterRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolAutoscalingRequest - * @instance - */ - SetNodePoolAutoscalingRequest.prototype.clusterId = ""; - - /** - * SetNodePoolAutoscalingRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolAutoscalingRequest - * @instance - */ - SetNodePoolAutoscalingRequest.prototype.nodePoolId = ""; - - /** - * SetNodePoolAutoscalingRequest autoscaling. - * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @instance */ - SetNodePoolAutoscalingRequest.prototype.autoscaling = null; + DeleteClusterRequest.prototype.clusterId = ""; /** - * SetNodePoolAutoscalingRequest name. + * DeleteClusterRequest name. * @member {string} name - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @instance */ - SetNodePoolAutoscalingRequest.prototype.name = ""; + DeleteClusterRequest.prototype.name = ""; /** - * Creates a new SetNodePoolAutoscalingRequest instance using the specified properties. + * Creates a new DeleteClusterRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static - * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest instance + * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest instance */ - SetNodePoolAutoscalingRequest.create = function create(properties) { - return new SetNodePoolAutoscalingRequest(properties); + DeleteClusterRequest.create = function create(properties) { + return new DeleteClusterRequest(properties); }; /** - * Encodes the specified SetNodePoolAutoscalingRequest message. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static - * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode + * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolAutoscalingRequest.encode = function encode(message, writer) { + DeleteClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -9898,43 +14290,39 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) - $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified SetNodePoolAutoscalingRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static - * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode + * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolAutoscalingRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer. + * Decodes a DeleteClusterRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolAutoscalingRequest.decode = function decode(reader, length) { + DeleteClusterRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolAutoscalingRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DeleteClusterRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9948,12 +14336,6 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); - break; - case 5: - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); - break; - case 6: message.name = reader.string(); break; default: @@ -9965,30 +14347,30 @@ }; /** - * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolAutoscalingRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolAutoscalingRequest message. + * Verifies a DeleteClusterRequest message. * @function verify - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNodePoolAutoscalingRequest.verify = function verify(message) { + DeleteClusterRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -10000,14 +14382,6 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string expected"; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - if (!$util.isString(message.nodePoolId)) - return "nodePoolId: string expected"; - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) { - var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); - if (error) - return "autoscaling." + error; - } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -10015,45 +14389,38 @@ }; /** - * Creates a SetNodePoolAutoscalingRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest */ - SetNodePoolAutoscalingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolAutoscalingRequest) + DeleteClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DeleteClusterRequest) return object; - var message = new $root.google.container.v1.SetNodePoolAutoscalingRequest(); + var message = new $root.google.container.v1.DeleteClusterRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); if (object.clusterId != null) message.clusterId = String(object.clusterId); - if (object.nodePoolId != null) - message.nodePoolId = String(object.nodePoolId); - if (object.autoscaling != null) { - if (typeof object.autoscaling !== "object") - throw TypeError(".google.container.v1.SetNodePoolAutoscalingRequest.autoscaling: object expected"); - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); - } if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetNodePoolAutoscalingRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @static - * @param {google.container.v1.SetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest + * @param {google.container.v1.DeleteClusterRequest} message DeleteClusterRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolAutoscalingRequest.toObject = function toObject(message, options) { + DeleteClusterRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -10061,8 +14428,6 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; - object.autoscaling = null; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -10071,51 +14436,45 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) - object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetNodePoolAutoscalingRequest to JSON. + * Converts this DeleteClusterRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.DeleteClusterRequest * @instance * @returns {Object.} JSON object */ - SetNodePoolAutoscalingRequest.prototype.toJSON = function toJSON() { + DeleteClusterRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolAutoscalingRequest; + return DeleteClusterRequest; })(); - v1.SetLoggingServiceRequest = (function() { + v1.ListClustersRequest = (function() { /** - * Properties of a SetLoggingServiceRequest. + * Properties of a ListClustersRequest. * @memberof google.container.v1 - * @interface ISetLoggingServiceRequest - * @property {string|null} [projectId] SetLoggingServiceRequest projectId - * @property {string|null} [zone] SetLoggingServiceRequest zone - * @property {string|null} [clusterId] SetLoggingServiceRequest clusterId - * @property {string|null} [loggingService] SetLoggingServiceRequest loggingService - * @property {string|null} [name] SetLoggingServiceRequest name + * @interface IListClustersRequest + * @property {string|null} [projectId] ListClustersRequest projectId + * @property {string|null} [zone] ListClustersRequest zone + * @property {string|null} [parent] ListClustersRequest parent */ /** - * Constructs a new SetLoggingServiceRequest. + * Constructs a new ListClustersRequest. * @memberof google.container.v1 - * @classdesc Represents a SetLoggingServiceRequest. - * @implements ISetLoggingServiceRequest + * @classdesc Represents a ListClustersRequest. + * @implements IListClustersRequest * @constructor - * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set + * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set */ - function SetLoggingServiceRequest(properties) { + function ListClustersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10123,110 +14482,90 @@ } /** - * SetLoggingServiceRequest projectId. + * ListClustersRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @instance */ - SetLoggingServiceRequest.prototype.projectId = ""; + ListClustersRequest.prototype.projectId = ""; /** - * SetLoggingServiceRequest zone. + * ListClustersRequest zone. * @member {string} zone - * @memberof google.container.v1.SetLoggingServiceRequest - * @instance - */ - SetLoggingServiceRequest.prototype.zone = ""; - - /** - * SetLoggingServiceRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLoggingServiceRequest - * @instance - */ - SetLoggingServiceRequest.prototype.clusterId = ""; - - /** - * SetLoggingServiceRequest loggingService. - * @member {string} loggingService - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @instance */ - SetLoggingServiceRequest.prototype.loggingService = ""; + ListClustersRequest.prototype.zone = ""; /** - * SetLoggingServiceRequest name. - * @member {string} name - * @memberof google.container.v1.SetLoggingServiceRequest + * ListClustersRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListClustersRequest * @instance */ - SetLoggingServiceRequest.prototype.name = ""; + ListClustersRequest.prototype.parent = ""; /** - * Creates a new SetLoggingServiceRequest instance using the specified properties. + * Creates a new ListClustersRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static - * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest instance + * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest instance */ - SetLoggingServiceRequest.create = function create(properties) { - return new SetLoggingServiceRequest(properties); + ListClustersRequest.create = function create(properties) { + return new ListClustersRequest(properties); }; /** - * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static - * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode + * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLoggingServiceRequest.encode = function encode(message, writer) { + ListClustersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; /** - * Encodes the specified SetLoggingServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static - * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode + * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLoggingServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLoggingServiceRequest message from the specified reader or buffer. + * Decodes a ListClustersRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLoggingServiceRequest.decode = function decode(reader, length) { + ListClustersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLoggingServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListClustersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10236,14 +14575,8 @@ case 2: message.zone = reader.string(); break; - case 3: - message.clusterId = reader.string(); - break; case 4: - message.loggingService = reader.string(); - break; - case 5: - message.name = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -10254,30 +14587,30 @@ }; /** - * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLoggingServiceRequest.decodeDelimited = function decodeDelimited(reader) { + ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLoggingServiceRequest message. + * Verifies a ListClustersRequest message. * @function verify - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLoggingServiceRequest.verify = function verify(message) { + ListClustersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -10285,113 +14618,96 @@ return "projectId: string expected"; if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.loggingService != null && message.hasOwnProperty("loggingService")) - if (!$util.isString(message.loggingService)) - return "loggingService: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + return "zone: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a SetLoggingServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest */ - SetLoggingServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLoggingServiceRequest) + ListClustersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListClustersRequest) return object; - var message = new $root.google.container.v1.SetLoggingServiceRequest(); + var message = new $root.google.container.v1.ListClustersRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.loggingService != null) - message.loggingService = String(object.loggingService); - if (object.name != null) - message.name = String(object.name); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a SetLoggingServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @static - * @param {google.container.v1.SetLoggingServiceRequest} message SetLoggingServiceRequest + * @param {google.container.v1.ListClustersRequest} message ListClustersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLoggingServiceRequest.toObject = function toObject(message, options) { + ListClustersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.clusterId = ""; - object.loggingService = ""; - object.name = ""; + object.parent = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.loggingService != null && message.hasOwnProperty("loggingService")) - object.loggingService = message.loggingService; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this SetLoggingServiceRequest to JSON. + * Converts this ListClustersRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.ListClustersRequest * @instance * @returns {Object.} JSON object */ - SetLoggingServiceRequest.prototype.toJSON = function toJSON() { + ListClustersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLoggingServiceRequest; + return ListClustersRequest; })(); - v1.SetMonitoringServiceRequest = (function() { + v1.ListClustersResponse = (function() { /** - * Properties of a SetMonitoringServiceRequest. + * Properties of a ListClustersResponse. * @memberof google.container.v1 - * @interface ISetMonitoringServiceRequest - * @property {string|null} [projectId] SetMonitoringServiceRequest projectId - * @property {string|null} [zone] SetMonitoringServiceRequest zone - * @property {string|null} [clusterId] SetMonitoringServiceRequest clusterId - * @property {string|null} [monitoringService] SetMonitoringServiceRequest monitoringService - * @property {string|null} [name] SetMonitoringServiceRequest name + * @interface IListClustersResponse + * @property {Array.|null} [clusters] ListClustersResponse clusters + * @property {Array.|null} [missingZones] ListClustersResponse missingZones */ /** - * Constructs a new SetMonitoringServiceRequest. + * Constructs a new ListClustersResponse. * @memberof google.container.v1 - * @classdesc Represents a SetMonitoringServiceRequest. - * @implements ISetMonitoringServiceRequest + * @classdesc Represents a ListClustersResponse. + * @implements IListClustersResponse * @constructor - * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set + * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set */ - function SetMonitoringServiceRequest(properties) { + function ListClustersResponse(properties) { + this.clusters = []; + this.missingZones = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10399,127 +14715,94 @@ } /** - * SetMonitoringServiceRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetMonitoringServiceRequest - * @instance - */ - SetMonitoringServiceRequest.prototype.projectId = ""; - - /** - * SetMonitoringServiceRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetMonitoringServiceRequest - * @instance - */ - SetMonitoringServiceRequest.prototype.zone = ""; - - /** - * SetMonitoringServiceRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetMonitoringServiceRequest - * @instance - */ - SetMonitoringServiceRequest.prototype.clusterId = ""; - - /** - * SetMonitoringServiceRequest monitoringService. - * @member {string} monitoringService - * @memberof google.container.v1.SetMonitoringServiceRequest + * ListClustersResponse clusters. + * @member {Array.} clusters + * @memberof google.container.v1.ListClustersResponse * @instance */ - SetMonitoringServiceRequest.prototype.monitoringService = ""; + ListClustersResponse.prototype.clusters = $util.emptyArray; /** - * SetMonitoringServiceRequest name. - * @member {string} name - * @memberof google.container.v1.SetMonitoringServiceRequest + * ListClustersResponse missingZones. + * @member {Array.} missingZones + * @memberof google.container.v1.ListClustersResponse * @instance */ - SetMonitoringServiceRequest.prototype.name = ""; + ListClustersResponse.prototype.missingZones = $util.emptyArray; /** - * Creates a new SetMonitoringServiceRequest instance using the specified properties. + * Creates a new ListClustersResponse instance using the specified properties. * @function create - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set - * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest instance + * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse instance */ - SetMonitoringServiceRequest.create = function create(properties) { - return new SetMonitoringServiceRequest(properties); + ListClustersResponse.create = function create(properties) { + return new ListClustersResponse(properties); }; /** - * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode + * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMonitoringServiceRequest.encode = function encode(message, writer) { + ListClustersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.clusters != null && message.clusters.length) + for (var i = 0; i < message.clusters.length; ++i) + $root.google.container.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.missingZones != null && message.missingZones.length) + for (var i = 0; i < message.missingZones.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.missingZones[i]); return writer; }; /** - * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode + * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMonitoringServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer. + * Decodes a ListClustersResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMonitoringServiceRequest.decode = function decode(reader, length) { + ListClustersResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMonitoringServiceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListClustersResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + if (!(message.clusters && message.clusters.length)) + message.clusters = []; + message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.monitoringService = reader.string(); - break; - case 6: - message.name = reader.string(); + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -10530,144 +14813,148 @@ }; /** - * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMonitoringServiceRequest.decodeDelimited = function decodeDelimited(reader) { + ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMonitoringServiceRequest message. + * Verifies a ListClustersResponse message. * @function verify - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetMonitoringServiceRequest.verify = function verify(message) { + ListClustersResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) - if (!$util.isString(message.monitoringService)) - return "monitoringService: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.clusters != null && message.hasOwnProperty("clusters")) { + if (!Array.isArray(message.clusters)) + return "clusters: array expected"; + for (var i = 0; i < message.clusters.length; ++i) { + var error = $root.google.container.v1.Cluster.verify(message.clusters[i]); + if (error) + return "clusters." + error; + } + } + if (message.missingZones != null && message.hasOwnProperty("missingZones")) { + if (!Array.isArray(message.missingZones)) + return "missingZones: array expected"; + for (var i = 0; i < message.missingZones.length; ++i) + if (!$util.isString(message.missingZones[i])) + return "missingZones: string[] expected"; + } return null; }; /** - * Creates a SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse */ - SetMonitoringServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetMonitoringServiceRequest) + ListClustersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListClustersResponse) return object; - var message = new $root.google.container.v1.SetMonitoringServiceRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.monitoringService != null) - message.monitoringService = String(object.monitoringService); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.ListClustersResponse(); + if (object.clusters) { + if (!Array.isArray(object.clusters)) + throw TypeError(".google.container.v1.ListClustersResponse.clusters: array expected"); + message.clusters = []; + for (var i = 0; i < object.clusters.length; ++i) { + if (typeof object.clusters[i] !== "object") + throw TypeError(".google.container.v1.ListClustersResponse.clusters: object expected"); + message.clusters[i] = $root.google.container.v1.Cluster.fromObject(object.clusters[i]); + } + } + if (object.missingZones) { + if (!Array.isArray(object.missingZones)) + throw TypeError(".google.container.v1.ListClustersResponse.missingZones: array expected"); + message.missingZones = []; + for (var i = 0; i < object.missingZones.length; ++i) + message.missingZones[i] = String(object.missingZones[i]); + } return message; }; /** - * Creates a plain object from a SetMonitoringServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.SetMonitoringServiceRequest} message SetMonitoringServiceRequest + * @param {google.container.v1.ListClustersResponse} message ListClustersResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMonitoringServiceRequest.toObject = function toObject(message, options) { + ListClustersResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.monitoringService = ""; - object.name = ""; + if (options.arrays || options.defaults) { + object.clusters = []; + object.missingZones = []; + } + if (message.clusters && message.clusters.length) { + object.clusters = []; + for (var j = 0; j < message.clusters.length; ++j) + object.clusters[j] = $root.google.container.v1.Cluster.toObject(message.clusters[j], options); + } + if (message.missingZones && message.missingZones.length) { + object.missingZones = []; + for (var j = 0; j < message.missingZones.length; ++j) + object.missingZones[j] = message.missingZones[j]; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) - object.monitoringService = message.monitoringService; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this SetMonitoringServiceRequest to JSON. + * Converts this ListClustersResponse to JSON. * @function toJSON - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.ListClustersResponse * @instance * @returns {Object.} JSON object */ - SetMonitoringServiceRequest.prototype.toJSON = function toJSON() { + ListClustersResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetMonitoringServiceRequest; + return ListClustersResponse; })(); - v1.SetAddonsConfigRequest = (function() { + v1.GetOperationRequest = (function() { /** - * Properties of a SetAddonsConfigRequest. + * Properties of a GetOperationRequest. * @memberof google.container.v1 - * @interface ISetAddonsConfigRequest - * @property {string|null} [projectId] SetAddonsConfigRequest projectId - * @property {string|null} [zone] SetAddonsConfigRequest zone - * @property {string|null} [clusterId] SetAddonsConfigRequest clusterId - * @property {google.container.v1.IAddonsConfig|null} [addonsConfig] SetAddonsConfigRequest addonsConfig - * @property {string|null} [name] SetAddonsConfigRequest name + * @interface IGetOperationRequest + * @property {string|null} [projectId] GetOperationRequest projectId + * @property {string|null} [zone] GetOperationRequest zone + * @property {string|null} [operationId] GetOperationRequest operationId + * @property {string|null} [name] GetOperationRequest name */ /** - * Constructs a new SetAddonsConfigRequest. + * Constructs a new GetOperationRequest. * @memberof google.container.v1 - * @classdesc Represents a SetAddonsConfigRequest. - * @implements ISetAddonsConfigRequest + * @classdesc Represents a GetOperationRequest. + * @implements IGetOperationRequest * @constructor - * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set + * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set */ - function SetAddonsConfigRequest(properties) { + function GetOperationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10675,110 +14962,100 @@ } /** - * SetAddonsConfigRequest projectId. + * GetOperationRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @instance */ - SetAddonsConfigRequest.prototype.projectId = ""; + GetOperationRequest.prototype.projectId = ""; /** - * SetAddonsConfigRequest zone. + * GetOperationRequest zone. * @member {string} zone - * @memberof google.container.v1.SetAddonsConfigRequest - * @instance - */ - SetAddonsConfigRequest.prototype.zone = ""; - - /** - * SetAddonsConfigRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @instance */ - SetAddonsConfigRequest.prototype.clusterId = ""; + GetOperationRequest.prototype.zone = ""; /** - * SetAddonsConfigRequest addonsConfig. - * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig - * @memberof google.container.v1.SetAddonsConfigRequest + * GetOperationRequest operationId. + * @member {string} operationId + * @memberof google.container.v1.GetOperationRequest * @instance */ - SetAddonsConfigRequest.prototype.addonsConfig = null; + GetOperationRequest.prototype.operationId = ""; /** - * SetAddonsConfigRequest name. + * GetOperationRequest name. * @member {string} name - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @instance */ - SetAddonsConfigRequest.prototype.name = ""; + GetOperationRequest.prototype.name = ""; /** - * Creates a new SetAddonsConfigRequest instance using the specified properties. + * Creates a new GetOperationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set - * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest instance + * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest instance */ - SetAddonsConfigRequest.create = function create(properties) { - return new SetAddonsConfigRequest(properties); + GetOperationRequest.create = function create(properties) { + return new GetOperationRequest(properties); }; /** - * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode + * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetAddonsConfigRequest.encode = function encode(message, writer) { + GetOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig")) - $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; /** - * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode + * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetAddonsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetAddonsConfigRequest message from the specified reader or buffer. + * Decodes a GetOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetAddonsConfigRequest.decode = function decode(reader, length) { + GetOperationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetAddonsConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetOperationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10789,12 +15066,9 @@ message.zone = reader.string(); break; case 3: - message.clusterId = reader.string(); - break; - case 4: - message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); + message.operationId = reader.string(); break; - case 6: + case 5: message.name = reader.string(); break; default: @@ -10806,30 +15080,30 @@ }; /** - * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetAddonsConfigRequest.decodeDelimited = function decodeDelimited(reader) { + GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetAddonsConfigRequest message. + * Verifies a GetOperationRequest message. * @function verify - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetAddonsConfigRequest.verify = function verify(message) { + GetOperationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -10838,14 +15112,9 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) { - var error = $root.google.container.v1.AddonsConfig.verify(message.addonsConfig); - if (error) - return "addonsConfig." + error; - } + if (message.operationId != null && message.hasOwnProperty("operationId")) + if (!$util.isString(message.operationId)) + return "operationId: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -10853,103 +15122,92 @@ }; /** - * Creates a SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest */ - SetAddonsConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetAddonsConfigRequest) + GetOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOperationRequest) return object; - var message = new $root.google.container.v1.SetAddonsConfigRequest(); + var message = new $root.google.container.v1.GetOperationRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.addonsConfig != null) { - if (typeof object.addonsConfig !== "object") - throw TypeError(".google.container.v1.SetAddonsConfigRequest.addonsConfig: object expected"); - message.addonsConfig = $root.google.container.v1.AddonsConfig.fromObject(object.addonsConfig); - } + if (object.operationId != null) + message.operationId = String(object.operationId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetAddonsConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.SetAddonsConfigRequest} message SetAddonsConfigRequest + * @param {google.container.v1.GetOperationRequest} message GetOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetAddonsConfigRequest.toObject = function toObject(message, options) { + GetOperationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.clusterId = ""; - object.addonsConfig = null; + object.operationId = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) - object.addonsConfig = $root.google.container.v1.AddonsConfig.toObject(message.addonsConfig, options); + if (message.operationId != null && message.hasOwnProperty("operationId")) + object.operationId = message.operationId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetAddonsConfigRequest to JSON. + * Converts this GetOperationRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.GetOperationRequest * @instance * @returns {Object.} JSON object */ - SetAddonsConfigRequest.prototype.toJSON = function toJSON() { + GetOperationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetAddonsConfigRequest; + return GetOperationRequest; })(); - v1.SetLocationsRequest = (function() { + v1.ListOperationsRequest = (function() { /** - * Properties of a SetLocationsRequest. + * Properties of a ListOperationsRequest. * @memberof google.container.v1 - * @interface ISetLocationsRequest - * @property {string|null} [projectId] SetLocationsRequest projectId - * @property {string|null} [zone] SetLocationsRequest zone - * @property {string|null} [clusterId] SetLocationsRequest clusterId - * @property {Array.|null} [locations] SetLocationsRequest locations - * @property {string|null} [name] SetLocationsRequest name + * @interface IListOperationsRequest + * @property {string|null} [projectId] ListOperationsRequest projectId + * @property {string|null} [zone] ListOperationsRequest zone + * @property {string|null} [parent] ListOperationsRequest parent */ /** - * Constructs a new SetLocationsRequest. + * Constructs a new ListOperationsRequest. * @memberof google.container.v1 - * @classdesc Represents a SetLocationsRequest. - * @implements ISetLocationsRequest + * @classdesc Represents a ListOperationsRequest. + * @implements IListOperationsRequest * @constructor - * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set + * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set */ - function SetLocationsRequest(properties) { - this.locations = []; + function ListOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10957,111 +15215,90 @@ } /** - * SetLocationsRequest projectId. + * ListOperationsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @instance */ - SetLocationsRequest.prototype.projectId = ""; + ListOperationsRequest.prototype.projectId = ""; /** - * SetLocationsRequest zone. + * ListOperationsRequest zone. * @member {string} zone - * @memberof google.container.v1.SetLocationsRequest - * @instance - */ - SetLocationsRequest.prototype.zone = ""; - - /** - * SetLocationsRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLocationsRequest - * @instance - */ - SetLocationsRequest.prototype.clusterId = ""; - - /** - * SetLocationsRequest locations. - * @member {Array.} locations - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @instance */ - SetLocationsRequest.prototype.locations = $util.emptyArray; + ListOperationsRequest.prototype.zone = ""; /** - * SetLocationsRequest name. - * @member {string} name - * @memberof google.container.v1.SetLocationsRequest + * ListOperationsRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListOperationsRequest * @instance */ - SetLocationsRequest.prototype.name = ""; + ListOperationsRequest.prototype.parent = ""; /** - * Creates a new SetLocationsRequest instance using the specified properties. + * Creates a new ListOperationsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest instance + * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest instance */ - SetLocationsRequest.create = function create(properties) { - return new SetLocationsRequest(properties); + ListOperationsRequest.create = function create(properties) { + return new ListOperationsRequest(properties); }; /** - * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode + * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLocationsRequest.encode = function encode(message, writer) { + ListOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.locations != null && message.locations.length) - for (var i = 0; i < message.locations.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.locations[i]); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; /** - * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode + * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLocationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLocationsRequest message from the specified reader or buffer. + * Decodes a ListOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLocationsRequest.decode = function decode(reader, length) { + ListOperationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLocationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11071,16 +15308,8 @@ case 2: message.zone = reader.string(); break; - case 3: - message.clusterId = reader.string(); - break; case 4: - if (!(message.locations && message.locations.length)) - message.locations = []; - message.locations.push(reader.string()); - break; - case 6: - message.name = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -11091,30 +15320,30 @@ }; /** - * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLocationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLocationsRequest message. + * Verifies a ListOperationsRequest message. * @function verify - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLocationsRequest.verify = function verify(message) { + ListOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -11123,125 +15352,95 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.locations != null && message.hasOwnProperty("locations")) { - if (!Array.isArray(message.locations)) - return "locations: array expected"; - for (var i = 0; i < message.locations.length; ++i) - if (!$util.isString(message.locations[i])) - return "locations: string[] expected"; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a SetLocationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest */ - SetLocationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLocationsRequest) + ListOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListOperationsRequest) return object; - var message = new $root.google.container.v1.SetLocationsRequest(); + var message = new $root.google.container.v1.ListOperationsRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.locations) { - if (!Array.isArray(object.locations)) - throw TypeError(".google.container.v1.SetLocationsRequest.locations: array expected"); - message.locations = []; - for (var i = 0; i < object.locations.length; ++i) - message.locations[i] = String(object.locations[i]); - } - if (object.name != null) - message.name = String(object.name); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a SetLocationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.SetLocationsRequest} message SetLocationsRequest + * @param {google.container.v1.ListOperationsRequest} message ListOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLocationsRequest.toObject = function toObject(message, options) { + ListOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.locations = []; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.clusterId = ""; - object.name = ""; + object.parent = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.locations && message.locations.length) { - object.locations = []; - for (var j = 0; j < message.locations.length; ++j) - object.locations[j] = message.locations[j]; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this SetLocationsRequest to JSON. + * Converts this ListOperationsRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.ListOperationsRequest * @instance * @returns {Object.} JSON object */ - SetLocationsRequest.prototype.toJSON = function toJSON() { + ListOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLocationsRequest; + return ListOperationsRequest; })(); - v1.UpdateMasterRequest = (function() { + v1.CancelOperationRequest = (function() { /** - * Properties of an UpdateMasterRequest. + * Properties of a CancelOperationRequest. * @memberof google.container.v1 - * @interface IUpdateMasterRequest - * @property {string|null} [projectId] UpdateMasterRequest projectId - * @property {string|null} [zone] UpdateMasterRequest zone - * @property {string|null} [clusterId] UpdateMasterRequest clusterId - * @property {string|null} [masterVersion] UpdateMasterRequest masterVersion - * @property {string|null} [name] UpdateMasterRequest name + * @interface ICancelOperationRequest + * @property {string|null} [projectId] CancelOperationRequest projectId + * @property {string|null} [zone] CancelOperationRequest zone + * @property {string|null} [operationId] CancelOperationRequest operationId + * @property {string|null} [name] CancelOperationRequest name */ /** - * Constructs a new UpdateMasterRequest. + * Constructs a new CancelOperationRequest. * @memberof google.container.v1 - * @classdesc Represents an UpdateMasterRequest. - * @implements IUpdateMasterRequest + * @classdesc Represents a CancelOperationRequest. + * @implements ICancelOperationRequest * @constructor - * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set + * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set */ - function UpdateMasterRequest(properties) { + function CancelOperationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11249,110 +15448,100 @@ } /** - * UpdateMasterRequest projectId. + * CancelOperationRequest projectId. * @member {string} projectId - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance */ - UpdateMasterRequest.prototype.projectId = ""; + CancelOperationRequest.prototype.projectId = ""; /** - * UpdateMasterRequest zone. + * CancelOperationRequest zone. * @member {string} zone - * @memberof google.container.v1.UpdateMasterRequest - * @instance - */ - UpdateMasterRequest.prototype.zone = ""; - - /** - * UpdateMasterRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance */ - UpdateMasterRequest.prototype.clusterId = ""; + CancelOperationRequest.prototype.zone = ""; /** - * UpdateMasterRequest masterVersion. - * @member {string} masterVersion - * @memberof google.container.v1.UpdateMasterRequest + * CancelOperationRequest operationId. + * @member {string} operationId + * @memberof google.container.v1.CancelOperationRequest * @instance */ - UpdateMasterRequest.prototype.masterVersion = ""; + CancelOperationRequest.prototype.operationId = ""; /** - * UpdateMasterRequest name. + * CancelOperationRequest name. * @member {string} name - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance */ - UpdateMasterRequest.prototype.name = ""; + CancelOperationRequest.prototype.name = ""; /** - * Creates a new UpdateMasterRequest instance using the specified properties. + * Creates a new CancelOperationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set - * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest instance + * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest instance */ - UpdateMasterRequest.create = function create(properties) { - return new UpdateMasterRequest(properties); + CancelOperationRequest.create = function create(properties) { + return new CancelOperationRequest(properties); }; /** - * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode + * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMasterRequest.encode = function encode(message, writer) { + CancelOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.masterVersion != null && Object.hasOwnProperty.call(message, "masterVersion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); + if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode + * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMasterRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateMasterRequest message from the specified reader or buffer. + * Decodes a CancelOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateMasterRequest.decode = function decode(reader, length) { + CancelOperationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UpdateMasterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CancelOperationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11363,12 +15552,9 @@ message.zone = reader.string(); break; case 3: - message.clusterId = reader.string(); + message.operationId = reader.string(); break; case 4: - message.masterVersion = reader.string(); - break; - case 7: message.name = reader.string(); break; default: @@ -11380,30 +15566,30 @@ }; /** - * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateMasterRequest.decodeDelimited = function decodeDelimited(reader) { + CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateMasterRequest message. + * Verifies a CancelOperationRequest message. * @function verify - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateMasterRequest.verify = function verify(message) { + CancelOperationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -11412,12 +15598,9 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) - if (!$util.isString(message.masterVersion)) - return "masterVersion: string expected"; + if (message.operationId != null && message.hasOwnProperty("operationId")) + if (!$util.isString(message.operationId)) + return "operationId: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -11425,100 +15608,93 @@ }; /** - * Creates an UpdateMasterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest */ - UpdateMasterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.UpdateMasterRequest) + CancelOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CancelOperationRequest) return object; - var message = new $root.google.container.v1.UpdateMasterRequest(); + var message = new $root.google.container.v1.CancelOperationRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.masterVersion != null) - message.masterVersion = String(object.masterVersion); + if (object.operationId != null) + message.operationId = String(object.operationId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateMasterRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.UpdateMasterRequest} message UpdateMasterRequest + * @param {google.container.v1.CancelOperationRequest} message CancelOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateMasterRequest.toObject = function toObject(message, options) { + CancelOperationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.clusterId = ""; - object.masterVersion = ""; + object.operationId = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) - object.masterVersion = message.masterVersion; + if (message.operationId != null && message.hasOwnProperty("operationId")) + object.operationId = message.operationId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this UpdateMasterRequest to JSON. + * Converts this CancelOperationRequest to JSON. * @function toJSON - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance * @returns {Object.} JSON object */ - UpdateMasterRequest.prototype.toJSON = function toJSON() { + CancelOperationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateMasterRequest; + return CancelOperationRequest; })(); - v1.SetMasterAuthRequest = (function() { + v1.ListOperationsResponse = (function() { /** - * Properties of a SetMasterAuthRequest. + * Properties of a ListOperationsResponse. * @memberof google.container.v1 - * @interface ISetMasterAuthRequest - * @property {string|null} [projectId] SetMasterAuthRequest projectId - * @property {string|null} [zone] SetMasterAuthRequest zone - * @property {string|null} [clusterId] SetMasterAuthRequest clusterId - * @property {google.container.v1.SetMasterAuthRequest.Action|null} [action] SetMasterAuthRequest action - * @property {google.container.v1.IMasterAuth|null} [update] SetMasterAuthRequest update - * @property {string|null} [name] SetMasterAuthRequest name + * @interface IListOperationsResponse + * @property {Array.|null} [operations] ListOperationsResponse operations + * @property {Array.|null} [missingZones] ListOperationsResponse missingZones */ /** - * Constructs a new SetMasterAuthRequest. + * Constructs a new ListOperationsResponse. * @memberof google.container.v1 - * @classdesc Represents a SetMasterAuthRequest. - * @implements ISetMasterAuthRequest + * @classdesc Represents a ListOperationsResponse. + * @implements IListOperationsResponse * @constructor - * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set + * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set */ - function SetMasterAuthRequest(properties) { + function ListOperationsResponse(properties) { + this.operations = []; + this.missingZones = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11526,140 +15702,94 @@ } /** - * SetMasterAuthRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetMasterAuthRequest - * @instance - */ - SetMasterAuthRequest.prototype.projectId = ""; - - /** - * SetMasterAuthRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetMasterAuthRequest - * @instance - */ - SetMasterAuthRequest.prototype.zone = ""; - - /** - * SetMasterAuthRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetMasterAuthRequest - * @instance - */ - SetMasterAuthRequest.prototype.clusterId = ""; - - /** - * SetMasterAuthRequest action. - * @member {google.container.v1.SetMasterAuthRequest.Action} action - * @memberof google.container.v1.SetMasterAuthRequest - * @instance - */ - SetMasterAuthRequest.prototype.action = 0; - - /** - * SetMasterAuthRequest update. - * @member {google.container.v1.IMasterAuth|null|undefined} update - * @memberof google.container.v1.SetMasterAuthRequest + * ListOperationsResponse operations. + * @member {Array.} operations + * @memberof google.container.v1.ListOperationsResponse * @instance */ - SetMasterAuthRequest.prototype.update = null; + ListOperationsResponse.prototype.operations = $util.emptyArray; /** - * SetMasterAuthRequest name. - * @member {string} name - * @memberof google.container.v1.SetMasterAuthRequest + * ListOperationsResponse missingZones. + * @member {Array.} missingZones + * @memberof google.container.v1.ListOperationsResponse * @instance */ - SetMasterAuthRequest.prototype.name = ""; + ListOperationsResponse.prototype.missingZones = $util.emptyArray; /** - * Creates a new SetMasterAuthRequest instance using the specified properties. + * Creates a new ListOperationsResponse instance using the specified properties. * @function create - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set - * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest instance + * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse instance */ - SetMasterAuthRequest.create = function create(properties) { - return new SetMasterAuthRequest(properties); + ListOperationsResponse.create = function create(properties) { + return new ListOperationsResponse(properties); }; /** - * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode + * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMasterAuthRequest.encode = function encode(message, writer) { + ListOperationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); - if (message.update != null && Object.hasOwnProperty.call(message, "update")) - $root.google.container.v1.MasterAuth.encode(message.update, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + if (message.operations != null && message.operations.length) + for (var i = 0; i < message.operations.length; ++i) + $root.google.container.v1.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.missingZones != null && message.missingZones.length) + for (var i = 0; i < message.missingZones.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.missingZones[i]); return writer; }; /** - * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode + * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMasterAuthRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMasterAuthRequest message from the specified reader or buffer. + * Decodes a ListOperationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMasterAuthRequest.decode = function decode(reader, length) { + ListOperationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMasterAuthRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListOperationsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); - break; - case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.action = reader.int32(); - break; - case 5: - message.update = $root.google.container.v1.MasterAuth.decode(reader, reader.uint32()); + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); break; - case 7: - message.name = reader.string(); + case 2: + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -11670,197 +15800,147 @@ }; /** - * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited. + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMasterAuthRequest.decodeDelimited = function decodeDelimited(reader) { + ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMasterAuthRequest message. + * Verifies a ListOperationsResponse message. * @function verify - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetMasterAuthRequest.verify = function verify(message) { + ListOperationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + if (message.operations != null && message.hasOwnProperty("operations")) { + if (!Array.isArray(message.operations)) + return "operations: array expected"; + for (var i = 0; i < message.operations.length; ++i) { + var error = $root.google.container.v1.Operation.verify(message.operations[i]); + if (error) + return "operations." + error; } - if (message.update != null && message.hasOwnProperty("update")) { - var error = $root.google.container.v1.MasterAuth.verify(message.update); - if (error) - return "update." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.missingZones != null && message.hasOwnProperty("missingZones")) { + if (!Array.isArray(message.missingZones)) + return "missingZones: array expected"; + for (var i = 0; i < message.missingZones.length; ++i) + if (!$util.isString(message.missingZones[i])) + return "missingZones: string[] expected"; + } return null; }; /** - * Creates a SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse */ - SetMasterAuthRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetMasterAuthRequest) + ListOperationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListOperationsResponse) return object; - var message = new $root.google.container.v1.SetMasterAuthRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - switch (object.action) { - case "UNKNOWN": - case 0: - message.action = 0; - break; - case "SET_PASSWORD": - case 1: - message.action = 1; - break; - case "GENERATE_PASSWORD": - case 2: - message.action = 2; - break; - case "SET_USERNAME": - case 3: - message.action = 3; - break; + var message = new $root.google.container.v1.ListOperationsResponse(); + if (object.operations) { + if (!Array.isArray(object.operations)) + throw TypeError(".google.container.v1.ListOperationsResponse.operations: array expected"); + message.operations = []; + for (var i = 0; i < object.operations.length; ++i) { + if (typeof object.operations[i] !== "object") + throw TypeError(".google.container.v1.ListOperationsResponse.operations: object expected"); + message.operations[i] = $root.google.container.v1.Operation.fromObject(object.operations[i]); + } } - if (object.update != null) { - if (typeof object.update !== "object") - throw TypeError(".google.container.v1.SetMasterAuthRequest.update: object expected"); - message.update = $root.google.container.v1.MasterAuth.fromObject(object.update); + if (object.missingZones) { + if (!Array.isArray(object.missingZones)) + throw TypeError(".google.container.v1.ListOperationsResponse.missingZones: array expected"); + message.missingZones = []; + for (var i = 0; i < object.missingZones.length; ++i) + message.missingZones[i] = String(object.missingZones[i]); } - if (object.name != null) - message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetMasterAuthRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.SetMasterAuthRequest} message SetMasterAuthRequest + * @param {google.container.v1.ListOperationsResponse} message ListOperationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMasterAuthRequest.toObject = function toObject(message, options) { + ListOperationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.action = options.enums === String ? "UNKNOWN" : 0; - object.update = null; - object.name = ""; + if (options.arrays || options.defaults) { + object.operations = []; + object.missingZones = []; + } + if (message.operations && message.operations.length) { + object.operations = []; + for (var j = 0; j < message.operations.length; ++j) + object.operations[j] = $root.google.container.v1.Operation.toObject(message.operations[j], options); + } + if (message.missingZones && message.missingZones.length) { + object.missingZones = []; + for (var j = 0; j < message.missingZones.length; ++j) + object.missingZones[j] = message.missingZones[j]; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.google.container.v1.SetMasterAuthRequest.Action[message.action] : message.action; - if (message.update != null && message.hasOwnProperty("update")) - object.update = $root.google.container.v1.MasterAuth.toObject(message.update, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this SetMasterAuthRequest to JSON. + * Converts this ListOperationsResponse to JSON. * @function toJSON - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.ListOperationsResponse * @instance * @returns {Object.} JSON object */ - SetMasterAuthRequest.prototype.toJSON = function toJSON() { + ListOperationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Action enum. - * @name google.container.v1.SetMasterAuthRequest.Action - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} SET_PASSWORD=1 SET_PASSWORD value - * @property {number} GENERATE_PASSWORD=2 GENERATE_PASSWORD value - * @property {number} SET_USERNAME=3 SET_USERNAME value - */ - SetMasterAuthRequest.Action = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "SET_PASSWORD"] = 1; - values[valuesById[2] = "GENERATE_PASSWORD"] = 2; - values[valuesById[3] = "SET_USERNAME"] = 3; - return values; - })(); - - return SetMasterAuthRequest; + return ListOperationsResponse; })(); - v1.DeleteClusterRequest = (function() { + v1.GetServerConfigRequest = (function() { /** - * Properties of a DeleteClusterRequest. + * Properties of a GetServerConfigRequest. * @memberof google.container.v1 - * @interface IDeleteClusterRequest - * @property {string|null} [projectId] DeleteClusterRequest projectId - * @property {string|null} [zone] DeleteClusterRequest zone - * @property {string|null} [clusterId] DeleteClusterRequest clusterId - * @property {string|null} [name] DeleteClusterRequest name + * @interface IGetServerConfigRequest + * @property {string|null} [projectId] GetServerConfigRequest projectId + * @property {string|null} [zone] GetServerConfigRequest zone + * @property {string|null} [name] GetServerConfigRequest name */ /** - * Constructs a new DeleteClusterRequest. + * Constructs a new GetServerConfigRequest. * @memberof google.container.v1 - * @classdesc Represents a DeleteClusterRequest. - * @implements IDeleteClusterRequest + * @classdesc Represents a GetServerConfigRequest. + * @implements IGetServerConfigRequest * @constructor - * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set + * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set */ - function DeleteClusterRequest(properties) { + function GetServerConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11868,100 +15948,90 @@ } /** - * DeleteClusterRequest projectId. + * GetServerConfigRequest projectId. * @member {string} projectId - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @instance */ - DeleteClusterRequest.prototype.projectId = ""; + GetServerConfigRequest.prototype.projectId = ""; /** - * DeleteClusterRequest zone. + * GetServerConfigRequest zone. * @member {string} zone - * @memberof google.container.v1.DeleteClusterRequest - * @instance - */ - DeleteClusterRequest.prototype.zone = ""; - - /** - * DeleteClusterRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @instance */ - DeleteClusterRequest.prototype.clusterId = ""; + GetServerConfigRequest.prototype.zone = ""; /** - * DeleteClusterRequest name. + * GetServerConfigRequest name. * @member {string} name - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @instance */ - DeleteClusterRequest.prototype.name = ""; + GetServerConfigRequest.prototype.name = ""; /** - * Creates a new DeleteClusterRequest instance using the specified properties. + * Creates a new GetServerConfigRequest instance using the specified properties. * @function create - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest instance + * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest instance */ - DeleteClusterRequest.create = function create(properties) { - return new DeleteClusterRequest(properties); + GetServerConfigRequest.create = function create(properties) { + return new GetServerConfigRequest(properties); }; /** - * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified GetServerConfigRequest message. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encode = function encode(message, writer) { + GetServerConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; /** - * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetServerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * Decodes a GetServerConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteClusterRequest.decode = function decode(reader, length) { + GetServerConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DeleteClusterRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetServerConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11971,9 +16041,6 @@ case 2: message.zone = reader.string(); break; - case 3: - message.clusterId = reader.string(); - break; case 4: message.name = reader.string(); break; @@ -11986,30 +16053,30 @@ }; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * Decodes a GetServerConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { + GetServerConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteClusterRequest message. + * Verifies a GetServerConfigRequest message. * @function verify - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteClusterRequest.verify = function verify(message) { + GetServerConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -12018,9 +16085,6 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -12028,92 +16092,94 @@ }; /** - * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetServerConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest */ - DeleteClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DeleteClusterRequest) + GetServerConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetServerConfigRequest) return object; - var message = new $root.google.container.v1.DeleteClusterRequest(); + var message = new $root.google.container.v1.GetServerConfigRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetServerConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.DeleteClusterRequest} message DeleteClusterRequest + * @param {google.container.v1.GetServerConfigRequest} message GetServerConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteClusterRequest.toObject = function toObject(message, options) { + GetServerConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.clusterId = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this DeleteClusterRequest to JSON. + * Converts this GetServerConfigRequest to JSON. * @function toJSON - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.GetServerConfigRequest * @instance * @returns {Object.} JSON object */ - DeleteClusterRequest.prototype.toJSON = function toJSON() { + GetServerConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteClusterRequest; + return GetServerConfigRequest; })(); - v1.ListClustersRequest = (function() { + v1.ServerConfig = (function() { /** - * Properties of a ListClustersRequest. + * Properties of a ServerConfig. * @memberof google.container.v1 - * @interface IListClustersRequest - * @property {string|null} [projectId] ListClustersRequest projectId - * @property {string|null} [zone] ListClustersRequest zone - * @property {string|null} [parent] ListClustersRequest parent + * @interface IServerConfig + * @property {string|null} [defaultClusterVersion] ServerConfig defaultClusterVersion + * @property {Array.|null} [validNodeVersions] ServerConfig validNodeVersions + * @property {string|null} [defaultImageType] ServerConfig defaultImageType + * @property {Array.|null} [validImageTypes] ServerConfig validImageTypes + * @property {Array.|null} [validMasterVersions] ServerConfig validMasterVersions + * @property {Array.|null} [channels] ServerConfig channels */ /** - * Constructs a new ListClustersRequest. + * Constructs a new ServerConfig. * @memberof google.container.v1 - * @classdesc Represents a ListClustersRequest. - * @implements IListClustersRequest + * @classdesc Represents a ServerConfig. + * @implements IServerConfig * @constructor - * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + * @param {google.container.v1.IServerConfig=} [properties] Properties to set */ - function ListClustersRequest(properties) { + function ServerConfig(properties) { + this.validNodeVersions = []; + this.validImageTypes = []; + this.validMasterVersions = []; + this.channels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12121,101 +16187,152 @@ } /** - * ListClustersRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.ListClustersRequest + * ServerConfig defaultClusterVersion. + * @member {string} defaultClusterVersion + * @memberof google.container.v1.ServerConfig * @instance */ - ListClustersRequest.prototype.projectId = ""; + ServerConfig.prototype.defaultClusterVersion = ""; /** - * ListClustersRequest zone. - * @member {string} zone - * @memberof google.container.v1.ListClustersRequest + * ServerConfig validNodeVersions. + * @member {Array.} validNodeVersions + * @memberof google.container.v1.ServerConfig * @instance */ - ListClustersRequest.prototype.zone = ""; + ServerConfig.prototype.validNodeVersions = $util.emptyArray; /** - * ListClustersRequest parent. - * @member {string} parent - * @memberof google.container.v1.ListClustersRequest + * ServerConfig defaultImageType. + * @member {string} defaultImageType + * @memberof google.container.v1.ServerConfig * @instance */ - ListClustersRequest.prototype.parent = ""; + ServerConfig.prototype.defaultImageType = ""; /** - * Creates a new ListClustersRequest instance using the specified properties. + * ServerConfig validImageTypes. + * @member {Array.} validImageTypes + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.validImageTypes = $util.emptyArray; + + /** + * ServerConfig validMasterVersions. + * @member {Array.} validMasterVersions + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.validMasterVersions = $util.emptyArray; + + /** + * ServerConfig channels. + * @member {Array.} channels + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.channels = $util.emptyArray; + + /** + * Creates a new ServerConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest instance + * @param {google.container.v1.IServerConfig=} [properties] Properties to set + * @returns {google.container.v1.ServerConfig} ServerConfig instance */ - ListClustersRequest.create = function create(properties) { - return new ListClustersRequest(properties); + ServerConfig.create = function create(properties) { + return new ServerConfig(properties); }; /** - * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encode = function encode(message, writer) { + ServerConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + if (message.defaultClusterVersion != null && Object.hasOwnProperty.call(message, "defaultClusterVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); + if (message.validNodeVersions != null && message.validNodeVersions.length) + for (var i = 0; i < message.validNodeVersions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); + if (message.defaultImageType != null && Object.hasOwnProperty.call(message, "defaultImageType")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); + if (message.validImageTypes != null && message.validImageTypes.length) + for (var i = 0; i < message.validImageTypes.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.validImageTypes[i]); + if (message.validMasterVersions != null && message.validMasterVersions.length) + for (var i = 0; i < message.validMasterVersions.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.validMasterVersions[i]); + if (message.channels != null && message.channels.length) + for (var i = 0; i < message.channels.length; ++i) + $root.google.container.v1.ServerConfig.ReleaseChannelConfig.encode(message.channels[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ServerConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer. + * Decodes a ServerConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.ServerConfig} ServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decode = function decode(reader, length) { + ServerConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListClustersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ServerConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.defaultClusterVersion = reader.string(); break; - case 2: - message.zone = reader.string(); + case 3: + if (!(message.validNodeVersions && message.validNodeVersions.length)) + message.validNodeVersions = []; + message.validNodeVersions.push(reader.string()); break; case 4: - message.parent = reader.string(); + message.defaultImageType = reader.string(); + break; + case 5: + if (!(message.validImageTypes && message.validImageTypes.length)) + message.validImageTypes = []; + message.validImageTypes.push(reader.string()); + break; + case 6: + if (!(message.validMasterVersions && message.validMasterVersions.length)) + message.validMasterVersions = []; + message.validMasterVersions.push(reader.string()); + break; + case 9: + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.google.container.v1.ServerConfig.ReleaseChannelConfig.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -12226,127 +16343,479 @@ }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * Decodes a ServerConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.ServerConfig} ServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { + ServerConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersRequest message. + * Verifies a ServerConfig message. * @function verify - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersRequest.verify = function verify(message) { + ServerConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + if (!$util.isString(message.defaultClusterVersion)) + return "defaultClusterVersion: string expected"; + if (message.validNodeVersions != null && message.hasOwnProperty("validNodeVersions")) { + if (!Array.isArray(message.validNodeVersions)) + return "validNodeVersions: array expected"; + for (var i = 0; i < message.validNodeVersions.length; ++i) + if (!$util.isString(message.validNodeVersions[i])) + return "validNodeVersions: string[] expected"; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + if (!$util.isString(message.defaultImageType)) + return "defaultImageType: string expected"; + if (message.validImageTypes != null && message.hasOwnProperty("validImageTypes")) { + if (!Array.isArray(message.validImageTypes)) + return "validImageTypes: array expected"; + for (var i = 0; i < message.validImageTypes.length; ++i) + if (!$util.isString(message.validImageTypes[i])) + return "validImageTypes: string[] expected"; + } + if (message.validMasterVersions != null && message.hasOwnProperty("validMasterVersions")) { + if (!Array.isArray(message.validMasterVersions)) + return "validMasterVersions: array expected"; + for (var i = 0; i < message.validMasterVersions.length; ++i) + if (!$util.isString(message.validMasterVersions[i])) + return "validMasterVersions: string[] expected"; + } + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (var i = 0; i < message.channels.length; ++i) { + var error = $root.google.container.v1.ServerConfig.ReleaseChannelConfig.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } return null; }; /** - * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ServerConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.ServerConfig} ServerConfig */ - ListClustersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListClustersRequest) + ServerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ServerConfig) return object; - var message = new $root.google.container.v1.ListClustersRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.ServerConfig(); + if (object.defaultClusterVersion != null) + message.defaultClusterVersion = String(object.defaultClusterVersion); + if (object.validNodeVersions) { + if (!Array.isArray(object.validNodeVersions)) + throw TypeError(".google.container.v1.ServerConfig.validNodeVersions: array expected"); + message.validNodeVersions = []; + for (var i = 0; i < object.validNodeVersions.length; ++i) + message.validNodeVersions[i] = String(object.validNodeVersions[i]); + } + if (object.defaultImageType != null) + message.defaultImageType = String(object.defaultImageType); + if (object.validImageTypes) { + if (!Array.isArray(object.validImageTypes)) + throw TypeError(".google.container.v1.ServerConfig.validImageTypes: array expected"); + message.validImageTypes = []; + for (var i = 0; i < object.validImageTypes.length; ++i) + message.validImageTypes[i] = String(object.validImageTypes[i]); + } + if (object.validMasterVersions) { + if (!Array.isArray(object.validMasterVersions)) + throw TypeError(".google.container.v1.ServerConfig.validMasterVersions: array expected"); + message.validMasterVersions = []; + for (var i = 0; i < object.validMasterVersions.length; ++i) + message.validMasterVersions[i] = String(object.validMasterVersions[i]); + } + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".google.container.v1.ServerConfig.channels: array expected"); + message.channels = []; + for (var i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".google.container.v1.ServerConfig.channels: object expected"); + message.channels[i] = $root.google.container.v1.ServerConfig.ReleaseChannelConfig.fromObject(object.channels[i]); + } + } return message; }; /** - * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ServerConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.ListClustersRequest} message ListClustersRequest + * @param {google.container.v1.ServerConfig} message ServerConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersRequest.toObject = function toObject(message, options) { + ServerConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.validNodeVersions = []; + object.validImageTypes = []; + object.validMasterVersions = []; + object.channels = []; + } if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.parent = ""; + object.defaultClusterVersion = ""; + object.defaultImageType = ""; + } + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + object.defaultClusterVersion = message.defaultClusterVersion; + if (message.validNodeVersions && message.validNodeVersions.length) { + object.validNodeVersions = []; + for (var j = 0; j < message.validNodeVersions.length; ++j) + object.validNodeVersions[j] = message.validNodeVersions[j]; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + object.defaultImageType = message.defaultImageType; + if (message.validImageTypes && message.validImageTypes.length) { + object.validImageTypes = []; + for (var j = 0; j < message.validImageTypes.length; ++j) + object.validImageTypes[j] = message.validImageTypes[j]; + } + if (message.validMasterVersions && message.validMasterVersions.length) { + object.validMasterVersions = []; + for (var j = 0; j < message.validMasterVersions.length; ++j) + object.validMasterVersions[j] = message.validMasterVersions[j]; + } + if (message.channels && message.channels.length) { + object.channels = []; + for (var j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.google.container.v1.ServerConfig.ReleaseChannelConfig.toObject(message.channels[j], options); } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; return object; }; /** - * Converts this ListClustersRequest to JSON. + * Converts this ServerConfig to JSON. * @function toJSON - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @instance * @returns {Object.} JSON object */ - ListClustersRequest.prototype.toJSON = function toJSON() { + ServerConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListClustersRequest; + ServerConfig.ReleaseChannelConfig = (function() { + + /** + * Properties of a ReleaseChannelConfig. + * @memberof google.container.v1.ServerConfig + * @interface IReleaseChannelConfig + * @property {google.container.v1.ReleaseChannel.Channel|null} [channel] ReleaseChannelConfig channel + * @property {string|null} [defaultVersion] ReleaseChannelConfig defaultVersion + * @property {Array.|null} [validVersions] ReleaseChannelConfig validVersions + */ + + /** + * Constructs a new ReleaseChannelConfig. + * @memberof google.container.v1.ServerConfig + * @classdesc Represents a ReleaseChannelConfig. + * @implements IReleaseChannelConfig + * @constructor + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig=} [properties] Properties to set + */ + function ReleaseChannelConfig(properties) { + this.validVersions = []; + 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]]; + } + + /** + * ReleaseChannelConfig channel. + * @member {google.container.v1.ReleaseChannel.Channel} channel + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + */ + ReleaseChannelConfig.prototype.channel = 0; + + /** + * ReleaseChannelConfig defaultVersion. + * @member {string} defaultVersion + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + */ + ReleaseChannelConfig.prototype.defaultVersion = ""; + + /** + * ReleaseChannelConfig validVersions. + * @member {Array.} validVersions + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + */ + ReleaseChannelConfig.prototype.validVersions = $util.emptyArray; + + /** + * Creates a new ReleaseChannelConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig=} [properties] Properties to set + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig instance + */ + ReleaseChannelConfig.create = function create(properties) { + return new ReleaseChannelConfig(properties); + }; + + /** + * Encodes the specified ReleaseChannelConfig message. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig} message ReleaseChannelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReleaseChannelConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channel); + if (message.defaultVersion != null && Object.hasOwnProperty.call(message, "defaultVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.defaultVersion); + if (message.validVersions != null && message.validVersions.length) + for (var i = 0; i < message.validVersions.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.validVersions[i]); + return writer; + }; + + /** + * Encodes the specified ReleaseChannelConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig} message ReleaseChannelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReleaseChannelConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReleaseChannelConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReleaseChannelConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ServerConfig.ReleaseChannelConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.channel = reader.int32(); + break; + case 2: + message.defaultVersion = reader.string(); + break; + case 4: + if (!(message.validVersions && message.validVersions.length)) + message.validVersions = []; + message.validVersions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReleaseChannelConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReleaseChannelConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReleaseChannelConfig message. + * @function verify + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReleaseChannelConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + switch (message.channel) { + default: + return "channel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.defaultVersion != null && message.hasOwnProperty("defaultVersion")) + if (!$util.isString(message.defaultVersion)) + return "defaultVersion: string expected"; + if (message.validVersions != null && message.hasOwnProperty("validVersions")) { + if (!Array.isArray(message.validVersions)) + return "validVersions: array expected"; + for (var i = 0; i < message.validVersions.length; ++i) + if (!$util.isString(message.validVersions[i])) + return "validVersions: string[] expected"; + } + return null; + }; + + /** + * Creates a ReleaseChannelConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig + */ + ReleaseChannelConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ServerConfig.ReleaseChannelConfig) + return object; + var message = new $root.google.container.v1.ServerConfig.ReleaseChannelConfig(); + switch (object.channel) { + case "UNSPECIFIED": + case 0: + message.channel = 0; + break; + case "RAPID": + case 1: + message.channel = 1; + break; + case "REGULAR": + case 2: + message.channel = 2; + break; + case "STABLE": + case 3: + message.channel = 3; + break; + } + if (object.defaultVersion != null) + message.defaultVersion = String(object.defaultVersion); + if (object.validVersions) { + if (!Array.isArray(object.validVersions)) + throw TypeError(".google.container.v1.ServerConfig.ReleaseChannelConfig.validVersions: array expected"); + message.validVersions = []; + for (var i = 0; i < object.validVersions.length; ++i) + message.validVersions[i] = String(object.validVersions[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReleaseChannelConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.ReleaseChannelConfig} message ReleaseChannelConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReleaseChannelConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.validVersions = []; + if (options.defaults) { + object.channel = options.enums === String ? "UNSPECIFIED" : 0; + object.defaultVersion = ""; + } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; + if (message.defaultVersion != null && message.hasOwnProperty("defaultVersion")) + object.defaultVersion = message.defaultVersion; + if (message.validVersions && message.validVersions.length) { + object.validVersions = []; + for (var j = 0; j < message.validVersions.length; ++j) + object.validVersions[j] = message.validVersions[j]; + } + return object; + }; + + /** + * Converts this ReleaseChannelConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + * @returns {Object.} JSON object + */ + ReleaseChannelConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReleaseChannelConfig; + })(); + + return ServerConfig; })(); - v1.ListClustersResponse = (function() { + v1.CreateNodePoolRequest = (function() { /** - * Properties of a ListClustersResponse. + * Properties of a CreateNodePoolRequest. * @memberof google.container.v1 - * @interface IListClustersResponse - * @property {Array.|null} [clusters] ListClustersResponse clusters - * @property {Array.|null} [missingZones] ListClustersResponse missingZones + * @interface ICreateNodePoolRequest + * @property {string|null} [projectId] CreateNodePoolRequest projectId + * @property {string|null} [zone] CreateNodePoolRequest zone + * @property {string|null} [clusterId] CreateNodePoolRequest clusterId + * @property {google.container.v1.INodePool|null} [nodePool] CreateNodePoolRequest nodePool + * @property {string|null} [parent] CreateNodePoolRequest parent */ /** - * Constructs a new ListClustersResponse. + * Constructs a new CreateNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a ListClustersResponse. - * @implements IListClustersResponse + * @classdesc Represents a CreateNodePoolRequest. + * @implements ICreateNodePoolRequest * @constructor - * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set */ - function ListClustersResponse(properties) { - this.clusters = []; - this.missingZones = []; + function CreateNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12354,94 +16823,127 @@ } /** - * ListClustersResponse clusters. - * @member {Array.} clusters - * @memberof google.container.v1.ListClustersResponse + * CreateNodePoolRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - ListClustersResponse.prototype.clusters = $util.emptyArray; + CreateNodePoolRequest.prototype.projectId = ""; /** - * ListClustersResponse missingZones. - * @member {Array.} missingZones - * @memberof google.container.v1.ListClustersResponse + * CreateNodePoolRequest zone. + * @member {string} zone + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - ListClustersResponse.prototype.missingZones = $util.emptyArray; + CreateNodePoolRequest.prototype.zone = ""; /** - * Creates a new ListClustersResponse instance using the specified properties. + * CreateNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.clusterId = ""; + + /** + * CreateNodePoolRequest nodePool. + * @member {google.container.v1.INodePool|null|undefined} nodePool + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.nodePool = null; + + /** + * CreateNodePoolRequest parent. + * @member {string} parent + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.parent = ""; + + /** + * Creates a new CreateNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse instance + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest instance */ - ListClustersResponse.create = function create(properties) { - return new ListClustersResponse(properties); + CreateNodePoolRequest.create = function create(properties) { + return new CreateNodePoolRequest(properties); }; /** - * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encode = function encode(message, writer) { + CreateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clusters != null && message.clusters.length) - for (var i = 0; i < message.clusters.length; ++i) - $root.google.container.v1.Cluster.encode(message.clusters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.missingZones != null && message.missingZones.length) - for (var i = 0; i < message.missingZones.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.missingZones[i]); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePool != null && Object.hasOwnProperty.call(message, "nodePool")) + $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); return writer; }; /** - * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer. + * Decodes a CreateNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decode = function decode(reader, length) { + CreateNodePoolRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListClustersResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CreateNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.clusters && message.clusters.length)) - message.clusters = []; - message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); + message.projectId = reader.string(); break; case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); + break; + case 6: + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -12452,148 +16954,149 @@ }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { + CreateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersResponse message. + * Verifies a CreateNodePoolRequest message. * @function verify - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersResponse.verify = function verify(message) { + CreateNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.clusters != null && message.hasOwnProperty("clusters")) { - if (!Array.isArray(message.clusters)) - return "clusters: array expected"; - for (var i = 0; i < message.clusters.length; ++i) { - var error = $root.google.container.v1.Cluster.verify(message.clusters[i]); - if (error) - return "clusters." + error; - } - } - if (message.missingZones != null && message.hasOwnProperty("missingZones")) { - if (!Array.isArray(message.missingZones)) - return "missingZones: array expected"; - for (var i = 0; i < message.missingZones.length; ++i) - if (!$util.isString(message.missingZones[i])) - return "missingZones: string[] expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePool != null && message.hasOwnProperty("nodePool")) { + var error = $root.google.container.v1.NodePool.verify(message.nodePool); + if (error) + return "nodePool." + error; } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest */ - ListClustersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListClustersResponse) + CreateNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CreateNodePoolRequest) return object; - var message = new $root.google.container.v1.ListClustersResponse(); - if (object.clusters) { - if (!Array.isArray(object.clusters)) - throw TypeError(".google.container.v1.ListClustersResponse.clusters: array expected"); - message.clusters = []; - for (var i = 0; i < object.clusters.length; ++i) { - if (typeof object.clusters[i] !== "object") - throw TypeError(".google.container.v1.ListClustersResponse.clusters: object expected"); - message.clusters[i] = $root.google.container.v1.Cluster.fromObject(object.clusters[i]); - } - } - if (object.missingZones) { - if (!Array.isArray(object.missingZones)) - throw TypeError(".google.container.v1.ListClustersResponse.missingZones: array expected"); - message.missingZones = []; - for (var i = 0; i < object.missingZones.length; ++i) - message.missingZones[i] = String(object.missingZones[i]); + var message = new $root.google.container.v1.CreateNodePoolRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePool != null) { + if (typeof object.nodePool !== "object") + throw TypeError(".google.container.v1.CreateNodePoolRequest.nodePool: object expected"); + message.nodePool = $root.google.container.v1.NodePool.fromObject(object.nodePool); } + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.ListClustersResponse} message ListClustersResponse + * @param {google.container.v1.CreateNodePoolRequest} message CreateNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersResponse.toObject = function toObject(message, options) { + CreateNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.clusters = []; - object.missingZones = []; - } - if (message.clusters && message.clusters.length) { - object.clusters = []; - for (var j = 0; j < message.clusters.length; ++j) - object.clusters[j] = $root.google.container.v1.Cluster.toObject(message.clusters[j], options); - } - if (message.missingZones && message.missingZones.length) { - object.missingZones = []; - for (var j = 0; j < message.missingZones.length; ++j) - object.missingZones[j] = message.missingZones[j]; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePool = null; + object.parent = ""; } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePool != null && message.hasOwnProperty("nodePool")) + object.nodePool = $root.google.container.v1.NodePool.toObject(message.nodePool, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this ListClustersResponse to JSON. + * Converts this CreateNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @instance * @returns {Object.} JSON object */ - ListClustersResponse.prototype.toJSON = function toJSON() { + CreateNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListClustersResponse; + return CreateNodePoolRequest; })(); - v1.GetOperationRequest = (function() { + v1.DeleteNodePoolRequest = (function() { /** - * Properties of a GetOperationRequest. + * Properties of a DeleteNodePoolRequest. * @memberof google.container.v1 - * @interface IGetOperationRequest - * @property {string|null} [projectId] GetOperationRequest projectId - * @property {string|null} [zone] GetOperationRequest zone - * @property {string|null} [operationId] GetOperationRequest operationId - * @property {string|null} [name] GetOperationRequest name + * @interface IDeleteNodePoolRequest + * @property {string|null} [projectId] DeleteNodePoolRequest projectId + * @property {string|null} [zone] DeleteNodePoolRequest zone + * @property {string|null} [clusterId] DeleteNodePoolRequest clusterId + * @property {string|null} [nodePoolId] DeleteNodePoolRequest nodePoolId + * @property {string|null} [name] DeleteNodePoolRequest name */ /** - * Constructs a new GetOperationRequest. + * Constructs a new DeleteNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a GetOperationRequest. - * @implements IGetOperationRequest + * @classdesc Represents a DeleteNodePoolRequest. + * @implements IDeleteNodePoolRequest * @constructor - * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set */ - function GetOperationRequest(properties) { + function DeleteNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12601,100 +17104,110 @@ } /** - * GetOperationRequest projectId. + * DeleteNodePoolRequest projectId. * @member {string} projectId - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.projectId = ""; + DeleteNodePoolRequest.prototype.projectId = ""; /** - * GetOperationRequest zone. + * DeleteNodePoolRequest zone. * @member {string} zone - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.zone = ""; + DeleteNodePoolRequest.prototype.zone = ""; /** - * GetOperationRequest operationId. - * @member {string} operationId - * @memberof google.container.v1.GetOperationRequest + * DeleteNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.operationId = ""; + DeleteNodePoolRequest.prototype.clusterId = ""; /** - * GetOperationRequest name. + * DeleteNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + */ + DeleteNodePoolRequest.prototype.nodePoolId = ""; + + /** + * DeleteNodePoolRequest name. * @member {string} name - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.name = ""; + DeleteNodePoolRequest.prototype.name = ""; /** - * Creates a new GetOperationRequest instance using the specified properties. + * Creates a new DeleteNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest instance + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest instance */ - GetOperationRequest.create = function create(properties) { - return new GetOperationRequest(properties); + DeleteNodePoolRequest.create = function create(properties) { + return new DeleteNodePoolRequest(properties); }; /** - * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encode = function encode(message, writer) { + DeleteNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer. + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decode = function decode(reader, length) { + DeleteNodePoolRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DeleteNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12705,9 +17218,12 @@ message.zone = reader.string(); break; case 3: - message.operationId = reader.string(); + message.clusterId = reader.string(); break; - case 5: + case 4: + message.nodePoolId = reader.string(); + break; + case 6: message.name = reader.string(); break; default: @@ -12719,30 +17235,30 @@ }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetOperationRequest message. + * Verifies a DeleteNodePoolRequest message. * @function verify - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetOperationRequest.verify = function verify(message) { + DeleteNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -12751,9 +17267,12 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.operationId != null && message.hasOwnProperty("operationId")) - if (!$util.isString(message.operationId)) - return "operationId: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -12761,92 +17280,98 @@ }; /** - * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest */ - GetOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetOperationRequest) + DeleteNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DeleteNodePoolRequest) return object; - var message = new $root.google.container.v1.GetOperationRequest(); + var message = new $root.google.container.v1.DeleteNodePoolRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.operationId != null) - message.operationId = String(object.operationId); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.GetOperationRequest} message GetOperationRequest + * @param {google.container.v1.DeleteNodePoolRequest} message DeleteNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetOperationRequest.toObject = function toObject(message, options) { + DeleteNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.operationId = ""; + object.clusterId = ""; + object.nodePoolId = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.operationId != null && message.hasOwnProperty("operationId")) - object.operationId = message.operationId; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this GetOperationRequest to JSON. + * Converts this DeleteNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance * @returns {Object.} JSON object */ - GetOperationRequest.prototype.toJSON = function toJSON() { + DeleteNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetOperationRequest; + return DeleteNodePoolRequest; })(); - v1.ListOperationsRequest = (function() { + v1.ListNodePoolsRequest = (function() { /** - * Properties of a ListOperationsRequest. + * Properties of a ListNodePoolsRequest. * @memberof google.container.v1 - * @interface IListOperationsRequest - * @property {string|null} [projectId] ListOperationsRequest projectId - * @property {string|null} [zone] ListOperationsRequest zone - * @property {string|null} [parent] ListOperationsRequest parent + * @interface IListNodePoolsRequest + * @property {string|null} [projectId] ListNodePoolsRequest projectId + * @property {string|null} [zone] ListNodePoolsRequest zone + * @property {string|null} [clusterId] ListNodePoolsRequest clusterId + * @property {string|null} [parent] ListNodePoolsRequest parent */ /** - * Constructs a new ListOperationsRequest. + * Constructs a new ListNodePoolsRequest. * @memberof google.container.v1 - * @classdesc Represents a ListOperationsRequest. - * @implements IListOperationsRequest + * @classdesc Represents a ListNodePoolsRequest. + * @implements IListNodePoolsRequest * @constructor - * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set */ - function ListOperationsRequest(properties) { + function ListNodePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12854,90 +17379,100 @@ } /** - * ListOperationsRequest projectId. + * ListNodePoolsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - ListOperationsRequest.prototype.projectId = ""; + ListNodePoolsRequest.prototype.projectId = ""; /** - * ListOperationsRequest zone. + * ListNodePoolsRequest zone. * @member {string} zone - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - ListOperationsRequest.prototype.zone = ""; + ListNodePoolsRequest.prototype.zone = ""; /** - * ListOperationsRequest parent. + * ListNodePoolsRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.ListNodePoolsRequest + * @instance + */ + ListNodePoolsRequest.prototype.clusterId = ""; + + /** + * ListNodePoolsRequest parent. * @member {string} parent - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - ListOperationsRequest.prototype.parent = ""; + ListNodePoolsRequest.prototype.parent = ""; /** - * Creates a new ListOperationsRequest instance using the specified properties. + * Creates a new ListNodePoolsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest instance + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest instance */ - ListOperationsRequest.create = function create(properties) { - return new ListOperationsRequest(properties); + ListNodePoolsRequest.create = function create(properties) { + return new ListNodePoolsRequest(properties); }; /** - * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encode = function encode(message, writer) { + ListNodePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; /** - * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer. + * Decodes a ListNodePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decode = function decode(reader, length) { + ListNodePoolsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListNodePoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12947,7 +17482,10 @@ case 2: message.zone = reader.string(); break; - case 4: + case 3: + message.clusterId = reader.string(); + break; + case 5: message.parent = reader.string(); break; default: @@ -12959,30 +17497,30 @@ }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodePoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsRequest message. + * Verifies a ListNodePoolsRequest message. * @function verify - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsRequest.verify = function verify(message) { + ListNodePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -12991,6 +17529,9 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; @@ -12998,88 +17539,94 @@ }; /** - * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodePoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest */ - ListOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListOperationsRequest) + ListNodePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsRequest) return object; - var message = new $root.google.container.v1.ListOperationsRequest(); + var message = new $root.google.container.v1.ListNodePoolsRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); if (object.parent != null) message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.ListOperationsRequest} message ListOperationsRequest + * @param {google.container.v1.ListNodePoolsRequest} message ListNodePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListOperationsRequest.toObject = function toObject(message, options) { + ListNodePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; + object.clusterId = ""; object.parent = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; return object; }; /** - * Converts this ListOperationsRequest to JSON. + * Converts this ListNodePoolsRequest to JSON. * @function toJSON - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance * @returns {Object.} JSON object */ - ListOperationsRequest.prototype.toJSON = function toJSON() { + ListNodePoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListOperationsRequest; + return ListNodePoolsRequest; })(); - v1.CancelOperationRequest = (function() { + v1.GetNodePoolRequest = (function() { /** - * Properties of a CancelOperationRequest. + * Properties of a GetNodePoolRequest. * @memberof google.container.v1 - * @interface ICancelOperationRequest - * @property {string|null} [projectId] CancelOperationRequest projectId - * @property {string|null} [zone] CancelOperationRequest zone - * @property {string|null} [operationId] CancelOperationRequest operationId - * @property {string|null} [name] CancelOperationRequest name + * @interface IGetNodePoolRequest + * @property {string|null} [projectId] GetNodePoolRequest projectId + * @property {string|null} [zone] GetNodePoolRequest zone + * @property {string|null} [clusterId] GetNodePoolRequest clusterId + * @property {string|null} [nodePoolId] GetNodePoolRequest nodePoolId + * @property {string|null} [name] GetNodePoolRequest name */ /** - * Constructs a new CancelOperationRequest. + * Constructs a new GetNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a CancelOperationRequest. - * @implements ICancelOperationRequest + * @classdesc Represents a GetNodePoolRequest. + * @implements IGetNodePoolRequest * @constructor - * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set */ - function CancelOperationRequest(properties) { + function GetNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13087,100 +17634,110 @@ } /** - * CancelOperationRequest projectId. + * GetNodePoolRequest projectId. * @member {string} projectId - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.projectId = ""; + GetNodePoolRequest.prototype.projectId = ""; /** - * CancelOperationRequest zone. + * GetNodePoolRequest zone. * @member {string} zone - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.zone = ""; + GetNodePoolRequest.prototype.zone = ""; /** - * CancelOperationRequest operationId. - * @member {string} operationId - * @memberof google.container.v1.CancelOperationRequest + * GetNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.operationId = ""; + GetNodePoolRequest.prototype.clusterId = ""; /** - * CancelOperationRequest name. + * GetNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.GetNodePoolRequest + * @instance + */ + GetNodePoolRequest.prototype.nodePoolId = ""; + + /** + * GetNodePoolRequest name. * @member {string} name - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.name = ""; + GetNodePoolRequest.prototype.name = ""; /** - * Creates a new CancelOperationRequest instance using the specified properties. + * Creates a new GetNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest instance + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest instance */ - CancelOperationRequest.create = function create(properties) { - return new CancelOperationRequest(properties); + GetNodePoolRequest.create = function create(properties) { + return new GetNodePoolRequest(properties); }; /** - * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encode = function encode(message, writer) { + GetNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer. + * Decodes a GetNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decode = function decode(reader, length) { + GetNodePoolRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CancelOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13191,9 +17748,12 @@ message.zone = reader.string(); break; case 3: - message.operationId = reader.string(); + message.clusterId = reader.string(); break; case 4: + message.nodePoolId = reader.string(); + break; + case 6: message.name = reader.string(); break; default: @@ -13205,30 +17765,30 @@ }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { + GetNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelOperationRequest message. + * Verifies a GetNodePoolRequest message. * @function verify - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelOperationRequest.verify = function verify(message) { + GetNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -13237,9 +17797,12 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.operationId != null && message.hasOwnProperty("operationId")) - if (!$util.isString(message.operationId)) - return "operationId: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -13247,93 +17810,112 @@ }; /** - * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest */ - CancelOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CancelOperationRequest) + GetNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetNodePoolRequest) return object; - var message = new $root.google.container.v1.CancelOperationRequest(); + var message = new $root.google.container.v1.GetNodePoolRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.operationId != null) - message.operationId = String(object.operationId); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.CancelOperationRequest} message CancelOperationRequest + * @param {google.container.v1.GetNodePoolRequest} message GetNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelOperationRequest.toObject = function toObject(message, options) { + GetNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.operationId = ""; + object.clusterId = ""; + object.nodePoolId = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; - if (message.operationId != null && message.hasOwnProperty("operationId")) - object.operationId = message.operationId; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this CancelOperationRequest to JSON. + * Converts this GetNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance * @returns {Object.} JSON object */ - CancelOperationRequest.prototype.toJSON = function toJSON() { + GetNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelOperationRequest; + return GetNodePoolRequest; })(); - v1.ListOperationsResponse = (function() { + v1.NodePool = (function() { /** - * Properties of a ListOperationsResponse. + * Properties of a NodePool. * @memberof google.container.v1 - * @interface IListOperationsResponse - * @property {Array.|null} [operations] ListOperationsResponse operations - * @property {Array.|null} [missingZones] ListOperationsResponse missingZones + * @interface INodePool + * @property {string|null} [name] NodePool name + * @property {google.container.v1.INodeConfig|null} [config] NodePool config + * @property {number|null} [initialNodeCount] NodePool initialNodeCount + * @property {Array.|null} [locations] NodePool locations + * @property {string|null} [selfLink] NodePool selfLink + * @property {string|null} [version] NodePool version + * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls + * @property {google.container.v1.NodePool.Status|null} [status] NodePool status + * @property {string|null} [statusMessage] NodePool statusMessage + * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] NodePool autoscaling + * @property {google.container.v1.INodeManagement|null} [management] NodePool management + * @property {google.container.v1.IMaxPodsConstraint|null} [maxPodsConstraint] NodePool maxPodsConstraint + * @property {Array.|null} [conditions] NodePool conditions + * @property {number|null} [podIpv4CidrSize] NodePool podIpv4CidrSize + * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] NodePool upgradeSettings */ /** - * Constructs a new ListOperationsResponse. + * Constructs a new NodePool. * @memberof google.container.v1 - * @classdesc Represents a ListOperationsResponse. - * @implements IListOperationsResponse + * @classdesc Represents a NodePool. + * @implements INodePool * @constructor - * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set + * @param {google.container.v1.INodePool=} [properties] Properties to set */ - function ListOperationsResponse(properties) { - this.operations = []; - this.missingZones = []; + function NodePool(properties) { + this.locations = []; + this.instanceGroupUrls = []; + this.conditions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13341,94 +17923,266 @@ } /** - * ListOperationsResponse operations. - * @member {Array.} operations - * @memberof google.container.v1.ListOperationsResponse + * NodePool name. + * @member {string} name + * @memberof google.container.v1.NodePool * @instance */ - ListOperationsResponse.prototype.operations = $util.emptyArray; + NodePool.prototype.name = ""; /** - * ListOperationsResponse missingZones. - * @member {Array.} missingZones - * @memberof google.container.v1.ListOperationsResponse + * NodePool config. + * @member {google.container.v1.INodeConfig|null|undefined} config + * @memberof google.container.v1.NodePool * @instance */ - ListOperationsResponse.prototype.missingZones = $util.emptyArray; + NodePool.prototype.config = null; /** - * Creates a new ListOperationsResponse instance using the specified properties. + * NodePool initialNodeCount. + * @member {number} initialNodeCount + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.initialNodeCount = 0; + + /** + * NodePool locations. + * @member {Array.} locations + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.locations = $util.emptyArray; + + /** + * NodePool selfLink. + * @member {string} selfLink + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.selfLink = ""; + + /** + * NodePool version. + * @member {string} version + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.version = ""; + + /** + * NodePool instanceGroupUrls. + * @member {Array.} instanceGroupUrls + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.instanceGroupUrls = $util.emptyArray; + + /** + * NodePool status. + * @member {google.container.v1.NodePool.Status} status + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.status = 0; + + /** + * NodePool statusMessage. + * @member {string} statusMessage + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.statusMessage = ""; + + /** + * NodePool autoscaling. + * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.autoscaling = null; + + /** + * NodePool management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.management = null; + + /** + * NodePool maxPodsConstraint. + * @member {google.container.v1.IMaxPodsConstraint|null|undefined} maxPodsConstraint + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.maxPodsConstraint = null; + + /** + * NodePool conditions. + * @member {Array.} conditions + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.conditions = $util.emptyArray; + + /** + * NodePool podIpv4CidrSize. + * @member {number} podIpv4CidrSize + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.podIpv4CidrSize = 0; + + /** + * NodePool upgradeSettings. + * @member {google.container.v1.NodePool.IUpgradeSettings|null|undefined} upgradeSettings + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.upgradeSettings = null; + + /** + * Creates a new NodePool instance using the specified properties. * @function create - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse instance + * @param {google.container.v1.INodePool=} [properties] Properties to set + * @returns {google.container.v1.NodePool} NodePool instance */ - ListOperationsResponse.create = function create(properties) { - return new ListOperationsResponse(properties); + NodePool.create = function create(properties) { + return new NodePool(properties); }; /** - * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encode = function encode(message, writer) { + NodePool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.operations != null && message.operations.length) - for (var i = 0; i < message.operations.length; ++i) - $root.google.container.v1.Operation.encode(message.operations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.missingZones != null && message.missingZones.length) - for (var i = 0; i < message.missingZones.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.missingZones[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); + if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.management != null && Object.hasOwnProperty.call(message, "management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.maxPodsConstraint != null && Object.hasOwnProperty.call(message, "maxPodsConstraint")) + $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.podIpv4CidrSize != null && Object.hasOwnProperty.call(message, "podIpv4CidrSize")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); + if (message.locations != null && message.locations.length) + for (var i = 0; i < message.locations.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.locations[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); + if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) + for (var i = 0; i < message.instanceGroupUrls.length; ++i) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); + if (message.conditions != null && message.conditions.length) + for (var i = 0; i < message.conditions.length; ++i) + $root.google.container.v1.StatusCondition.encode(message.conditions[i], writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); + if (message.upgradeSettings != null && Object.hasOwnProperty.call(message, "upgradeSettings")) + $root.google.container.v1.NodePool.UpgradeSettings.encode(message.upgradeSettings, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + NodePool.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer. + * Decodes a NodePool message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.NodePool} NodePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decode = function decode(reader, length) { + NodePool.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListOperationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePool(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.operations && message.operations.length)) - message.operations = []; - message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + break; + case 3: + message.initialNodeCount = reader.int32(); + break; + case 13: + if (!(message.locations && message.locations.length)) + message.locations = []; + message.locations.push(reader.string()); + break; + case 100: + message.selfLink = reader.string(); + break; + case 101: + message.version = reader.string(); break; - case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); + case 102: + if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) + message.instanceGroupUrls = []; + message.instanceGroupUrls.push(reader.string()); + break; + case 103: + message.status = reader.int32(); + break; + case 104: + message.statusMessage = reader.string(); + break; + case 4: + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + break; + case 5: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 6: + message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); + break; + case 105: + if (!(message.conditions && message.conditions.length)) + message.conditions = []; + message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + break; + case 7: + message.podIpv4CidrSize = reader.int32(); + break; + case 107: + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13439,147 +18193,562 @@ }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * Decodes a NodePool message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.NodePool} NodePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { + NodePool.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsResponse message. + * Verifies a NodePool message. * @function verify - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsResponse.verify = function verify(message) { + NodePool.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.operations != null && message.hasOwnProperty("operations")) { - if (!Array.isArray(message.operations)) - return "operations: array expected"; - for (var i = 0; i < message.operations.length; ++i) { - var error = $root.google.container.v1.Operation.verify(message.operations[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.container.v1.NodeConfig.verify(message.config); + if (error) + return "config." + error; + } + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (!$util.isInteger(message.initialNodeCount)) + return "initialNodeCount: integer expected"; + if (message.locations != null && message.hasOwnProperty("locations")) { + if (!Array.isArray(message.locations)) + return "locations: array expected"; + for (var i = 0; i < message.locations.length; ++i) + if (!$util.isString(message.locations[i])) + return "locations: string[] expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.instanceGroupUrls != null && message.hasOwnProperty("instanceGroupUrls")) { + if (!Array.isArray(message.instanceGroupUrls)) + return "instanceGroupUrls: array expected"; + for (var i = 0; i < message.instanceGroupUrls.length; ++i) + if (!$util.isString(message.instanceGroupUrls[i])) + return "instanceGroupUrls: string[] expected"; + } + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) { + var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); + if (error) + return "autoscaling." + error; + } + if (message.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; + } + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) { + var error = $root.google.container.v1.MaxPodsConstraint.verify(message.maxPodsConstraint); + if (error) + return "maxPodsConstraint." + error; + } + if (message.conditions != null && message.hasOwnProperty("conditions")) { + if (!Array.isArray(message.conditions)) + return "conditions: array expected"; + for (var i = 0; i < message.conditions.length; ++i) { + var error = $root.google.container.v1.StatusCondition.verify(message.conditions[i]); if (error) - return "operations." + error; + return "conditions." + error; } } - if (message.missingZones != null && message.hasOwnProperty("missingZones")) { - if (!Array.isArray(message.missingZones)) - return "missingZones: array expected"; - for (var i = 0; i < message.missingZones.length; ++i) - if (!$util.isString(message.missingZones[i])) - return "missingZones: string[] expected"; + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + if (!$util.isInteger(message.podIpv4CidrSize)) + return "podIpv4CidrSize: integer expected"; + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) { + var error = $root.google.container.v1.NodePool.UpgradeSettings.verify(message.upgradeSettings); + if (error) + return "upgradeSettings." + error; } return null; }; /** - * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NodePool message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.NodePool} NodePool */ - ListOperationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListOperationsResponse) + NodePool.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool) return object; - var message = new $root.google.container.v1.ListOperationsResponse(); - if (object.operations) { - if (!Array.isArray(object.operations)) - throw TypeError(".google.container.v1.ListOperationsResponse.operations: array expected"); - message.operations = []; - for (var i = 0; i < object.operations.length; ++i) { - if (typeof object.operations[i] !== "object") - throw TypeError(".google.container.v1.ListOperationsResponse.operations: object expected"); - message.operations[i] = $root.google.container.v1.Operation.fromObject(object.operations[i]); + var message = new $root.google.container.v1.NodePool(); + if (object.name != null) + message.name = String(object.name); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.container.v1.NodePool.config: object expected"); + message.config = $root.google.container.v1.NodeConfig.fromObject(object.config); + } + if (object.initialNodeCount != null) + message.initialNodeCount = object.initialNodeCount | 0; + if (object.locations) { + if (!Array.isArray(object.locations)) + throw TypeError(".google.container.v1.NodePool.locations: array expected"); + message.locations = []; + for (var i = 0; i < object.locations.length; ++i) + message.locations[i] = String(object.locations[i]); + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.version != null) + message.version = String(object.version); + if (object.instanceGroupUrls) { + if (!Array.isArray(object.instanceGroupUrls)) + throw TypeError(".google.container.v1.NodePool.instanceGroupUrls: array expected"); + message.instanceGroupUrls = []; + for (var i = 0; i < object.instanceGroupUrls.length; ++i) + message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); + } + switch (object.status) { + case "STATUS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "PROVISIONING": + case 1: + message.status = 1; + break; + case "RUNNING": + case 2: + message.status = 2; + break; + case "RUNNING_WITH_ERROR": + case 3: + message.status = 3; + break; + case "RECONCILING": + case 4: + message.status = 4; + break; + case "STOPPING": + case 5: + message.status = 5; + break; + case "ERROR": + case 6: + message.status = 6; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.autoscaling != null) { + if (typeof object.autoscaling !== "object") + throw TypeError(".google.container.v1.NodePool.autoscaling: object expected"); + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); + } + if (object.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.NodePool.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + } + if (object.maxPodsConstraint != null) { + if (typeof object.maxPodsConstraint !== "object") + throw TypeError(".google.container.v1.NodePool.maxPodsConstraint: object expected"); + message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.maxPodsConstraint); + } + if (object.conditions) { + if (!Array.isArray(object.conditions)) + throw TypeError(".google.container.v1.NodePool.conditions: array expected"); + message.conditions = []; + for (var i = 0; i < object.conditions.length; ++i) { + if (typeof object.conditions[i] !== "object") + throw TypeError(".google.container.v1.NodePool.conditions: object expected"); + message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); } } - if (object.missingZones) { - if (!Array.isArray(object.missingZones)) - throw TypeError(".google.container.v1.ListOperationsResponse.missingZones: array expected"); - message.missingZones = []; - for (var i = 0; i < object.missingZones.length; ++i) - message.missingZones[i] = String(object.missingZones[i]); + if (object.podIpv4CidrSize != null) + message.podIpv4CidrSize = object.podIpv4CidrSize | 0; + if (object.upgradeSettings != null) { + if (typeof object.upgradeSettings !== "object") + throw TypeError(".google.container.v1.NodePool.upgradeSettings: object expected"); + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); } return message; }; /** - * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a NodePool message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.ListOperationsResponse} message ListOperationsResponse + * @param {google.container.v1.NodePool} message NodePool * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListOperationsResponse.toObject = function toObject(message, options) { + NodePool.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.operations = []; - object.missingZones = []; + object.locations = []; + object.instanceGroupUrls = []; + object.conditions = []; + } + if (options.defaults) { + object.name = ""; + object.config = null; + object.initialNodeCount = 0; + object.autoscaling = null; + object.management = null; + object.maxPodsConstraint = null; + object.podIpv4CidrSize = 0; + object.selfLink = ""; + object.version = ""; + object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; + object.statusMessage = ""; + object.upgradeSettings = null; } - if (message.operations && message.operations.length) { - object.operations = []; - for (var j = 0; j < message.operations.length; ++j) - object.operations[j] = $root.google.container.v1.Operation.toObject(message.operations[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.container.v1.NodeConfig.toObject(message.config, options); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + object.initialNodeCount = message.initialNodeCount; + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); + if (message.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) + object.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.maxPodsConstraint, options); + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + object.podIpv4CidrSize = message.podIpv4CidrSize; + if (message.locations && message.locations.length) { + object.locations = []; + for (var j = 0; j < message.locations.length; ++j) + object.locations[j] = message.locations[j]; } - if (message.missingZones && message.missingZones.length) { - object.missingZones = []; - for (var j = 0; j < message.missingZones.length; ++j) - object.missingZones[j] = message.missingZones[j]; + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + object.selfLink = message.selfLink; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.instanceGroupUrls && message.instanceGroupUrls.length) { + object.instanceGroupUrls = []; + for (var j = 0; j < message.instanceGroupUrls.length; ++j) + object.instanceGroupUrls[j] = message.instanceGroupUrls[j]; + } + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.conditions && message.conditions.length) { + object.conditions = []; + for (var j = 0; j < message.conditions.length; ++j) + object.conditions[j] = $root.google.container.v1.StatusCondition.toObject(message.conditions[j], options); } + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) + object.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.toObject(message.upgradeSettings, options); return object; }; /** - * Converts this ListOperationsResponse to JSON. + * Converts this NodePool to JSON. * @function toJSON - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @instance * @returns {Object.} JSON object */ - ListOperationsResponse.prototype.toJSON = function toJSON() { + NodePool.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListOperationsResponse; + NodePool.UpgradeSettings = (function() { + + /** + * Properties of an UpgradeSettings. + * @memberof google.container.v1.NodePool + * @interface IUpgradeSettings + * @property {number|null} [maxSurge] UpgradeSettings maxSurge + * @property {number|null} [maxUnavailable] UpgradeSettings maxUnavailable + */ + + /** + * Constructs a new UpgradeSettings. + * @memberof google.container.v1.NodePool + * @classdesc Represents an UpgradeSettings. + * @implements IUpgradeSettings + * @constructor + * @param {google.container.v1.NodePool.IUpgradeSettings=} [properties] Properties to set + */ + function UpgradeSettings(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]]; + } + + /** + * UpgradeSettings maxSurge. + * @member {number} maxSurge + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + UpgradeSettings.prototype.maxSurge = 0; + + /** + * UpgradeSettings maxUnavailable. + * @member {number} maxUnavailable + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + UpgradeSettings.prototype.maxUnavailable = 0; + + /** + * Creates a new UpgradeSettings instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.IUpgradeSettings=} [properties] Properties to set + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings instance + */ + UpgradeSettings.create = function create(properties) { + return new UpgradeSettings(properties); + }; + + /** + * Encodes the specified UpgradeSettings message. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.IUpgradeSettings} message UpgradeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxSurge != null && Object.hasOwnProperty.call(message, "maxSurge")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxSurge); + if (message.maxUnavailable != null && Object.hasOwnProperty.call(message, "maxUnavailable")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxUnavailable); + return writer; + }; + + /** + * Encodes the specified UpgradeSettings message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.IUpgradeSettings} message UpgradeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpgradeSettings message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePool.UpgradeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxSurge = reader.int32(); + break; + case 2: + message.maxUnavailable = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpgradeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpgradeSettings message. + * @function verify + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpgradeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxSurge != null && message.hasOwnProperty("maxSurge")) + if (!$util.isInteger(message.maxSurge)) + return "maxSurge: integer expected"; + if (message.maxUnavailable != null && message.hasOwnProperty("maxUnavailable")) + if (!$util.isInteger(message.maxUnavailable)) + return "maxUnavailable: integer expected"; + return null; + }; + + /** + * Creates an UpgradeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings + */ + UpgradeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool.UpgradeSettings) + return object; + var message = new $root.google.container.v1.NodePool.UpgradeSettings(); + if (object.maxSurge != null) + message.maxSurge = object.maxSurge | 0; + if (object.maxUnavailable != null) + message.maxUnavailable = object.maxUnavailable | 0; + return message; + }; + + /** + * Creates a plain object from an UpgradeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.UpgradeSettings} message UpgradeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpgradeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.maxSurge = 0; + object.maxUnavailable = 0; + } + if (message.maxSurge != null && message.hasOwnProperty("maxSurge")) + object.maxSurge = message.maxSurge; + if (message.maxUnavailable != null && message.hasOwnProperty("maxUnavailable")) + object.maxUnavailable = message.maxUnavailable; + return object; + }; + + /** + * Converts this UpgradeSettings to JSON. + * @function toJSON + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + * @returns {Object.} JSON object + */ + UpgradeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpgradeSettings; + })(); + + /** + * Status enum. + * @name google.container.v1.NodePool.Status + * @enum {number} + * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value + * @property {number} PROVISIONING=1 PROVISIONING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} RUNNING_WITH_ERROR=3 RUNNING_WITH_ERROR value + * @property {number} RECONCILING=4 RECONCILING value + * @property {number} STOPPING=5 STOPPING value + * @property {number} ERROR=6 ERROR value + */ + NodePool.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROVISIONING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "RUNNING_WITH_ERROR"] = 3; + values[valuesById[4] = "RECONCILING"] = 4; + values[valuesById[5] = "STOPPING"] = 5; + values[valuesById[6] = "ERROR"] = 6; + return values; + })(); + + return NodePool; })(); - v1.GetServerConfigRequest = (function() { + v1.NodeManagement = (function() { /** - * Properties of a GetServerConfigRequest. + * Properties of a NodeManagement. * @memberof google.container.v1 - * @interface IGetServerConfigRequest - * @property {string|null} [projectId] GetServerConfigRequest projectId - * @property {string|null} [zone] GetServerConfigRequest zone - * @property {string|null} [name] GetServerConfigRequest name + * @interface INodeManagement + * @property {boolean|null} [autoUpgrade] NodeManagement autoUpgrade + * @property {boolean|null} [autoRepair] NodeManagement autoRepair + * @property {google.container.v1.IAutoUpgradeOptions|null} [upgradeOptions] NodeManagement upgradeOptions */ /** - * Constructs a new GetServerConfigRequest. + * Constructs a new NodeManagement. * @memberof google.container.v1 - * @classdesc Represents a GetServerConfigRequest. - * @implements IGetServerConfigRequest + * @classdesc Represents a NodeManagement. + * @implements INodeManagement * @constructor - * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set + * @param {google.container.v1.INodeManagement=} [properties] Properties to set */ - function GetServerConfigRequest(properties) { + function NodeManagement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13587,101 +18756,101 @@ } /** - * GetServerConfigRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.GetServerConfigRequest + * NodeManagement autoUpgrade. + * @member {boolean} autoUpgrade + * @memberof google.container.v1.NodeManagement * @instance */ - GetServerConfigRequest.prototype.projectId = ""; + NodeManagement.prototype.autoUpgrade = false; /** - * GetServerConfigRequest zone. - * @member {string} zone - * @memberof google.container.v1.GetServerConfigRequest + * NodeManagement autoRepair. + * @member {boolean} autoRepair + * @memberof google.container.v1.NodeManagement * @instance */ - GetServerConfigRequest.prototype.zone = ""; + NodeManagement.prototype.autoRepair = false; /** - * GetServerConfigRequest name. - * @member {string} name - * @memberof google.container.v1.GetServerConfigRequest + * NodeManagement upgradeOptions. + * @member {google.container.v1.IAutoUpgradeOptions|null|undefined} upgradeOptions + * @memberof google.container.v1.NodeManagement * @instance */ - GetServerConfigRequest.prototype.name = ""; + NodeManagement.prototype.upgradeOptions = null; /** - * Creates a new GetServerConfigRequest instance using the specified properties. + * Creates a new NodeManagement instance using the specified properties. * @function create - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest instance + * @param {google.container.v1.INodeManagement=} [properties] Properties to set + * @returns {google.container.v1.NodeManagement} NodeManagement instance */ - GetServerConfigRequest.create = function create(properties) { - return new GetServerConfigRequest(properties); + NodeManagement.create = function create(properties) { + return new NodeManagement(properties); }; /** - * Encodes the specified GetServerConfigRequest message. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetServerConfigRequest.encode = function encode(message, writer) { + NodeManagement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); + if (message.autoRepair != null && Object.hasOwnProperty.call(message, "autoRepair")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); + if (message.upgradeOptions != null && Object.hasOwnProperty.call(message, "upgradeOptions")) + $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetServerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + NodeManagement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetServerConfigRequest message from the specified reader or buffer. + * Decodes a NodeManagement message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.NodeManagement} NodeManagement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetServerConfigRequest.decode = function decode(reader, length) { + NodeManagement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetServerConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodeManagement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.autoUpgrade = reader.bool(); break; case 2: - message.zone = reader.string(); + message.autoRepair = reader.bool(); break; - case 4: - message.name = reader.string(); + case 10: + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13692,131 +18861,130 @@ }; /** - * Decodes a GetServerConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a NodeManagement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.NodeManagement} NodeManagement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetServerConfigRequest.decodeDelimited = function decodeDelimited(reader) { + NodeManagement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetServerConfigRequest message. + * Verifies a NodeManagement message. * @function verify - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetServerConfigRequest.verify = function verify(message) { + NodeManagement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + if (typeof message.autoUpgrade !== "boolean") + return "autoUpgrade: boolean expected"; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + if (typeof message.autoRepair !== "boolean") + return "autoRepair: boolean expected"; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) { + var error = $root.google.container.v1.AutoUpgradeOptions.verify(message.upgradeOptions); + if (error) + return "upgradeOptions." + error; + } return null; }; /** - * Creates a GetServerConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodeManagement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.NodeManagement} NodeManagement */ - GetServerConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetServerConfigRequest) + NodeManagement.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeManagement) return object; - var message = new $root.google.container.v1.GetServerConfigRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.NodeManagement(); + if (object.autoUpgrade != null) + message.autoUpgrade = Boolean(object.autoUpgrade); + if (object.autoRepair != null) + message.autoRepair = Boolean(object.autoRepair); + if (object.upgradeOptions != null) { + if (typeof object.upgradeOptions !== "object") + throw TypeError(".google.container.v1.NodeManagement.upgradeOptions: object expected"); + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.fromObject(object.upgradeOptions); + } return message; }; /** - * Creates a plain object from a GetServerConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.GetServerConfigRequest} message GetServerConfigRequest + * @param {google.container.v1.NodeManagement} message NodeManagement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetServerConfigRequest.toObject = function toObject(message, options) { + NodeManagement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.name = ""; + object.autoUpgrade = false; + object.autoRepair = false; + object.upgradeOptions = null; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + object.autoUpgrade = message.autoUpgrade; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + object.autoRepair = message.autoRepair; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + object.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.toObject(message.upgradeOptions, options); return object; }; /** - * Converts this GetServerConfigRequest to JSON. + * Converts this NodeManagement to JSON. * @function toJSON - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @instance * @returns {Object.} JSON object */ - GetServerConfigRequest.prototype.toJSON = function toJSON() { + NodeManagement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetServerConfigRequest; + return NodeManagement; })(); - v1.ServerConfig = (function() { + v1.AutoUpgradeOptions = (function() { /** - * Properties of a ServerConfig. + * Properties of an AutoUpgradeOptions. * @memberof google.container.v1 - * @interface IServerConfig - * @property {string|null} [defaultClusterVersion] ServerConfig defaultClusterVersion - * @property {Array.|null} [validNodeVersions] ServerConfig validNodeVersions - * @property {string|null} [defaultImageType] ServerConfig defaultImageType - * @property {Array.|null} [validImageTypes] ServerConfig validImageTypes - * @property {Array.|null} [validMasterVersions] ServerConfig validMasterVersions + * @interface IAutoUpgradeOptions + * @property {string|null} [autoUpgradeStartTime] AutoUpgradeOptions autoUpgradeStartTime + * @property {string|null} [description] AutoUpgradeOptions description */ /** - * Constructs a new ServerConfig. + * Constructs a new AutoUpgradeOptions. * @memberof google.container.v1 - * @classdesc Represents a ServerConfig. - * @implements IServerConfig + * @classdesc Represents an AutoUpgradeOptions. + * @implements IAutoUpgradeOptions * @constructor - * @param {google.container.v1.IServerConfig=} [properties] Properties to set + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set */ - function ServerConfig(properties) { - this.validNodeVersions = []; - this.validImageTypes = []; - this.validMasterVersions = []; + function AutoUpgradeOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13824,136 +18992,88 @@ } /** - * ServerConfig defaultClusterVersion. - * @member {string} defaultClusterVersion - * @memberof google.container.v1.ServerConfig - * @instance - */ - ServerConfig.prototype.defaultClusterVersion = ""; - - /** - * ServerConfig validNodeVersions. - * @member {Array.} validNodeVersions - * @memberof google.container.v1.ServerConfig - * @instance - */ - ServerConfig.prototype.validNodeVersions = $util.emptyArray; - - /** - * ServerConfig defaultImageType. - * @member {string} defaultImageType - * @memberof google.container.v1.ServerConfig - * @instance - */ - ServerConfig.prototype.defaultImageType = ""; - - /** - * ServerConfig validImageTypes. - * @member {Array.} validImageTypes - * @memberof google.container.v1.ServerConfig + * AutoUpgradeOptions autoUpgradeStartTime. + * @member {string} autoUpgradeStartTime + * @memberof google.container.v1.AutoUpgradeOptions * @instance */ - ServerConfig.prototype.validImageTypes = $util.emptyArray; + AutoUpgradeOptions.prototype.autoUpgradeStartTime = ""; /** - * ServerConfig validMasterVersions. - * @member {Array.} validMasterVersions - * @memberof google.container.v1.ServerConfig + * AutoUpgradeOptions description. + * @member {string} description + * @memberof google.container.v1.AutoUpgradeOptions * @instance */ - ServerConfig.prototype.validMasterVersions = $util.emptyArray; + AutoUpgradeOptions.prototype.description = ""; /** - * Creates a new ServerConfig instance using the specified properties. + * Creates a new AutoUpgradeOptions instance using the specified properties. * @function create - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IServerConfig=} [properties] Properties to set - * @returns {google.container.v1.ServerConfig} ServerConfig instance + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions instance */ - ServerConfig.create = function create(properties) { - return new ServerConfig(properties); + AutoUpgradeOptions.create = function create(properties) { + return new AutoUpgradeOptions(properties); }; /** - * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. * @function encode - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerConfig.encode = function encode(message, writer) { + AutoUpgradeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.defaultClusterVersion != null && Object.hasOwnProperty.call(message, "defaultClusterVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); - if (message.validNodeVersions != null && message.validNodeVersions.length) - for (var i = 0; i < message.validNodeVersions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); - if (message.defaultImageType != null && Object.hasOwnProperty.call(message, "defaultImageType")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); - if (message.validImageTypes != null && message.validImageTypes.length) - for (var i = 0; i < message.validImageTypes.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.validImageTypes[i]); - if (message.validMasterVersions != null && message.validMasterVersions.length) - for (var i = 0; i < message.validMasterVersions.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.validMasterVersions[i]); + if (message.autoUpgradeStartTime != null && Object.hasOwnProperty.call(message, "autoUpgradeStartTime")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; /** - * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerConfig.encodeDelimited = function encodeDelimited(message, writer) { + AutoUpgradeOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServerConfig message from the specified reader or buffer. + * Decodes an AutoUpgradeOptions message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerConfig.decode = function decode(reader, length) { + AutoUpgradeOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ServerConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AutoUpgradeOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.defaultClusterVersion = reader.string(); - break; - case 3: - if (!(message.validNodeVersions && message.validNodeVersions.length)) - message.validNodeVersions = []; - message.validNodeVersions.push(reader.string()); - break; - case 4: - message.defaultImageType = reader.string(); - break; - case 5: - if (!(message.validImageTypes && message.validImageTypes.length)) - message.validImageTypes = []; - message.validImageTypes.push(reader.string()); + message.autoUpgradeStartTime = reader.string(); break; - case 6: - if (!(message.validMasterVersions && message.validMasterVersions.length)) - message.validMasterVersions = []; - message.validMasterVersions.push(reader.string()); + case 2: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -13964,182 +19084,117 @@ }; /** - * Decodes a ServerConfig message from the specified reader or buffer, length delimited. + * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerConfig.decodeDelimited = function decodeDelimited(reader) { + AutoUpgradeOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServerConfig message. + * Verifies an AutoUpgradeOptions message. * @function verify - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServerConfig.verify = function verify(message) { + AutoUpgradeOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) - if (!$util.isString(message.defaultClusterVersion)) - return "defaultClusterVersion: string expected"; - if (message.validNodeVersions != null && message.hasOwnProperty("validNodeVersions")) { - if (!Array.isArray(message.validNodeVersions)) - return "validNodeVersions: array expected"; - for (var i = 0; i < message.validNodeVersions.length; ++i) - if (!$util.isString(message.validNodeVersions[i])) - return "validNodeVersions: string[] expected"; - } - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) - if (!$util.isString(message.defaultImageType)) - return "defaultImageType: string expected"; - if (message.validImageTypes != null && message.hasOwnProperty("validImageTypes")) { - if (!Array.isArray(message.validImageTypes)) - return "validImageTypes: array expected"; - for (var i = 0; i < message.validImageTypes.length; ++i) - if (!$util.isString(message.validImageTypes[i])) - return "validImageTypes: string[] expected"; - } - if (message.validMasterVersions != null && message.hasOwnProperty("validMasterVersions")) { - if (!Array.isArray(message.validMasterVersions)) - return "validMasterVersions: array expected"; - for (var i = 0; i < message.validMasterVersions.length; ++i) - if (!$util.isString(message.validMasterVersions[i])) - return "validMasterVersions: string[] expected"; - } + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + if (!$util.isString(message.autoUpgradeStartTime)) + return "autoUpgradeStartTime: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a ServerConfig message from a plain object. Also converts values to their respective internal types. + * Creates an AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions */ - ServerConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ServerConfig) + AutoUpgradeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AutoUpgradeOptions) return object; - var message = new $root.google.container.v1.ServerConfig(); - if (object.defaultClusterVersion != null) - message.defaultClusterVersion = String(object.defaultClusterVersion); - if (object.validNodeVersions) { - if (!Array.isArray(object.validNodeVersions)) - throw TypeError(".google.container.v1.ServerConfig.validNodeVersions: array expected"); - message.validNodeVersions = []; - for (var i = 0; i < object.validNodeVersions.length; ++i) - message.validNodeVersions[i] = String(object.validNodeVersions[i]); - } - if (object.defaultImageType != null) - message.defaultImageType = String(object.defaultImageType); - if (object.validImageTypes) { - if (!Array.isArray(object.validImageTypes)) - throw TypeError(".google.container.v1.ServerConfig.validImageTypes: array expected"); - message.validImageTypes = []; - for (var i = 0; i < object.validImageTypes.length; ++i) - message.validImageTypes[i] = String(object.validImageTypes[i]); - } - if (object.validMasterVersions) { - if (!Array.isArray(object.validMasterVersions)) - throw TypeError(".google.container.v1.ServerConfig.validMasterVersions: array expected"); - message.validMasterVersions = []; - for (var i = 0; i < object.validMasterVersions.length; ++i) - message.validMasterVersions[i] = String(object.validMasterVersions[i]); - } + var message = new $root.google.container.v1.AutoUpgradeOptions(); + if (object.autoUpgradeStartTime != null) + message.autoUpgradeStartTime = String(object.autoUpgradeStartTime); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a ServerConfig message. Also converts values to other types if specified. + * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.ServerConfig} message ServerConfig + * @param {google.container.v1.AutoUpgradeOptions} message AutoUpgradeOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServerConfig.toObject = function toObject(message, options) { + AutoUpgradeOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.validNodeVersions = []; - object.validImageTypes = []; - object.validMasterVersions = []; - } if (options.defaults) { - object.defaultClusterVersion = ""; - object.defaultImageType = ""; - } - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) - object.defaultClusterVersion = message.defaultClusterVersion; - if (message.validNodeVersions && message.validNodeVersions.length) { - object.validNodeVersions = []; - for (var j = 0; j < message.validNodeVersions.length; ++j) - object.validNodeVersions[j] = message.validNodeVersions[j]; - } - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) - object.defaultImageType = message.defaultImageType; - if (message.validImageTypes && message.validImageTypes.length) { - object.validImageTypes = []; - for (var j = 0; j < message.validImageTypes.length; ++j) - object.validImageTypes[j] = message.validImageTypes[j]; - } - if (message.validMasterVersions && message.validMasterVersions.length) { - object.validMasterVersions = []; - for (var j = 0; j < message.validMasterVersions.length; ++j) - object.validMasterVersions[j] = message.validMasterVersions[j]; + object.autoUpgradeStartTime = ""; + object.description = ""; } + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + object.autoUpgradeStartTime = message.autoUpgradeStartTime; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ServerConfig to JSON. + * Converts this AutoUpgradeOptions to JSON. * @function toJSON - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @instance * @returns {Object.} JSON object */ - ServerConfig.prototype.toJSON = function toJSON() { + AutoUpgradeOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServerConfig; + return AutoUpgradeOptions; })(); - v1.CreateNodePoolRequest = (function() { + v1.MaintenancePolicy = (function() { /** - * Properties of a CreateNodePoolRequest. + * Properties of a MaintenancePolicy. * @memberof google.container.v1 - * @interface ICreateNodePoolRequest - * @property {string|null} [projectId] CreateNodePoolRequest projectId - * @property {string|null} [zone] CreateNodePoolRequest zone - * @property {string|null} [clusterId] CreateNodePoolRequest clusterId - * @property {google.container.v1.INodePool|null} [nodePool] CreateNodePoolRequest nodePool - * @property {string|null} [parent] CreateNodePoolRequest parent + * @interface IMaintenancePolicy + * @property {google.container.v1.IMaintenanceWindow|null} [window] MaintenancePolicy window + * @property {string|null} [resourceVersion] MaintenancePolicy resourceVersion */ /** - * Constructs a new CreateNodePoolRequest. + * Constructs a new MaintenancePolicy. * @memberof google.container.v1 - * @classdesc Represents a CreateNodePoolRequest. - * @implements ICreateNodePoolRequest + * @classdesc Represents a MaintenancePolicy. + * @implements IMaintenancePolicy * @constructor - * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set */ - function CreateNodePoolRequest(properties) { + function MaintenancePolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14147,127 +19202,88 @@ } /** - * CreateNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.projectId = ""; - - /** - * CreateNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.zone = ""; - - /** - * CreateNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.clusterId = ""; - - /** - * CreateNodePoolRequest nodePool. - * @member {google.container.v1.INodePool|null|undefined} nodePool - * @memberof google.container.v1.CreateNodePoolRequest + * MaintenancePolicy window. + * @member {google.container.v1.IMaintenanceWindow|null|undefined} window + * @memberof google.container.v1.MaintenancePolicy * @instance */ - CreateNodePoolRequest.prototype.nodePool = null; + MaintenancePolicy.prototype.window = null; /** - * CreateNodePoolRequest parent. - * @member {string} parent - * @memberof google.container.v1.CreateNodePoolRequest + * MaintenancePolicy resourceVersion. + * @member {string} resourceVersion + * @memberof google.container.v1.MaintenancePolicy * @instance */ - CreateNodePoolRequest.prototype.parent = ""; + MaintenancePolicy.prototype.resourceVersion = ""; /** - * Creates a new CreateNodePoolRequest instance using the specified properties. + * Creates a new MaintenancePolicy instance using the specified properties. * @function create - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest instance + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy instance */ - CreateNodePoolRequest.create = function create(properties) { - return new CreateNodePoolRequest(properties); + MaintenancePolicy.create = function create(properties) { + return new MaintenancePolicy(properties); }; /** - * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. * @function encode - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNodePoolRequest.encode = function encode(message, writer) { + MaintenancePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePool != null && Object.hasOwnProperty.call(message, "nodePool")) - $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); + if (message.window != null && Object.hasOwnProperty.call(message, "window")) + $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.resourceVersion != null && Object.hasOwnProperty.call(message, "resourceVersion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); return writer; }; /** - * Encodes the specified CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaintenancePolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateNodePoolRequest message from the specified reader or buffer. + * Decodes a MaintenancePolicy message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNodePoolRequest.decode = function decode(reader, length) { + MaintenancePolicy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CreateNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenancePolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); - break; - case 2: - message.zone = reader.string(); + message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); break; case 3: - message.clusterId = reader.string(); - break; - case 4: - message.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); - break; - case 6: - message.parent = reader.string(); + message.resourceVersion = reader.string(); break; default: reader.skipType(tag & 7); @@ -14278,149 +19294,124 @@ }; /** - * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + MaintenancePolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateNodePoolRequest message. + * Verifies a MaintenancePolicy message. * @function verify - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateNodePoolRequest.verify = function verify(message) { + MaintenancePolicy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.nodePool != null && message.hasOwnProperty("nodePool")) { - var error = $root.google.container.v1.NodePool.verify(message.nodePool); + if (message.window != null && message.hasOwnProperty("window")) { + var error = $root.google.container.v1.MaintenanceWindow.verify(message.window); if (error) - return "nodePool." + error; + return "window." + error; } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + if (!$util.isString(message.resourceVersion)) + return "resourceVersion: string expected"; return null; }; /** - * Creates a CreateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenancePolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy */ - CreateNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CreateNodePoolRequest) + MaintenancePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenancePolicy) return object; - var message = new $root.google.container.v1.CreateNodePoolRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.nodePool != null) { - if (typeof object.nodePool !== "object") - throw TypeError(".google.container.v1.CreateNodePoolRequest.nodePool: object expected"); - message.nodePool = $root.google.container.v1.NodePool.fromObject(object.nodePool); + var message = new $root.google.container.v1.MaintenancePolicy(); + if (object.window != null) { + if (typeof object.window !== "object") + throw TypeError(".google.container.v1.MaintenancePolicy.window: object expected"); + message.window = $root.google.container.v1.MaintenanceWindow.fromObject(object.window); } - if (object.parent != null) - message.parent = String(object.parent); + if (object.resourceVersion != null) + message.resourceVersion = String(object.resourceVersion); return message; }; /** - * Creates a plain object from a CreateNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.CreateNodePoolRequest} message CreateNodePoolRequest + * @param {google.container.v1.MaintenancePolicy} message MaintenancePolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateNodePoolRequest.toObject = function toObject(message, options) { + MaintenancePolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePool = null; - object.parent = ""; + object.window = null; + object.resourceVersion = ""; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.nodePool != null && message.hasOwnProperty("nodePool")) - object.nodePool = $root.google.container.v1.NodePool.toObject(message.nodePool, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.window != null && message.hasOwnProperty("window")) + object.window = $root.google.container.v1.MaintenanceWindow.toObject(message.window, options); + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + object.resourceVersion = message.resourceVersion; return object; }; /** - * Converts this CreateNodePoolRequest to JSON. + * Converts this MaintenancePolicy to JSON. * @function toJSON - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @instance * @returns {Object.} JSON object */ - CreateNodePoolRequest.prototype.toJSON = function toJSON() { + MaintenancePolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateNodePoolRequest; + return MaintenancePolicy; })(); - v1.DeleteNodePoolRequest = (function() { + v1.MaintenanceWindow = (function() { /** - * Properties of a DeleteNodePoolRequest. + * Properties of a MaintenanceWindow. * @memberof google.container.v1 - * @interface IDeleteNodePoolRequest - * @property {string|null} [projectId] DeleteNodePoolRequest projectId - * @property {string|null} [zone] DeleteNodePoolRequest zone - * @property {string|null} [clusterId] DeleteNodePoolRequest clusterId - * @property {string|null} [nodePoolId] DeleteNodePoolRequest nodePoolId - * @property {string|null} [name] DeleteNodePoolRequest name + * @interface IMaintenanceWindow + * @property {google.container.v1.IDailyMaintenanceWindow|null} [dailyMaintenanceWindow] MaintenanceWindow dailyMaintenanceWindow + * @property {google.container.v1.IRecurringTimeWindow|null} [recurringWindow] MaintenanceWindow recurringWindow + * @property {Object.|null} [maintenanceExclusions] MaintenanceWindow maintenanceExclusions */ /** - * Constructs a new DeleteNodePoolRequest. + * Constructs a new MaintenanceWindow. * @memberof google.container.v1 - * @classdesc Represents a DeleteNodePoolRequest. - * @implements IDeleteNodePoolRequest + * @classdesc Represents a MaintenanceWindow. + * @implements IMaintenanceWindow * @constructor - * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set */ - function DeleteNodePoolRequest(properties) { + function MaintenanceWindow(properties) { + this.maintenanceExclusions = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14428,127 +19419,137 @@ } /** - * DeleteNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow dailyMaintenanceWindow. + * @member {google.container.v1.IDailyMaintenanceWindow|null|undefined} dailyMaintenanceWindow + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.projectId = ""; + MaintenanceWindow.prototype.dailyMaintenanceWindow = null; /** - * DeleteNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow recurringWindow. + * @member {google.container.v1.IRecurringTimeWindow|null|undefined} recurringWindow + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.zone = ""; + MaintenanceWindow.prototype.recurringWindow = null; /** - * DeleteNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow maintenanceExclusions. + * @member {Object.} maintenanceExclusions + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.clusterId = ""; + MaintenanceWindow.prototype.maintenanceExclusions = $util.emptyObject; - /** - * DeleteNodePoolRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.DeleteNodePoolRequest - * @instance - */ - DeleteNodePoolRequest.prototype.nodePoolId = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DeleteNodePoolRequest name. - * @member {string} name - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow policy. + * @member {"dailyMaintenanceWindow"|"recurringWindow"|undefined} policy + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.name = ""; + Object.defineProperty(MaintenanceWindow.prototype, "policy", { + get: $util.oneOfGetter($oneOfFields = ["dailyMaintenanceWindow", "recurringWindow"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DeleteNodePoolRequest instance using the specified properties. + * Creates a new MaintenanceWindow instance using the specified properties. * @function create - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest instance + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow instance */ - DeleteNodePoolRequest.create = function create(properties) { - return new DeleteNodePoolRequest(properties); + MaintenanceWindow.create = function create(properties) { + return new MaintenanceWindow(properties); }; /** - * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNodePoolRequest.encode = function encode(message, writer) { + MaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.dailyMaintenanceWindow != null && Object.hasOwnProperty.call(message, "dailyMaintenanceWindow")) + $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.recurringWindow != null && Object.hasOwnProperty.call(message, "recurringWindow")) + $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maintenanceExclusions != null && Object.hasOwnProperty.call(message, "maintenanceExclusions")) + for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. + * Decodes a MaintenanceWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNodePoolRequest.decode = function decode(reader, length) { + MaintenanceWindow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DeleteNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenanceWindow(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; case 2: - message.zone = reader.string(); + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); break; case 3: - message.clusterId = reader.string(); + message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); break; case 4: - message.nodePoolId = reader.string(); - break; - case 6: - message.name = reader.string(); + if (message.maintenanceExclusions === $util.emptyObject) + message.maintenanceExclusions = {}; + 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.container.v1.TimeWindow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.maintenanceExclusions[key] = value; break; default: reader.skipType(tag & 7); @@ -14559,143 +19560,166 @@ }; /** - * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteNodePoolRequest message. + * Verifies a MaintenanceWindow message. * @function verify - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteNodePoolRequest.verify = function verify(message) { + MaintenanceWindow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - if (!$util.isString(message.nodePoolId)) - return "nodePoolId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + properties.policy = 1; + { + var error = $root.google.container.v1.DailyMaintenanceWindow.verify(message.dailyMaintenanceWindow); + if (error) + return "dailyMaintenanceWindow." + error; + } + } + if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { + if (properties.policy === 1) + return "policy: multiple values"; + properties.policy = 1; + { + var error = $root.google.container.v1.RecurringTimeWindow.verify(message.recurringWindow); + if (error) + return "recurringWindow." + error; + } + } + if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) { + if (!$util.isObject(message.maintenanceExclusions)) + return "maintenanceExclusions: object expected"; + var key = Object.keys(message.maintenanceExclusions); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.container.v1.TimeWindow.verify(message.maintenanceExclusions[key[i]]); + if (error) + return "maintenanceExclusions." + error; + } + } return null; }; /** - * Creates a DeleteNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow */ - DeleteNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DeleteNodePoolRequest) + MaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenanceWindow) return object; - var message = new $root.google.container.v1.DeleteNodePoolRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.nodePoolId != null) - message.nodePoolId = String(object.nodePoolId); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.MaintenanceWindow(); + if (object.dailyMaintenanceWindow != null) { + if (typeof object.dailyMaintenanceWindow !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.dailyMaintenanceWindow: object expected"); + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.fromObject(object.dailyMaintenanceWindow); + } + if (object.recurringWindow != null) { + if (typeof object.recurringWindow !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.recurringWindow: object expected"); + message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.fromObject(object.recurringWindow); + } + if (object.maintenanceExclusions) { + if (typeof object.maintenanceExclusions !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); + message.maintenanceExclusions = {}; + for (var keys = Object.keys(object.maintenanceExclusions), i = 0; i < keys.length; ++i) { + if (typeof object.maintenanceExclusions[keys[i]] !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); + message.maintenanceExclusions[keys[i]] = $root.google.container.v1.TimeWindow.fromObject(object.maintenanceExclusions[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.DeleteNodePoolRequest} message DeleteNodePoolRequest + * @param {google.container.v1.MaintenanceWindow} message MaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteNodePoolRequest.toObject = function toObject(message, options) { + MaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.name = ""; + if (options.objects || options.defaults) + object.maintenanceExclusions = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + object.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.toObject(message.dailyMaintenanceWindow, options); + if (options.oneofs) + object.policy = "dailyMaintenanceWindow"; + } + if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { + object.recurringWindow = $root.google.container.v1.RecurringTimeWindow.toObject(message.recurringWindow, options); + if (options.oneofs) + object.policy = "recurringWindow"; + } + var keys2; + if (message.maintenanceExclusions && (keys2 = Object.keys(message.maintenanceExclusions)).length) { + object.maintenanceExclusions = {}; + for (var j = 0; j < keys2.length; ++j) + object.maintenanceExclusions[keys2[j]] = $root.google.container.v1.TimeWindow.toObject(message.maintenanceExclusions[keys2[j]], options); } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this DeleteNodePoolRequest to JSON. + * Converts this MaintenanceWindow to JSON. * @function toJSON - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @instance * @returns {Object.} JSON object */ - DeleteNodePoolRequest.prototype.toJSON = function toJSON() { + MaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteNodePoolRequest; + return MaintenanceWindow; })(); - v1.ListNodePoolsRequest = (function() { + v1.TimeWindow = (function() { /** - * Properties of a ListNodePoolsRequest. + * Properties of a TimeWindow. * @memberof google.container.v1 - * @interface IListNodePoolsRequest - * @property {string|null} [projectId] ListNodePoolsRequest projectId - * @property {string|null} [zone] ListNodePoolsRequest zone - * @property {string|null} [clusterId] ListNodePoolsRequest clusterId - * @property {string|null} [parent] ListNodePoolsRequest parent + * @interface ITimeWindow + * @property {google.protobuf.ITimestamp|null} [startTime] TimeWindow startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TimeWindow endTime */ /** - * Constructs a new ListNodePoolsRequest. + * Constructs a new TimeWindow. * @memberof google.container.v1 - * @classdesc Represents a ListNodePoolsRequest. - * @implements IListNodePoolsRequest + * @classdesc Represents a TimeWindow. + * @implements ITimeWindow * @constructor - * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + * @param {google.container.v1.ITimeWindow=} [properties] Properties to set */ - function ListNodePoolsRequest(properties) { + function TimeWindow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14703,114 +19727,88 @@ } /** - * ListNodePoolsRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.ListNodePoolsRequest - * @instance - */ - ListNodePoolsRequest.prototype.projectId = ""; - - /** - * ListNodePoolsRequest zone. - * @member {string} zone - * @memberof google.container.v1.ListNodePoolsRequest - * @instance - */ - ListNodePoolsRequest.prototype.zone = ""; - - /** - * ListNodePoolsRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.ListNodePoolsRequest + * TimeWindow startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.container.v1.TimeWindow * @instance */ - ListNodePoolsRequest.prototype.clusterId = ""; + TimeWindow.prototype.startTime = null; /** - * ListNodePoolsRequest parent. - * @member {string} parent - * @memberof google.container.v1.ListNodePoolsRequest + * TimeWindow endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.container.v1.TimeWindow * @instance */ - ListNodePoolsRequest.prototype.parent = ""; + TimeWindow.prototype.endTime = null; /** - * Creates a new ListNodePoolsRequest instance using the specified properties. + * Creates a new TimeWindow instance using the specified properties. * @function create - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest instance + * @param {google.container.v1.ITimeWindow=} [properties] Properties to set + * @returns {google.container.v1.TimeWindow} TimeWindow instance */ - ListNodePoolsRequest.create = function create(properties) { - return new ListNodePoolsRequest(properties); + TimeWindow.create = function create(properties) { + return new TimeWindow(properties); }; /** - * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsRequest.encode = function encode(message, writer) { + TimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimeWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodePoolsRequest message from the specified reader or buffer. + * Decodes a TimeWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.TimeWindow} TimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsRequest.decode = function decode(reader, length) { + TimeWindow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListNodePoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.TimeWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 5: - message.parent = reader.string(); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -14821,136 +19819,127 @@ }; /** - * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes a TimeWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.TimeWindow} TimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsRequest.decodeDelimited = function decodeDelimited(reader) { + TimeWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodePoolsRequest message. + * Verifies a TimeWindow message. * @function verify - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodePoolsRequest.verify = function verify(message) { + TimeWindow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a ListNodePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimeWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.TimeWindow} TimeWindow */ - ListNodePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListNodePoolsRequest) + TimeWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.TimeWindow) return object; - var message = new $root.google.container.v1.ListNodePoolsRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.TimeWindow(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.container.v1.TimeWindow.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.container.v1.TimeWindow.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from a TimeWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.ListNodePoolsRequest} message ListNodePoolsRequest + * @param {google.container.v1.TimeWindow} message TimeWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodePoolsRequest.toObject = function toObject(message, options) { + TimeWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.parent = ""; + object.startTime = null; + object.endTime = null; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ListNodePoolsRequest to JSON. + * Converts this TimeWindow to JSON. * @function toJSON - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @instance * @returns {Object.} JSON object */ - ListNodePoolsRequest.prototype.toJSON = function toJSON() { + TimeWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListNodePoolsRequest; + return TimeWindow; })(); - v1.GetNodePoolRequest = (function() { + v1.RecurringTimeWindow = (function() { /** - * Properties of a GetNodePoolRequest. + * Properties of a RecurringTimeWindow. * @memberof google.container.v1 - * @interface IGetNodePoolRequest - * @property {string|null} [projectId] GetNodePoolRequest projectId - * @property {string|null} [zone] GetNodePoolRequest zone - * @property {string|null} [clusterId] GetNodePoolRequest clusterId - * @property {string|null} [nodePoolId] GetNodePoolRequest nodePoolId - * @property {string|null} [name] GetNodePoolRequest name + * @interface IRecurringTimeWindow + * @property {google.container.v1.ITimeWindow|null} [window] RecurringTimeWindow window + * @property {string|null} [recurrence] RecurringTimeWindow recurrence */ /** - * Constructs a new GetNodePoolRequest. + * Constructs a new RecurringTimeWindow. * @memberof google.container.v1 - * @classdesc Represents a GetNodePoolRequest. - * @implements IGetNodePoolRequest + * @classdesc Represents a RecurringTimeWindow. + * @implements IRecurringTimeWindow * @constructor - * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set */ - function GetNodePoolRequest(properties) { + function RecurringTimeWindow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14958,127 +19947,88 @@ } /** - * GetNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.projectId = ""; - - /** - * GetNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.zone = ""; - - /** - * GetNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.clusterId = ""; - - /** - * GetNodePoolRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.GetNodePoolRequest + * RecurringTimeWindow window. + * @member {google.container.v1.ITimeWindow|null|undefined} window + * @memberof google.container.v1.RecurringTimeWindow * @instance */ - GetNodePoolRequest.prototype.nodePoolId = ""; + RecurringTimeWindow.prototype.window = null; /** - * GetNodePoolRequest name. - * @member {string} name - * @memberof google.container.v1.GetNodePoolRequest + * RecurringTimeWindow recurrence. + * @member {string} recurrence + * @memberof google.container.v1.RecurringTimeWindow * @instance */ - GetNodePoolRequest.prototype.name = ""; + RecurringTimeWindow.prototype.recurrence = ""; /** - * Creates a new GetNodePoolRequest instance using the specified properties. + * Creates a new RecurringTimeWindow instance using the specified properties. * @function create - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest instance + * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow instance */ - GetNodePoolRequest.create = function create(properties) { - return new GetNodePoolRequest(properties); + RecurringTimeWindow.create = function create(properties) { + return new RecurringTimeWindow(properties); }; /** - * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetNodePoolRequest - * @static - * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNodePoolRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + * @memberof google.container.v1.RecurringTimeWindow + * @static + * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecurringTimeWindow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.window != null && Object.hasOwnProperty.call(message, "window")) + $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); return writer; }; /** - * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode + * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecurringTimeWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNodePoolRequest message from the specified reader or buffer. + * Decodes a RecurringTimeWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodePoolRequest.decode = function decode(reader, length) { + RecurringTimeWindow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RecurringTimeWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.window = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.nodePoolId = reader.string(); - break; - case 6: - message.name = reader.string(); + message.recurrence = reader.string(); break; default: reader.skipType(tag & 7); @@ -15089,392 +20039,211 @@ }; /** - * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + RecurringTimeWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNodePoolRequest message. + * Verifies a RecurringTimeWindow message. * @function verify - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNodePoolRequest.verify = function verify(message) { + RecurringTimeWindow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - if (!$util.isString(message.nodePoolId)) - return "nodePoolId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.window != null && message.hasOwnProperty("window")) { + var error = $root.google.container.v1.TimeWindow.verify(message.window); + if (error) + return "window." + error; + } + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + if (!$util.isString(message.recurrence)) + return "recurrence: string expected"; return null; }; /** - * Creates a GetNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecurringTimeWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow */ - GetNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetNodePoolRequest) + RecurringTimeWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RecurringTimeWindow) return object; - var message = new $root.google.container.v1.GetNodePoolRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.nodePoolId != null) - message.nodePoolId = String(object.nodePoolId); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.RecurringTimeWindow(); + if (object.window != null) { + if (typeof object.window !== "object") + throw TypeError(".google.container.v1.RecurringTimeWindow.window: object expected"); + message.window = $root.google.container.v1.TimeWindow.fromObject(object.window); + } + if (object.recurrence != null) + message.recurrence = String(object.recurrence); return message; }; /** - * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.GetNodePoolRequest} message GetNodePoolRequest + * @param {google.container.v1.RecurringTimeWindow} message RecurringTimeWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNodePoolRequest.toObject = function toObject(message, options) { + RecurringTimeWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.name = ""; + object.window = null; + object.recurrence = ""; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this GetNodePoolRequest to JSON. - * @function toJSON - * @memberof google.container.v1.GetNodePoolRequest - * @instance - * @returns {Object.} JSON object - */ - GetNodePoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNodePoolRequest; - })(); - - v1.NodePool = (function() { - - /** - * Properties of a NodePool. - * @memberof google.container.v1 - * @interface INodePool - * @property {string|null} [name] NodePool name - * @property {google.container.v1.INodeConfig|null} [config] NodePool config - * @property {number|null} [initialNodeCount] NodePool initialNodeCount - * @property {string|null} [selfLink] NodePool selfLink - * @property {string|null} [version] NodePool version - * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls - * @property {google.container.v1.NodePool.Status|null} [status] NodePool status - * @property {string|null} [statusMessage] NodePool statusMessage - * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] NodePool autoscaling - * @property {google.container.v1.INodeManagement|null} [management] NodePool management - * @property {google.container.v1.IMaxPodsConstraint|null} [maxPodsConstraint] NodePool maxPodsConstraint - * @property {Array.|null} [conditions] NodePool conditions - * @property {number|null} [podIpv4CidrSize] NodePool podIpv4CidrSize - */ - - /** - * Constructs a new NodePool. - * @memberof google.container.v1 - * @classdesc Represents a NodePool. - * @implements INodePool - * @constructor - * @param {google.container.v1.INodePool=} [properties] Properties to set - */ - function NodePool(properties) { - this.instanceGroupUrls = []; - this.conditions = []; - 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]]; - } - - /** - * NodePool name. - * @member {string} name - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.name = ""; - - /** - * NodePool config. - * @member {google.container.v1.INodeConfig|null|undefined} config - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.config = null; - - /** - * NodePool initialNodeCount. - * @member {number} initialNodeCount - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.initialNodeCount = 0; - - /** - * NodePool selfLink. - * @member {string} selfLink - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.selfLink = ""; - - /** - * NodePool version. - * @member {string} version - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.version = ""; - - /** - * NodePool instanceGroupUrls. - * @member {Array.} instanceGroupUrls - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.instanceGroupUrls = $util.emptyArray; - - /** - * NodePool status. - * @member {google.container.v1.NodePool.Status} status - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.status = 0; - - /** - * NodePool statusMessage. - * @member {string} statusMessage - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.statusMessage = ""; + if (message.window != null && message.hasOwnProperty("window")) + object.window = $root.google.container.v1.TimeWindow.toObject(message.window, options); + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + object.recurrence = message.recurrence; + return object; + }; /** - * NodePool autoscaling. - * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling - * @memberof google.container.v1.NodePool + * Converts this RecurringTimeWindow to JSON. + * @function toJSON + * @memberof google.container.v1.RecurringTimeWindow * @instance + * @returns {Object.} JSON object */ - NodePool.prototype.autoscaling = null; + RecurringTimeWindow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RecurringTimeWindow; + })(); + + v1.DailyMaintenanceWindow = (function() { /** - * NodePool management. - * @member {google.container.v1.INodeManagement|null|undefined} management - * @memberof google.container.v1.NodePool - * @instance + * Properties of a DailyMaintenanceWindow. + * @memberof google.container.v1 + * @interface IDailyMaintenanceWindow + * @property {string|null} [startTime] DailyMaintenanceWindow startTime + * @property {string|null} [duration] DailyMaintenanceWindow duration */ - NodePool.prototype.management = null; /** - * NodePool maxPodsConstraint. - * @member {google.container.v1.IMaxPodsConstraint|null|undefined} maxPodsConstraint - * @memberof google.container.v1.NodePool - * @instance + * Constructs a new DailyMaintenanceWindow. + * @memberof google.container.v1 + * @classdesc Represents a DailyMaintenanceWindow. + * @implements IDailyMaintenanceWindow + * @constructor + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set */ - NodePool.prototype.maxPodsConstraint = null; + function DailyMaintenanceWindow(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]]; + } /** - * NodePool conditions. - * @member {Array.} conditions - * @memberof google.container.v1.NodePool + * DailyMaintenanceWindow startTime. + * @member {string} startTime + * @memberof google.container.v1.DailyMaintenanceWindow * @instance */ - NodePool.prototype.conditions = $util.emptyArray; + DailyMaintenanceWindow.prototype.startTime = ""; /** - * NodePool podIpv4CidrSize. - * @member {number} podIpv4CidrSize - * @memberof google.container.v1.NodePool + * DailyMaintenanceWindow duration. + * @member {string} duration + * @memberof google.container.v1.DailyMaintenanceWindow * @instance */ - NodePool.prototype.podIpv4CidrSize = 0; + DailyMaintenanceWindow.prototype.duration = ""; /** - * Creates a new NodePool instance using the specified properties. + * Creates a new DailyMaintenanceWindow instance using the specified properties. * @function create - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.INodePool=} [properties] Properties to set - * @returns {google.container.v1.NodePool} NodePool instance + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow instance */ - NodePool.create = function create(properties) { - return new NodePool(properties); + DailyMaintenanceWindow.create = function create(properties) { + return new DailyMaintenanceWindow(properties); }; /** - * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePool.encode = function encode(message, writer) { + DailyMaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) - $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.management != null && Object.hasOwnProperty.call(message, "management")) - $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.maxPodsConstraint != null && Object.hasOwnProperty.call(message, "maxPodsConstraint")) - $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.podIpv4CidrSize != null && Object.hasOwnProperty.call(message, "podIpv4CidrSize")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); - if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); - if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) - for (var i = 0; i < message.instanceGroupUrls.length; ++i) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); - if (message.conditions != null && message.conditions.length) - for (var i = 0; i < message.conditions.length; ++i) - $root.google.container.v1.StatusCondition.encode(message.conditions[i], writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); return writer; }; /** - * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePool.encodeDelimited = function encodeDelimited(message, writer) { + DailyMaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePool message from the specified reader or buffer. + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePool.decode = function decode(reader, length) { + DailyMaintenanceWindow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePool(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DailyMaintenanceWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; case 2: - message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + message.startTime = reader.string(); break; case 3: - message.initialNodeCount = reader.int32(); - break; - case 100: - message.selfLink = reader.string(); - break; - case 101: - message.version = reader.string(); - break; - case 102: - if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) - message.instanceGroupUrls = []; - message.instanceGroupUrls.push(reader.string()); - break; - case 103: - message.status = reader.int32(); - break; - case 104: - message.statusMessage = reader.string(); - break; - case 4: - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); - break; - case 5: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); - break; - case 6: - message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); - break; - case 105: - if (!(message.conditions && message.conditions.length)) - message.conditions = []; - message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); - break; - case 7: - message.podIpv4CidrSize = reader.int32(); + message.duration = reader.string(); break; default: reader.skipType(tag & 7); @@ -15485,319 +20254,121 @@ }; /** - * Decodes a NodePool message from the specified reader or buffer, length delimited. + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePool.decodeDelimited = function decodeDelimited(reader) { + DailyMaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePool message. + * Verifies a DailyMaintenanceWindow message. * @function verify - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodePool.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.config != null && message.hasOwnProperty("config")) { - var error = $root.google.container.v1.NodeConfig.verify(message.config); - if (error) - return "config." + error; - } - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - if (!$util.isInteger(message.initialNodeCount)) - return "initialNodeCount: integer expected"; - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - if (!$util.isString(message.selfLink)) - return "selfLink: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.instanceGroupUrls != null && message.hasOwnProperty("instanceGroupUrls")) { - if (!Array.isArray(message.instanceGroupUrls)) - return "instanceGroupUrls: array expected"; - for (var i = 0; i < message.instanceGroupUrls.length; ++i) - if (!$util.isString(message.instanceGroupUrls[i])) - return "instanceGroupUrls: string[] expected"; - } - if (message.status != null && message.hasOwnProperty("status")) - switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) { - var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); - if (error) - return "autoscaling." + error; - } - if (message.management != null && message.hasOwnProperty("management")) { - var error = $root.google.container.v1.NodeManagement.verify(message.management); - if (error) - return "management." + error; - } - if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) { - var error = $root.google.container.v1.MaxPodsConstraint.verify(message.maxPodsConstraint); - if (error) - return "maxPodsConstraint." + error; - } - if (message.conditions != null && message.hasOwnProperty("conditions")) { - if (!Array.isArray(message.conditions)) - return "conditions: array expected"; - for (var i = 0; i < message.conditions.length; ++i) { - var error = $root.google.container.v1.StatusCondition.verify(message.conditions[i]); - if (error) - return "conditions." + error; - } - } - if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) - if (!$util.isInteger(message.podIpv4CidrSize)) - return "podIpv4CidrSize: integer expected"; + */ + DailyMaintenanceWindow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) + if (!$util.isString(message.startTime)) + return "startTime: string expected"; + if (message.duration != null && message.hasOwnProperty("duration")) + if (!$util.isString(message.duration)) + return "duration: string expected"; return null; }; /** - * Creates a NodePool message from a plain object. Also converts values to their respective internal types. + * Creates a DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow */ - NodePool.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePool) + DailyMaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DailyMaintenanceWindow) return object; - var message = new $root.google.container.v1.NodePool(); - if (object.name != null) - message.name = String(object.name); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.container.v1.NodePool.config: object expected"); - message.config = $root.google.container.v1.NodeConfig.fromObject(object.config); - } - if (object.initialNodeCount != null) - message.initialNodeCount = object.initialNodeCount | 0; - if (object.selfLink != null) - message.selfLink = String(object.selfLink); - if (object.version != null) - message.version = String(object.version); - if (object.instanceGroupUrls) { - if (!Array.isArray(object.instanceGroupUrls)) - throw TypeError(".google.container.v1.NodePool.instanceGroupUrls: array expected"); - message.instanceGroupUrls = []; - for (var i = 0; i < object.instanceGroupUrls.length; ++i) - message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); - } - switch (object.status) { - case "STATUS_UNSPECIFIED": - case 0: - message.status = 0; - break; - case "PROVISIONING": - case 1: - message.status = 1; - break; - case "RUNNING": - case 2: - message.status = 2; - break; - case "RUNNING_WITH_ERROR": - case 3: - message.status = 3; - break; - case "RECONCILING": - case 4: - message.status = 4; - break; - case "STOPPING": - case 5: - message.status = 5; - break; - case "ERROR": - case 6: - message.status = 6; - break; - } - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.autoscaling != null) { - if (typeof object.autoscaling !== "object") - throw TypeError(".google.container.v1.NodePool.autoscaling: object expected"); - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); - } - if (object.management != null) { - if (typeof object.management !== "object") - throw TypeError(".google.container.v1.NodePool.management: object expected"); - message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); - } - if (object.maxPodsConstraint != null) { - if (typeof object.maxPodsConstraint !== "object") - throw TypeError(".google.container.v1.NodePool.maxPodsConstraint: object expected"); - message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.maxPodsConstraint); - } - if (object.conditions) { - if (!Array.isArray(object.conditions)) - throw TypeError(".google.container.v1.NodePool.conditions: array expected"); - message.conditions = []; - for (var i = 0; i < object.conditions.length; ++i) { - if (typeof object.conditions[i] !== "object") - throw TypeError(".google.container.v1.NodePool.conditions: object expected"); - message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); - } - } - if (object.podIpv4CidrSize != null) - message.podIpv4CidrSize = object.podIpv4CidrSize | 0; + var message = new $root.google.container.v1.DailyMaintenanceWindow(); + if (object.startTime != null) + message.startTime = String(object.startTime); + if (object.duration != null) + message.duration = String(object.duration); return message; }; /** - * Creates a plain object from a NodePool message. Also converts values to other types if specified. + * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.NodePool} message NodePool + * @param {google.container.v1.DailyMaintenanceWindow} message DailyMaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePool.toObject = function toObject(message, options) { + DailyMaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.instanceGroupUrls = []; - object.conditions = []; - } if (options.defaults) { - object.name = ""; - object.config = null; - object.initialNodeCount = 0; - object.autoscaling = null; - object.management = null; - object.maxPodsConstraint = null; - object.podIpv4CidrSize = 0; - object.selfLink = ""; - object.version = ""; - object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; - object.statusMessage = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.container.v1.NodeConfig.toObject(message.config, options); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - object.initialNodeCount = message.initialNodeCount; - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) - object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); - if (message.management != null && message.hasOwnProperty("management")) - object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); - if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) - object.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.maxPodsConstraint, options); - if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) - object.podIpv4CidrSize = message.podIpv4CidrSize; - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - object.selfLink = message.selfLink; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.instanceGroupUrls && message.instanceGroupUrls.length) { - object.instanceGroupUrls = []; - for (var j = 0; j < message.instanceGroupUrls.length; ++j) - object.instanceGroupUrls[j] = message.instanceGroupUrls[j]; - } - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.conditions && message.conditions.length) { - object.conditions = []; - for (var j = 0; j < message.conditions.length; ++j) - object.conditions[j] = $root.google.container.v1.StatusCondition.toObject(message.conditions[j], options); + object.startTime = ""; + object.duration = ""; } + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = message.startTime; + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = message.duration; return object; }; /** - * Converts this NodePool to JSON. + * Converts this DailyMaintenanceWindow to JSON. * @function toJSON - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @instance * @returns {Object.} JSON object */ - NodePool.prototype.toJSON = function toJSON() { + DailyMaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Status enum. - * @name google.container.v1.NodePool.Status - * @enum {number} - * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value - * @property {number} PROVISIONING=1 PROVISIONING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} RUNNING_WITH_ERROR=3 RUNNING_WITH_ERROR value - * @property {number} RECONCILING=4 RECONCILING value - * @property {number} STOPPING=5 STOPPING value - * @property {number} ERROR=6 ERROR value - */ - NodePool.Status = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATUS_UNSPECIFIED"] = 0; - values[valuesById[1] = "PROVISIONING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "RUNNING_WITH_ERROR"] = 3; - values[valuesById[4] = "RECONCILING"] = 4; - values[valuesById[5] = "STOPPING"] = 5; - values[valuesById[6] = "ERROR"] = 6; - return values; - })(); - - return NodePool; + return DailyMaintenanceWindow; })(); - v1.NodeManagement = (function() { + v1.SetNodePoolManagementRequest = (function() { /** - * Properties of a NodeManagement. + * Properties of a SetNodePoolManagementRequest. * @memberof google.container.v1 - * @interface INodeManagement - * @property {boolean|null} [autoUpgrade] NodeManagement autoUpgrade - * @property {boolean|null} [autoRepair] NodeManagement autoRepair - * @property {google.container.v1.IAutoUpgradeOptions|null} [upgradeOptions] NodeManagement upgradeOptions + * @interface ISetNodePoolManagementRequest + * @property {string|null} [projectId] SetNodePoolManagementRequest projectId + * @property {string|null} [zone] SetNodePoolManagementRequest zone + * @property {string|null} [clusterId] SetNodePoolManagementRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolManagementRequest nodePoolId + * @property {google.container.v1.INodeManagement|null} [management] SetNodePoolManagementRequest management + * @property {string|null} [name] SetNodePoolManagementRequest name */ /** - * Constructs a new NodeManagement. + * Constructs a new SetNodePoolManagementRequest. * @memberof google.container.v1 - * @classdesc Represents a NodeManagement. - * @implements INodeManagement + * @classdesc Represents a SetNodePoolManagementRequest. + * @implements ISetNodePoolManagementRequest * @constructor - * @param {google.container.v1.INodeManagement=} [properties] Properties to set + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set */ - function NodeManagement(properties) { + function SetNodePoolManagementRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15805,101 +20376,140 @@ } /** - * NodeManagement autoUpgrade. - * @member {boolean} autoUpgrade - * @memberof google.container.v1.NodeManagement + * SetNodePoolManagementRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - NodeManagement.prototype.autoUpgrade = false; + SetNodePoolManagementRequest.prototype.projectId = ""; /** - * NodeManagement autoRepair. - * @member {boolean} autoRepair - * @memberof google.container.v1.NodeManagement + * SetNodePoolManagementRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.zone = ""; + + /** + * SetNodePoolManagementRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.clusterId = ""; + + /** + * SetNodePoolManagementRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.nodePoolId = ""; + + /** + * SetNodePoolManagementRequest management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - NodeManagement.prototype.autoRepair = false; + SetNodePoolManagementRequest.prototype.management = null; /** - * NodeManagement upgradeOptions. - * @member {google.container.v1.IAutoUpgradeOptions|null|undefined} upgradeOptions - * @memberof google.container.v1.NodeManagement + * SetNodePoolManagementRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - NodeManagement.prototype.upgradeOptions = null; + SetNodePoolManagementRequest.prototype.name = ""; /** - * Creates a new NodeManagement instance using the specified properties. + * Creates a new SetNodePoolManagementRequest instance using the specified properties. * @function create - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.INodeManagement=} [properties] Properties to set - * @returns {google.container.v1.NodeManagement} NodeManagement instance + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest instance */ - NodeManagement.create = function create(properties) { - return new NodeManagement(properties); + SetNodePoolManagementRequest.create = function create(properties) { + return new SetNodePoolManagementRequest(properties); }; /** - * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeManagement.encode = function encode(message, writer) { + SetNodePoolManagementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); - if (message.autoRepair != null && Object.hasOwnProperty.call(message, "autoRepair")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); - if (message.upgradeOptions != null && Object.hasOwnProperty.call(message, "upgradeOptions")) - $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.management != null && Object.hasOwnProperty.call(message, "management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeManagement.encodeDelimited = function encodeDelimited(message, writer) { + SetNodePoolManagementRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeManagement message from the specified reader or buffer. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeManagement.decode = function decode(reader, length) { + SetNodePoolManagementRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodeManagement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolManagementRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.autoUpgrade = reader.bool(); + message.projectId = reader.string(); break; case 2: - message.autoRepair = reader.bool(); + message.zone = reader.string(); break; - case 10: - message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 5: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -15910,219 +20520,299 @@ }; /** - * Decodes a NodeManagement message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeManagement.decodeDelimited = function decodeDelimited(reader) { + SetNodePoolManagementRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeManagement message. + * Verifies a SetNodePoolManagementRequest message. * @function verify - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeManagement.verify = function verify(message) { + SetNodePoolManagementRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) - if (typeof message.autoUpgrade !== "boolean") - return "autoUpgrade: boolean expected"; - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) - if (typeof message.autoRepair !== "boolean") - return "autoRepair: boolean expected"; - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) { - var error = $root.google.container.v1.AutoUpgradeOptions.verify(message.upgradeOptions); + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); if (error) - return "upgradeOptions." + error; + return "management." + error; } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a NodeManagement message from a plain object. Also converts values to their respective internal types. + * Creates a SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest */ - NodeManagement.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodeManagement) + SetNodePoolManagementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolManagementRequest) return object; - var message = new $root.google.container.v1.NodeManagement(); - if (object.autoUpgrade != null) - message.autoUpgrade = Boolean(object.autoUpgrade); - if (object.autoRepair != null) - message.autoRepair = Boolean(object.autoRepair); - if (object.upgradeOptions != null) { - if (typeof object.upgradeOptions !== "object") - throw TypeError(".google.container.v1.NodeManagement.upgradeOptions: object expected"); - message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.fromObject(object.upgradeOptions); + var message = new $root.google.container.v1.SetNodePoolManagementRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); + if (object.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.SetNodePoolManagementRequest.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); } + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. + * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.NodeManagement} message NodeManagement + * @param {google.container.v1.SetNodePoolManagementRequest} message SetNodePoolManagementRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeManagement.toObject = function toObject(message, options) { + SetNodePoolManagementRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.autoUpgrade = false; - object.autoRepair = false; - object.upgradeOptions = null; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.management = null; + object.name = ""; } - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) - object.autoUpgrade = message.autoUpgrade; - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) - object.autoRepair = message.autoRepair; - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) - object.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.toObject(message.upgradeOptions, options); + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; + if (message.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NodeManagement to JSON. + * Converts this SetNodePoolManagementRequest to JSON. * @function toJSON - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance * @returns {Object.} JSON object */ - NodeManagement.prototype.toJSON = function toJSON() { + SetNodePoolManagementRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NodeManagement; + return SetNodePoolManagementRequest; })(); - v1.AutoUpgradeOptions = (function() { + v1.SetNodePoolSizeRequest = (function() { /** - * Properties of an AutoUpgradeOptions. + * Properties of a SetNodePoolSizeRequest. * @memberof google.container.v1 - * @interface IAutoUpgradeOptions - * @property {string|null} [autoUpgradeStartTime] AutoUpgradeOptions autoUpgradeStartTime - * @property {string|null} [description] AutoUpgradeOptions description + * @interface ISetNodePoolSizeRequest + * @property {string|null} [projectId] SetNodePoolSizeRequest projectId + * @property {string|null} [zone] SetNodePoolSizeRequest zone + * @property {string|null} [clusterId] SetNodePoolSizeRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolSizeRequest nodePoolId + * @property {number|null} [nodeCount] SetNodePoolSizeRequest nodeCount + * @property {string|null} [name] SetNodePoolSizeRequest name + */ + + /** + * Constructs a new SetNodePoolSizeRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNodePoolSizeRequest. + * @implements ISetNodePoolSizeRequest + * @constructor + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + */ + function SetNodePoolSizeRequest(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]]; + } + + /** + * SetNodePoolSizeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.projectId = ""; + + /** + * SetNodePoolSizeRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.zone = ""; + + /** + * SetNodePoolSizeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance */ + SetNodePoolSizeRequest.prototype.clusterId = ""; /** - * Constructs a new AutoUpgradeOptions. - * @memberof google.container.v1 - * @classdesc Represents an AutoUpgradeOptions. - * @implements IAutoUpgradeOptions - * @constructor - * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + * SetNodePoolSizeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance */ - function AutoUpgradeOptions(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]]; - } + SetNodePoolSizeRequest.prototype.nodePoolId = ""; /** - * AutoUpgradeOptions autoUpgradeStartTime. - * @member {string} autoUpgradeStartTime - * @memberof google.container.v1.AutoUpgradeOptions + * SetNodePoolSizeRequest nodeCount. + * @member {number} nodeCount + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance */ - AutoUpgradeOptions.prototype.autoUpgradeStartTime = ""; + SetNodePoolSizeRequest.prototype.nodeCount = 0; /** - * AutoUpgradeOptions description. - * @member {string} description - * @memberof google.container.v1.AutoUpgradeOptions + * SetNodePoolSizeRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance */ - AutoUpgradeOptions.prototype.description = ""; + SetNodePoolSizeRequest.prototype.name = ""; /** - * Creates a new AutoUpgradeOptions instance using the specified properties. + * Creates a new SetNodePoolSizeRequest instance using the specified properties. * @function create - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions instance + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest instance */ - AutoUpgradeOptions.create = function create(properties) { - return new AutoUpgradeOptions(properties); + SetNodePoolSizeRequest.create = function create(properties) { + return new SetNodePoolSizeRequest(properties); }; /** - * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoUpgradeOptions.encode = function encode(message, writer) { + SetNodePoolSizeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgradeStartTime != null && Object.hasOwnProperty.call(message, "autoUpgradeStartTime")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoUpgradeOptions.encodeDelimited = function encodeDelimited(message, writer) { + SetNodePoolSizeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoUpgradeOptions.decode = function decode(reader, length) { + SetNodePoolSizeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AutoUpgradeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolSizeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.autoUpgradeStartTime = reader.string(); + message.projectId = reader.string(); break; case 2: - message.description = reader.string(); + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 5: + message.nodeCount = reader.int32(); + break; + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -16133,206 +20823,280 @@ }; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoUpgradeOptions.decodeDelimited = function decodeDelimited(reader) { + SetNodePoolSizeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoUpgradeOptions message. + * Verifies a SetNodePoolSizeRequest message. * @function verify - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoUpgradeOptions.verify = function verify(message) { + SetNodePoolSizeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) - if (!$util.isString(message.autoUpgradeStartTime)) - return "autoUpgradeStartTime: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (!$util.isInteger(message.nodeCount)) + return "nodeCount: integer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest */ - AutoUpgradeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AutoUpgradeOptions) + SetNodePoolSizeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolSizeRequest) return object; - var message = new $root.google.container.v1.AutoUpgradeOptions(); - if (object.autoUpgradeStartTime != null) - message.autoUpgradeStartTime = String(object.autoUpgradeStartTime); - if (object.description != null) - message.description = String(object.description); + var message = new $root.google.container.v1.SetNodePoolSizeRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); + if (object.nodeCount != null) + message.nodeCount = object.nodeCount | 0; + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. + * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.AutoUpgradeOptions} message AutoUpgradeOptions + * @param {google.container.v1.SetNodePoolSizeRequest} message SetNodePoolSizeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoUpgradeOptions.toObject = function toObject(message, options) { + SetNodePoolSizeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.autoUpgradeStartTime = ""; - object.description = ""; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.nodeCount = 0; + object.name = ""; } - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) - object.autoUpgradeStartTime = message.autoUpgradeStartTime; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + object.nodeCount = message.nodeCount; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AutoUpgradeOptions to JSON. + * Converts this SetNodePoolSizeRequest to JSON. * @function toJSON - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance * @returns {Object.} JSON object */ - AutoUpgradeOptions.prototype.toJSON = function toJSON() { + SetNodePoolSizeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoUpgradeOptions; + return SetNodePoolSizeRequest; })(); - v1.MaintenancePolicy = (function() { + v1.RollbackNodePoolUpgradeRequest = (function() { /** - * Properties of a MaintenancePolicy. + * Properties of a RollbackNodePoolUpgradeRequest. * @memberof google.container.v1 - * @interface IMaintenancePolicy - * @property {google.container.v1.IMaintenanceWindow|null} [window] MaintenancePolicy window - * @property {string|null} [resourceVersion] MaintenancePolicy resourceVersion + * @interface IRollbackNodePoolUpgradeRequest + * @property {string|null} [projectId] RollbackNodePoolUpgradeRequest projectId + * @property {string|null} [zone] RollbackNodePoolUpgradeRequest zone + * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId + * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId + * @property {string|null} [name] RollbackNodePoolUpgradeRequest name + */ + + /** + * Constructs a new RollbackNodePoolUpgradeRequest. + * @memberof google.container.v1 + * @classdesc Represents a RollbackNodePoolUpgradeRequest. + * @implements IRollbackNodePoolUpgradeRequest + * @constructor + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + */ + function RollbackNodePoolUpgradeRequest(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]]; + } + + /** + * RollbackNodePoolUpgradeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.projectId = ""; + + /** + * RollbackNodePoolUpgradeRequest zone. + * @member {string} zone + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance */ + RollbackNodePoolUpgradeRequest.prototype.zone = ""; /** - * Constructs a new MaintenancePolicy. - * @memberof google.container.v1 - * @classdesc Represents a MaintenancePolicy. - * @implements IMaintenancePolicy - * @constructor - * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + * RollbackNodePoolUpgradeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance */ - function MaintenancePolicy(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]]; - } + RollbackNodePoolUpgradeRequest.prototype.clusterId = ""; /** - * MaintenancePolicy window. - * @member {google.container.v1.IMaintenanceWindow|null|undefined} window - * @memberof google.container.v1.MaintenancePolicy + * RollbackNodePoolUpgradeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - MaintenancePolicy.prototype.window = null; + RollbackNodePoolUpgradeRequest.prototype.nodePoolId = ""; /** - * MaintenancePolicy resourceVersion. - * @member {string} resourceVersion - * @memberof google.container.v1.MaintenancePolicy + * RollbackNodePoolUpgradeRequest name. + * @member {string} name + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - MaintenancePolicy.prototype.resourceVersion = ""; + RollbackNodePoolUpgradeRequest.prototype.name = ""; /** - * Creates a new MaintenancePolicy instance using the specified properties. + * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. * @function create - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy instance + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest instance */ - MaintenancePolicy.create = function create(properties) { - return new MaintenancePolicy(properties); + RollbackNodePoolUpgradeRequest.create = function create(properties) { + return new RollbackNodePoolUpgradeRequest(properties); }; /** - * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenancePolicy.encode = function encode(message, writer) { + RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && Object.hasOwnProperty.call(message, "window")) - $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.resourceVersion != null && Object.hasOwnProperty.call(message, "resourceVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenancePolicy.encodeDelimited = function encodeDelimited(message, writer) { + RollbackNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenancePolicy.decode = function decode(reader, length) { + RollbackNodePoolUpgradeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenancePolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); break; case 3: - message.resourceVersion = reader.string(); + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 6: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -16343,124 +21107,141 @@ }; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenancePolicy.decodeDelimited = function decodeDelimited(reader) { + RollbackNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenancePolicy message. + * Verifies a RollbackNodePoolUpgradeRequest message. * @function verify - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenancePolicy.verify = function verify(message) { + RollbackNodePoolUpgradeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.window != null && message.hasOwnProperty("window")) { - var error = $root.google.container.v1.MaintenanceWindow.verify(message.window); - if (error) - return "window." + error; - } - if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) - if (!$util.isString(message.resourceVersion)) - return "resourceVersion: string expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a MaintenancePolicy message from a plain object. Also converts values to their respective internal types. + * Creates a RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest */ - MaintenancePolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaintenancePolicy) + RollbackNodePoolUpgradeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RollbackNodePoolUpgradeRequest) return object; - var message = new $root.google.container.v1.MaintenancePolicy(); - if (object.window != null) { - if (typeof object.window !== "object") - throw TypeError(".google.container.v1.MaintenancePolicy.window: object expected"); - message.window = $root.google.container.v1.MaintenanceWindow.fromObject(object.window); - } - if (object.resourceVersion != null) - message.resourceVersion = String(object.resourceVersion); + var message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. + * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.MaintenancePolicy} message MaintenancePolicy + * @param {google.container.v1.RollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenancePolicy.toObject = function toObject(message, options) { + RollbackNodePoolUpgradeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.window = null; - object.resourceVersion = ""; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.name = ""; } - if (message.window != null && message.hasOwnProperty("window")) - object.window = $root.google.container.v1.MaintenanceWindow.toObject(message.window, options); - if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) - object.resourceVersion = message.resourceVersion; + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this MaintenancePolicy to JSON. + * Converts this RollbackNodePoolUpgradeRequest to JSON. * @function toJSON - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance * @returns {Object.} JSON object */ - MaintenancePolicy.prototype.toJSON = function toJSON() { + RollbackNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaintenancePolicy; + return RollbackNodePoolUpgradeRequest; })(); - v1.MaintenanceWindow = (function() { + v1.ListNodePoolsResponse = (function() { /** - * Properties of a MaintenanceWindow. + * Properties of a ListNodePoolsResponse. * @memberof google.container.v1 - * @interface IMaintenanceWindow - * @property {google.container.v1.IDailyMaintenanceWindow|null} [dailyMaintenanceWindow] MaintenanceWindow dailyMaintenanceWindow - * @property {google.container.v1.IRecurringTimeWindow|null} [recurringWindow] MaintenanceWindow recurringWindow - * @property {Object.|null} [maintenanceExclusions] MaintenanceWindow maintenanceExclusions + * @interface IListNodePoolsResponse + * @property {Array.|null} [nodePools] ListNodePoolsResponse nodePools */ /** - * Constructs a new MaintenanceWindow. + * Constructs a new ListNodePoolsResponse. * @memberof google.container.v1 - * @classdesc Represents a MaintenanceWindow. - * @implements IMaintenanceWindow + * @classdesc Represents a ListNodePoolsResponse. + * @implements IListNodePoolsResponse * @constructor - * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set */ - function MaintenanceWindow(properties) { - this.maintenanceExclusions = {}; + function ListNodePoolsResponse(properties) { + this.nodePools = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16468,137 +21249,78 @@ } /** - * MaintenanceWindow dailyMaintenanceWindow. - * @member {google.container.v1.IDailyMaintenanceWindow|null|undefined} dailyMaintenanceWindow - * @memberof google.container.v1.MaintenanceWindow - * @instance - */ - MaintenanceWindow.prototype.dailyMaintenanceWindow = null; - - /** - * MaintenanceWindow recurringWindow. - * @member {google.container.v1.IRecurringTimeWindow|null|undefined} recurringWindow - * @memberof google.container.v1.MaintenanceWindow - * @instance - */ - MaintenanceWindow.prototype.recurringWindow = null; - - /** - * MaintenanceWindow maintenanceExclusions. - * @member {Object.} maintenanceExclusions - * @memberof google.container.v1.MaintenanceWindow - * @instance - */ - MaintenanceWindow.prototype.maintenanceExclusions = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MaintenanceWindow policy. - * @member {"dailyMaintenanceWindow"|"recurringWindow"|undefined} policy - * @memberof google.container.v1.MaintenanceWindow + * ListNodePoolsResponse nodePools. + * @member {Array.} nodePools + * @memberof google.container.v1.ListNodePoolsResponse * @instance */ - Object.defineProperty(MaintenanceWindow.prototype, "policy", { - get: $util.oneOfGetter($oneOfFields = ["dailyMaintenanceWindow", "recurringWindow"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListNodePoolsResponse.prototype.nodePools = $util.emptyArray; /** - * Creates a new MaintenanceWindow instance using the specified properties. + * Creates a new ListNodePoolsResponse instance using the specified properties. * @function create - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow instance + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse instance */ - MaintenanceWindow.create = function create(properties) { - return new MaintenanceWindow(properties); + ListNodePoolsResponse.create = function create(properties) { + return new ListNodePoolsResponse(properties); }; /** - * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encode = function encode(message, writer) { + ListNodePoolsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dailyMaintenanceWindow != null && Object.hasOwnProperty.call(message, "dailyMaintenanceWindow")) - $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recurringWindow != null && Object.hasOwnProperty.call(message, "recurringWindow")) - $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maintenanceExclusions != null && Object.hasOwnProperty.call(message, "maintenanceExclusions")) - for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + if (message.nodePools != null && message.nodePools.length) + for (var i = 0; i < message.nodePools.length; ++i) + $root.google.container.v1.NodePool.encode(message.nodePools[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + ListNodePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decode = function decode(reader, length) { + ListNodePoolsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenanceWindow(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListNodePoolsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); - break; - case 3: - message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); - break; - case 4: - if (message.maintenanceExclusions === $util.emptyObject) - message.maintenanceExclusions = {}; - 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.container.v1.TimeWindow.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.maintenanceExclusions[key] = value; + case 1: + if (!(message.nodePools && message.nodePools.length)) + message.nodePools = []; + message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -16609,166 +21331,129 @@ }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + ListNodePoolsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenanceWindow message. + * Verifies a ListNodePoolsResponse message. * @function verify - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenanceWindow.verify = function verify(message) { + ListNodePoolsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { - properties.policy = 1; - { - var error = $root.google.container.v1.DailyMaintenanceWindow.verify(message.dailyMaintenanceWindow); - if (error) - return "dailyMaintenanceWindow." + error; - } - } - if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { - if (properties.policy === 1) - return "policy: multiple values"; - properties.policy = 1; - { - var error = $root.google.container.v1.RecurringTimeWindow.verify(message.recurringWindow); - if (error) - return "recurringWindow." + error; - } - } - if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) { - if (!$util.isObject(message.maintenanceExclusions)) - return "maintenanceExclusions: object expected"; - var key = Object.keys(message.maintenanceExclusions); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.container.v1.TimeWindow.verify(message.maintenanceExclusions[key[i]]); + if (message.nodePools != null && message.hasOwnProperty("nodePools")) { + if (!Array.isArray(message.nodePools)) + return "nodePools: array expected"; + for (var i = 0; i < message.nodePools.length; ++i) { + var error = $root.google.container.v1.NodePool.verify(message.nodePools[i]); if (error) - return "maintenanceExclusions." + error; + return "nodePools." + error; } } return null; }; /** - * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse */ - MaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaintenanceWindow) + ListNodePoolsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsResponse) return object; - var message = new $root.google.container.v1.MaintenanceWindow(); - if (object.dailyMaintenanceWindow != null) { - if (typeof object.dailyMaintenanceWindow !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.dailyMaintenanceWindow: object expected"); - message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.fromObject(object.dailyMaintenanceWindow); - } - if (object.recurringWindow != null) { - if (typeof object.recurringWindow !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.recurringWindow: object expected"); - message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.fromObject(object.recurringWindow); - } - if (object.maintenanceExclusions) { - if (typeof object.maintenanceExclusions !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); - message.maintenanceExclusions = {}; - for (var keys = Object.keys(object.maintenanceExclusions), i = 0; i < keys.length; ++i) { - if (typeof object.maintenanceExclusions[keys[i]] !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); - message.maintenanceExclusions[keys[i]] = $root.google.container.v1.TimeWindow.fromObject(object.maintenanceExclusions[keys[i]]); + var message = new $root.google.container.v1.ListNodePoolsResponse(); + if (object.nodePools) { + if (!Array.isArray(object.nodePools)) + throw TypeError(".google.container.v1.ListNodePoolsResponse.nodePools: array expected"); + message.nodePools = []; + for (var i = 0; i < object.nodePools.length; ++i) { + if (typeof object.nodePools[i] !== "object") + throw TypeError(".google.container.v1.ListNodePoolsResponse.nodePools: object expected"); + message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); } } return message; }; /** - * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.MaintenanceWindow} message MaintenanceWindow + * @param {google.container.v1.ListNodePoolsResponse} message ListNodePoolsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenanceWindow.toObject = function toObject(message, options) { + ListNodePoolsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.maintenanceExclusions = {}; - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { - object.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.toObject(message.dailyMaintenanceWindow, options); - if (options.oneofs) - object.policy = "dailyMaintenanceWindow"; - } - if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { - object.recurringWindow = $root.google.container.v1.RecurringTimeWindow.toObject(message.recurringWindow, options); - if (options.oneofs) - object.policy = "recurringWindow"; - } - var keys2; - if (message.maintenanceExclusions && (keys2 = Object.keys(message.maintenanceExclusions)).length) { - object.maintenanceExclusions = {}; - for (var j = 0; j < keys2.length; ++j) - object.maintenanceExclusions[keys2[j]] = $root.google.container.v1.TimeWindow.toObject(message.maintenanceExclusions[keys2[j]], options); + if (options.arrays || options.defaults) + object.nodePools = []; + if (message.nodePools && message.nodePools.length) { + object.nodePools = []; + for (var j = 0; j < message.nodePools.length; ++j) + object.nodePools[j] = $root.google.container.v1.NodePool.toObject(message.nodePools[j], options); } return object; }; /** - * Converts this MaintenanceWindow to JSON. + * Converts this ListNodePoolsResponse to JSON. * @function toJSON - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @instance * @returns {Object.} JSON object */ - MaintenanceWindow.prototype.toJSON = function toJSON() { + ListNodePoolsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaintenanceWindow; + return ListNodePoolsResponse; })(); - v1.TimeWindow = (function() { + v1.ClusterAutoscaling = (function() { /** - * Properties of a TimeWindow. + * Properties of a ClusterAutoscaling. * @memberof google.container.v1 - * @interface ITimeWindow - * @property {google.protobuf.ITimestamp|null} [startTime] TimeWindow startTime - * @property {google.protobuf.ITimestamp|null} [endTime] TimeWindow endTime + * @interface IClusterAutoscaling + * @property {boolean|null} [enableNodeAutoprovisioning] ClusterAutoscaling enableNodeAutoprovisioning + * @property {Array.|null} [resourceLimits] ClusterAutoscaling resourceLimits + * @property {google.container.v1.IAutoprovisioningNodePoolDefaults|null} [autoprovisioningNodePoolDefaults] ClusterAutoscaling autoprovisioningNodePoolDefaults + * @property {Array.|null} [autoprovisioningLocations] ClusterAutoscaling autoprovisioningLocations */ /** - * Constructs a new TimeWindow. + * Constructs a new ClusterAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a TimeWindow. - * @implements ITimeWindow + * @classdesc Represents a ClusterAutoscaling. + * @implements IClusterAutoscaling * @constructor - * @param {google.container.v1.ITimeWindow=} [properties] Properties to set + * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set */ - function TimeWindow(properties) { + function ClusterAutoscaling(properties) { + this.resourceLimits = []; + this.autoprovisioningLocations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16776,88 +21461,120 @@ } /** - * TimeWindow startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.container.v1.TimeWindow + * ClusterAutoscaling enableNodeAutoprovisioning. + * @member {boolean} enableNodeAutoprovisioning + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - TimeWindow.prototype.startTime = null; + ClusterAutoscaling.prototype.enableNodeAutoprovisioning = false; + + /** + * ClusterAutoscaling resourceLimits. + * @member {Array.} resourceLimits + * @memberof google.container.v1.ClusterAutoscaling + * @instance + */ + ClusterAutoscaling.prototype.resourceLimits = $util.emptyArray; + + /** + * ClusterAutoscaling autoprovisioningNodePoolDefaults. + * @member {google.container.v1.IAutoprovisioningNodePoolDefaults|null|undefined} autoprovisioningNodePoolDefaults + * @memberof google.container.v1.ClusterAutoscaling + * @instance + */ + ClusterAutoscaling.prototype.autoprovisioningNodePoolDefaults = null; /** - * TimeWindow endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.container.v1.TimeWindow + * ClusterAutoscaling autoprovisioningLocations. + * @member {Array.} autoprovisioningLocations + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - TimeWindow.prototype.endTime = null; + ClusterAutoscaling.prototype.autoprovisioningLocations = $util.emptyArray; /** - * Creates a new TimeWindow instance using the specified properties. + * Creates a new ClusterAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.ITimeWindow=} [properties] Properties to set - * @returns {google.container.v1.TimeWindow} TimeWindow instance + * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling instance */ - TimeWindow.create = function create(properties) { - return new TimeWindow(properties); + ClusterAutoscaling.create = function create(properties) { + return new ClusterAutoscaling(properties); }; /** - * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. + * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode + * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeWindow.encode = function encode(message, writer) { + ClusterAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.enableNodeAutoprovisioning != null && Object.hasOwnProperty.call(message, "enableNodeAutoprovisioning")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); + if (message.resourceLimits != null && message.resourceLimits.length) + for (var i = 0; i < message.resourceLimits.length; ++i) + $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) + $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) + for (var i = 0; i < message.autoprovisioningLocations.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.autoprovisioningLocations[i]); return writer; }; /** - * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. + * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode + * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeWindow.encodeDelimited = function encodeDelimited(message, writer) { + ClusterAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimeWindow message from the specified reader or buffer. + * Decodes a ClusterAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.TimeWindow} TimeWindow + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeWindow.decode = function decode(reader, length) { + ClusterAutoscaling.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.TimeWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClusterAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.enableNodeAutoprovisioning = reader.bool(); break; case 2: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.resourceLimits && message.resourceLimits.length)) + message.resourceLimits = []; + message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); + break; + case 4: + message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.autoprovisioningLocations && message.autoprovisioningLocations.length)) + message.autoprovisioningLocations = []; + message.autoprovisioningLocations.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -16868,216 +21585,360 @@ }; /** - * Decodes a TimeWindow message from the specified reader or buffer, length delimited. + * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.TimeWindow} TimeWindow + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeWindow.decodeDelimited = function decodeDelimited(reader) { + ClusterAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimeWindow message. + * Verifies a ClusterAutoscaling message. * @function verify - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeWindow.verify = function verify(message) { + ClusterAutoscaling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + if (typeof message.enableNodeAutoprovisioning !== "boolean") + return "enableNodeAutoprovisioning: boolean expected"; + if (message.resourceLimits != null && message.hasOwnProperty("resourceLimits")) { + if (!Array.isArray(message.resourceLimits)) + return "resourceLimits: array expected"; + for (var i = 0; i < message.resourceLimits.length; ++i) { + var error = $root.google.container.v1.ResourceLimit.verify(message.resourceLimits[i]); + if (error) + return "resourceLimits." + error; + } } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) { + var error = $root.google.container.v1.AutoprovisioningNodePoolDefaults.verify(message.autoprovisioningNodePoolDefaults); if (error) - return "endTime." + error; + return "autoprovisioningNodePoolDefaults." + error; + } + if (message.autoprovisioningLocations != null && message.hasOwnProperty("autoprovisioningLocations")) { + if (!Array.isArray(message.autoprovisioningLocations)) + return "autoprovisioningLocations: array expected"; + for (var i = 0; i < message.autoprovisioningLocations.length; ++i) + if (!$util.isString(message.autoprovisioningLocations[i])) + return "autoprovisioningLocations: string[] expected"; } return null; }; /** - * Creates a TimeWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ClusterAutoscaling message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {Object.} object Plain object - * @returns {google.container.v1.TimeWindow} TimeWindow + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling */ - TimeWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.TimeWindow) + ClusterAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ClusterAutoscaling) return object; - var message = new $root.google.container.v1.TimeWindow(); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.container.v1.TimeWindow.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + var message = new $root.google.container.v1.ClusterAutoscaling(); + if (object.enableNodeAutoprovisioning != null) + message.enableNodeAutoprovisioning = Boolean(object.enableNodeAutoprovisioning); + if (object.resourceLimits) { + if (!Array.isArray(object.resourceLimits)) + throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: array expected"); + message.resourceLimits = []; + for (var i = 0; i < object.resourceLimits.length; ++i) { + if (typeof object.resourceLimits[i] !== "object") + throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: object expected"); + message.resourceLimits[i] = $root.google.container.v1.ResourceLimit.fromObject(object.resourceLimits[i]); + } } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.container.v1.TimeWindow.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.autoprovisioningNodePoolDefaults != null) { + if (typeof object.autoprovisioningNodePoolDefaults !== "object") + throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningNodePoolDefaults: object expected"); + message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.fromObject(object.autoprovisioningNodePoolDefaults); + } + if (object.autoprovisioningLocations) { + if (!Array.isArray(object.autoprovisioningLocations)) + throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningLocations: array expected"); + message.autoprovisioningLocations = []; + for (var i = 0; i < object.autoprovisioningLocations.length; ++i) + message.autoprovisioningLocations[i] = String(object.autoprovisioningLocations[i]); } return message; }; /** - * Creates a plain object from a TimeWindow message. Also converts values to other types if specified. + * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.TimeWindow} message TimeWindow + * @param {google.container.v1.ClusterAutoscaling} message ClusterAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeWindow.toObject = function toObject(message, options) { + ClusterAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.resourceLimits = []; + object.autoprovisioningLocations = []; + } if (options.defaults) { - object.startTime = null; - object.endTime = null; + object.enableNodeAutoprovisioning = false; + object.autoprovisioningNodePoolDefaults = null; + } + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + object.enableNodeAutoprovisioning = message.enableNodeAutoprovisioning; + if (message.resourceLimits && message.resourceLimits.length) { + object.resourceLimits = []; + for (var j = 0; j < message.resourceLimits.length; ++j) + object.resourceLimits[j] = $root.google.container.v1.ResourceLimit.toObject(message.resourceLimits[j], options); + } + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) + object.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.toObject(message.autoprovisioningNodePoolDefaults, options); + if (message.autoprovisioningLocations && message.autoprovisioningLocations.length) { + object.autoprovisioningLocations = []; + for (var j = 0; j < message.autoprovisioningLocations.length; ++j) + object.autoprovisioningLocations[j] = message.autoprovisioningLocations[j]; } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this TimeWindow to JSON. + * Converts this ClusterAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @instance * @returns {Object.} JSON object */ - TimeWindow.prototype.toJSON = function toJSON() { + ClusterAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TimeWindow; + return ClusterAutoscaling; })(); - v1.RecurringTimeWindow = (function() { + v1.AutoprovisioningNodePoolDefaults = (function() { + + /** + * Properties of an AutoprovisioningNodePoolDefaults. + * @memberof google.container.v1 + * @interface IAutoprovisioningNodePoolDefaults + * @property {Array.|null} [oauthScopes] AutoprovisioningNodePoolDefaults oauthScopes + * @property {string|null} [serviceAccount] AutoprovisioningNodePoolDefaults serviceAccount + * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] AutoprovisioningNodePoolDefaults upgradeSettings + * @property {google.container.v1.INodeManagement|null} [management] AutoprovisioningNodePoolDefaults management + * @property {string|null} [minCpuPlatform] AutoprovisioningNodePoolDefaults minCpuPlatform + * @property {number|null} [diskSizeGb] AutoprovisioningNodePoolDefaults diskSizeGb + * @property {string|null} [diskType] AutoprovisioningNodePoolDefaults diskType + * @property {google.container.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] AutoprovisioningNodePoolDefaults shieldedInstanceConfig + * @property {string|null} [bootDiskKmsKey] AutoprovisioningNodePoolDefaults bootDiskKmsKey + */ + + /** + * Constructs a new AutoprovisioningNodePoolDefaults. + * @memberof google.container.v1 + * @classdesc Represents an AutoprovisioningNodePoolDefaults. + * @implements IAutoprovisioningNodePoolDefaults + * @constructor + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set + */ + function AutoprovisioningNodePoolDefaults(properties) { + this.oauthScopes = []; + 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]]; + } + + /** + * AutoprovisioningNodePoolDefaults oauthScopes. + * @member {Array.} oauthScopes + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.oauthScopes = $util.emptyArray; + + /** + * AutoprovisioningNodePoolDefaults serviceAccount. + * @member {string} serviceAccount + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.serviceAccount = ""; + + /** + * AutoprovisioningNodePoolDefaults upgradeSettings. + * @member {google.container.v1.NodePool.IUpgradeSettings|null|undefined} upgradeSettings + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.upgradeSettings = null; + + /** + * AutoprovisioningNodePoolDefaults management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.management = null; + + /** + * AutoprovisioningNodePoolDefaults minCpuPlatform. + * @member {string} minCpuPlatform + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.minCpuPlatform = ""; /** - * Properties of a RecurringTimeWindow. - * @memberof google.container.v1 - * @interface IRecurringTimeWindow - * @property {google.container.v1.ITimeWindow|null} [window] RecurringTimeWindow window - * @property {string|null} [recurrence] RecurringTimeWindow recurrence + * AutoprovisioningNodePoolDefaults diskSizeGb. + * @member {number} diskSizeGb + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance */ + AutoprovisioningNodePoolDefaults.prototype.diskSizeGb = 0; /** - * Constructs a new RecurringTimeWindow. - * @memberof google.container.v1 - * @classdesc Represents a RecurringTimeWindow. - * @implements IRecurringTimeWindow - * @constructor - * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set + * AutoprovisioningNodePoolDefaults diskType. + * @member {string} diskType + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance */ - function RecurringTimeWindow(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]]; - } + AutoprovisioningNodePoolDefaults.prototype.diskType = ""; /** - * RecurringTimeWindow window. - * @member {google.container.v1.ITimeWindow|null|undefined} window - * @memberof google.container.v1.RecurringTimeWindow + * AutoprovisioningNodePoolDefaults shieldedInstanceConfig. + * @member {google.container.v1.IShieldedInstanceConfig|null|undefined} shieldedInstanceConfig + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance */ - RecurringTimeWindow.prototype.window = null; + AutoprovisioningNodePoolDefaults.prototype.shieldedInstanceConfig = null; /** - * RecurringTimeWindow recurrence. - * @member {string} recurrence - * @memberof google.container.v1.RecurringTimeWindow + * AutoprovisioningNodePoolDefaults bootDiskKmsKey. + * @member {string} bootDiskKmsKey + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance */ - RecurringTimeWindow.prototype.recurrence = ""; + AutoprovisioningNodePoolDefaults.prototype.bootDiskKmsKey = ""; /** - * Creates a new RecurringTimeWindow instance using the specified properties. + * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. * @function create - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow instance + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults instance */ - RecurringTimeWindow.create = function create(properties) { - return new RecurringTimeWindow(properties); + AutoprovisioningNodePoolDefaults.create = function create(properties) { + return new AutoprovisioningNodePoolDefaults(properties); }; /** - * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. + * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. * @function encode - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecurringTimeWindow.encode = function encode(message, writer) { + AutoprovisioningNodePoolDefaults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && Object.hasOwnProperty.call(message, "window")) - $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); + if (message.oauthScopes != null && message.oauthScopes.length) + for (var i = 0; i < message.oauthScopes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); + if (message.upgradeSettings != null && Object.hasOwnProperty.call(message, "upgradeSettings")) + $root.google.container.v1.NodePool.UpgradeSettings.encode(message.upgradeSettings, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.management != null && Object.hasOwnProperty.call(message, "management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.minCpuPlatform); + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.diskSizeGb); + if (message.diskType != null && Object.hasOwnProperty.call(message, "diskType")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.diskType); + if (message.shieldedInstanceConfig != null && Object.hasOwnProperty.call(message, "shieldedInstanceConfig")) + $root.google.container.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.bootDiskKmsKey != null && Object.hasOwnProperty.call(message, "bootDiskKmsKey")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.bootDiskKmsKey); return writer; }; /** - * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. + * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecurringTimeWindow.encodeDelimited = function encodeDelimited(message, writer) { + AutoprovisioningNodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecurringTimeWindow message from the specified reader or buffer. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecurringTimeWindow.decode = function decode(reader, length) { + AutoprovisioningNodePoolDefaults.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RecurringTimeWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.window = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); break; case 2: - message.recurrence = reader.string(); + message.serviceAccount = reader.string(); + break; + case 3: + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); + break; + case 4: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 5: + message.minCpuPlatform = reader.string(); + break; + case 6: + message.diskSizeGb = reader.int32(); + break; + case 7: + message.diskType = reader.string(); + break; + case 8: + message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32()); + break; + case 9: + message.bootDiskKmsKey = reader.string(); break; default: reader.skipType(tag & 7); @@ -17088,122 +21949,202 @@ }; /** - * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecurringTimeWindow.decodeDelimited = function decodeDelimited(reader) { + AutoprovisioningNodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecurringTimeWindow message. + * Verifies an AutoprovisioningNodePoolDefaults message. * @function verify - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecurringTimeWindow.verify = function verify(message) { + AutoprovisioningNodePoolDefaults.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.window != null && message.hasOwnProperty("window")) { - var error = $root.google.container.v1.TimeWindow.verify(message.window); + if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { + if (!Array.isArray(message.oauthScopes)) + return "oauthScopes: array expected"; + for (var i = 0; i < message.oauthScopes.length; ++i) + if (!$util.isString(message.oauthScopes[i])) + return "oauthScopes: string[] expected"; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) { + var error = $root.google.container.v1.NodePool.UpgradeSettings.verify(message.upgradeSettings); if (error) - return "window." + error; + return "upgradeSettings." + error; } - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - if (!$util.isString(message.recurrence)) - return "recurrence: string expected"; + if (message.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; + } + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + if (!$util.isString(message.minCpuPlatform)) + return "minCpuPlatform: string expected"; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (!$util.isInteger(message.diskSizeGb)) + return "diskSizeGb: integer expected"; + if (message.diskType != null && message.hasOwnProperty("diskType")) + if (!$util.isString(message.diskType)) + return "diskType: string expected"; + if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) { + var error = $root.google.container.v1.ShieldedInstanceConfig.verify(message.shieldedInstanceConfig); + if (error) + return "shieldedInstanceConfig." + error; + } + if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) + if (!$util.isString(message.bootDiskKmsKey)) + return "bootDiskKmsKey: string expected"; return null; }; /** - * Creates a RecurringTimeWindow message from a plain object. Also converts values to their respective internal types. + * Creates an AutoprovisioningNodePoolDefaults message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {Object.} object Plain object - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults */ - RecurringTimeWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.RecurringTimeWindow) + AutoprovisioningNodePoolDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AutoprovisioningNodePoolDefaults) return object; - var message = new $root.google.container.v1.RecurringTimeWindow(); - if (object.window != null) { - if (typeof object.window !== "object") - throw TypeError(".google.container.v1.RecurringTimeWindow.window: object expected"); - message.window = $root.google.container.v1.TimeWindow.fromObject(object.window); + var message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); + if (object.oauthScopes) { + if (!Array.isArray(object.oauthScopes)) + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.oauthScopes: array expected"); + message.oauthScopes = []; + for (var i = 0; i < object.oauthScopes.length; ++i) + message.oauthScopes[i] = String(object.oauthScopes[i]); } - if (object.recurrence != null) - message.recurrence = String(object.recurrence); + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.upgradeSettings != null) { + if (typeof object.upgradeSettings !== "object") + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.upgradeSettings: object expected"); + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); + } + if (object.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + } + if (object.minCpuPlatform != null) + message.minCpuPlatform = String(object.minCpuPlatform); + if (object.diskSizeGb != null) + message.diskSizeGb = object.diskSizeGb | 0; + if (object.diskType != null) + message.diskType = String(object.diskType); + if (object.shieldedInstanceConfig != null) { + if (typeof object.shieldedInstanceConfig !== "object") + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.shieldedInstanceConfig: object expected"); + message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.fromObject(object.shieldedInstanceConfig); + } + if (object.bootDiskKmsKey != null) + message.bootDiskKmsKey = String(object.bootDiskKmsKey); return message; }; /** - * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified. + * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.RecurringTimeWindow} message RecurringTimeWindow + * @param {google.container.v1.AutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecurringTimeWindow.toObject = function toObject(message, options) { + AutoprovisioningNodePoolDefaults.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.oauthScopes = []; if (options.defaults) { - object.window = null; - object.recurrence = ""; + object.serviceAccount = ""; + object.upgradeSettings = null; + object.management = null; + object.minCpuPlatform = ""; + object.diskSizeGb = 0; + object.diskType = ""; + object.shieldedInstanceConfig = null; + object.bootDiskKmsKey = ""; } - if (message.window != null && message.hasOwnProperty("window")) - object.window = $root.google.container.v1.TimeWindow.toObject(message.window, options); - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - object.recurrence = message.recurrence; + if (message.oauthScopes && message.oauthScopes.length) { + object.oauthScopes = []; + for (var j = 0; j < message.oauthScopes.length; ++j) + object.oauthScopes[j] = message.oauthScopes[j]; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) + object.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.toObject(message.upgradeSettings, options); + if (message.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + object.minCpuPlatform = message.minCpuPlatform; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + object.diskSizeGb = message.diskSizeGb; + if (message.diskType != null && message.hasOwnProperty("diskType")) + object.diskType = message.diskType; + if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) + object.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.toObject(message.shieldedInstanceConfig, options); + if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) + object.bootDiskKmsKey = message.bootDiskKmsKey; return object; }; /** - * Converts this RecurringTimeWindow to JSON. + * Converts this AutoprovisioningNodePoolDefaults to JSON. * @function toJSON - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance * @returns {Object.} JSON object */ - RecurringTimeWindow.prototype.toJSON = function toJSON() { + AutoprovisioningNodePoolDefaults.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RecurringTimeWindow; + return AutoprovisioningNodePoolDefaults; })(); - v1.DailyMaintenanceWindow = (function() { + v1.ResourceLimit = (function() { /** - * Properties of a DailyMaintenanceWindow. + * Properties of a ResourceLimit. * @memberof google.container.v1 - * @interface IDailyMaintenanceWindow - * @property {string|null} [startTime] DailyMaintenanceWindow startTime - * @property {string|null} [duration] DailyMaintenanceWindow duration + * @interface IResourceLimit + * @property {string|null} [resourceType] ResourceLimit resourceType + * @property {number|Long|null} [minimum] ResourceLimit minimum + * @property {number|Long|null} [maximum] ResourceLimit maximum */ /** - * Constructs a new DailyMaintenanceWindow. + * Constructs a new ResourceLimit. * @memberof google.container.v1 - * @classdesc Represents a DailyMaintenanceWindow. - * @implements IDailyMaintenanceWindow + * @classdesc Represents a ResourceLimit. + * @implements IResourceLimit * @constructor - * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + * @param {google.container.v1.IResourceLimit=} [properties] Properties to set */ - function DailyMaintenanceWindow(properties) { + function ResourceLimit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17211,88 +22152,101 @@ } /** - * DailyMaintenanceWindow startTime. - * @member {string} startTime - * @memberof google.container.v1.DailyMaintenanceWindow + * ResourceLimit resourceType. + * @member {string} resourceType + * @memberof google.container.v1.ResourceLimit * @instance */ - DailyMaintenanceWindow.prototype.startTime = ""; + ResourceLimit.prototype.resourceType = ""; /** - * DailyMaintenanceWindow duration. - * @member {string} duration - * @memberof google.container.v1.DailyMaintenanceWindow + * ResourceLimit minimum. + * @member {number|Long} minimum + * @memberof google.container.v1.ResourceLimit * @instance */ - DailyMaintenanceWindow.prototype.duration = ""; + ResourceLimit.prototype.minimum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new DailyMaintenanceWindow instance using the specified properties. + * ResourceLimit maximum. + * @member {number|Long} maximum + * @memberof google.container.v1.ResourceLimit + * @instance + */ + ResourceLimit.prototype.maximum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ResourceLimit instance using the specified properties. * @function create - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow instance + * @param {google.container.v1.IResourceLimit=} [properties] Properties to set + * @returns {google.container.v1.ResourceLimit} ResourceLimit instance */ - DailyMaintenanceWindow.create = function create(properties) { - return new DailyMaintenanceWindow(properties); + ResourceLimit.create = function create(properties) { + return new ResourceLimit(properties); }; /** - * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. * @function encode - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailyMaintenanceWindow.encode = function encode(message, writer) { + ResourceLimit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); + if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); + if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); return writer; }; /** - * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailyMaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + ResourceLimit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. + * Decodes a ResourceLimit message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.ResourceLimit} ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailyMaintenanceWindow.decode = function decode(reader, length) { + ResourceLimit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DailyMaintenanceWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceLimit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.resourceType = reader.string(); + break; case 2: - message.startTime = reader.string(); + message.minimum = reader.int64(); break; case 3: - message.duration = reader.string(); + message.maximum = reader.int64(); break; default: reader.skipType(tag & 7); @@ -17303,121 +22257,155 @@ }; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.ResourceLimit} ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailyMaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + ResourceLimit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DailyMaintenanceWindow message. + * Verifies a ResourceLimit message. * @function verify - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DailyMaintenanceWindow.verify = function verify(message) { + ResourceLimit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) - if (!$util.isString(message.startTime)) - return "startTime: string expected"; - if (message.duration != null && message.hasOwnProperty("duration")) - if (!$util.isString(message.duration)) - return "duration: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (!$util.isString(message.resourceType)) + return "resourceType: string expected"; + if (message.minimum != null && message.hasOwnProperty("minimum")) + if (!$util.isInteger(message.minimum) && !(message.minimum && $util.isInteger(message.minimum.low) && $util.isInteger(message.minimum.high))) + return "minimum: integer|Long expected"; + if (message.maximum != null && message.hasOwnProperty("maximum")) + if (!$util.isInteger(message.maximum) && !(message.maximum && $util.isInteger(message.maximum.low) && $util.isInteger(message.maximum.high))) + return "maximum: integer|Long expected"; return null; }; /** - * Creates a DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * Creates a ResourceLimit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.ResourceLimit} ResourceLimit */ - DailyMaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DailyMaintenanceWindow) + ResourceLimit.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceLimit) return object; - var message = new $root.google.container.v1.DailyMaintenanceWindow(); - if (object.startTime != null) - message.startTime = String(object.startTime); - if (object.duration != null) - message.duration = String(object.duration); + var message = new $root.google.container.v1.ResourceLimit(); + if (object.resourceType != null) + message.resourceType = String(object.resourceType); + if (object.minimum != null) + if ($util.Long) + (message.minimum = $util.Long.fromValue(object.minimum)).unsigned = false; + else if (typeof object.minimum === "string") + message.minimum = parseInt(object.minimum, 10); + else if (typeof object.minimum === "number") + message.minimum = object.minimum; + else if (typeof object.minimum === "object") + message.minimum = new $util.LongBits(object.minimum.low >>> 0, object.minimum.high >>> 0).toNumber(); + if (object.maximum != null) + if ($util.Long) + (message.maximum = $util.Long.fromValue(object.maximum)).unsigned = false; + else if (typeof object.maximum === "string") + message.maximum = parseInt(object.maximum, 10); + else if (typeof object.maximum === "number") + message.maximum = object.maximum; + else if (typeof object.maximum === "object") + message.maximum = new $util.LongBits(object.maximum.low >>> 0, object.maximum.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.DailyMaintenanceWindow} message DailyMaintenanceWindow + * @param {google.container.v1.ResourceLimit} message ResourceLimit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DailyMaintenanceWindow.toObject = function toObject(message, options) { + ResourceLimit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.startTime = ""; - object.duration = ""; + object.resourceType = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minimum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minimum = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maximum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maximum = options.longs === String ? "0" : 0; } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = message.startTime; - if (message.duration != null && message.hasOwnProperty("duration")) - object.duration = message.duration; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = message.resourceType; + if (message.minimum != null && message.hasOwnProperty("minimum")) + if (typeof message.minimum === "number") + object.minimum = options.longs === String ? String(message.minimum) : message.minimum; + else + object.minimum = options.longs === String ? $util.Long.prototype.toString.call(message.minimum) : options.longs === Number ? new $util.LongBits(message.minimum.low >>> 0, message.minimum.high >>> 0).toNumber() : message.minimum; + if (message.maximum != null && message.hasOwnProperty("maximum")) + if (typeof message.maximum === "number") + object.maximum = options.longs === String ? String(message.maximum) : message.maximum; + else + object.maximum = options.longs === String ? $util.Long.prototype.toString.call(message.maximum) : options.longs === Number ? new $util.LongBits(message.maximum.low >>> 0, message.maximum.high >>> 0).toNumber() : message.maximum; return object; }; /** - * Converts this DailyMaintenanceWindow to JSON. + * Converts this ResourceLimit to JSON. * @function toJSON - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @instance * @returns {Object.} JSON object */ - DailyMaintenanceWindow.prototype.toJSON = function toJSON() { + ResourceLimit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DailyMaintenanceWindow; + return ResourceLimit; })(); - v1.SetNodePoolManagementRequest = (function() { + v1.NodePoolAutoscaling = (function() { /** - * Properties of a SetNodePoolManagementRequest. + * Properties of a NodePoolAutoscaling. * @memberof google.container.v1 - * @interface ISetNodePoolManagementRequest - * @property {string|null} [projectId] SetNodePoolManagementRequest projectId - * @property {string|null} [zone] SetNodePoolManagementRequest zone - * @property {string|null} [clusterId] SetNodePoolManagementRequest clusterId - * @property {string|null} [nodePoolId] SetNodePoolManagementRequest nodePoolId - * @property {google.container.v1.INodeManagement|null} [management] SetNodePoolManagementRequest management - * @property {string|null} [name] SetNodePoolManagementRequest name + * @interface INodePoolAutoscaling + * @property {boolean|null} [enabled] NodePoolAutoscaling enabled + * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount + * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount + * @property {boolean|null} [autoprovisioned] NodePoolAutoscaling autoprovisioned */ /** - * Constructs a new SetNodePoolManagementRequest. + * Constructs a new NodePoolAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolManagementRequest. - * @implements ISetNodePoolManagementRequest + * @classdesc Represents a NodePoolAutoscaling. + * @implements INodePoolAutoscaling * @constructor - * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set */ - function SetNodePoolManagementRequest(properties) { + function NodePoolAutoscaling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17425,140 +22413,114 @@ } /** - * SetNodePoolManagementRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetNodePoolManagementRequest - * @instance - */ - SetNodePoolManagementRequest.prototype.projectId = ""; - - /** - * SetNodePoolManagementRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetNodePoolManagementRequest - * @instance - */ - SetNodePoolManagementRequest.prototype.zone = ""; - - /** - * SetNodePoolManagementRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.clusterId = ""; + NodePoolAutoscaling.prototype.enabled = false; /** - * SetNodePoolManagementRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling minNodeCount. + * @member {number} minNodeCount + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.nodePoolId = ""; + NodePoolAutoscaling.prototype.minNodeCount = 0; /** - * SetNodePoolManagementRequest management. - * @member {google.container.v1.INodeManagement|null|undefined} management - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling maxNodeCount. + * @member {number} maxNodeCount + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.management = null; + NodePoolAutoscaling.prototype.maxNodeCount = 0; /** - * SetNodePoolManagementRequest name. - * @member {string} name - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling autoprovisioned. + * @member {boolean} autoprovisioned + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.name = ""; + NodePoolAutoscaling.prototype.autoprovisioned = false; /** - * Creates a new SetNodePoolManagementRequest instance using the specified properties. + * Creates a new NodePoolAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest instance + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling instance */ - SetNodePoolManagementRequest.create = function create(properties) { - return new SetNodePoolManagementRequest(properties); + NodePoolAutoscaling.create = function create(properties) { + return new NodePoolAutoscaling(properties); }; /** - * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolManagementRequest.encode = function encode(message, writer) { + NodePoolAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.management != null && Object.hasOwnProperty.call(message, "management")) - $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); + if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); + if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); return writer; }; /** - * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolManagementRequest.encodeDelimited = function encodeDelimited(message, writer) { + NodePoolAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolManagementRequest.decode = function decode(reader, length) { + NodePoolAutoscaling.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolManagementRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.enabled = reader.bool(); break; case 2: - message.zone = reader.string(); + message.minNodeCount = reader.int32(); break; case 3: - message.clusterId = reader.string(); + message.maxNodeCount = reader.int32(); break; case 4: - message.nodePoolId = reader.string(); - break; - case 5: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); - break; - case 7: - message.name = reader.string(); + message.autoprovisioned = reader.bool(); break; default: reader.skipType(tag & 7); @@ -17569,158 +22531,138 @@ }; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolManagementRequest.decodeDelimited = function decodeDelimited(reader) { + NodePoolAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolManagementRequest message. + * Verifies a NodePoolAutoscaling message. * @function verify - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNodePoolManagementRequest.verify = function verify(message) { + NodePoolAutoscaling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - if (!$util.isString(message.nodePoolId)) - return "nodePoolId: string expected"; - if (message.management != null && message.hasOwnProperty("management")) { - var error = $root.google.container.v1.NodeManagement.verify(message.management); - if (error) - return "management." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (!$util.isInteger(message.minNodeCount)) + return "minNodeCount: integer expected"; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (!$util.isInteger(message.maxNodeCount)) + return "maxNodeCount: integer expected"; + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + if (typeof message.autoprovisioned !== "boolean") + return "autoprovisioned: boolean expected"; return null; }; /** - * Creates a SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling */ - SetNodePoolManagementRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolManagementRequest) + NodePoolAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolAutoscaling) return object; - var message = new $root.google.container.v1.SetNodePoolManagementRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.nodePoolId != null) - message.nodePoolId = String(object.nodePoolId); - if (object.management != null) { - if (typeof object.management !== "object") - throw TypeError(".google.container.v1.SetNodePoolManagementRequest.management: object expected"); - message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); - } - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.NodePoolAutoscaling(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.minNodeCount != null) + message.minNodeCount = object.minNodeCount | 0; + if (object.maxNodeCount != null) + message.maxNodeCount = object.maxNodeCount | 0; + if (object.autoprovisioned != null) + message.autoprovisioned = Boolean(object.autoprovisioned); return message; }; /** - * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. + * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.SetNodePoolManagementRequest} message SetNodePoolManagementRequest + * @param {google.container.v1.NodePoolAutoscaling} message NodePoolAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolManagementRequest.toObject = function toObject(message, options) { + NodePoolAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.management = null; - object.name = ""; + object.enabled = false; + object.minNodeCount = 0; + object.maxNodeCount = 0; + object.autoprovisioned = false; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; - if (message.management != null && message.hasOwnProperty("management")) - object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + object.minNodeCount = message.minNodeCount; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + object.maxNodeCount = message.maxNodeCount; + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + object.autoprovisioned = message.autoprovisioned; return object; }; /** - * Converts this SetNodePoolManagementRequest to JSON. + * Converts this NodePoolAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @instance * @returns {Object.} JSON object */ - SetNodePoolManagementRequest.prototype.toJSON = function toJSON() { + NodePoolAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolManagementRequest; + return NodePoolAutoscaling; })(); - v1.SetNodePoolSizeRequest = (function() { + v1.SetLabelsRequest = (function() { /** - * Properties of a SetNodePoolSizeRequest. + * Properties of a SetLabelsRequest. * @memberof google.container.v1 - * @interface ISetNodePoolSizeRequest - * @property {string|null} [projectId] SetNodePoolSizeRequest projectId - * @property {string|null} [zone] SetNodePoolSizeRequest zone - * @property {string|null} [clusterId] SetNodePoolSizeRequest clusterId - * @property {string|null} [nodePoolId] SetNodePoolSizeRequest nodePoolId - * @property {number|null} [nodeCount] SetNodePoolSizeRequest nodeCount - * @property {string|null} [name] SetNodePoolSizeRequest name + * @interface ISetLabelsRequest + * @property {string|null} [projectId] SetLabelsRequest projectId + * @property {string|null} [zone] SetLabelsRequest zone + * @property {string|null} [clusterId] SetLabelsRequest clusterId + * @property {Object.|null} [resourceLabels] SetLabelsRequest resourceLabels + * @property {string|null} [labelFingerprint] SetLabelsRequest labelFingerprint + * @property {string|null} [name] SetLabelsRequest name */ /** - * Constructs a new SetNodePoolSizeRequest. + * Constructs a new SetLabelsRequest. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolSizeRequest. - * @implements ISetNodePoolSizeRequest + * @classdesc Represents a SetLabelsRequest. + * @implements ISetLabelsRequest * @constructor - * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set */ - function SetNodePoolSizeRequest(properties) { + function SetLabelsRequest(properties) { + this.resourceLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17728,75 +22670,75 @@ } /** - * SetNodePoolSizeRequest projectId. + * SetLabelsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.projectId = ""; + SetLabelsRequest.prototype.projectId = ""; /** - * SetNodePoolSizeRequest zone. + * SetLabelsRequest zone. * @member {string} zone - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.zone = ""; + SetLabelsRequest.prototype.zone = ""; /** - * SetNodePoolSizeRequest clusterId. + * SetLabelsRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.clusterId = ""; + SetLabelsRequest.prototype.clusterId = ""; /** - * SetNodePoolSizeRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolSizeRequest + * SetLabelsRequest resourceLabels. + * @member {Object.} resourceLabels + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.nodePoolId = ""; + SetLabelsRequest.prototype.resourceLabels = $util.emptyObject; /** - * SetNodePoolSizeRequest nodeCount. - * @member {number} nodeCount - * @memberof google.container.v1.SetNodePoolSizeRequest + * SetLabelsRequest labelFingerprint. + * @member {string} labelFingerprint + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.nodeCount = 0; + SetLabelsRequest.prototype.labelFingerprint = ""; /** - * SetNodePoolSizeRequest name. + * SetLabelsRequest name. * @member {string} name - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.name = ""; + SetLabelsRequest.prototype.name = ""; /** - * Creates a new SetNodePoolSizeRequest instance using the specified properties. + * Creates a new SetLabelsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest instance + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest instance */ - SetNodePoolSizeRequest.create = function create(properties) { - return new SetNodePoolSizeRequest(properties); + SetLabelsRequest.create = function create(properties) { + return new SetLabelsRequest(properties); }; /** - * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolSizeRequest.encode = function encode(message, writer) { + SetLabelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -17805,43 +22747,44 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); + if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) + for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceLabels[keys[i]]).ldelim(); + if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolSizeRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetLabelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. + * Decodes a SetLabelsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolSizeRequest.decode = function decode(reader, length) { + SetLabelsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolSizeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLabelsRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17855,10 +22798,29 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); + if (message.resourceLabels === $util.emptyObject) + message.resourceLabels = {}; + 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.resourceLabels[key] = value; break; case 5: - message.nodeCount = reader.int32(); + message.labelFingerprint = reader.string(); break; case 7: message.name = reader.string(); @@ -17872,30 +22834,30 @@ }; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. + * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolSizeRequest.decodeDelimited = function decodeDelimited(reader) { + SetLabelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolSizeRequest message. + * Verifies a SetLabelsRequest message. * @function verify - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNodePoolSizeRequest.verify = function verify(message) { + SetLabelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -17907,12 +22869,17 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string expected"; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - if (!$util.isString(message.nodePoolId)) - return "nodePoolId: string expected"; - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - if (!$util.isInteger(message.nodeCount)) - return "nodeCount: integer expected"; + if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) { + if (!$util.isObject(message.resourceLabels)) + return "resourceLabels: object expected"; + var key = Object.keys(message.resourceLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceLabels[key[i]])) + return "resourceLabels: string{k:string} expected"; + } + if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) + if (!$util.isString(message.labelFingerprint)) + return "labelFingerprint: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -17920,51 +22887,57 @@ }; /** - * Creates a SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetLabelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest */ - SetNodePoolSizeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolSizeRequest) + SetLabelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLabelsRequest) return object; - var message = new $root.google.container.v1.SetNodePoolSizeRequest(); + var message = new $root.google.container.v1.SetLabelsRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); if (object.clusterId != null) message.clusterId = String(object.clusterId); - if (object.nodePoolId != null) - message.nodePoolId = String(object.nodePoolId); - if (object.nodeCount != null) - message.nodeCount = object.nodeCount | 0; + if (object.resourceLabels) { + if (typeof object.resourceLabels !== "object") + throw TypeError(".google.container.v1.SetLabelsRequest.resourceLabels: object expected"); + message.resourceLabels = {}; + for (var keys = Object.keys(object.resourceLabels), i = 0; i < keys.length; ++i) + message.resourceLabels[keys[i]] = String(object.resourceLabels[keys[i]]); + } + if (object.labelFingerprint != null) + message.labelFingerprint = String(object.labelFingerprint); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.SetNodePoolSizeRequest} message SetNodePoolSizeRequest + * @param {google.container.v1.SetLabelsRequest} message SetLabelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolSizeRequest.toObject = function toObject(message, options) { + SetLabelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.resourceLabels = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; - object.nodeCount = 0; + object.labelFingerprint = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -17973,51 +22946,55 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - object.nodeCount = message.nodeCount; + var keys2; + if (message.resourceLabels && (keys2 = Object.keys(message.resourceLabels)).length) { + object.resourceLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceLabels[keys2[j]] = message.resourceLabels[keys2[j]]; + } + if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) + object.labelFingerprint = message.labelFingerprint; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetNodePoolSizeRequest to JSON. + * Converts this SetLabelsRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance * @returns {Object.} JSON object */ - SetNodePoolSizeRequest.prototype.toJSON = function toJSON() { + SetLabelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolSizeRequest; + return SetLabelsRequest; })(); - v1.RollbackNodePoolUpgradeRequest = (function() { + v1.SetLegacyAbacRequest = (function() { /** - * Properties of a RollbackNodePoolUpgradeRequest. + * Properties of a SetLegacyAbacRequest. * @memberof google.container.v1 - * @interface IRollbackNodePoolUpgradeRequest - * @property {string|null} [projectId] RollbackNodePoolUpgradeRequest projectId - * @property {string|null} [zone] RollbackNodePoolUpgradeRequest zone - * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId - * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId - * @property {string|null} [name] RollbackNodePoolUpgradeRequest name + * @interface ISetLegacyAbacRequest + * @property {string|null} [projectId] SetLegacyAbacRequest projectId + * @property {string|null} [zone] SetLegacyAbacRequest zone + * @property {string|null} [clusterId] SetLegacyAbacRequest clusterId + * @property {boolean|null} [enabled] SetLegacyAbacRequest enabled + * @property {string|null} [name] SetLegacyAbacRequest name */ /** - * Constructs a new RollbackNodePoolUpgradeRequest. + * Constructs a new SetLegacyAbacRequest. * @memberof google.container.v1 - * @classdesc Represents a RollbackNodePoolUpgradeRequest. - * @implements IRollbackNodePoolUpgradeRequest + * @classdesc Represents a SetLegacyAbacRequest. + * @implements ISetLegacyAbacRequest * @constructor - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set */ - function RollbackNodePoolUpgradeRequest(properties) { + function SetLegacyAbacRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18025,67 +23002,67 @@ } /** - * RollbackNodePoolUpgradeRequest projectId. + * SetLegacyAbacRequest projectId. * @member {string} projectId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.projectId = ""; + SetLegacyAbacRequest.prototype.projectId = ""; /** - * RollbackNodePoolUpgradeRequest zone. + * SetLegacyAbacRequest zone. * @member {string} zone - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.zone = ""; + SetLegacyAbacRequest.prototype.zone = ""; /** - * RollbackNodePoolUpgradeRequest clusterId. + * SetLegacyAbacRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.clusterId = ""; + SetLegacyAbacRequest.prototype.clusterId = ""; /** - * RollbackNodePoolUpgradeRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * SetLegacyAbacRequest enabled. + * @member {boolean} enabled + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.nodePoolId = ""; + SetLegacyAbacRequest.prototype.enabled = false; /** - * RollbackNodePoolUpgradeRequest name. + * SetLegacyAbacRequest name. * @member {string} name - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.name = ""; + SetLegacyAbacRequest.prototype.name = ""; /** - * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. + * Creates a new SetLegacyAbacRequest instance using the specified properties. * @function create - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest instance + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest instance */ - RollbackNodePoolUpgradeRequest.create = function create(properties) { - return new RollbackNodePoolUpgradeRequest(properties); + SetLegacyAbacRequest.create = function create(properties) { + return new SetLegacyAbacRequest(properties); }; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { + SetLegacyAbacRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -18094,41 +23071,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetLegacyAbacRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackNodePoolUpgradeRequest.decode = function decode(reader, length) { + SetLegacyAbacRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLegacyAbacRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18142,7 +23119,7 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); + message.enabled = reader.bool(); break; case 6: message.name = reader.string(); @@ -18156,30 +23133,30 @@ }; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { + SetLegacyAbacRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackNodePoolUpgradeRequest message. + * Verifies a SetLegacyAbacRequest message. * @function verify - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackNodePoolUpgradeRequest.verify = function verify(message) { + SetLegacyAbacRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -18191,9 +23168,9 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string expected"; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - if (!$util.isString(message.nodePoolId)) - return "nodePoolId: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -18201,40 +23178,40 @@ }; /** - * Creates a RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest */ - RollbackNodePoolUpgradeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.RollbackNodePoolUpgradeRequest) + SetLegacyAbacRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLegacyAbacRequest) return object; - var message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); + var message = new $root.google.container.v1.SetLegacyAbacRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); if (object.clusterId != null) message.clusterId = String(object.clusterId); - if (object.nodePoolId != null) - message.nodePoolId = String(object.nodePoolId); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.RollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest + * @param {google.container.v1.SetLegacyAbacRequest} message SetLegacyAbacRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackNodePoolUpgradeRequest.toObject = function toObject(message, options) { + SetLegacyAbacRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18242,7 +23219,7 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; + object.enabled = false; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -18251,46 +23228,49 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this RollbackNodePoolUpgradeRequest to JSON. + * Converts this SetLegacyAbacRequest to JSON. * @function toJSON - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance * @returns {Object.} JSON object */ - RollbackNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { + SetLegacyAbacRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackNodePoolUpgradeRequest; + return SetLegacyAbacRequest; })(); - v1.ListNodePoolsResponse = (function() { + v1.StartIPRotationRequest = (function() { /** - * Properties of a ListNodePoolsResponse. + * Properties of a StartIPRotationRequest. * @memberof google.container.v1 - * @interface IListNodePoolsResponse - * @property {Array.|null} [nodePools] ListNodePoolsResponse nodePools + * @interface IStartIPRotationRequest + * @property {string|null} [projectId] StartIPRotationRequest projectId + * @property {string|null} [zone] StartIPRotationRequest zone + * @property {string|null} [clusterId] StartIPRotationRequest clusterId + * @property {string|null} [name] StartIPRotationRequest name + * @property {boolean|null} [rotateCredentials] StartIPRotationRequest rotateCredentials */ /** - * Constructs a new ListNodePoolsResponse. + * Constructs a new StartIPRotationRequest. * @memberof google.container.v1 - * @classdesc Represents a ListNodePoolsResponse. - * @implements IListNodePoolsResponse + * @classdesc Represents a StartIPRotationRequest. + * @implements IStartIPRotationRequest * @constructor - * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set */ - function ListNodePoolsResponse(properties) { - this.nodePools = []; + function StartIPRotationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18298,78 +23278,127 @@ } /** - * ListNodePoolsResponse nodePools. - * @member {Array.} nodePools - * @memberof google.container.v1.ListNodePoolsResponse + * StartIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.StartIPRotationRequest * @instance */ - ListNodePoolsResponse.prototype.nodePools = $util.emptyArray; + StartIPRotationRequest.prototype.projectId = ""; /** - * Creates a new ListNodePoolsResponse instance using the specified properties. + * StartIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.zone = ""; + + /** + * StartIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.clusterId = ""; + + /** + * StartIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.name = ""; + + /** + * StartIPRotationRequest rotateCredentials. + * @member {boolean} rotateCredentials + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.rotateCredentials = false; + + /** + * Creates a new StartIPRotationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse instance + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest instance */ - ListNodePoolsResponse.create = function create(properties) { - return new ListNodePoolsResponse(properties); + StartIPRotationRequest.create = function create(properties) { + return new StartIPRotationRequest(properties); }; /** - * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsResponse.encode = function encode(message, writer) { + StartIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodePools != null && message.nodePools.length) - for (var i = 0; i < message.nodePools.length; ++i) - $root.google.container.v1.NodePool.encode(message.nodePools[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.rotateCredentials != null && Object.hasOwnProperty.call(message, "rotateCredentials")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); return writer; }; /** - * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer. + * Decodes a StartIPRotationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsResponse.decode = function decode(reader, length) { + StartIPRotationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListNodePoolsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StartIPRotationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.nodePools && message.nodePools.length)) - message.nodePools = []; - message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 6: + message.name = reader.string(); + break; + case 7: + message.rotateCredentials = reader.bool(); break; default: reader.skipType(tag & 7); @@ -18380,129 +23409,143 @@ }; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. + * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsResponse.decodeDelimited = function decodeDelimited(reader) { + StartIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodePoolsResponse message. + * Verifies a StartIPRotationRequest message. * @function verify - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodePoolsResponse.verify = function verify(message) { + StartIPRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodePools != null && message.hasOwnProperty("nodePools")) { - if (!Array.isArray(message.nodePools)) - return "nodePools: array expected"; - for (var i = 0; i < message.nodePools.length; ++i) { - var error = $root.google.container.v1.NodePool.verify(message.nodePools[i]); - if (error) - return "nodePools." + error; - } - } + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + if (typeof message.rotateCredentials !== "boolean") + return "rotateCredentials: boolean expected"; return null; }; /** - * Creates a ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest */ - ListNodePoolsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListNodePoolsResponse) + StartIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.StartIPRotationRequest) return object; - var message = new $root.google.container.v1.ListNodePoolsResponse(); - if (object.nodePools) { - if (!Array.isArray(object.nodePools)) - throw TypeError(".google.container.v1.ListNodePoolsResponse.nodePools: array expected"); - message.nodePools = []; - for (var i = 0; i < object.nodePools.length; ++i) { - if (typeof object.nodePools[i] !== "object") - throw TypeError(".google.container.v1.ListNodePoolsResponse.nodePools: object expected"); - message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); - } - } + var message = new $root.google.container.v1.StartIPRotationRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.name != null) + message.name = String(object.name); + if (object.rotateCredentials != null) + message.rotateCredentials = Boolean(object.rotateCredentials); return message; }; /** - * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.ListNodePoolsResponse} message ListNodePoolsResponse + * @param {google.container.v1.StartIPRotationRequest} message StartIPRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodePoolsResponse.toObject = function toObject(message, options) { + StartIPRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.nodePools = []; - if (message.nodePools && message.nodePools.length) { - object.nodePools = []; - for (var j = 0; j < message.nodePools.length; ++j) - object.nodePools[j] = $root.google.container.v1.NodePool.toObject(message.nodePools[j], options); + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.name = ""; + object.rotateCredentials = false; } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + object.rotateCredentials = message.rotateCredentials; return object; }; /** - * Converts this ListNodePoolsResponse to JSON. + * Converts this StartIPRotationRequest to JSON. * @function toJSON - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @instance * @returns {Object.} JSON object */ - ListNodePoolsResponse.prototype.toJSON = function toJSON() { + StartIPRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListNodePoolsResponse; + return StartIPRotationRequest; })(); - v1.ClusterAutoscaling = (function() { + v1.CompleteIPRotationRequest = (function() { /** - * Properties of a ClusterAutoscaling. + * Properties of a CompleteIPRotationRequest. * @memberof google.container.v1 - * @interface IClusterAutoscaling - * @property {boolean|null} [enableNodeAutoprovisioning] ClusterAutoscaling enableNodeAutoprovisioning - * @property {Array.|null} [resourceLimits] ClusterAutoscaling resourceLimits - * @property {google.container.v1.IAutoprovisioningNodePoolDefaults|null} [autoprovisioningNodePoolDefaults] ClusterAutoscaling autoprovisioningNodePoolDefaults - * @property {Array.|null} [autoprovisioningLocations] ClusterAutoscaling autoprovisioningLocations + * @interface ICompleteIPRotationRequest + * @property {string|null} [projectId] CompleteIPRotationRequest projectId + * @property {string|null} [zone] CompleteIPRotationRequest zone + * @property {string|null} [clusterId] CompleteIPRotationRequest clusterId + * @property {string|null} [name] CompleteIPRotationRequest name */ /** - * Constructs a new ClusterAutoscaling. + * Constructs a new CompleteIPRotationRequest. * @memberof google.container.v1 - * @classdesc Represents a ClusterAutoscaling. - * @implements IClusterAutoscaling + * @classdesc Represents a CompleteIPRotationRequest. + * @implements ICompleteIPRotationRequest * @constructor - * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set */ - function ClusterAutoscaling(properties) { - this.resourceLimits = []; - this.autoprovisioningLocations = []; + function CompleteIPRotationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18510,120 +23553,114 @@ } /** - * ClusterAutoscaling enableNodeAutoprovisioning. - * @member {boolean} enableNodeAutoprovisioning - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.enableNodeAutoprovisioning = false; + CompleteIPRotationRequest.prototype.projectId = ""; /** - * ClusterAutoscaling resourceLimits. - * @member {Array.} resourceLimits - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.resourceLimits = $util.emptyArray; + CompleteIPRotationRequest.prototype.zone = ""; /** - * ClusterAutoscaling autoprovisioningNodePoolDefaults. - * @member {google.container.v1.IAutoprovisioningNodePoolDefaults|null|undefined} autoprovisioningNodePoolDefaults - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.autoprovisioningNodePoolDefaults = null; + CompleteIPRotationRequest.prototype.clusterId = ""; /** - * ClusterAutoscaling autoprovisioningLocations. - * @member {Array.} autoprovisioningLocations - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.autoprovisioningLocations = $util.emptyArray; + CompleteIPRotationRequest.prototype.name = ""; /** - * Creates a new ClusterAutoscaling instance using the specified properties. + * Creates a new CompleteIPRotationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling instance + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest instance */ - ClusterAutoscaling.create = function create(properties) { - return new ClusterAutoscaling(properties); + CompleteIPRotationRequest.create = function create(properties) { + return new CompleteIPRotationRequest(properties); }; /** - * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. + * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterAutoscaling.encode = function encode(message, writer) { + CompleteIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableNodeAutoprovisioning != null && Object.hasOwnProperty.call(message, "enableNodeAutoprovisioning")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); - if (message.resourceLimits != null && message.resourceLimits.length) - for (var i = 0; i < message.resourceLimits.length; ++i) - $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) - $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) - for (var i = 0; i < message.autoprovisioningLocations.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.autoprovisioningLocations[i]); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. + * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + CompleteIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClusterAutoscaling message from the specified reader or buffer. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterAutoscaling.decode = function decode(reader, length) { + CompleteIPRotationRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClusterAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CompleteIPRotationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enableNodeAutoprovisioning = reader.bool(); + message.projectId = reader.string(); break; case 2: - if (!(message.resourceLimits && message.resourceLimits.length)) - message.resourceLimits = []; - message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); + message.zone = reader.string(); break; - case 4: - message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); + case 3: + message.clusterId = reader.string(); break; - case 5: - if (!(message.autoprovisioningLocations && message.autoprovisioningLocations.length)) - message.autoprovisioningLocations = []; - message.autoprovisioningLocations.push(reader.string()); + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -18634,170 +23671,133 @@ }; /** - * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterAutoscaling.decodeDelimited = function decodeDelimited(reader) { + CompleteIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ClusterAutoscaling message. - * @function verify - * @memberof google.container.v1.ClusterAutoscaling - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClusterAutoscaling.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) - if (typeof message.enableNodeAutoprovisioning !== "boolean") - return "enableNodeAutoprovisioning: boolean expected"; - if (message.resourceLimits != null && message.hasOwnProperty("resourceLimits")) { - if (!Array.isArray(message.resourceLimits)) - return "resourceLimits: array expected"; - for (var i = 0; i < message.resourceLimits.length; ++i) { - var error = $root.google.container.v1.ResourceLimit.verify(message.resourceLimits[i]); - if (error) - return "resourceLimits." + error; - } - } - if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) { - var error = $root.google.container.v1.AutoprovisioningNodePoolDefaults.verify(message.autoprovisioningNodePoolDefaults); - if (error) - return "autoprovisioningNodePoolDefaults." + error; - } - if (message.autoprovisioningLocations != null && message.hasOwnProperty("autoprovisioningLocations")) { - if (!Array.isArray(message.autoprovisioningLocations)) - return "autoprovisioningLocations: array expected"; - for (var i = 0; i < message.autoprovisioningLocations.length; ++i) - if (!$util.isString(message.autoprovisioningLocations[i])) - return "autoprovisioningLocations: string[] expected"; - } + }; + + /** + * Verifies a CompleteIPRotationRequest message. + * @function verify + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompleteIPRotationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ClusterAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest */ - ClusterAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ClusterAutoscaling) + CompleteIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CompleteIPRotationRequest) return object; - var message = new $root.google.container.v1.ClusterAutoscaling(); - if (object.enableNodeAutoprovisioning != null) - message.enableNodeAutoprovisioning = Boolean(object.enableNodeAutoprovisioning); - if (object.resourceLimits) { - if (!Array.isArray(object.resourceLimits)) - throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: array expected"); - message.resourceLimits = []; - for (var i = 0; i < object.resourceLimits.length; ++i) { - if (typeof object.resourceLimits[i] !== "object") - throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: object expected"); - message.resourceLimits[i] = $root.google.container.v1.ResourceLimit.fromObject(object.resourceLimits[i]); - } - } - if (object.autoprovisioningNodePoolDefaults != null) { - if (typeof object.autoprovisioningNodePoolDefaults !== "object") - throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningNodePoolDefaults: object expected"); - message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.fromObject(object.autoprovisioningNodePoolDefaults); - } - if (object.autoprovisioningLocations) { - if (!Array.isArray(object.autoprovisioningLocations)) - throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningLocations: array expected"); - message.autoprovisioningLocations = []; - for (var i = 0; i < object.autoprovisioningLocations.length; ++i) - message.autoprovisioningLocations[i] = String(object.autoprovisioningLocations[i]); - } + var message = new $root.google.container.v1.CompleteIPRotationRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.ClusterAutoscaling} message ClusterAutoscaling + * @param {google.container.v1.CompleteIPRotationRequest} message CompleteIPRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClusterAutoscaling.toObject = function toObject(message, options) { + CompleteIPRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.resourceLimits = []; - object.autoprovisioningLocations = []; - } if (options.defaults) { - object.enableNodeAutoprovisioning = false; - object.autoprovisioningNodePoolDefaults = null; - } - if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) - object.enableNodeAutoprovisioning = message.enableNodeAutoprovisioning; - if (message.resourceLimits && message.resourceLimits.length) { - object.resourceLimits = []; - for (var j = 0; j < message.resourceLimits.length; ++j) - object.resourceLimits[j] = $root.google.container.v1.ResourceLimit.toObject(message.resourceLimits[j], options); - } - if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) - object.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.toObject(message.autoprovisioningNodePoolDefaults, options); - if (message.autoprovisioningLocations && message.autoprovisioningLocations.length) { - object.autoprovisioningLocations = []; - for (var j = 0; j < message.autoprovisioningLocations.length; ++j) - object.autoprovisioningLocations[j] = message.autoprovisioningLocations[j]; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.name = ""; } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ClusterAutoscaling to JSON. + * Converts this CompleteIPRotationRequest to JSON. * @function toJSON - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @instance * @returns {Object.} JSON object */ - ClusterAutoscaling.prototype.toJSON = function toJSON() { + CompleteIPRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClusterAutoscaling; + return CompleteIPRotationRequest; })(); - v1.AutoprovisioningNodePoolDefaults = (function() { + v1.AcceleratorConfig = (function() { /** - * Properties of an AutoprovisioningNodePoolDefaults. + * Properties of an AcceleratorConfig. * @memberof google.container.v1 - * @interface IAutoprovisioningNodePoolDefaults - * @property {Array.|null} [oauthScopes] AutoprovisioningNodePoolDefaults oauthScopes - * @property {string|null} [serviceAccount] AutoprovisioningNodePoolDefaults serviceAccount + * @interface IAcceleratorConfig + * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount + * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType */ /** - * Constructs a new AutoprovisioningNodePoolDefaults. + * Constructs a new AcceleratorConfig. * @memberof google.container.v1 - * @classdesc Represents an AutoprovisioningNodePoolDefaults. - * @implements IAutoprovisioningNodePoolDefaults + * @classdesc Represents an AcceleratorConfig. + * @implements IAcceleratorConfig * @constructor - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set */ - function AutoprovisioningNodePoolDefaults(properties) { - this.oauthScopes = []; + function AcceleratorConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18805,91 +23805,88 @@ } /** - * AutoprovisioningNodePoolDefaults oauthScopes. - * @member {Array.} oauthScopes - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * AcceleratorConfig acceleratorCount. + * @member {number|Long} acceleratorCount + * @memberof google.container.v1.AcceleratorConfig * @instance */ - AutoprovisioningNodePoolDefaults.prototype.oauthScopes = $util.emptyArray; + AcceleratorConfig.prototype.acceleratorCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * AutoprovisioningNodePoolDefaults serviceAccount. - * @member {string} serviceAccount - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * AcceleratorConfig acceleratorType. + * @member {string} acceleratorType + * @memberof google.container.v1.AcceleratorConfig * @instance */ - AutoprovisioningNodePoolDefaults.prototype.serviceAccount = ""; + AcceleratorConfig.prototype.acceleratorType = ""; /** - * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. + * Creates a new AcceleratorConfig instance using the specified properties. * @function create - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults instance + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig instance */ - AutoprovisioningNodePoolDefaults.create = function create(properties) { - return new AutoprovisioningNodePoolDefaults(properties); + AcceleratorConfig.create = function create(properties) { + return new AcceleratorConfig(properties); }; /** - * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. + * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoprovisioningNodePoolDefaults.encode = function encode(message, writer) { + AcceleratorConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.oauthScopes != null && message.oauthScopes.length) - for (var i = 0; i < message.oauthScopes.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); + if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); + if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); return writer; }; /** - * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. + * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoprovisioningNodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { + AcceleratorConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer. + * Decodes an AcceleratorConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoprovisioningNodePoolDefaults.decode = function decode(reader, length) { + AcceleratorConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AcceleratorConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.oauthScopes && message.oauthScopes.length)) - message.oauthScopes = []; - message.oauthScopes.push(reader.string()); + message.acceleratorCount = reader.int64(); break; case 2: - message.serviceAccount = reader.string(); + message.acceleratorType = reader.string(); break; default: reader.skipType(tag & 7); @@ -18900,130 +23897,130 @@ }; /** - * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited. + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoprovisioningNodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { + AcceleratorConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoprovisioningNodePoolDefaults message. + * Verifies an AcceleratorConfig message. * @function verify - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoprovisioningNodePoolDefaults.verify = function verify(message) { + AcceleratorConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { - if (!Array.isArray(message.oauthScopes)) - return "oauthScopes: array expected"; - for (var i = 0; i < message.oauthScopes.length; ++i) - if (!$util.isString(message.oauthScopes[i])) - return "oauthScopes: string[] expected"; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) + return "acceleratorCount: integer|Long expected"; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + if (!$util.isString(message.acceleratorType)) + return "acceleratorType: string expected"; return null; }; /** - * Creates an AutoprovisioningNodePoolDefaults message from a plain object. Also converts values to their respective internal types. + * Creates an AcceleratorConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults - */ - AutoprovisioningNodePoolDefaults.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AutoprovisioningNodePoolDefaults) - return object; - var message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); - if (object.oauthScopes) { - if (!Array.isArray(object.oauthScopes)) - throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.oauthScopes: array expected"); - message.oauthScopes = []; - for (var i = 0; i < object.oauthScopes.length; ++i) - message.oauthScopes[i] = String(object.oauthScopes[i]); - } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + */ + AcceleratorConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AcceleratorConfig) + return object; + var message = new $root.google.container.v1.AcceleratorConfig(); + if (object.acceleratorCount != null) + if ($util.Long) + (message.acceleratorCount = $util.Long.fromValue(object.acceleratorCount)).unsigned = false; + else if (typeof object.acceleratorCount === "string") + message.acceleratorCount = parseInt(object.acceleratorCount, 10); + else if (typeof object.acceleratorCount === "number") + message.acceleratorCount = object.acceleratorCount; + else if (typeof object.acceleratorCount === "object") + message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); + if (object.acceleratorType != null) + message.acceleratorType = String(object.acceleratorType); return message; }; /** - * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified. + * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.AutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults + * @param {google.container.v1.AcceleratorConfig} message AcceleratorConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoprovisioningNodePoolDefaults.toObject = function toObject(message, options) { + AcceleratorConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.oauthScopes = []; - if (options.defaults) - object.serviceAccount = ""; - if (message.oauthScopes && message.oauthScopes.length) { - object.oauthScopes = []; - for (var j = 0; j < message.oauthScopes.length; ++j) - object.oauthScopes[j] = message.oauthScopes[j]; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.acceleratorCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.acceleratorCount = options.longs === String ? "0" : 0; + object.acceleratorType = ""; } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (typeof message.acceleratorCount === "number") + object.acceleratorCount = options.longs === String ? String(message.acceleratorCount) : message.acceleratorCount; + else + object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + object.acceleratorType = message.acceleratorType; return object; }; /** - * Converts this AutoprovisioningNodePoolDefaults to JSON. + * Converts this AcceleratorConfig to JSON. * @function toJSON - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @instance * @returns {Object.} JSON object */ - AutoprovisioningNodePoolDefaults.prototype.toJSON = function toJSON() { + AcceleratorConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoprovisioningNodePoolDefaults; + return AcceleratorConfig; })(); - v1.ResourceLimit = (function() { + v1.WorkloadMetadataConfig = (function() { /** - * Properties of a ResourceLimit. + * Properties of a WorkloadMetadataConfig. * @memberof google.container.v1 - * @interface IResourceLimit - * @property {string|null} [resourceType] ResourceLimit resourceType - * @property {number|Long|null} [minimum] ResourceLimit minimum - * @property {number|Long|null} [maximum] ResourceLimit maximum + * @interface IWorkloadMetadataConfig + * @property {google.container.v1.WorkloadMetadataConfig.Mode|null} [mode] WorkloadMetadataConfig mode */ /** - * Constructs a new ResourceLimit. + * Constructs a new WorkloadMetadataConfig. * @memberof google.container.v1 - * @classdesc Represents a ResourceLimit. - * @implements IResourceLimit + * @classdesc Represents a WorkloadMetadataConfig. + * @implements IWorkloadMetadataConfig * @constructor - * @param {google.container.v1.IResourceLimit=} [properties] Properties to set + * @param {google.container.v1.IWorkloadMetadataConfig=} [properties] Properties to set */ - function ResourceLimit(properties) { + function WorkloadMetadataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19031,101 +24028,75 @@ } /** - * ResourceLimit resourceType. - * @member {string} resourceType - * @memberof google.container.v1.ResourceLimit - * @instance - */ - ResourceLimit.prototype.resourceType = ""; - - /** - * ResourceLimit minimum. - * @member {number|Long} minimum - * @memberof google.container.v1.ResourceLimit - * @instance - */ - ResourceLimit.prototype.minimum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ResourceLimit maximum. - * @member {number|Long} maximum - * @memberof google.container.v1.ResourceLimit + * WorkloadMetadataConfig mode. + * @member {google.container.v1.WorkloadMetadataConfig.Mode} mode + * @memberof google.container.v1.WorkloadMetadataConfig * @instance */ - ResourceLimit.prototype.maximum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + WorkloadMetadataConfig.prototype.mode = 0; /** - * Creates a new ResourceLimit instance using the specified properties. + * Creates a new WorkloadMetadataConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.IResourceLimit=} [properties] Properties to set - * @returns {google.container.v1.ResourceLimit} ResourceLimit instance + * @param {google.container.v1.IWorkloadMetadataConfig=} [properties] Properties to set + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig instance */ - ResourceLimit.create = function create(properties) { - return new ResourceLimit(properties); + WorkloadMetadataConfig.create = function create(properties) { + return new WorkloadMetadataConfig(properties); }; /** - * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. + * Encodes the specified WorkloadMetadataConfig message. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode + * @param {google.container.v1.IWorkloadMetadataConfig} message WorkloadMetadataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceLimit.encode = function encode(message, writer) { + WorkloadMetadataConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); - if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); - if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); + if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mode); return writer; }; /** - * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. + * Encodes the specified WorkloadMetadataConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode + * @param {google.container.v1.IWorkloadMetadataConfig} message WorkloadMetadataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceLimit.encodeDelimited = function encodeDelimited(message, writer) { + WorkloadMetadataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceLimit message from the specified reader or buffer. + * Decodes a WorkloadMetadataConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ResourceLimit} ResourceLimit + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceLimit.decode = function decode(reader, length) { + WorkloadMetadataConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceLimit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.WorkloadMetadataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resourceType = reader.string(); - break; case 2: - message.minimum = reader.int64(); - break; - case 3: - message.maximum = reader.int64(); + message.mode = reader.int32(); break; default: reader.skipType(tag & 7); @@ -19136,155 +24107,145 @@ }; /** - * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. + * Decodes a WorkloadMetadataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ResourceLimit} ResourceLimit + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceLimit.decodeDelimited = function decodeDelimited(reader) { + WorkloadMetadataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceLimit message. + * Verifies a WorkloadMetadataConfig message. * @function verify - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceLimit.verify = function verify(message) { + WorkloadMetadataConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - if (!$util.isString(message.resourceType)) - return "resourceType: string expected"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum) && !(message.minimum && $util.isInteger(message.minimum.low) && $util.isInteger(message.minimum.high))) - return "minimum: integer|Long expected"; - if (message.maximum != null && message.hasOwnProperty("maximum")) - if (!$util.isInteger(message.maximum) && !(message.maximum && $util.isInteger(message.maximum.low) && $util.isInteger(message.maximum.high))) - return "maximum: integer|Long expected"; + if (message.mode != null && message.hasOwnProperty("mode")) + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a ResourceLimit message from a plain object. Also converts values to their respective internal types. + * Creates a WorkloadMetadataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ResourceLimit} ResourceLimit + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig */ - ResourceLimit.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ResourceLimit) + WorkloadMetadataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.WorkloadMetadataConfig) return object; - var message = new $root.google.container.v1.ResourceLimit(); - if (object.resourceType != null) - message.resourceType = String(object.resourceType); - if (object.minimum != null) - if ($util.Long) - (message.minimum = $util.Long.fromValue(object.minimum)).unsigned = false; - else if (typeof object.minimum === "string") - message.minimum = parseInt(object.minimum, 10); - else if (typeof object.minimum === "number") - message.minimum = object.minimum; - else if (typeof object.minimum === "object") - message.minimum = new $util.LongBits(object.minimum.low >>> 0, object.minimum.high >>> 0).toNumber(); - if (object.maximum != null) - if ($util.Long) - (message.maximum = $util.Long.fromValue(object.maximum)).unsigned = false; - else if (typeof object.maximum === "string") - message.maximum = parseInt(object.maximum, 10); - else if (typeof object.maximum === "number") - message.maximum = object.maximum; - else if (typeof object.maximum === "object") - message.maximum = new $util.LongBits(object.maximum.low >>> 0, object.maximum.high >>> 0).toNumber(); + var message = new $root.google.container.v1.WorkloadMetadataConfig(); + switch (object.mode) { + case "MODE_UNSPECIFIED": + case 0: + message.mode = 0; + break; + case "GCE_METADATA": + case 1: + message.mode = 1; + break; + case "GKE_METADATA": + case 2: + message.mode = 2; + break; + } return message; }; /** - * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified. + * Creates a plain object from a WorkloadMetadataConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.ResourceLimit} message ResourceLimit + * @param {google.container.v1.WorkloadMetadataConfig} message WorkloadMetadataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceLimit.toObject = function toObject(message, options) { + WorkloadMetadataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.resourceType = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minimum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minimum = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maximum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maximum = options.longs === String ? "0" : 0; - } - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - object.resourceType = message.resourceType; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (typeof message.minimum === "number") - object.minimum = options.longs === String ? String(message.minimum) : message.minimum; - else - object.minimum = options.longs === String ? $util.Long.prototype.toString.call(message.minimum) : options.longs === Number ? new $util.LongBits(message.minimum.low >>> 0, message.minimum.high >>> 0).toNumber() : message.minimum; - if (message.maximum != null && message.hasOwnProperty("maximum")) - if (typeof message.maximum === "number") - object.maximum = options.longs === String ? String(message.maximum) : message.maximum; - else - object.maximum = options.longs === String ? $util.Long.prototype.toString.call(message.maximum) : options.longs === Number ? new $util.LongBits(message.maximum.low >>> 0, message.maximum.high >>> 0).toNumber() : message.maximum; + if (options.defaults) + object.mode = options.enums === String ? "MODE_UNSPECIFIED" : 0; + if (message.mode != null && message.hasOwnProperty("mode")) + object.mode = options.enums === String ? $root.google.container.v1.WorkloadMetadataConfig.Mode[message.mode] : message.mode; return object; }; /** - * Converts this ResourceLimit to JSON. + * Converts this WorkloadMetadataConfig to JSON. * @function toJSON - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @instance * @returns {Object.} JSON object */ - ResourceLimit.prototype.toJSON = function toJSON() { + WorkloadMetadataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResourceLimit; + /** + * Mode enum. + * @name google.container.v1.WorkloadMetadataConfig.Mode + * @enum {number} + * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value + * @property {number} GCE_METADATA=1 GCE_METADATA value + * @property {number} GKE_METADATA=2 GKE_METADATA value + */ + WorkloadMetadataConfig.Mode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GCE_METADATA"] = 1; + values[valuesById[2] = "GKE_METADATA"] = 2; + return values; + })(); + + return WorkloadMetadataConfig; })(); - v1.NodePoolAutoscaling = (function() { + v1.SetNetworkPolicyRequest = (function() { /** - * Properties of a NodePoolAutoscaling. + * Properties of a SetNetworkPolicyRequest. * @memberof google.container.v1 - * @interface INodePoolAutoscaling - * @property {boolean|null} [enabled] NodePoolAutoscaling enabled - * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount - * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount - * @property {boolean|null} [autoprovisioned] NodePoolAutoscaling autoprovisioned + * @interface ISetNetworkPolicyRequest + * @property {string|null} [projectId] SetNetworkPolicyRequest projectId + * @property {string|null} [zone] SetNetworkPolicyRequest zone + * @property {string|null} [clusterId] SetNetworkPolicyRequest clusterId + * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] SetNetworkPolicyRequest networkPolicy + * @property {string|null} [name] SetNetworkPolicyRequest name */ /** - * Constructs a new NodePoolAutoscaling. + * Constructs a new SetNetworkPolicyRequest. * @memberof google.container.v1 - * @classdesc Represents a NodePoolAutoscaling. - * @implements INodePoolAutoscaling + * @classdesc Represents a SetNetworkPolicyRequest. + * @implements ISetNetworkPolicyRequest * @constructor - * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set */ - function NodePoolAutoscaling(properties) { + function SetNetworkPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19292,114 +24253,127 @@ } /** - * NodePoolAutoscaling enabled. - * @member {boolean} enabled - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.enabled = false; + SetNetworkPolicyRequest.prototype.projectId = ""; + + /** + * SetNetworkPolicyRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + */ + SetNetworkPolicyRequest.prototype.zone = ""; /** - * NodePoolAutoscaling minNodeCount. - * @member {number} minNodeCount - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.minNodeCount = 0; + SetNetworkPolicyRequest.prototype.clusterId = ""; /** - * NodePoolAutoscaling maxNodeCount. - * @member {number} maxNodeCount - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest networkPolicy. + * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.maxNodeCount = 0; + SetNetworkPolicyRequest.prototype.networkPolicy = null; /** - * NodePoolAutoscaling autoprovisioned. - * @member {boolean} autoprovisioned - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest name. + * @member {string} name + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.autoprovisioned = false; + SetNetworkPolicyRequest.prototype.name = ""; /** - * Creates a new NodePoolAutoscaling instance using the specified properties. + * Creates a new SetNetworkPolicyRequest instance using the specified properties. * @function create - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling instance + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest instance */ - NodePoolAutoscaling.create = function create(properties) { - return new NodePoolAutoscaling(properties); + SetNetworkPolicyRequest.create = function create(properties) { + return new SetNetworkPolicyRequest(properties); }; /** - * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoscaling.encode = function encode(message, writer) { + SetNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); - if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); - if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + SetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoscaling.decode = function decode(reader, length) { + SetNetworkPolicyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNetworkPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enabled = reader.bool(); + message.projectId = reader.string(); break; case 2: - message.minNodeCount = reader.int32(); + message.zone = reader.string(); break; case 3: - message.maxNodeCount = reader.int32(); + message.clusterId = reader.string(); break; case 4: - message.autoprovisioned = reader.bool(); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + case 6: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -19410,138 +24384,149 @@ }; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoscaling.decodeDelimited = function decodeDelimited(reader) { + SetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePoolAutoscaling message. + * Verifies a SetNetworkPolicyRequest message. * @function verify - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodePoolAutoscaling.verify = function verify(message) { + SetNetworkPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - if (!$util.isInteger(message.minNodeCount)) - return "minNodeCount: integer expected"; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - if (!$util.isInteger(message.maxNodeCount)) - return "maxNodeCount: integer expected"; - if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) - if (typeof message.autoprovisioned !== "boolean") - return "autoprovisioned: boolean expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates a SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest */ - NodePoolAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePoolAutoscaling) + SetNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNetworkPolicyRequest) return object; - var message = new $root.google.container.v1.NodePoolAutoscaling(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.minNodeCount != null) - message.minNodeCount = object.minNodeCount | 0; - if (object.maxNodeCount != null) - message.maxNodeCount = object.maxNodeCount | 0; - if (object.autoprovisioned != null) - message.autoprovisioned = Boolean(object.autoprovisioned); + var message = new $root.google.container.v1.SetNetworkPolicyRequest(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.zone != null) + message.zone = String(object.zone); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.container.v1.SetNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); + } + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.NodePoolAutoscaling} message NodePoolAutoscaling + * @param {google.container.v1.SetNetworkPolicyRequest} message SetNetworkPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePoolAutoscaling.toObject = function toObject(message, options) { + SetNetworkPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.enabled = false; - object.minNodeCount = 0; - object.maxNodeCount = 0; - object.autoprovisioned = false; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.networkPolicy = null; + object.name = ""; } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - object.minNodeCount = message.minNodeCount; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - object.maxNodeCount = message.maxNodeCount; - if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) - object.autoprovisioned = message.autoprovisioned; + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NodePoolAutoscaling to JSON. + * Converts this SetNetworkPolicyRequest to JSON. * @function toJSON - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance * @returns {Object.} JSON object */ - NodePoolAutoscaling.prototype.toJSON = function toJSON() { + SetNetworkPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NodePoolAutoscaling; + return SetNetworkPolicyRequest; })(); - v1.SetLabelsRequest = (function() { + v1.SetMaintenancePolicyRequest = (function() { /** - * Properties of a SetLabelsRequest. + * Properties of a SetMaintenancePolicyRequest. * @memberof google.container.v1 - * @interface ISetLabelsRequest - * @property {string|null} [projectId] SetLabelsRequest projectId - * @property {string|null} [zone] SetLabelsRequest zone - * @property {string|null} [clusterId] SetLabelsRequest clusterId - * @property {Object.|null} [resourceLabels] SetLabelsRequest resourceLabels - * @property {string|null} [labelFingerprint] SetLabelsRequest labelFingerprint - * @property {string|null} [name] SetLabelsRequest name + * @interface ISetMaintenancePolicyRequest + * @property {string|null} [projectId] SetMaintenancePolicyRequest projectId + * @property {string|null} [zone] SetMaintenancePolicyRequest zone + * @property {string|null} [clusterId] SetMaintenancePolicyRequest clusterId + * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] SetMaintenancePolicyRequest maintenancePolicy + * @property {string|null} [name] SetMaintenancePolicyRequest name */ /** - * Constructs a new SetLabelsRequest. + * Constructs a new SetMaintenancePolicyRequest. * @memberof google.container.v1 - * @classdesc Represents a SetLabelsRequest. - * @implements ISetLabelsRequest + * @classdesc Represents a SetMaintenancePolicyRequest. + * @implements ISetMaintenancePolicyRequest * @constructor - * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set */ - function SetLabelsRequest(properties) { - this.resourceLabels = {}; + function SetMaintenancePolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19549,75 +24534,67 @@ } /** - * SetLabelsRequest projectId. + * SetMaintenancePolicyRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.projectId = ""; + SetMaintenancePolicyRequest.prototype.projectId = ""; /** - * SetLabelsRequest zone. + * SetMaintenancePolicyRequest zone. * @member {string} zone - * @memberof google.container.v1.SetLabelsRequest - * @instance - */ - SetLabelsRequest.prototype.zone = ""; - - /** - * SetLabelsRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.clusterId = ""; + SetMaintenancePolicyRequest.prototype.zone = ""; /** - * SetLabelsRequest resourceLabels. - * @member {Object.} resourceLabels - * @memberof google.container.v1.SetLabelsRequest + * SetMaintenancePolicyRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.resourceLabels = $util.emptyObject; + SetMaintenancePolicyRequest.prototype.clusterId = ""; /** - * SetLabelsRequest labelFingerprint. - * @member {string} labelFingerprint - * @memberof google.container.v1.SetLabelsRequest + * SetMaintenancePolicyRequest maintenancePolicy. + * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.labelFingerprint = ""; + SetMaintenancePolicyRequest.prototype.maintenancePolicy = null; /** - * SetLabelsRequest name. + * SetMaintenancePolicyRequest name. * @member {string} name - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.name = ""; + SetMaintenancePolicyRequest.prototype.name = ""; /** - * Creates a new SetLabelsRequest instance using the specified properties. + * Creates a new SetMaintenancePolicyRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest instance + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest instance */ - SetLabelsRequest.create = function create(properties) { - return new SetLabelsRequest(properties); + SetMaintenancePolicyRequest.create = function create(properties) { + return new SetMaintenancePolicyRequest(properties); }; /** - * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLabelsRequest.encode = function encode(message, writer) { + SetMaintenancePolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -19626,44 +24603,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) - for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceLabels[keys[i]]).ldelim(); - if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); + if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) + $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; /** - * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLabelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetMaintenancePolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLabelsRequest.decode = function decode(reader, length) { + SetMaintenancePolicyRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLabelsRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMaintenancePolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19677,31 +24651,9 @@ message.clusterId = reader.string(); break; case 4: - if (message.resourceLabels === $util.emptyObject) - message.resourceLabels = {}; - 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.resourceLabels[key] = value; + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); break; case 5: - message.labelFingerprint = reader.string(); - break; - case 7: message.name = reader.string(); break; default: @@ -19713,30 +24665,30 @@ }; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLabelsRequest.decodeDelimited = function decodeDelimited(reader) { + SetMaintenancePolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLabelsRequest message. + * Verifies a SetMaintenancePolicyRequest message. * @function verify - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLabelsRequest.verify = function verify(message) { + SetMaintenancePolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -19748,17 +24700,11 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string expected"; - if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) { - if (!$util.isObject(message.resourceLabels)) - return "resourceLabels: object expected"; - var key = Object.keys(message.resourceLabels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.resourceLabels[key[i]])) - return "resourceLabels: string{k:string} expected"; + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { + var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); + if (error) + return "maintenancePolicy." + error; } - if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) - if (!$util.isString(message.labelFingerprint)) - return "labelFingerprint: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -19766,57 +24712,51 @@ }; /** - * Creates a SetLabelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest */ - SetLabelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLabelsRequest) + SetMaintenancePolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMaintenancePolicyRequest) return object; - var message = new $root.google.container.v1.SetLabelsRequest(); + var message = new $root.google.container.v1.SetMaintenancePolicyRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); if (object.clusterId != null) message.clusterId = String(object.clusterId); - if (object.resourceLabels) { - if (typeof object.resourceLabels !== "object") - throw TypeError(".google.container.v1.SetLabelsRequest.resourceLabels: object expected"); - message.resourceLabels = {}; - for (var keys = Object.keys(object.resourceLabels), i = 0; i < keys.length; ++i) - message.resourceLabels[keys[i]] = String(object.resourceLabels[keys[i]]); + if (object.maintenancePolicy != null) { + if (typeof object.maintenancePolicy !== "object") + throw TypeError(".google.container.v1.SetMaintenancePolicyRequest.maintenancePolicy: object expected"); + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); } - if (object.labelFingerprint != null) - message.labelFingerprint = String(object.labelFingerprint); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.SetLabelsRequest} message SetLabelsRequest + * @param {google.container.v1.SetMaintenancePolicyRequest} message SetMaintenancePolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLabelsRequest.toObject = function toObject(message, options) { + SetMaintenancePolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.resourceLabels = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.labelFingerprint = ""; + object.maintenancePolicy = null; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -19825,55 +24765,46 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; - var keys2; - if (message.resourceLabels && (keys2 = Object.keys(message.resourceLabels)).length) { - object.resourceLabels = {}; - for (var j = 0; j < keys2.length; ++j) - object.resourceLabels[keys2[j]] = message.resourceLabels[keys2[j]]; - } - if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) - object.labelFingerprint = message.labelFingerprint; + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetLabelsRequest to JSON. + * Converts this SetMaintenancePolicyRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance * @returns {Object.} JSON object */ - SetLabelsRequest.prototype.toJSON = function toJSON() { + SetMaintenancePolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLabelsRequest; + return SetMaintenancePolicyRequest; })(); - v1.SetLegacyAbacRequest = (function() { + v1.StatusCondition = (function() { /** - * Properties of a SetLegacyAbacRequest. + * Properties of a StatusCondition. * @memberof google.container.v1 - * @interface ISetLegacyAbacRequest - * @property {string|null} [projectId] SetLegacyAbacRequest projectId - * @property {string|null} [zone] SetLegacyAbacRequest zone - * @property {string|null} [clusterId] SetLegacyAbacRequest clusterId - * @property {boolean|null} [enabled] SetLegacyAbacRequest enabled - * @property {string|null} [name] SetLegacyAbacRequest name + * @interface IStatusCondition + * @property {google.container.v1.StatusCondition.Code|null} [code] StatusCondition code + * @property {string|null} [message] StatusCondition message */ /** - * Constructs a new SetLegacyAbacRequest. + * Constructs a new StatusCondition. * @memberof google.container.v1 - * @classdesc Represents a SetLegacyAbacRequest. - * @implements ISetLegacyAbacRequest + * @classdesc Represents a StatusCondition. + * @implements IStatusCondition * @constructor - * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + * @param {google.container.v1.IStatusCondition=} [properties] Properties to set */ - function SetLegacyAbacRequest(properties) { + function StatusCondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19881,127 +24812,88 @@ } /** - * SetLegacyAbacRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.projectId = ""; - - /** - * SetLegacyAbacRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.zone = ""; - - /** - * SetLegacyAbacRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.clusterId = ""; - - /** - * SetLegacyAbacRequest enabled. - * @member {boolean} enabled - * @memberof google.container.v1.SetLegacyAbacRequest + * StatusCondition code. + * @member {google.container.v1.StatusCondition.Code} code + * @memberof google.container.v1.StatusCondition * @instance */ - SetLegacyAbacRequest.prototype.enabled = false; + StatusCondition.prototype.code = 0; /** - * SetLegacyAbacRequest name. - * @member {string} name - * @memberof google.container.v1.SetLegacyAbacRequest + * StatusCondition message. + * @member {string} message + * @memberof google.container.v1.StatusCondition * @instance */ - SetLegacyAbacRequest.prototype.name = ""; + StatusCondition.prototype.message = ""; /** - * Creates a new SetLegacyAbacRequest instance using the specified properties. + * Creates a new StatusCondition instance using the specified properties. * @function create - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest instance + * @param {google.container.v1.IStatusCondition=} [properties] Properties to set + * @returns {google.container.v1.StatusCondition} StatusCondition instance */ - SetLegacyAbacRequest.create = function create(properties) { - return new SetLegacyAbacRequest(properties); + StatusCondition.create = function create(properties) { + return new StatusCondition(properties); }; /** - * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLegacyAbacRequest.encode = function encode(message, writer) { + StatusCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLegacyAbacRequest.encodeDelimited = function encodeDelimited(message, writer) { + StatusCondition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. + * Decodes a StatusCondition message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.StatusCondition} StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLegacyAbacRequest.decode = function decode(reader, length) { + StatusCondition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLegacyAbacRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StatusCondition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.code = reader.int32(); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.enabled = reader.bool(); - break; - case 6: - message.name = reader.string(); + message.message = reader.string(); break; default: reader.skipType(tag & 7); @@ -20012,144 +24904,174 @@ }; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * Decodes a StatusCondition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.StatusCondition} StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLegacyAbacRequest.decodeDelimited = function decodeDelimited(reader) { + StatusCondition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLegacyAbacRequest message. + * Verifies a StatusCondition message. * @function verify - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLegacyAbacRequest.verify = function verify(message) { + StatusCondition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 7: + break; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StatusCondition message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.StatusCondition} StatusCondition */ - SetLegacyAbacRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLegacyAbacRequest) + StatusCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.StatusCondition) return object; - var message = new $root.google.container.v1.SetLegacyAbacRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.StatusCondition(); + switch (object.code) { + case "UNKNOWN": + case 0: + message.code = 0; + break; + case "GCE_STOCKOUT": + case 1: + message.code = 1; + break; + case "GKE_SERVICE_ACCOUNT_DELETED": + case 2: + message.code = 2; + break; + case "GCE_QUOTA_EXCEEDED": + case 3: + message.code = 3; + break; + case "SET_BY_OPERATOR": + case 4: + message.code = 4; + break; + case "CLOUD_KMS_KEY_ERROR": + case 7: + message.code = 7; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. + * Creates a plain object from a StatusCondition message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.SetLegacyAbacRequest} message SetLegacyAbacRequest + * @param {google.container.v1.StatusCondition} message StatusCondition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLegacyAbacRequest.toObject = function toObject(message, options) { + StatusCondition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.enabled = false; - object.name = ""; + object.code = options.enums === String ? "UNKNOWN" : 0; + object.message = ""; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] : message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this SetLegacyAbacRequest to JSON. + * Converts this StatusCondition to JSON. * @function toJSON - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @instance * @returns {Object.} JSON object */ - SetLegacyAbacRequest.prototype.toJSON = function toJSON() { + StatusCondition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLegacyAbacRequest; + /** + * Code enum. + * @name google.container.v1.StatusCondition.Code + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value + * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value + * @property {number} GCE_QUOTA_EXCEEDED=3 GCE_QUOTA_EXCEEDED value + * @property {number} SET_BY_OPERATOR=4 SET_BY_OPERATOR value + * @property {number} CLOUD_KMS_KEY_ERROR=7 CLOUD_KMS_KEY_ERROR value + */ + StatusCondition.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "GCE_STOCKOUT"] = 1; + values[valuesById[2] = "GKE_SERVICE_ACCOUNT_DELETED"] = 2; + values[valuesById[3] = "GCE_QUOTA_EXCEEDED"] = 3; + values[valuesById[4] = "SET_BY_OPERATOR"] = 4; + values[valuesById[7] = "CLOUD_KMS_KEY_ERROR"] = 7; + return values; + })(); + + return StatusCondition; })(); - v1.StartIPRotationRequest = (function() { + v1.NetworkConfig = (function() { /** - * Properties of a StartIPRotationRequest. + * Properties of a NetworkConfig. * @memberof google.container.v1 - * @interface IStartIPRotationRequest - * @property {string|null} [projectId] StartIPRotationRequest projectId - * @property {string|null} [zone] StartIPRotationRequest zone - * @property {string|null} [clusterId] StartIPRotationRequest clusterId - * @property {string|null} [name] StartIPRotationRequest name - * @property {boolean|null} [rotateCredentials] StartIPRotationRequest rotateCredentials + * @interface INetworkConfig + * @property {string|null} [network] NetworkConfig network + * @property {string|null} [subnetwork] NetworkConfig subnetwork + * @property {boolean|null} [enableIntraNodeVisibility] NetworkConfig enableIntraNodeVisibility + * @property {google.container.v1.IDefaultSnatStatus|null} [defaultSnatStatus] NetworkConfig defaultSnatStatus */ /** - * Constructs a new StartIPRotationRequest. + * Constructs a new NetworkConfig. * @memberof google.container.v1 - * @classdesc Represents a StartIPRotationRequest. - * @implements IStartIPRotationRequest + * @classdesc Represents a NetworkConfig. + * @implements INetworkConfig * @constructor - * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set */ - function StartIPRotationRequest(properties) { + function NetworkConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20157,127 +25079,114 @@ } /** - * StartIPRotationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.StartIPRotationRequest - * @instance - */ - StartIPRotationRequest.prototype.projectId = ""; - - /** - * StartIPRotationRequest zone. - * @member {string} zone - * @memberof google.container.v1.StartIPRotationRequest + * NetworkConfig network. + * @member {string} network + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.zone = ""; + NetworkConfig.prototype.network = ""; /** - * StartIPRotationRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.StartIPRotationRequest + * NetworkConfig subnetwork. + * @member {string} subnetwork + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.clusterId = ""; - - /** - * StartIPRotationRequest name. - * @member {string} name - * @memberof google.container.v1.StartIPRotationRequest + NetworkConfig.prototype.subnetwork = ""; + + /** + * NetworkConfig enableIntraNodeVisibility. + * @member {boolean} enableIntraNodeVisibility + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.name = ""; + NetworkConfig.prototype.enableIntraNodeVisibility = false; /** - * StartIPRotationRequest rotateCredentials. - * @member {boolean} rotateCredentials - * @memberof google.container.v1.StartIPRotationRequest + * NetworkConfig defaultSnatStatus. + * @member {google.container.v1.IDefaultSnatStatus|null|undefined} defaultSnatStatus + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.rotateCredentials = false; + NetworkConfig.prototype.defaultSnatStatus = null; /** - * Creates a new StartIPRotationRequest instance using the specified properties. + * Creates a new NetworkConfig instance using the specified properties. * @function create - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest instance + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + * @returns {google.container.v1.NetworkConfig} NetworkConfig instance */ - StartIPRotationRequest.create = function create(properties) { - return new StartIPRotationRequest(properties); + NetworkConfig.create = function create(properties) { + return new NetworkConfig(properties); }; /** - * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartIPRotationRequest.encode = function encode(message, writer) { + NetworkConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.rotateCredentials != null && Object.hasOwnProperty.call(message, "rotateCredentials")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); + if (message.enableIntraNodeVisibility != null && Object.hasOwnProperty.call(message, "enableIntraNodeVisibility")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); + if (message.defaultSnatStatus != null && Object.hasOwnProperty.call(message, "defaultSnatStatus")) + $root.google.container.v1.DefaultSnatStatus.encode(message.defaultSnatStatus, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer. + * Decodes a NetworkConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartIPRotationRequest.decode = function decode(reader, length) { + NetworkConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StartIPRotationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.network = reader.string(); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); + message.subnetwork = reader.string(); break; - case 6: - message.name = reader.string(); + case 5: + message.enableIntraNodeVisibility = reader.bool(); break; case 7: - message.rotateCredentials = reader.bool(); + message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20288,143 +25197,137 @@ }; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + NetworkConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartIPRotationRequest message. + * Verifies a NetworkConfig message. * @function verify - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartIPRotationRequest.verify = function verify(message) { + NetworkConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) - if (typeof message.rotateCredentials !== "boolean") - return "rotateCredentials: boolean expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + if (typeof message.enableIntraNodeVisibility !== "boolean") + return "enableIntraNodeVisibility: boolean expected"; + if (message.defaultSnatStatus != null && message.hasOwnProperty("defaultSnatStatus")) { + var error = $root.google.container.v1.DefaultSnatStatus.verify(message.defaultSnatStatus); + if (error) + return "defaultSnatStatus." + error; + } return null; }; /** - * Creates a StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.NetworkConfig} NetworkConfig */ - StartIPRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.StartIPRotationRequest) + NetworkConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkConfig) return object; - var message = new $root.google.container.v1.StartIPRotationRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.name != null) - message.name = String(object.name); - if (object.rotateCredentials != null) - message.rotateCredentials = Boolean(object.rotateCredentials); + var message = new $root.google.container.v1.NetworkConfig(); + if (object.network != null) + message.network = String(object.network); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.enableIntraNodeVisibility != null) + message.enableIntraNodeVisibility = Boolean(object.enableIntraNodeVisibility); + if (object.defaultSnatStatus != null) { + if (typeof object.defaultSnatStatus !== "object") + throw TypeError(".google.container.v1.NetworkConfig.defaultSnatStatus: object expected"); + message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.fromObject(object.defaultSnatStatus); + } return message; }; /** - * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.StartIPRotationRequest} message StartIPRotationRequest + * @param {google.container.v1.NetworkConfig} message NetworkConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartIPRotationRequest.toObject = function toObject(message, options) { + NetworkConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.name = ""; - object.rotateCredentials = false; + object.network = ""; + object.subnetwork = ""; + object.enableIntraNodeVisibility = false; + object.defaultSnatStatus = null; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) - object.rotateCredentials = message.rotateCredentials; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + object.enableIntraNodeVisibility = message.enableIntraNodeVisibility; + if (message.defaultSnatStatus != null && message.hasOwnProperty("defaultSnatStatus")) + object.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.toObject(message.defaultSnatStatus, options); return object; }; /** - * Converts this StartIPRotationRequest to JSON. + * Converts this NetworkConfig to JSON. * @function toJSON - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @instance * @returns {Object.} JSON object */ - StartIPRotationRequest.prototype.toJSON = function toJSON() { + NetworkConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartIPRotationRequest; + return NetworkConfig; })(); - v1.CompleteIPRotationRequest = (function() { + v1.GetOpenIDConfigRequest = (function() { /** - * Properties of a CompleteIPRotationRequest. + * Properties of a GetOpenIDConfigRequest. * @memberof google.container.v1 - * @interface ICompleteIPRotationRequest - * @property {string|null} [projectId] CompleteIPRotationRequest projectId - * @property {string|null} [zone] CompleteIPRotationRequest zone - * @property {string|null} [clusterId] CompleteIPRotationRequest clusterId - * @property {string|null} [name] CompleteIPRotationRequest name + * @interface IGetOpenIDConfigRequest + * @property {string|null} [parent] GetOpenIDConfigRequest parent */ /** - * Constructs a new CompleteIPRotationRequest. + * Constructs a new GetOpenIDConfigRequest. * @memberof google.container.v1 - * @classdesc Represents a CompleteIPRotationRequest. - * @implements ICompleteIPRotationRequest + * @classdesc Represents a GetOpenIDConfigRequest. + * @implements IGetOpenIDConfigRequest * @constructor - * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set */ - function CompleteIPRotationRequest(properties) { + function GetOpenIDConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20432,114 +25335,75 @@ } /** - * CompleteIPRotationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.projectId = ""; - - /** - * CompleteIPRotationRequest zone. - * @member {string} zone - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.zone = ""; - - /** - * CompleteIPRotationRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.clusterId = ""; - - /** - * CompleteIPRotationRequest name. - * @member {string} name - * @memberof google.container.v1.CompleteIPRotationRequest + * GetOpenIDConfigRequest parent. + * @member {string} parent + * @memberof google.container.v1.GetOpenIDConfigRequest * @instance */ - CompleteIPRotationRequest.prototype.name = ""; + GetOpenIDConfigRequest.prototype.parent = ""; /** - * Creates a new CompleteIPRotationRequest instance using the specified properties. + * Creates a new GetOpenIDConfigRequest instance using the specified properties. * @function create - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest instance + * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest instance */ - CompleteIPRotationRequest.create = function create(properties) { - return new CompleteIPRotationRequest(properties); + GetOpenIDConfigRequest.create = function create(properties) { + return new GetOpenIDConfigRequest(properties); }; /** - * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * Encodes the specified GetOpenIDConfigRequest message. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteIPRotationRequest.encode = function encode(message, writer) { + GetOpenIDConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); return writer; }; /** - * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * Encodes the specified GetOpenIDConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetOpenIDConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteIPRotationRequest.decode = function decode(reader, length) { + GetOpenIDConfigRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CompleteIPRotationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetOpenIDConfigRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); - break; - case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 7: - message.name = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -20550,133 +25414,118 @@ }; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + GetOpenIDConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompleteIPRotationRequest message. + * Verifies a GetOpenIDConfigRequest message. * @function verify - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompleteIPRotationRequest.verify = function verify(message) { + GetOpenIDConfigRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetOpenIDConfigRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest */ - CompleteIPRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CompleteIPRotationRequest) + GetOpenIDConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOpenIDConfigRequest) return object; - var message = new $root.google.container.v1.CompleteIPRotationRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.GetOpenIDConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetOpenIDConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.CompleteIPRotationRequest} message CompleteIPRotationRequest + * @param {google.container.v1.GetOpenIDConfigRequest} message GetOpenIDConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompleteIPRotationRequest.toObject = function toObject(message, options) { + GetOpenIDConfigRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.name = ""; - } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this CompleteIPRotationRequest to JSON. + * Converts this GetOpenIDConfigRequest to JSON. * @function toJSON - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @instance * @returns {Object.} JSON object */ - CompleteIPRotationRequest.prototype.toJSON = function toJSON() { + GetOpenIDConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CompleteIPRotationRequest; + return GetOpenIDConfigRequest; })(); - v1.AcceleratorConfig = (function() { + v1.GetOpenIDConfigResponse = (function() { /** - * Properties of an AcceleratorConfig. + * Properties of a GetOpenIDConfigResponse. * @memberof google.container.v1 - * @interface IAcceleratorConfig - * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount - * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType + * @interface IGetOpenIDConfigResponse + * @property {string|null} [issuer] GetOpenIDConfigResponse issuer + * @property {string|null} [jwksUri] GetOpenIDConfigResponse jwksUri + * @property {Array.|null} [responseTypesSupported] GetOpenIDConfigResponse responseTypesSupported + * @property {Array.|null} [subjectTypesSupported] GetOpenIDConfigResponse subjectTypesSupported + * @property {Array.|null} [idTokenSigningAlgValuesSupported] GetOpenIDConfigResponse idTokenSigningAlgValuesSupported + * @property {Array.|null} [claimsSupported] GetOpenIDConfigResponse claimsSupported + * @property {Array.|null} [grantTypes] GetOpenIDConfigResponse grantTypes */ /** - * Constructs a new AcceleratorConfig. + * Constructs a new GetOpenIDConfigResponse. * @memberof google.container.v1 - * @classdesc Represents an AcceleratorConfig. - * @implements IAcceleratorConfig + * @classdesc Represents a GetOpenIDConfigResponse. + * @implements IGetOpenIDConfigResponse * @constructor - * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set - */ - function AcceleratorConfig(properties) { + * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set + */ + function GetOpenIDConfigResponse(properties) { + this.responseTypesSupported = []; + this.subjectTypesSupported = []; + this.idTokenSigningAlgValuesSupported = []; + this.claimsSupported = []; + this.grantTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20684,88 +25533,168 @@ } /** - * AcceleratorConfig acceleratorCount. - * @member {number|Long} acceleratorCount - * @memberof google.container.v1.AcceleratorConfig + * GetOpenIDConfigResponse issuer. + * @member {string} issuer + * @memberof google.container.v1.GetOpenIDConfigResponse * @instance */ - AcceleratorConfig.prototype.acceleratorCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GetOpenIDConfigResponse.prototype.issuer = ""; /** - * AcceleratorConfig acceleratorType. - * @member {string} acceleratorType - * @memberof google.container.v1.AcceleratorConfig + * GetOpenIDConfigResponse jwksUri. + * @member {string} jwksUri + * @memberof google.container.v1.GetOpenIDConfigResponse * @instance */ - AcceleratorConfig.prototype.acceleratorType = ""; + GetOpenIDConfigResponse.prototype.jwksUri = ""; /** - * Creates a new AcceleratorConfig instance using the specified properties. + * GetOpenIDConfigResponse responseTypesSupported. + * @member {Array.} responseTypesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.responseTypesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse subjectTypesSupported. + * @member {Array.} subjectTypesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.subjectTypesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse idTokenSigningAlgValuesSupported. + * @member {Array.} idTokenSigningAlgValuesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.idTokenSigningAlgValuesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse claimsSupported. + * @member {Array.} claimsSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.claimsSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse grantTypes. + * @member {Array.} grantTypes + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.grantTypes = $util.emptyArray; + + /** + * Creates a new GetOpenIDConfigResponse instance using the specified properties. * @function create - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig instance + * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse instance */ - AcceleratorConfig.create = function create(properties) { - return new AcceleratorConfig(properties); + GetOpenIDConfigResponse.create = function create(properties) { + return new GetOpenIDConfigResponse(properties); }; /** - * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * Encodes the specified GetOpenIDConfigResponse message. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceleratorConfig.encode = function encode(message, writer) { + GetOpenIDConfigResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); - if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); + if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); + if (message.jwksUri != null && Object.hasOwnProperty.call(message, "jwksUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jwksUri); + if (message.responseTypesSupported != null && message.responseTypesSupported.length) + for (var i = 0; i < message.responseTypesSupported.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.responseTypesSupported[i]); + if (message.subjectTypesSupported != null && message.subjectTypesSupported.length) + for (var i = 0; i < message.subjectTypesSupported.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.subjectTypesSupported[i]); + if (message.idTokenSigningAlgValuesSupported != null && message.idTokenSigningAlgValuesSupported.length) + for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.idTokenSigningAlgValuesSupported[i]); + if (message.claimsSupported != null && message.claimsSupported.length) + for (var i = 0; i < message.claimsSupported.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.claimsSupported[i]); + if (message.grantTypes != null && message.grantTypes.length) + for (var i = 0; i < message.grantTypes.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.grantTypes[i]); return writer; }; /** - * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * Encodes the specified GetOpenIDConfigResponse message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceleratorConfig.encodeDelimited = function encodeDelimited(message, writer) { + GetOpenIDConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer. + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceleratorConfig.decode = function decode(reader, length) { + GetOpenIDConfigResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AcceleratorConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetOpenIDConfigResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.acceleratorCount = reader.int64(); + message.issuer = reader.string(); break; case 2: - message.acceleratorType = reader.string(); + message.jwksUri = reader.string(); + break; + case 3: + if (!(message.responseTypesSupported && message.responseTypesSupported.length)) + message.responseTypesSupported = []; + message.responseTypesSupported.push(reader.string()); + break; + case 4: + if (!(message.subjectTypesSupported && message.subjectTypesSupported.length)) + message.subjectTypesSupported = []; + message.subjectTypesSupported.push(reader.string()); + break; + case 5: + if (!(message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length)) + message.idTokenSigningAlgValuesSupported = []; + message.idTokenSigningAlgValuesSupported.push(reader.string()); + break; + case 6: + if (!(message.claimsSupported && message.claimsSupported.length)) + message.claimsSupported = []; + message.claimsSupported.push(reader.string()); + break; + case 7: + if (!(message.grantTypes && message.grantTypes.length)) + message.grantTypes = []; + message.grantTypes.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -20776,134 +25705,218 @@ }; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceleratorConfig.decodeDelimited = function decodeDelimited(reader) { + GetOpenIDConfigResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcceleratorConfig message. + * Verifies a GetOpenIDConfigResponse message. * @function verify - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcceleratorConfig.verify = function verify(message) { + GetOpenIDConfigResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) - if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) - return "acceleratorCount: integer|Long expected"; - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) - if (!$util.isString(message.acceleratorType)) - return "acceleratorType: string expected"; + if (message.issuer != null && message.hasOwnProperty("issuer")) + if (!$util.isString(message.issuer)) + return "issuer: string expected"; + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + if (!$util.isString(message.jwksUri)) + return "jwksUri: string expected"; + if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { + if (!Array.isArray(message.responseTypesSupported)) + return "responseTypesSupported: array expected"; + for (var i = 0; i < message.responseTypesSupported.length; ++i) + if (!$util.isString(message.responseTypesSupported[i])) + return "responseTypesSupported: string[] expected"; + } + if (message.subjectTypesSupported != null && message.hasOwnProperty("subjectTypesSupported")) { + if (!Array.isArray(message.subjectTypesSupported)) + return "subjectTypesSupported: array expected"; + for (var i = 0; i < message.subjectTypesSupported.length; ++i) + if (!$util.isString(message.subjectTypesSupported[i])) + return "subjectTypesSupported: string[] expected"; + } + if (message.idTokenSigningAlgValuesSupported != null && message.hasOwnProperty("idTokenSigningAlgValuesSupported")) { + if (!Array.isArray(message.idTokenSigningAlgValuesSupported)) + return "idTokenSigningAlgValuesSupported: array expected"; + for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) + if (!$util.isString(message.idTokenSigningAlgValuesSupported[i])) + return "idTokenSigningAlgValuesSupported: string[] expected"; + } + if (message.claimsSupported != null && message.hasOwnProperty("claimsSupported")) { + if (!Array.isArray(message.claimsSupported)) + return "claimsSupported: array expected"; + for (var i = 0; i < message.claimsSupported.length; ++i) + if (!$util.isString(message.claimsSupported[i])) + return "claimsSupported: string[] expected"; + } + if (message.grantTypes != null && message.hasOwnProperty("grantTypes")) { + if (!Array.isArray(message.grantTypes)) + return "grantTypes: array expected"; + for (var i = 0; i < message.grantTypes.length; ++i) + if (!$util.isString(message.grantTypes[i])) + return "grantTypes: string[] expected"; + } return null; }; /** - * Creates an AcceleratorConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetOpenIDConfigResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse */ - AcceleratorConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AcceleratorConfig) + GetOpenIDConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOpenIDConfigResponse) return object; - var message = new $root.google.container.v1.AcceleratorConfig(); - if (object.acceleratorCount != null) - if ($util.Long) - (message.acceleratorCount = $util.Long.fromValue(object.acceleratorCount)).unsigned = false; - else if (typeof object.acceleratorCount === "string") - message.acceleratorCount = parseInt(object.acceleratorCount, 10); - else if (typeof object.acceleratorCount === "number") - message.acceleratorCount = object.acceleratorCount; - else if (typeof object.acceleratorCount === "object") - message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); - if (object.acceleratorType != null) - message.acceleratorType = String(object.acceleratorType); + var message = new $root.google.container.v1.GetOpenIDConfigResponse(); + if (object.issuer != null) + message.issuer = String(object.issuer); + if (object.jwksUri != null) + message.jwksUri = String(object.jwksUri); + if (object.responseTypesSupported) { + if (!Array.isArray(object.responseTypesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.responseTypesSupported: array expected"); + message.responseTypesSupported = []; + for (var i = 0; i < object.responseTypesSupported.length; ++i) + message.responseTypesSupported[i] = String(object.responseTypesSupported[i]); + } + if (object.subjectTypesSupported) { + if (!Array.isArray(object.subjectTypesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.subjectTypesSupported: array expected"); + message.subjectTypesSupported = []; + for (var i = 0; i < object.subjectTypesSupported.length; ++i) + message.subjectTypesSupported[i] = String(object.subjectTypesSupported[i]); + } + if (object.idTokenSigningAlgValuesSupported) { + if (!Array.isArray(object.idTokenSigningAlgValuesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.idTokenSigningAlgValuesSupported: array expected"); + message.idTokenSigningAlgValuesSupported = []; + for (var i = 0; i < object.idTokenSigningAlgValuesSupported.length; ++i) + message.idTokenSigningAlgValuesSupported[i] = String(object.idTokenSigningAlgValuesSupported[i]); + } + if (object.claimsSupported) { + if (!Array.isArray(object.claimsSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.claimsSupported: array expected"); + message.claimsSupported = []; + for (var i = 0; i < object.claimsSupported.length; ++i) + message.claimsSupported[i] = String(object.claimsSupported[i]); + } + if (object.grantTypes) { + if (!Array.isArray(object.grantTypes)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.grantTypes: array expected"); + message.grantTypes = []; + for (var i = 0; i < object.grantTypes.length; ++i) + message.grantTypes[i] = String(object.grantTypes[i]); + } return message; }; /** - * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. + * Creates a plain object from a GetOpenIDConfigResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.AcceleratorConfig} message AcceleratorConfig + * @param {google.container.v1.GetOpenIDConfigResponse} message GetOpenIDConfigResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcceleratorConfig.toObject = function toObject(message, options) { + GetOpenIDConfigResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.responseTypesSupported = []; + object.subjectTypesSupported = []; + object.idTokenSigningAlgValuesSupported = []; + object.claimsSupported = []; + object.grantTypes = []; + } if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.acceleratorCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.acceleratorCount = options.longs === String ? "0" : 0; - object.acceleratorType = ""; + object.issuer = ""; + object.jwksUri = ""; + } + if (message.issuer != null && message.hasOwnProperty("issuer")) + object.issuer = message.issuer; + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + object.jwksUri = message.jwksUri; + if (message.responseTypesSupported && message.responseTypesSupported.length) { + object.responseTypesSupported = []; + for (var j = 0; j < message.responseTypesSupported.length; ++j) + object.responseTypesSupported[j] = message.responseTypesSupported[j]; + } + if (message.subjectTypesSupported && message.subjectTypesSupported.length) { + object.subjectTypesSupported = []; + for (var j = 0; j < message.subjectTypesSupported.length; ++j) + object.subjectTypesSupported[j] = message.subjectTypesSupported[j]; + } + if (message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length) { + object.idTokenSigningAlgValuesSupported = []; + for (var j = 0; j < message.idTokenSigningAlgValuesSupported.length; ++j) + object.idTokenSigningAlgValuesSupported[j] = message.idTokenSigningAlgValuesSupported[j]; + } + if (message.claimsSupported && message.claimsSupported.length) { + object.claimsSupported = []; + for (var j = 0; j < message.claimsSupported.length; ++j) + object.claimsSupported[j] = message.claimsSupported[j]; + } + if (message.grantTypes && message.grantTypes.length) { + object.grantTypes = []; + for (var j = 0; j < message.grantTypes.length; ++j) + object.grantTypes[j] = message.grantTypes[j]; } - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) - if (typeof message.acceleratorCount === "number") - object.acceleratorCount = options.longs === String ? String(message.acceleratorCount) : message.acceleratorCount; - else - object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) - object.acceleratorType = message.acceleratorType; return object; }; /** - * Converts this AcceleratorConfig to JSON. + * Converts this GetOpenIDConfigResponse to JSON. * @function toJSON - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @instance * @returns {Object.} JSON object */ - AcceleratorConfig.prototype.toJSON = function toJSON() { + GetOpenIDConfigResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AcceleratorConfig; + return GetOpenIDConfigResponse; })(); - v1.SetNetworkPolicyRequest = (function() { + v1.GetJSONWebKeysRequest = (function() { /** - * Properties of a SetNetworkPolicyRequest. + * Properties of a GetJSONWebKeysRequest. * @memberof google.container.v1 - * @interface ISetNetworkPolicyRequest - * @property {string|null} [projectId] SetNetworkPolicyRequest projectId - * @property {string|null} [zone] SetNetworkPolicyRequest zone - * @property {string|null} [clusterId] SetNetworkPolicyRequest clusterId - * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] SetNetworkPolicyRequest networkPolicy - * @property {string|null} [name] SetNetworkPolicyRequest name + * @interface IGetJSONWebKeysRequest + * @property {string|null} [parent] GetJSONWebKeysRequest parent */ /** - * Constructs a new SetNetworkPolicyRequest. + * Constructs a new GetJSONWebKeysRequest. * @memberof google.container.v1 - * @classdesc Represents a SetNetworkPolicyRequest. - * @implements ISetNetworkPolicyRequest + * @classdesc Represents a GetJSONWebKeysRequest. + * @implements IGetJSONWebKeysRequest * @constructor - * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + * @param {google.container.v1.IGetJSONWebKeysRequest=} [properties] Properties to set */ - function SetNetworkPolicyRequest(properties) { + function GetJSONWebKeysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20911,127 +25924,75 @@ } /** - * SetNetworkPolicyRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.projectId = ""; - - /** - * SetNetworkPolicyRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.zone = ""; - - /** - * SetNetworkPolicyRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.clusterId = ""; - - /** - * SetNetworkPolicyRequest networkPolicy. - * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.networkPolicy = null; - - /** - * SetNetworkPolicyRequest name. - * @member {string} name - * @memberof google.container.v1.SetNetworkPolicyRequest + * GetJSONWebKeysRequest parent. + * @member {string} parent + * @memberof google.container.v1.GetJSONWebKeysRequest * @instance */ - SetNetworkPolicyRequest.prototype.name = ""; + GetJSONWebKeysRequest.prototype.parent = ""; /** - * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * Creates a new GetJSONWebKeysRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest instance + * @param {google.container.v1.IGetJSONWebKeysRequest=} [properties] Properties to set + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest instance */ - SetNetworkPolicyRequest.create = function create(properties) { - return new SetNetworkPolicyRequest(properties); + GetJSONWebKeysRequest.create = function create(properties) { + return new GetJSONWebKeysRequest(properties); }; /** - * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified GetJSONWebKeysRequest message. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysRequest} message GetJSONWebKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNetworkPolicyRequest.encode = function encode(message, writer) { + GetJSONWebKeysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) - $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); return writer; }; /** - * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified GetJSONWebKeysRequest message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysRequest} message GetJSONWebKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetJSONWebKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNetworkPolicyRequest.decode = function decode(reader, length) { + GetJSONWebKeysRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetJSONWebKeysRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); - break; - case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); - break; - case 6: - message.name = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -21042,149 +26003,115 @@ }; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + GetJSONWebKeysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNetworkPolicyRequest message. + * Verifies a GetJSONWebKeysRequest message. * @function verify - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNetworkPolicyRequest.verify = function verify(message) { + GetJSONWebKeysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetJSONWebKeysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest */ - SetNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNetworkPolicyRequest) + GetJSONWebKeysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetJSONWebKeysRequest) return object; - var message = new $root.google.container.v1.SetNetworkPolicyRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.container.v1.SetNetworkPolicyRequest.networkPolicy: object expected"); - message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); - } - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.GetJSONWebKeysRequest(); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetJSONWebKeysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.SetNetworkPolicyRequest} message SetNetworkPolicyRequest + * @param {google.container.v1.GetJSONWebKeysRequest} message GetJSONWebKeysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNetworkPolicyRequest.toObject = function toObject(message, options) { + GetJSONWebKeysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.networkPolicy = null; - object.name = ""; - } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this SetNetworkPolicyRequest to JSON. + * Converts this GetJSONWebKeysRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @instance * @returns {Object.} JSON object */ - SetNetworkPolicyRequest.prototype.toJSON = function toJSON() { + GetJSONWebKeysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNetworkPolicyRequest; + return GetJSONWebKeysRequest; })(); - v1.SetMaintenancePolicyRequest = (function() { + v1.Jwk = (function() { /** - * Properties of a SetMaintenancePolicyRequest. + * Properties of a Jwk. * @memberof google.container.v1 - * @interface ISetMaintenancePolicyRequest - * @property {string|null} [projectId] SetMaintenancePolicyRequest projectId - * @property {string|null} [zone] SetMaintenancePolicyRequest zone - * @property {string|null} [clusterId] SetMaintenancePolicyRequest clusterId - * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] SetMaintenancePolicyRequest maintenancePolicy - * @property {string|null} [name] SetMaintenancePolicyRequest name + * @interface IJwk + * @property {string|null} [kty] Jwk kty + * @property {string|null} [alg] Jwk alg + * @property {string|null} [use] Jwk use + * @property {string|null} [kid] Jwk kid + * @property {string|null} [n] Jwk n + * @property {string|null} [e] Jwk e + * @property {string|null} [x] Jwk x + * @property {string|null} [y] Jwk y + * @property {string|null} [crv] Jwk crv */ /** - * Constructs a new SetMaintenancePolicyRequest. + * Constructs a new Jwk. * @memberof google.container.v1 - * @classdesc Represents a SetMaintenancePolicyRequest. - * @implements ISetMaintenancePolicyRequest + * @classdesc Represents a Jwk. + * @implements IJwk * @constructor - * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + * @param {google.container.v1.IJwk=} [properties] Properties to set */ - function SetMaintenancePolicyRequest(properties) { + function Jwk(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21192,127 +26119,179 @@ } /** - * SetMaintenancePolicyRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk kty. + * @member {string} kty + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.projectId = ""; + Jwk.prototype.kty = ""; /** - * SetMaintenancePolicyRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk alg. + * @member {string} alg + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.zone = ""; + Jwk.prototype.alg = ""; /** - * SetMaintenancePolicyRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk use. + * @member {string} use + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.clusterId = ""; + Jwk.prototype.use = ""; /** - * SetMaintenancePolicyRequest maintenancePolicy. - * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk kid. + * @member {string} kid + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.maintenancePolicy = null; + Jwk.prototype.kid = ""; /** - * SetMaintenancePolicyRequest name. - * @member {string} name - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk n. + * @member {string} n + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.name = ""; + Jwk.prototype.n = ""; /** - * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * Jwk e. + * @member {string} e + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.e = ""; + + /** + * Jwk x. + * @member {string} x + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.x = ""; + + /** + * Jwk y. + * @member {string} y + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.y = ""; + + /** + * Jwk crv. + * @member {string} crv + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.crv = ""; + + /** + * Creates a new Jwk instance using the specified properties. * @function create - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest instance + * @param {google.container.v1.IJwk=} [properties] Properties to set + * @returns {google.container.v1.Jwk} Jwk instance */ - SetMaintenancePolicyRequest.create = function create(properties) { - return new SetMaintenancePolicyRequest(properties); + Jwk.create = function create(properties) { + return new Jwk(properties); }; /** - * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * Encodes the specified Jwk message. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {google.container.v1.IJwk} message Jwk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMaintenancePolicyRequest.encode = function encode(message, writer) { + Jwk.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) - $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.kty != null && Object.hasOwnProperty.call(message, "kty")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kty); + if (message.alg != null && Object.hasOwnProperty.call(message, "alg")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.alg); + if (message.use != null && Object.hasOwnProperty.call(message, "use")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.use); + if (message.kid != null && Object.hasOwnProperty.call(message, "kid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.kid); + if (message.n != null && Object.hasOwnProperty.call(message, "n")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.n); + if (message.e != null && Object.hasOwnProperty.call(message, "e")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.e); + if (message.x != null && Object.hasOwnProperty.call(message, "x")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.x); + if (message.y != null && Object.hasOwnProperty.call(message, "y")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.y); + if (message.crv != null && Object.hasOwnProperty.call(message, "crv")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.crv); return writer; }; /** - * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * Encodes the specified Jwk message, length delimited. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {google.container.v1.IJwk} message Jwk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMaintenancePolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + Jwk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. + * Decodes a Jwk message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @returns {google.container.v1.Jwk} Jwk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMaintenancePolicyRequest.decode = function decode(reader, length) { + Jwk.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMaintenancePolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Jwk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.kty = reader.string(); break; case 2: - message.zone = reader.string(); + message.alg = reader.string(); break; case 3: - message.clusterId = reader.string(); + message.use = reader.string(); break; case 4: - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); + message.kid = reader.string(); break; case 5: - message.name = reader.string(); + message.n = reader.string(); + break; + case 6: + message.e = reader.string(); + break; + case 7: + message.x = reader.string(); + break; + case 8: + message.y = reader.string(); + break; + case 9: + message.crv = reader.string(); break; default: reader.skipType(tag & 7); @@ -21323,146 +26302,173 @@ }; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a Jwk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @returns {google.container.v1.Jwk} Jwk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMaintenancePolicyRequest.decodeDelimited = function decodeDelimited(reader) { + Jwk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMaintenancePolicyRequest message. + * Verifies a Jwk message. * @function verify - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetMaintenancePolicyRequest.verify = function verify(message) { + Jwk.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { - var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); - if (error) - return "maintenancePolicy." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.kty != null && message.hasOwnProperty("kty")) + if (!$util.isString(message.kty)) + return "kty: string expected"; + if (message.alg != null && message.hasOwnProperty("alg")) + if (!$util.isString(message.alg)) + return "alg: string expected"; + if (message.use != null && message.hasOwnProperty("use")) + if (!$util.isString(message.use)) + return "use: string expected"; + if (message.kid != null && message.hasOwnProperty("kid")) + if (!$util.isString(message.kid)) + return "kid: string expected"; + if (message.n != null && message.hasOwnProperty("n")) + if (!$util.isString(message.n)) + return "n: string expected"; + if (message.e != null && message.hasOwnProperty("e")) + if (!$util.isString(message.e)) + return "e: string expected"; + if (message.x != null && message.hasOwnProperty("x")) + if (!$util.isString(message.x)) + return "x: string expected"; + if (message.y != null && message.hasOwnProperty("y")) + if (!$util.isString(message.y)) + return "y: string expected"; + if (message.crv != null && message.hasOwnProperty("crv")) + if (!$util.isString(message.crv)) + return "crv: string expected"; return null; }; /** - * Creates a SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Jwk message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @returns {google.container.v1.Jwk} Jwk */ - SetMaintenancePolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetMaintenancePolicyRequest) - return object; - var message = new $root.google.container.v1.SetMaintenancePolicyRequest(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.zone != null) - message.zone = String(object.zone); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.maintenancePolicy != null) { - if (typeof object.maintenancePolicy !== "object") - throw TypeError(".google.container.v1.SetMaintenancePolicyRequest.maintenancePolicy: object expected"); - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); - } - if (object.name != null) - message.name = String(object.name); + Jwk.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.Jwk) + return object; + var message = new $root.google.container.v1.Jwk(); + if (object.kty != null) + message.kty = String(object.kty); + if (object.alg != null) + message.alg = String(object.alg); + if (object.use != null) + message.use = String(object.use); + if (object.kid != null) + message.kid = String(object.kid); + if (object.n != null) + message.n = String(object.n); + if (object.e != null) + message.e = String(object.e); + if (object.x != null) + message.x = String(object.x); + if (object.y != null) + message.y = String(object.y); + if (object.crv != null) + message.crv = String(object.crv); return message; }; /** - * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a Jwk message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.SetMaintenancePolicyRequest} message SetMaintenancePolicyRequest + * @param {google.container.v1.Jwk} message Jwk * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMaintenancePolicyRequest.toObject = function toObject(message, options) { + Jwk.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.maintenancePolicy = null; - object.name = ""; - } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) - object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.kty = ""; + object.alg = ""; + object.use = ""; + object.kid = ""; + object.n = ""; + object.e = ""; + object.x = ""; + object.y = ""; + object.crv = ""; + } + if (message.kty != null && message.hasOwnProperty("kty")) + object.kty = message.kty; + if (message.alg != null && message.hasOwnProperty("alg")) + object.alg = message.alg; + if (message.use != null && message.hasOwnProperty("use")) + object.use = message.use; + if (message.kid != null && message.hasOwnProperty("kid")) + object.kid = message.kid; + if (message.n != null && message.hasOwnProperty("n")) + object.n = message.n; + if (message.e != null && message.hasOwnProperty("e")) + object.e = message.e; + if (message.x != null && message.hasOwnProperty("x")) + object.x = message.x; + if (message.y != null && message.hasOwnProperty("y")) + object.y = message.y; + if (message.crv != null && message.hasOwnProperty("crv")) + object.crv = message.crv; return object; }; /** - * Converts this SetMaintenancePolicyRequest to JSON. + * Converts this Jwk to JSON. * @function toJSON - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @instance * @returns {Object.} JSON object */ - SetMaintenancePolicyRequest.prototype.toJSON = function toJSON() { + Jwk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetMaintenancePolicyRequest; + return Jwk; })(); - v1.StatusCondition = (function() { + v1.GetJSONWebKeysResponse = (function() { /** - * Properties of a StatusCondition. + * Properties of a GetJSONWebKeysResponse. * @memberof google.container.v1 - * @interface IStatusCondition - * @property {google.container.v1.StatusCondition.Code|null} [code] StatusCondition code - * @property {string|null} [message] StatusCondition message + * @interface IGetJSONWebKeysResponse + * @property {Array.|null} [keys] GetJSONWebKeysResponse keys */ /** - * Constructs a new StatusCondition. + * Constructs a new GetJSONWebKeysResponse. * @memberof google.container.v1 - * @classdesc Represents a StatusCondition. - * @implements IStatusCondition + * @classdesc Represents a GetJSONWebKeysResponse. + * @implements IGetJSONWebKeysResponse * @constructor - * @param {google.container.v1.IStatusCondition=} [properties] Properties to set + * @param {google.container.v1.IGetJSONWebKeysResponse=} [properties] Properties to set */ - function StatusCondition(properties) { + function GetJSONWebKeysResponse(properties) { + this.keys = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21470,88 +26476,78 @@ } /** - * StatusCondition code. - * @member {google.container.v1.StatusCondition.Code} code - * @memberof google.container.v1.StatusCondition - * @instance - */ - StatusCondition.prototype.code = 0; - - /** - * StatusCondition message. - * @member {string} message - * @memberof google.container.v1.StatusCondition + * GetJSONWebKeysResponse keys. + * @member {Array.} keys + * @memberof google.container.v1.GetJSONWebKeysResponse * @instance */ - StatusCondition.prototype.message = ""; + GetJSONWebKeysResponse.prototype.keys = $util.emptyArray; /** - * Creates a new StatusCondition instance using the specified properties. + * Creates a new GetJSONWebKeysResponse instance using the specified properties. * @function create - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.IStatusCondition=} [properties] Properties to set - * @returns {google.container.v1.StatusCondition} StatusCondition instance + * @param {google.container.v1.IGetJSONWebKeysResponse=} [properties] Properties to set + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse instance */ - StatusCondition.create = function create(properties) { - return new StatusCondition(properties); + GetJSONWebKeysResponse.create = function create(properties) { + return new GetJSONWebKeysResponse(properties); }; /** - * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. + * Encodes the specified GetJSONWebKeysResponse message. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysResponse} message GetJSONWebKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusCondition.encode = function encode(message, writer) { + GetJSONWebKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.keys != null && message.keys.length) + for (var i = 0; i < message.keys.length; ++i) + $root.google.container.v1.Jwk.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. + * Encodes the specified GetJSONWebKeysResponse message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysResponse} message GetJSONWebKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusCondition.encodeDelimited = function encodeDelimited(message, writer) { + GetJSONWebKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StatusCondition message from the specified reader or buffer. + * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.StatusCondition} StatusCondition + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusCondition.decode = function decode(reader, length) { + GetJSONWebKeysResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StatusCondition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetJSONWebKeysResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.int32(); - break; - case 2: - message.message = reader.string(); + if (!(message.keys && message.keys.length)) + message.keys = []; + message.keys.push($root.google.container.v1.Jwk.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -21562,173 +26558,124 @@ }; /** - * Decodes a StatusCondition message from the specified reader or buffer, length delimited. + * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.StatusCondition} StatusCondition + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusCondition.decodeDelimited = function decodeDelimited(reader) { + GetJSONWebKeysResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StatusCondition message. + * Verifies a GetJSONWebKeysResponse message. * @function verify - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StatusCondition.verify = function verify(message) { + GetJSONWebKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - switch (message.code) { - default: - return "code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 7: - break; + if (message.keys != null && message.hasOwnProperty("keys")) { + if (!Array.isArray(message.keys)) + return "keys: array expected"; + for (var i = 0; i < message.keys.length; ++i) { + var error = $root.google.container.v1.Jwk.verify(message.keys[i]); + if (error) + return "keys." + error; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + } return null; }; /** - * Creates a StatusCondition message from a plain object. Also converts values to their respective internal types. + * Creates a GetJSONWebKeysResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.StatusCondition} StatusCondition + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse */ - StatusCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.StatusCondition) + GetJSONWebKeysResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetJSONWebKeysResponse) return object; - var message = new $root.google.container.v1.StatusCondition(); - switch (object.code) { - case "UNKNOWN": - case 0: - message.code = 0; - break; - case "GCE_STOCKOUT": - case 1: - message.code = 1; - break; - case "GKE_SERVICE_ACCOUNT_DELETED": - case 2: - message.code = 2; - break; - case "GCE_QUOTA_EXCEEDED": - case 3: - message.code = 3; - break; - case "SET_BY_OPERATOR": - case 4: - message.code = 4; - break; - case "CLOUD_KMS_KEY_ERROR": - case 7: - message.code = 7; - break; + var message = new $root.google.container.v1.GetJSONWebKeysResponse(); + if (object.keys) { + if (!Array.isArray(object.keys)) + throw TypeError(".google.container.v1.GetJSONWebKeysResponse.keys: array expected"); + message.keys = []; + for (var i = 0; i < object.keys.length; ++i) { + if (typeof object.keys[i] !== "object") + throw TypeError(".google.container.v1.GetJSONWebKeysResponse.keys: object expected"); + message.keys[i] = $root.google.container.v1.Jwk.fromObject(object.keys[i]); + } } - if (object.message != null) - message.message = String(object.message); return message; }; /** - * Creates a plain object from a StatusCondition message. Also converts values to other types if specified. + * Creates a plain object from a GetJSONWebKeysResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.StatusCondition} message StatusCondition + * @param {google.container.v1.GetJSONWebKeysResponse} message GetJSONWebKeysResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StatusCondition.toObject = function toObject(message, options) { + GetJSONWebKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.code = options.enums === String ? "UNKNOWN" : 0; - object.message = ""; + if (options.arrays || options.defaults) + object.keys = []; + if (message.keys && message.keys.length) { + object.keys = []; + for (var j = 0; j < message.keys.length; ++j) + object.keys[j] = $root.google.container.v1.Jwk.toObject(message.keys[j], options); } - if (message.code != null && message.hasOwnProperty("code")) - object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] : message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; return object; }; /** - * Converts this StatusCondition to JSON. + * Converts this GetJSONWebKeysResponse to JSON. * @function toJSON - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @instance * @returns {Object.} JSON object */ - StatusCondition.prototype.toJSON = function toJSON() { + GetJSONWebKeysResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Code enum. - * @name google.container.v1.StatusCondition.Code - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value - * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value - * @property {number} GCE_QUOTA_EXCEEDED=3 GCE_QUOTA_EXCEEDED value - * @property {number} SET_BY_OPERATOR=4 SET_BY_OPERATOR value - * @property {number} CLOUD_KMS_KEY_ERROR=7 CLOUD_KMS_KEY_ERROR value - */ - StatusCondition.Code = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "GCE_STOCKOUT"] = 1; - values[valuesById[2] = "GKE_SERVICE_ACCOUNT_DELETED"] = 2; - values[valuesById[3] = "GCE_QUOTA_EXCEEDED"] = 3; - values[valuesById[4] = "SET_BY_OPERATOR"] = 4; - values[valuesById[7] = "CLOUD_KMS_KEY_ERROR"] = 7; - return values; - })(); - - return StatusCondition; + return GetJSONWebKeysResponse; })(); - v1.NetworkConfig = (function() { + v1.ReleaseChannel = (function() { /** - * Properties of a NetworkConfig. + * Properties of a ReleaseChannel. * @memberof google.container.v1 - * @interface INetworkConfig - * @property {string|null} [network] NetworkConfig network - * @property {string|null} [subnetwork] NetworkConfig subnetwork - * @property {boolean|null} [enableIntraNodeVisibility] NetworkConfig enableIntraNodeVisibility + * @interface IReleaseChannel + * @property {google.container.v1.ReleaseChannel.Channel|null} [channel] ReleaseChannel channel */ /** - * Constructs a new NetworkConfig. + * Constructs a new ReleaseChannel. * @memberof google.container.v1 - * @classdesc Represents a NetworkConfig. - * @implements INetworkConfig + * @classdesc Represents a ReleaseChannel. + * @implements IReleaseChannel * @constructor - * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + * @param {google.container.v1.IReleaseChannel=} [properties] Properties to set */ - function NetworkConfig(properties) { + function ReleaseChannel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21736,101 +26683,75 @@ } /** - * NetworkConfig network. - * @member {string} network - * @memberof google.container.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.network = ""; - - /** - * NetworkConfig subnetwork. - * @member {string} subnetwork - * @memberof google.container.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.subnetwork = ""; - - /** - * NetworkConfig enableIntraNodeVisibility. - * @member {boolean} enableIntraNodeVisibility - * @memberof google.container.v1.NetworkConfig + * ReleaseChannel channel. + * @member {google.container.v1.ReleaseChannel.Channel} channel + * @memberof google.container.v1.ReleaseChannel * @instance */ - NetworkConfig.prototype.enableIntraNodeVisibility = false; + ReleaseChannel.prototype.channel = 0; /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new ReleaseChannel instance using the specified properties. * @function create - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.INetworkConfig=} [properties] Properties to set - * @returns {google.container.v1.NetworkConfig} NetworkConfig instance + * @param {google.container.v1.IReleaseChannel=} [properties] Properties to set + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel instance */ - NetworkConfig.create = function create(properties) { - return new NetworkConfig(properties); + ReleaseChannel.create = function create(properties) { + return new ReleaseChannel(properties); }; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ReleaseChannel message. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages. * @function encode - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.container.v1.IReleaseChannel} message ReleaseChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encode = function encode(message, writer) { + ReleaseChannel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); - if (message.enableIntraNodeVisibility != null && Object.hasOwnProperty.call(message, "enableIntraNodeVisibility")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channel); return writer; }; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ReleaseChannel message, length delimited. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.container.v1.IReleaseChannel} message ReleaseChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseChannel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a ReleaseChannel message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decode = function decode(reader, length) { + ReleaseChannel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ReleaseChannel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.network = reader.string(); - break; - case 2: - message.subnetwork = reader.string(); - break; - case 5: - message.enableIntraNodeVisibility = reader.bool(); + message.channel = reader.int32(); break; default: reader.skipType(tag & 7); @@ -21841,104 +26762,128 @@ }; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a ReleaseChannel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decodeDelimited = function decodeDelimited(reader) { + ReleaseChannel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a NetworkConfig message. - * @function verify - * @memberof google.container.v1.NetworkConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - if (!$util.isString(message.subnetwork)) - return "subnetwork: string expected"; - if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) - if (typeof message.enableIntraNodeVisibility !== "boolean") - return "enableIntraNodeVisibility: boolean expected"; + /** + * Verifies a ReleaseChannel message. + * @function verify + * @memberof google.container.v1.ReleaseChannel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReleaseChannel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + switch (message.channel) { + default: + return "channel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ReleaseChannel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel */ - NetworkConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NetworkConfig) + ReleaseChannel.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ReleaseChannel) return object; - var message = new $root.google.container.v1.NetworkConfig(); - if (object.network != null) - message.network = String(object.network); - if (object.subnetwork != null) - message.subnetwork = String(object.subnetwork); - if (object.enableIntraNodeVisibility != null) - message.enableIntraNodeVisibility = Boolean(object.enableIntraNodeVisibility); + var message = new $root.google.container.v1.ReleaseChannel(); + switch (object.channel) { + case "UNSPECIFIED": + case 0: + message.channel = 0; + break; + case "RAPID": + case 1: + message.channel = 1; + break; + case "REGULAR": + case 2: + message.channel = 2; + break; + case "STABLE": + case 3: + message.channel = 3; + break; + } return message; }; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * Creates a plain object from a ReleaseChannel message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.NetworkConfig} message NetworkConfig + * @param {google.container.v1.ReleaseChannel} message ReleaseChannel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkConfig.toObject = function toObject(message, options) { + ReleaseChannel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.network = ""; - object.subnetwork = ""; - object.enableIntraNodeVisibility = false; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - object.subnetwork = message.subnetwork; - if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) - object.enableIntraNodeVisibility = message.enableIntraNodeVisibility; + if (options.defaults) + object.channel = options.enums === String ? "UNSPECIFIED" : 0; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; return object; }; /** - * Converts this NetworkConfig to JSON. + * Converts this ReleaseChannel to JSON. * @function toJSON - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @instance * @returns {Object.} JSON object */ - NetworkConfig.prototype.toJSON = function toJSON() { + ReleaseChannel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NetworkConfig; + /** + * Channel enum. + * @name google.container.v1.ReleaseChannel.Channel + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} RAPID=1 RAPID value + * @property {number} REGULAR=2 REGULAR value + * @property {number} STABLE=3 STABLE value + */ + ReleaseChannel.Channel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "RAPID"] = 1; + values[valuesById[2] = "REGULAR"] = 2; + values[valuesById[3] = "STABLE"] = 3; + return values; + })(); + + return ReleaseChannel; })(); v1.IntraNodeVisibilityConfig = (function() { @@ -22143,9 +27088,210 @@ * @classdesc Represents a MaxPodsConstraint. * @implements IMaxPodsConstraint * @constructor - * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set + * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set + */ + function MaxPodsConstraint(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]]; + } + + /** + * MaxPodsConstraint maxPodsPerNode. + * @member {number|Long} maxPodsPerNode + * @memberof google.container.v1.MaxPodsConstraint + * @instance + */ + MaxPodsConstraint.prototype.maxPodsPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new MaxPodsConstraint instance using the specified properties. + * @function create + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint instance + */ + MaxPodsConstraint.create = function create(properties) { + return new MaxPodsConstraint(properties); + }; + + /** + * Encodes the specified MaxPodsConstraint message. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaxPodsConstraint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); + return writer; + }; + + /** + * Encodes the specified MaxPodsConstraint message, length delimited. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaxPodsConstraint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaxPodsConstraint message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaxPodsConstraint.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaxPodsConstraint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxPodsPerNode = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MaxPodsConstraint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaxPodsConstraint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MaxPodsConstraint message. + * @function verify + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaxPodsConstraint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (!$util.isInteger(message.maxPodsPerNode) && !(message.maxPodsPerNode && $util.isInteger(message.maxPodsPerNode.low) && $util.isInteger(message.maxPodsPerNode.high))) + return "maxPodsPerNode: integer|Long expected"; + return null; + }; + + /** + * Creates a MaxPodsConstraint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + */ + MaxPodsConstraint.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaxPodsConstraint) + return object; + var message = new $root.google.container.v1.MaxPodsConstraint(); + if (object.maxPodsPerNode != null) + if ($util.Long) + (message.maxPodsPerNode = $util.Long.fromValue(object.maxPodsPerNode)).unsigned = false; + else if (typeof object.maxPodsPerNode === "string") + message.maxPodsPerNode = parseInt(object.maxPodsPerNode, 10); + else if (typeof object.maxPodsPerNode === "number") + message.maxPodsPerNode = object.maxPodsPerNode; + else if (typeof object.maxPodsPerNode === "object") + message.maxPodsPerNode = new $util.LongBits(object.maxPodsPerNode.low >>> 0, object.maxPodsPerNode.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a MaxPodsConstraint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.MaxPodsConstraint} message MaxPodsConstraint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MaxPodsConstraint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxPodsPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxPodsPerNode = options.longs === String ? "0" : 0; + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (typeof message.maxPodsPerNode === "number") + object.maxPodsPerNode = options.longs === String ? String(message.maxPodsPerNode) : message.maxPodsPerNode; + else + object.maxPodsPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.maxPodsPerNode) : options.longs === Number ? new $util.LongBits(message.maxPodsPerNode.low >>> 0, message.maxPodsPerNode.high >>> 0).toNumber() : message.maxPodsPerNode; + return object; + }; + + /** + * Converts this MaxPodsConstraint to JSON. + * @function toJSON + * @memberof google.container.v1.MaxPodsConstraint + * @instance + * @returns {Object.} JSON object + */ + MaxPodsConstraint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MaxPodsConstraint; + })(); + + v1.WorkloadIdentityConfig = (function() { + + /** + * Properties of a WorkloadIdentityConfig. + * @memberof google.container.v1 + * @interface IWorkloadIdentityConfig + * @property {string|null} [workloadPool] WorkloadIdentityConfig workloadPool + */ + + /** + * Constructs a new WorkloadIdentityConfig. + * @memberof google.container.v1 + * @classdesc Represents a WorkloadIdentityConfig. + * @implements IWorkloadIdentityConfig + * @constructor + * @param {google.container.v1.IWorkloadIdentityConfig=} [properties] Properties to set */ - function MaxPodsConstraint(properties) { + function WorkloadIdentityConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22153,75 +27299,75 @@ } /** - * MaxPodsConstraint maxPodsPerNode. - * @member {number|Long} maxPodsPerNode - * @memberof google.container.v1.MaxPodsConstraint + * WorkloadIdentityConfig workloadPool. + * @member {string} workloadPool + * @memberof google.container.v1.WorkloadIdentityConfig * @instance */ - MaxPodsConstraint.prototype.maxPodsPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + WorkloadIdentityConfig.prototype.workloadPool = ""; /** - * Creates a new MaxPodsConstraint instance using the specified properties. + * Creates a new WorkloadIdentityConfig instance using the specified properties. * @function create - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint instance + * @param {google.container.v1.IWorkloadIdentityConfig=} [properties] Properties to set + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig instance */ - MaxPodsConstraint.create = function create(properties) { - return new MaxPodsConstraint(properties); + WorkloadIdentityConfig.create = function create(properties) { + return new WorkloadIdentityConfig(properties); }; /** - * Encodes the specified MaxPodsConstraint message. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {google.container.v1.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaxPodsConstraint.encode = function encode(message, writer) { + WorkloadIdentityConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); + if (message.workloadPool != null && Object.hasOwnProperty.call(message, "workloadPool")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.workloadPool); return writer; }; /** - * Encodes the specified MaxPodsConstraint message, length delimited. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {google.container.v1.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaxPodsConstraint.encodeDelimited = function encodeDelimited(message, writer) { + WorkloadIdentityConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaxPodsConstraint message from the specified reader or buffer. + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaxPodsConstraint.decode = function decode(reader, length) { + WorkloadIdentityConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaxPodsConstraint(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.WorkloadIdentityConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.maxPodsPerNode = reader.int64(); + case 2: + message.workloadPool = reader.string(); break; default: reader.skipType(tag & 7); @@ -22232,101 +27378,87 @@ }; /** - * Decodes a MaxPodsConstraint message from the specified reader or buffer, length delimited. + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaxPodsConstraint.decodeDelimited = function decodeDelimited(reader) { + WorkloadIdentityConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaxPodsConstraint message. + * Verifies a WorkloadIdentityConfig message. * @function verify - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaxPodsConstraint.verify = function verify(message) { + WorkloadIdentityConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) - if (!$util.isInteger(message.maxPodsPerNode) && !(message.maxPodsPerNode && $util.isInteger(message.maxPodsPerNode.low) && $util.isInteger(message.maxPodsPerNode.high))) - return "maxPodsPerNode: integer|Long expected"; + if (message.workloadPool != null && message.hasOwnProperty("workloadPool")) + if (!$util.isString(message.workloadPool)) + return "workloadPool: string expected"; return null; }; /** - * Creates a MaxPodsConstraint message from a plain object. Also converts values to their respective internal types. + * Creates a WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig */ - MaxPodsConstraint.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaxPodsConstraint) + WorkloadIdentityConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.WorkloadIdentityConfig) return object; - var message = new $root.google.container.v1.MaxPodsConstraint(); - if (object.maxPodsPerNode != null) - if ($util.Long) - (message.maxPodsPerNode = $util.Long.fromValue(object.maxPodsPerNode)).unsigned = false; - else if (typeof object.maxPodsPerNode === "string") - message.maxPodsPerNode = parseInt(object.maxPodsPerNode, 10); - else if (typeof object.maxPodsPerNode === "number") - message.maxPodsPerNode = object.maxPodsPerNode; - else if (typeof object.maxPodsPerNode === "object") - message.maxPodsPerNode = new $util.LongBits(object.maxPodsPerNode.low >>> 0, object.maxPodsPerNode.high >>> 0).toNumber(); + var message = new $root.google.container.v1.WorkloadIdentityConfig(); + if (object.workloadPool != null) + message.workloadPool = String(object.workloadPool); return message; }; /** - * Creates a plain object from a MaxPodsConstraint message. Also converts values to other types if specified. + * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.MaxPodsConstraint} message MaxPodsConstraint + * @param {google.container.v1.WorkloadIdentityConfig} message WorkloadIdentityConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaxPodsConstraint.toObject = function toObject(message, options) { + WorkloadIdentityConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxPodsPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxPodsPerNode = options.longs === String ? "0" : 0; - if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) - if (typeof message.maxPodsPerNode === "number") - object.maxPodsPerNode = options.longs === String ? String(message.maxPodsPerNode) : message.maxPodsPerNode; - else - object.maxPodsPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.maxPodsPerNode) : options.longs === Number ? new $util.LongBits(message.maxPodsPerNode.low >>> 0, message.maxPodsPerNode.high >>> 0).toNumber() : message.maxPodsPerNode; + object.workloadPool = ""; + if (message.workloadPool != null && message.hasOwnProperty("workloadPool")) + object.workloadPool = message.workloadPool; return object; }; /** - * Converts this MaxPodsConstraint to JSON. + * Converts this WorkloadIdentityConfig to JSON. * @function toJSON - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @instance * @returns {Object.} JSON object */ - MaxPodsConstraint.prototype.toJSON = function toJSON() { + WorkloadIdentityConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaxPodsConstraint; + return WorkloadIdentityConfig; })(); v1.DatabaseEncryption = (function() { @@ -23875,24 +29007,211 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ResourceUsageExportConfig.BigQueryDestination = (function() { + ResourceUsageExportConfig.BigQueryDestination = (function() { + + /** + * Properties of a BigQueryDestination. + * @memberof google.container.v1.ResourceUsageExportConfig + * @interface IBigQueryDestination + * @property {string|null} [datasetId] BigQueryDestination datasetId + */ + + /** + * Constructs a new BigQueryDestination. + * @memberof google.container.v1.ResourceUsageExportConfig + * @classdesc Represents a BigQueryDestination. + * @implements IBigQueryDestination + * @constructor + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + */ + function BigQueryDestination(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]]; + } + + /** + * BigQueryDestination datasetId. + * @member {string} datasetId + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @instance + */ + BigQueryDestination.prototype.datasetId = ""; + + /** + * Creates a new BigQueryDestination instance using the specified properties. + * @function create + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination instance + */ + BigQueryDestination.create = function create(properties) { + return new BigQueryDestination(properties); + }; + + /** + * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQueryDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + return writer; + }; + + /** + * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQueryDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQueryDestination.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.datasetId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQueryDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BigQueryDestination message. + * @function verify + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigQueryDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + return null; + }; + + /** + * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + */ + BigQueryDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) + return object; + var message = new $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + return message; + }; + + /** + * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} message BigQueryDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigQueryDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.datasetId = ""; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + return object; + }; + + /** + * Converts this BigQueryDestination to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @instance + * @returns {Object.} JSON object + */ + BigQueryDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BigQueryDestination; + })(); + + ResourceUsageExportConfig.ConsumptionMeteringConfig = (function() { /** - * Properties of a BigQueryDestination. + * Properties of a ConsumptionMeteringConfig. * @memberof google.container.v1.ResourceUsageExportConfig - * @interface IBigQueryDestination - * @property {string|null} [datasetId] BigQueryDestination datasetId + * @interface IConsumptionMeteringConfig + * @property {boolean|null} [enabled] ConsumptionMeteringConfig enabled */ /** - * Constructs a new BigQueryDestination. + * Constructs a new ConsumptionMeteringConfig. * @memberof google.container.v1.ResourceUsageExportConfig - * @classdesc Represents a BigQueryDestination. - * @implements IBigQueryDestination + * @classdesc Represents a ConsumptionMeteringConfig. + * @implements IConsumptionMeteringConfig * @constructor - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set */ - function BigQueryDestination(properties) { + function ConsumptionMeteringConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23900,376 +29219,563 @@ } /** - * BigQueryDestination datasetId. - * @member {string} datasetId - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * ConsumptionMeteringConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @instance */ - BigQueryDestination.prototype.datasetId = ""; + ConsumptionMeteringConfig.prototype.enabled = false; /** - * Creates a new BigQueryDestination instance using the specified properties. + * Creates a new ConsumptionMeteringConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination instance + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig instance */ - BigQueryDestination.create = function create(properties) { - return new BigQueryDestination(properties); + ConsumptionMeteringConfig.create = function create(properties) { + return new ConsumptionMeteringConfig(properties); }; /** - * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * Encodes the specified ConsumptionMeteringConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BigQueryDestination.encode = function encode(message, writer) { + ConsumptionMeteringConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; /** - * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * Encodes the specified ConsumptionMeteringConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BigQueryDestination.encodeDelimited = function encodeDelimited(message, writer) { + ConsumptionMeteringConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BigQueryDestination message from the specified reader or buffer. + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BigQueryDestination.decode = function decode(reader, length) { + ConsumptionMeteringConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.datasetId = reader.string(); + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); break; } } - return message; - }; - - /** - * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BigQueryDestination.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; + + /** + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsumptionMeteringConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConsumptionMeteringConfig message. + * @function verify + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConsumptionMeteringConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a ConsumptionMeteringConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig + */ + ConsumptionMeteringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + return object; + var message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ConsumptionMeteringConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} message ConsumptionMeteringConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConsumptionMeteringConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this ConsumptionMeteringConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @instance + * @returns {Object.} JSON object + */ + ConsumptionMeteringConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ConsumptionMeteringConfig; + })(); + + return ResourceUsageExportConfig; + })(); + + v1.VerticalPodAutoscaling = (function() { + + /** + * Properties of a VerticalPodAutoscaling. + * @memberof google.container.v1 + * @interface IVerticalPodAutoscaling + * @property {boolean|null} [enabled] VerticalPodAutoscaling enabled + */ + + /** + * Constructs a new VerticalPodAutoscaling. + * @memberof google.container.v1 + * @classdesc Represents a VerticalPodAutoscaling. + * @implements IVerticalPodAutoscaling + * @constructor + * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set + */ + function VerticalPodAutoscaling(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]]; + } + + /** + * VerticalPodAutoscaling enabled. + * @member {boolean} enabled + * @memberof google.container.v1.VerticalPodAutoscaling + * @instance + */ + VerticalPodAutoscaling.prototype.enabled = false; + + /** + * Creates a new VerticalPodAutoscaling instance using the specified properties. + * @function create + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling instance + */ + VerticalPodAutoscaling.create = function create(properties) { + return new VerticalPodAutoscaling(properties); + }; + + /** + * Encodes the specified VerticalPodAutoscaling message. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * @function encode + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VerticalPodAutoscaling.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified VerticalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VerticalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VerticalPodAutoscaling message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VerticalPodAutoscaling.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.VerticalPodAutoscaling(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a BigQueryDestination message. - * @function verify - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BigQueryDestination.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - if (!$util.isString(message.datasetId)) - return "datasetId: string expected"; - return null; - }; + /** + * Decodes a VerticalPodAutoscaling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VerticalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination - */ - BigQueryDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - return object; - var message = new $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); - if (object.datasetId != null) - message.datasetId = String(object.datasetId); - return message; - }; + /** + * Verifies a VerticalPodAutoscaling message. + * @function verify + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VerticalPodAutoscaling.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; - /** - * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} message BigQueryDestination - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BigQueryDestination.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.datasetId = ""; - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - object.datasetId = message.datasetId; + /** + * Creates a VerticalPodAutoscaling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + */ + VerticalPodAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.VerticalPodAutoscaling) return object; - }; + var message = new $root.google.container.v1.VerticalPodAutoscaling(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; - /** - * Converts this BigQueryDestination to JSON. - * @function toJSON - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @instance - * @returns {Object.} JSON object - */ - BigQueryDestination.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a VerticalPodAutoscaling message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.VerticalPodAutoscaling} message VerticalPodAutoscaling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VerticalPodAutoscaling.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; - return BigQueryDestination; - })(); + /** + * Converts this VerticalPodAutoscaling to JSON. + * @function toJSON + * @memberof google.container.v1.VerticalPodAutoscaling + * @instance + * @returns {Object.} JSON object + */ + VerticalPodAutoscaling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ResourceUsageExportConfig.ConsumptionMeteringConfig = (function() { + return VerticalPodAutoscaling; + })(); - /** - * Properties of a ConsumptionMeteringConfig. - * @memberof google.container.v1.ResourceUsageExportConfig - * @interface IConsumptionMeteringConfig - * @property {boolean|null} [enabled] ConsumptionMeteringConfig enabled - */ + v1.DefaultSnatStatus = (function() { - /** - * Constructs a new ConsumptionMeteringConfig. - * @memberof google.container.v1.ResourceUsageExportConfig - * @classdesc Represents a ConsumptionMeteringConfig. - * @implements IConsumptionMeteringConfig - * @constructor - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set - */ - function ConsumptionMeteringConfig(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]]; - } + /** + * Properties of a DefaultSnatStatus. + * @memberof google.container.v1 + * @interface IDefaultSnatStatus + * @property {boolean|null} [disabled] DefaultSnatStatus disabled + */ - /** - * ConsumptionMeteringConfig enabled. - * @member {boolean} enabled - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @instance - */ - ConsumptionMeteringConfig.prototype.enabled = false; + /** + * Constructs a new DefaultSnatStatus. + * @memberof google.container.v1 + * @classdesc Represents a DefaultSnatStatus. + * @implements IDefaultSnatStatus + * @constructor + * @param {google.container.v1.IDefaultSnatStatus=} [properties] Properties to set + */ + function DefaultSnatStatus(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]]; + } - /** - * Creates a new ConsumptionMeteringConfig instance using the specified properties. - * @function create - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig instance - */ - ConsumptionMeteringConfig.create = function create(properties) { - return new ConsumptionMeteringConfig(properties); - }; + /** + * DefaultSnatStatus disabled. + * @member {boolean} disabled + * @memberof google.container.v1.DefaultSnatStatus + * @instance + */ + DefaultSnatStatus.prototype.disabled = false; - /** - * Encodes the specified ConsumptionMeteringConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. - * @function encode - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConsumptionMeteringConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - return writer; - }; + /** + * Creates a new DefaultSnatStatus instance using the specified properties. + * @function create + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.IDefaultSnatStatus=} [properties] Properties to set + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus instance + */ + DefaultSnatStatus.create = function create(properties) { + return new DefaultSnatStatus(properties); + }; + + /** + * Encodes the specified DefaultSnatStatus message. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.IDefaultSnatStatus} message DefaultSnatStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DefaultSnatStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + return writer; + }; - /** - * Encodes the specified ConsumptionMeteringConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConsumptionMeteringConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DefaultSnatStatus message, length delimited. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.IDefaultSnatStatus} message DefaultSnatStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DefaultSnatStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer. - * @function decode - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConsumptionMeteringConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a DefaultSnatStatus message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DefaultSnatStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DefaultSnatStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.disabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConsumptionMeteringConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ConsumptionMeteringConfig message. - * @function verify - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConsumptionMeteringConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - return null; - }; + /** + * Decodes a DefaultSnatStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DefaultSnatStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ConsumptionMeteringConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig - */ - ConsumptionMeteringConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - return object; - var message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - return message; - }; + /** + * Verifies a DefaultSnatStatus message. + * @function verify + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DefaultSnatStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; + return null; + }; - /** - * Creates a plain object from a ConsumptionMeteringConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} message ConsumptionMeteringConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConsumptionMeteringConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.enabled = false; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; + /** + * Creates a DefaultSnatStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus + */ + DefaultSnatStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DefaultSnatStatus) return object; - }; + var message = new $root.google.container.v1.DefaultSnatStatus(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + return message; + }; - /** - * Converts this ConsumptionMeteringConfig to JSON. - * @function toJSON - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @instance - * @returns {Object.} JSON object - */ - ConsumptionMeteringConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DefaultSnatStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.DefaultSnatStatus} message DefaultSnatStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DefaultSnatStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.disabled = false; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + return object; + }; - return ConsumptionMeteringConfig; - })(); + /** + * Converts this DefaultSnatStatus to JSON. + * @function toJSON + * @memberof google.container.v1.DefaultSnatStatus + * @instance + * @returns {Object.} JSON object + */ + DefaultSnatStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ResourceUsageExportConfig; + return DefaultSnatStatus; })(); - v1.VerticalPodAutoscaling = (function() { + v1.ShieldedNodes = (function() { /** - * Properties of a VerticalPodAutoscaling. + * Properties of a ShieldedNodes. * @memberof google.container.v1 - * @interface IVerticalPodAutoscaling - * @property {boolean|null} [enabled] VerticalPodAutoscaling enabled + * @interface IShieldedNodes + * @property {boolean|null} [enabled] ShieldedNodes enabled */ /** - * Constructs a new VerticalPodAutoscaling. + * Constructs a new ShieldedNodes. * @memberof google.container.v1 - * @classdesc Represents a VerticalPodAutoscaling. - * @implements IVerticalPodAutoscaling + * @classdesc Represents a ShieldedNodes. + * @implements IShieldedNodes * @constructor - * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set + * @param {google.container.v1.IShieldedNodes=} [properties] Properties to set */ - function VerticalPodAutoscaling(properties) { + function ShieldedNodes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24277,35 +29783,35 @@ } /** - * VerticalPodAutoscaling enabled. + * ShieldedNodes enabled. * @member {boolean} enabled - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @instance */ - VerticalPodAutoscaling.prototype.enabled = false; + ShieldedNodes.prototype.enabled = false; /** - * Creates a new VerticalPodAutoscaling instance using the specified properties. + * Creates a new ShieldedNodes instance using the specified properties. * @function create - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling instance + * @param {google.container.v1.IShieldedNodes=} [properties] Properties to set + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes instance */ - VerticalPodAutoscaling.create = function create(properties) { - return new VerticalPodAutoscaling(properties); + ShieldedNodes.create = function create(properties) { + return new ShieldedNodes(properties); }; /** - * Encodes the specified VerticalPodAutoscaling message. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * Encodes the specified ShieldedNodes message. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages. * @function encode - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {google.container.v1.IShieldedNodes} message ShieldedNodes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VerticalPodAutoscaling.encode = function encode(message, writer) { + ShieldedNodes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) @@ -24314,33 +29820,33 @@ }; /** - * Encodes the specified VerticalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * Encodes the specified ShieldedNodes message, length delimited. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {google.container.v1.IShieldedNodes} message ShieldedNodes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VerticalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + ShieldedNodes.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VerticalPodAutoscaling message from the specified reader or buffer. + * Decodes a ShieldedNodes message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VerticalPodAutoscaling.decode = function decode(reader, length) { + ShieldedNodes.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.VerticalPodAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ShieldedNodes(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24356,30 +29862,30 @@ }; /** - * Decodes a VerticalPodAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a ShieldedNodes message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VerticalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { + ShieldedNodes.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VerticalPodAutoscaling message. + * Verifies a ShieldedNodes message. * @function verify - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VerticalPodAutoscaling.verify = function verify(message) { + ShieldedNodes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.enabled != null && message.hasOwnProperty("enabled")) @@ -24389,32 +29895,32 @@ }; /** - * Creates a VerticalPodAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates a ShieldedNodes message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {Object.} object Plain object - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes */ - VerticalPodAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.VerticalPodAutoscaling) + ShieldedNodes.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ShieldedNodes) return object; - var message = new $root.google.container.v1.VerticalPodAutoscaling(); + var message = new $root.google.container.v1.ShieldedNodes(); if (object.enabled != null) message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a VerticalPodAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from a ShieldedNodes message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.VerticalPodAutoscaling} message VerticalPodAutoscaling + * @param {google.container.v1.ShieldedNodes} message ShieldedNodes * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VerticalPodAutoscaling.toObject = function toObject(message, options) { + ShieldedNodes.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24426,17 +29932,17 @@ }; /** - * Converts this VerticalPodAutoscaling to JSON. + * Converts this ShieldedNodes to JSON. * @function toJSON - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @instance * @returns {Object.} JSON object */ - VerticalPodAutoscaling.prototype.toJSON = function toJSON() { + ShieldedNodes.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VerticalPodAutoscaling; + return ShieldedNodes; })(); return v1; diff --git a/protos/protos.json b/protos/protos.json index b57e61d..3a45bc4 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -28,7 +28,23 @@ "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/clusters", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/clusters", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone" + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetCluster": { "requestType": "GetClusterRequest", @@ -37,7 +53,23 @@ "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/clusters/*}", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateCluster": { "requestType": "CreateClusterRequest", @@ -48,7 +80,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "parent,cluster" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/clusters", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster" + }, + { + "(google.api.method_signature)": "parent,cluster" + } + ] }, "UpdateCluster": { "requestType": "UpdateClusterRequest", @@ -59,7 +109,25 @@ "(google.api.http).additional_bindings.put": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,update" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1/{name=projects/*/locations/*/clusters/*}", + "body": "*", + "additional_bindings": { + "put": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,update" + }, + { + "(google.api.method_signature)": "name,update" + } + ] }, "UpdateNodePool": { "requestType": "UpdateNodePoolRequest", @@ -69,7 +137,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update", + "body": "*" + } + } + } + ] }, "SetNodePoolAutoscaling": { "requestType": "SetNodePoolAutoscalingRequest", @@ -79,7 +159,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling", + "body": "*" + } + } + } + ] }, "SetLoggingService": { "requestType": "SetLoggingServiceRequest", @@ -90,7 +182,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,logging_service" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setLogging", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,logging_service" + }, + { + "(google.api.method_signature)": "name,logging_service" + } + ] }, "SetMonitoringService": { "requestType": "SetMonitoringServiceRequest", @@ -101,7 +211,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,monitoring_service" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,monitoring_service" + }, + { + "(google.api.method_signature)": "name,monitoring_service" + } + ] }, "SetAddonsConfig": { "requestType": "SetAddonsConfigRequest", @@ -112,18 +240,58 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,addons_config" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setAddons", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,addons_config" + }, + { + "(google.api.method_signature)": "name,addons_config" + } + ] }, "SetLocations": { "requestType": "SetLocationsRequest", "responseType": "Operation", "options": { + "deprecated": true, "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLocations", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,locations" - } + }, + "parsedOptions": [ + { + "deprecated": true + }, + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setLocations", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,locations" + }, + { + "(google.api.method_signature)": "name,locations" + } + ] }, "UpdateMaster": { "requestType": "UpdateMasterRequest", @@ -134,7 +302,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,master_version" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,master_version" + }, + { + "(google.api.method_signature)": "name,master_version" + } + ] }, "SetMasterAuth": { "requestType": "SetMasterAuthRequest", @@ -144,7 +330,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth", + "body": "*" + } + } + } + ] }, "DeleteCluster": { "requestType": "DeleteClusterRequest", @@ -153,7 +351,23 @@ "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*}", "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/clusters/*}", + "additional_bindings": { + "delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListOperations": { "requestType": "ListOperationsRequest", @@ -162,7 +376,20 @@ "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/operations", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations", "(google.api.method_signature)": "project_id,zone" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/operations", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/operations" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone" + } + ] }, "GetOperation": { "requestType": "GetOperationRequest", @@ -170,8 +397,24 @@ "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/operations/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}", - "(google.api.method_signature)": "project_id,zone,operation_id" - } + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/operations/*}", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,operation_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CancelOperation": { "requestType": "CancelOperationRequest", @@ -182,7 +425,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/operations/*}:cancel", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,operation_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "GetServerConfig": { "requestType": "GetServerConfigRequest", @@ -191,7 +452,37 @@ "(google.api.http).get": "/v1/{name=projects/*/locations/*}/serverConfig", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/serverconfig", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*}/serverConfig", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/serverconfig" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone" + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetJSONWebKeys": { + "requestType": "GetJSONWebKeysRequest", + "responseType": "GetJSONWebKeysResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" + } + } + ] }, "ListNodePools": { "requestType": "ListNodePoolsRequest", @@ -200,7 +491,23 @@ "(google.api.http).get": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetNodePool": { "requestType": "GetNodePoolRequest", @@ -209,7 +516,23 @@ "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateNodePool": { "requestType": "CreateNodePoolRequest", @@ -220,7 +543,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "parent,node_pool" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool" + }, + { + "(google.api.method_signature)": "parent,node_pool" + } + ] }, "DeleteNodePool": { "requestType": "DeleteNodePoolRequest", @@ -229,7 +570,23 @@ "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "additional_bindings": { + "delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "RollbackNodePoolUpgrade": { "requestType": "RollbackNodePoolUpgradeRequest", @@ -240,7 +597,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "SetNodePoolManagement": { "requestType": "SetNodePoolManagementRequest", @@ -250,7 +625,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement", + "body": "*" + } + } + } + ] }, "SetLabels": { "requestType": "SetLabelsRequest", @@ -260,7 +647,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels", + "body": "*" + } + } + } + ] }, "SetLegacyAbac": { "requestType": "SetLegacyAbacRequest", @@ -271,7 +670,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,enabled" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,enabled" + }, + { + "(google.api.method_signature)": "name,enabled" + } + ] }, "StartIPRotation": { "requestType": "StartIPRotationRequest", @@ -282,7 +699,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CompleteIPRotation": { "requestType": "CompleteIPRotationRequest", @@ -293,7 +728,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "SetNodePoolSize": { "requestType": "SetNodePoolSizeRequest", @@ -303,7 +756,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize", + "body": "*" + } + } + } + ] }, "SetNetworkPolicy": { "requestType": "SetNetworkPolicyRequest", @@ -314,7 +779,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,network_policy" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,network_policy" + }, + { + "(google.api.method_signature)": "name,network_policy" + } + ] }, "SetMaintenancePolicy": { "requestType": "SetMaintenancePolicyRequest", @@ -325,14 +808,39 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,maintenance_policy" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,maintenance_policy" + }, + { + "(google.api.method_signature)": "name,maintenance_policy" + } + ] }, "ListUsableSubnetworks": { "requestType": "ListUsableSubnetworksRequest", "responseType": "ListUsableSubnetworksResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*}/aggregated/usableSubnetworks" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*}/aggregated/usableSubnetworks" + } + } + ] } } }, @@ -395,14 +903,34 @@ "type": "string", "id": 13 }, + "workloadMetadataConfig": { + "type": "WorkloadMetadataConfig", + "id": 14 + }, "taints": { "rule": "repeated", "type": "NodeTaint", "id": 15 }, + "sandboxConfig": { + "type": "SandboxConfig", + "id": 17 + }, + "nodeGroup": { + "type": "string", + "id": 18 + }, + "reservationAffinity": { + "type": "ReservationAffinity", + "id": 19 + }, "shieldedInstanceConfig": { "type": "ShieldedInstanceConfig", "id": 20 + }, + "bootDiskKmsKey": { + "type": "string", + "id": 23 } } }, @@ -418,6 +946,49 @@ } } }, + "SandboxConfig": { + "fields": { + "type": { + "type": "Type", + "id": 2 + } + }, + "nested": { + "Type": { + "values": { + "UNSPECIFIED": 0, + "GVISOR": 1 + } + } + } + }, + "ReservationAffinity": { + "fields": { + "consumeReservationType": { + "type": "Type", + "id": 1 + }, + "key": { + "type": "string", + "id": 2 + }, + "values": { + "rule": "repeated", + "type": "string", + "id": 3 + } + }, + "nested": { + "Type": { + "values": { + "UNSPECIFIED": 0, + "NO_RESERVATION": 1, + "ANY_RESERVATION": 2, + "SPECIFIC_RESERVATION": 3 + } + } + } + }, "NodeTaint": { "fields": { "key": { @@ -448,11 +1019,17 @@ "fields": { "username": { "type": "string", - "id": 1 + "id": 1, + "options": { + "deprecated": true + } }, "password": { "type": "string", - "id": 2 + "id": 2, + "options": { + "deprecated": true + } }, "clientCertificateConfig": { "type": "ClientCertificateConfig", @@ -504,6 +1081,14 @@ "cloudRunConfig": { "type": "CloudRunConfig", "id": 7 + }, + "dnsCacheConfig": { + "type": "DnsCacheConfig", + "id": 8 + }, + "configConnectorConfig": { + "type": "ConfigConnectorConfig", + "id": 10 } } }, @@ -539,6 +1124,22 @@ } } }, + "DnsCacheConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "PrivateClusterMasterGlobalAccessConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "PrivateClusterConfig": { "fields": { "enablePrivateNodes": { @@ -560,6 +1161,14 @@ "publicEndpoint": { "type": "string", "id": 5 + }, + "peeringName": { + "type": "string", + "id": 7 + }, + "masterGlobalAccessConfig": { + "type": "PrivateClusterMasterGlobalAccessConfig", + "id": 8 } } }, @@ -580,6 +1189,27 @@ "disabled": { "type": "bool", "id": 1 + }, + "loadBalancerType": { + "type": "LoadBalancerType", + "id": 3 + } + }, + "nested": { + "LoadBalancerType": { + "values": { + "LOAD_BALANCER_TYPE_UNSPECIFIED": 0, + "LOAD_BALANCER_TYPE_EXTERNAL": 1, + "LOAD_BALANCER_TYPE_INTERNAL": 2 + } + } + } + }, + "ConfigConnectorConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 } } }, @@ -704,6 +1334,10 @@ "tpuIpv4CidrBlock": { "type": "string", "id": 13 + }, + "useRoutes": { + "type": "bool", + "id": 15 } } }, @@ -838,6 +1472,18 @@ "type": "VerticalPodAutoscaling", "id": 39 }, + "shieldedNodes": { + "type": "ShieldedNodes", + "id": 40 + }, + "releaseChannel": { + "type": "ReleaseChannel", + "id": 41 + }, + "workloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 43 + }, "selfLink": { "type": "string", "id": 100 @@ -878,7 +1524,10 @@ }, "statusMessage": { "type": "string", - "id": 108 + "id": 108, + "options": { + "deprecated": true + } }, "nodeIpv4CidrSize": { "type": "int32", @@ -965,6 +1614,14 @@ "type": "DatabaseEncryption", "id": 46 }, + "desiredWorkloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 47 + }, + "desiredShieldedNodes": { + "type": "ShieldedNodes", + "id": 48 + }, "desiredNodePoolAutoscaling": { "type": "NodePoolAutoscaling", "id": 9 @@ -998,10 +1655,22 @@ "type": "VerticalPodAutoscaling", "id": 22 }, + "desiredPrivateClusterConfig": { + "type": "PrivateClusterConfig", + "id": 25 + }, "desiredIntraNodeVisibilityConfig": { "type": "IntraNodeVisibilityConfig", "id": 26 }, + "desiredDefaultSnatStatus": { + "type": "DefaultSnatStatus", + "id": 28 + }, + "desiredReleaseChannel": { + "type": "ReleaseChannel", + "id": 31 + }, "desiredMasterVersion": { "type": "string", "id": 100 @@ -1035,7 +1704,10 @@ }, "statusMessage": { "type": "string", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "selfLink": { "type": "string", @@ -1057,6 +1729,13 @@ "type": "string", "id": 11 }, + "progress": { + "type": "OperationProgress", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "clusterConditions": { "rule": "repeated", "type": "StatusCondition", @@ -1101,6 +1780,62 @@ } } }, + "OperationProgress": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "status": { + "type": "Operation.Status", + "id": 2 + }, + "metrics": { + "rule": "repeated", + "type": "Metric", + "id": 3 + }, + "stages": { + "rule": "repeated", + "type": "OperationProgress", + "id": 4 + } + }, + "nested": { + "Metric": { + "oneofs": { + "value": { + "oneof": [ + "intValue", + "doubleValue", + "stringValue" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "intValue": { + "type": "int64", + "id": 2 + }, + "doubleValue": { + "type": "double", + "id": 3 + }, + "stringValue": { + "type": "string", + "id": 4 + } + } + } + } + }, "CreateClusterRequest": { "fields": { "projectId": { @@ -1242,6 +1977,19 @@ "name": { "type": "string", "id": 8 + }, + "locations": { + "rule": "repeated", + "type": "string", + "id": 13 + }, + "workloadMetadataConfig": { + "type": "WorkloadMetadataConfig", + "id": 14 + }, + "upgradeSettings": { + "type": "NodePool.UpgradeSettings", + "id": 15 } } }, @@ -1727,6 +2475,30 @@ "rule": "repeated", "type": "string", "id": 6 + }, + "channels": { + "rule": "repeated", + "type": "ReleaseChannelConfig", + "id": 9 + } + }, + "nested": { + "ReleaseChannelConfig": { + "fields": { + "channel": { + "type": "ReleaseChannel.Channel", + "id": 1 + }, + "defaultVersion": { + "type": "string", + "id": 2 + }, + "validVersions": { + "rule": "repeated", + "type": "string", + "id": 4 + } + } } } }, @@ -1881,6 +2653,11 @@ "type": "int32", "id": 3 }, + "locations": { + "rule": "repeated", + "type": "string", + "id": 13 + }, "selfLink": { "type": "string", "id": 100 @@ -1900,7 +2677,10 @@ }, "statusMessage": { "type": "string", - "id": 104 + "id": 104, + "options": { + "deprecated": true + } }, "autoscaling": { "type": "NodePoolAutoscaling", @@ -1922,9 +2702,25 @@ "podIpv4CidrSize": { "type": "int32", "id": 7 + }, + "upgradeSettings": { + "type": "UpgradeSettings", + "id": 107 } }, "nested": { + "UpgradeSettings": { + "fields": { + "maxSurge": { + "type": "int32", + "id": 1 + }, + "maxUnavailable": { + "type": "int32", + "id": 2 + } + } + }, "Status": { "values": { "STATUS_UNSPECIFIED": 0, @@ -2202,6 +2998,34 @@ "serviceAccount": { "type": "string", "id": 2 + }, + "upgradeSettings": { + "type": "NodePool.UpgradeSettings", + "id": 3 + }, + "management": { + "type": "NodeManagement", + "id": 4 + }, + "minCpuPlatform": { + "type": "string", + "id": 5 + }, + "diskSizeGb": { + "type": "int32", + "id": 6 + }, + "diskType": { + "type": "string", + "id": 7 + }, + "shieldedInstanceConfig": { + "type": "ShieldedInstanceConfig", + "id": 8 + }, + "bootDiskKmsKey": { + "type": "string", + "id": 9 } } }, @@ -2395,6 +3219,23 @@ } } }, + "WorkloadMetadataConfig": { + "fields": { + "mode": { + "type": "Mode", + "id": 2 + } + }, + "nested": { + "Mode": { + "values": { + "MODE_UNSPECIFIED": 0, + "GCE_METADATA": 1, + "GKE_METADATA": 2 + } + } + } + }, "SetNetworkPolicyRequest": { "fields": { "projectId": { @@ -2504,6 +3345,130 @@ "enableIntraNodeVisibility": { "type": "bool", "id": 5 + }, + "defaultSnatStatus": { + "type": "DefaultSnatStatus", + "id": 7 + } + } + }, + "GetOpenIDConfigRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + } + } + }, + "GetOpenIDConfigResponse": { + "fields": { + "issuer": { + "type": "string", + "id": 1 + }, + "jwksUri": { + "type": "string", + "id": 2 + }, + "responseTypesSupported": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "subjectTypesSupported": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "idTokenSigningAlgValuesSupported": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "claimsSupported": { + "rule": "repeated", + "type": "string", + "id": 6 + }, + "grantTypes": { + "rule": "repeated", + "type": "string", + "id": 7 + } + } + }, + "GetJSONWebKeysRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + } + } + }, + "Jwk": { + "fields": { + "kty": { + "type": "string", + "id": 1 + }, + "alg": { + "type": "string", + "id": 2 + }, + "use": { + "type": "string", + "id": 3 + }, + "kid": { + "type": "string", + "id": 4 + }, + "n": { + "type": "string", + "id": 5 + }, + "e": { + "type": "string", + "id": 6 + }, + "x": { + "type": "string", + "id": 7 + }, + "y": { + "type": "string", + "id": 8 + }, + "crv": { + "type": "string", + "id": 9 + } + } + }, + "GetJSONWebKeysResponse": { + "fields": { + "keys": { + "rule": "repeated", + "type": "Jwk", + "id": 1 + } + } + }, + "ReleaseChannel": { + "fields": { + "channel": { + "type": "Channel", + "id": 1 + } + }, + "nested": { + "Channel": { + "values": { + "UNSPECIFIED": 0, + "RAPID": 1, + "REGULAR": 2, + "STABLE": 3 + } } } }, @@ -2523,6 +3488,14 @@ } } }, + "WorkloadIdentityConfig": { + "fields": { + "workloadPool": { + "type": "string", + "id": 2 + } + } + }, "DatabaseEncryption": { "fields": { "state": { @@ -2670,6 +3643,22 @@ "id": 1 } } + }, + "DefaultSnatStatus": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + } + } + }, + "ShieldedNodes": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } } } } diff --git a/src/v1/cluster_manager_client.ts b/src/v1/cluster_manager_client.ts index 0d22fce..cb64682 100644 --- a/src/v1/cluster_manager_client.ts +++ b/src/v1/cluster_manager_client.ts @@ -227,6 +227,7 @@ export class ClusterManagerClient { 'getOperation', 'cancelOperation', 'getServerConfig', + 'getJSONWebKeys', 'listNodePools', 'getNodePool', 'createNodePool', @@ -361,9 +362,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides, or "-" for all zones. - * This field has been deprecated and replaced by the parent field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides, or "-" for all zones. This field has been deprecated and + * replaced by the parent field. * @param {string} request.parent * The parent (project and location) where the clusters will be listed. * Specified in the format `projects/* /locations/*`. @@ -457,9 +458,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to retrieve. * This field has been deprecated and replaced by the name field. @@ -549,7 +550,8 @@ export class ClusterManagerClient { * Compute Engine instances. * * By default, the cluster is created in the project's - * [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + * [default + * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * * One firewall is added for the cluster. After cluster creation, * the Kubelet creates routes for each node to allow the containers @@ -567,12 +569,12 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the parent field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. * @param {google.container.v1.Cluster} request.cluster * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) * @param {string} request.parent * The parent (project and location) where the cluster will be created. * Specified in the format `projects/* /locations/*`. @@ -665,9 +667,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -765,9 +767,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -792,6 +794,16 @@ export class ClusterManagerClient { * The name (project, location, cluster, node pool) of the node pool to * update. Specified in the format * `projects/* /locations/* /clusters/* /nodePools/*`. + * @param {string[]} request.locations + * The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * node pool's nodes should be located. Changing the locations for a node pool + * will result in nodes being either created or removed from the node pool, + * depending on whether locations are being added or removed. + * @param {google.container.v1.WorkloadMetadataConfig} request.workloadMetadataConfig + * The desired workload metadata config for the node pool. + * @param {google.container.v1.NodePool.UpgradeSettings} request.upgradeSettings + * Upgrade settings control disruption and speed of the upgrade. * @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. @@ -885,9 +897,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -997,18 +1009,24 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.loggingService - * Required. The logging service the cluster should use to write metrics. + * Required. The logging service the cluster should use to write logs. * Currently available options: * - * * "logging.googleapis.com" - the Google Cloud Logging service - * * "none" - no metrics will be exported from the cluster + * * `logging.googleapis.com/kubernetes` - The Cloud Logging + * service with a Kubernetes-native resource model + * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + * available as of GKE 1.15). + * * `none` - no logs will be exported from the cluster. + * + * If left as an empty string,`logging.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. * @param {string} request.name * The name (project, location, cluster) of the cluster to set logging. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -1107,9 +1125,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1117,10 +1135,14 @@ export class ClusterManagerClient { * Required. The monitoring service the cluster should use to write metrics. * Currently available options: * - * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring - * service with Kubernetes-native resource model - * * "monitoring.googleapis.com" - the Google Cloud Monitoring service - * * "none" - no metrics will be exported from the cluster + * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + * service with a Kubernetes-native resource model + * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + * longer available as of GKE 1.15). + * * `none` - No metrics will be exported from the cluster. + * + * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. * @param {string} request.name * The name (project, location, cluster) of the cluster to set monitoring. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -1217,9 +1239,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1309,6 +1331,9 @@ export class ClusterManagerClient { ): void; /** * Sets the locations for a specific cluster. + * Deprecated. Use + * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + * instead. * * @param {Object} request * The request object that will be sent. @@ -1318,18 +1343,18 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string[]} request.locations * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - * should be located. Changing the locations a cluster is in will result - * in nodes being either created or removed from the cluster, depending on - * whether locations are being added or removed. + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster's nodes should be located. Changing the locations a cluster is in + * will result in nodes being either created or removed from the cluster, + * depending on whether locations are being added or removed. * * This list must always include the cluster's primary zone. * @param {string} request.name @@ -1424,9 +1449,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1535,9 +1560,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1645,9 +1670,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to delete. * This field has been deprecated and replaced by the name field. @@ -1743,8 +1768,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for - * all zones. This field has been deprecated and replaced by the parent field. + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for, or `-` for all zones. This field has been deprecated and + * replaced by the parent field. * @param {string} request.parent * The parent (project and location) where the operations will be listed. * Specified in the format `projects/* /locations/*`. @@ -1838,9 +1864,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.operationId * Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. @@ -1936,8 +1962,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * operation resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.operationId * Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. @@ -2033,8 +2060,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) to return + * operations for. This field has been deprecated and replaced by the name + * field. * @param {string} request.name * The name (project and location) of the server config to get, * specified in the format `projects/* /locations/*`. @@ -2089,6 +2117,94 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.getServerConfig(request, options, callback); } + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | undefined, + {} | undefined + ] + >; + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + > + ): void; + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + callback: Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * Gets the public component of the cluster signing keys in + * JSON Web Key format. + * This API is not yet intended for general use, and is not available for all + * clusters. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The cluster (project, location, cluster id) to get keys for. Specified in + * the format `projects/* /locations/* /clusters/*`. + * @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 [GetJSONWebKeysResponse]{@link google.container.v1.GetJSONWebKeysResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getJSONWebKeys(request); + */ + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.getJSONWebKeys(request, options, callback); + } listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, options?: gax.CallOptions @@ -2127,9 +2243,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the parent field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. @@ -2225,9 +2341,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -2327,9 +2443,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the parent field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the parent + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. @@ -2428,9 +2544,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -2535,9 +2651,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to rollback. * This field has been deprecated and replaced by the name field. @@ -2649,9 +2765,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. @@ -2757,9 +2873,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -2770,7 +2886,7 @@ export class ClusterManagerClient { * used to detect conflicts. The fingerprint is initially generated by * Kubernetes Engine and changes after every request to modify or update * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a get() request to the + * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. * @param {string} request.name * The name (project, location, cluster id) of the cluster to set labels. @@ -2864,9 +2980,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. @@ -2964,9 +3080,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -3064,9 +3180,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -3164,9 +3280,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. @@ -3268,9 +3384,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * This field has been deprecated and replaced by the name field. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. This field has been deprecated and replaced by the name + * field. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -3373,8 +3489,8 @@ export class ClusterManagerClient { * number](https://support.google.com/cloud/answer/6158840). * @param {string} request.zone * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. * @param {string} request.clusterId * Required. The name of the cluster to update. * @param {google.container.v1.MaintenancePolicy} request.maintenancePolicy diff --git a/src/v1/cluster_manager_client_config.json b/src/v1/cluster_manager_client_config.json index 369ce70..e21140e 100644 --- a/src/v1/cluster_manager_client_config.json +++ b/src/v1/cluster_manager_client_config.json @@ -105,6 +105,10 @@ "retry_codes_name": "idempotent", "retry_params_name": "default" }, + "GetJSONWebKeys": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListNodePools": { "timeout_millis": 20000, "retry_codes_name": "idempotent", diff --git a/synth.metadata b/synth.metadata index b5a5446..070d12b 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "8a18ada1eba87105614f495f005dca0d503e58a9" + "sha": "99ab34786dfd05c667f70f363c58cc7f46ae6be4" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "4c5071b615d96ef9dfd6a63d8429090f1f2872bb", - "internalRef": "327369997" + "sha": "1f8a5144b52f7677dc43c55b21ccaf9e1b425ceb", + "internalRef": "342689216" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b" + "sha": "d5fc0bcf9ea9789c5b0e3154a9e3b29e5cea6116" } } ], @@ -87,14 +87,12 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "package-lock.json.908320379", "protos/google/container/v1/cluster_service.proto", "protos/protos.d.ts", "protos/protos.js", "protos/protos.json", "renovate.json", "samples/README.md", - "samples/package-lock.json.1331714418", "src/index.ts", "src/v1/cluster_manager_client.ts", "src/v1/cluster_manager_client_config.json", diff --git a/test/gapic_cluster_manager_v1.ts b/test/gapic_cluster_manager_v1.ts index e2c923e..4138b02 100644 --- a/test/gapic_cluster_manager_v1.ts +++ b/test/gapic_cluster_manager_v1.ts @@ -2158,6 +2158,118 @@ describe('v1.ClusterManagerClient', () => { }); }); + describe('getJSONWebKeys', () => { + it('invokes getJSONWebKeys without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysResponse() + ); + client.innerApiCalls.getJSONWebKeys = stubSimpleCall(expectedResponse); + const [response] = await client.getJSONWebKeys(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getJSONWebKeys as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getJSONWebKeys without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysResponse() + ); + client.innerApiCalls.getJSONWebKeys = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getJSONWebKeys( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IGetJSONWebKeysResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getJSONWebKeys as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getJSONWebKeys with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getJSONWebKeys = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getJSONWebKeys(request), expectedError); + assert( + (client.innerApiCalls.getJSONWebKeys as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listNodePools', () => { it('invokes listNodePools without error', async () => { const client = new clustermanagerModule.v1.ClusterManagerClient({