5.29.0 (latest) 5.28.0 5.27.0 5.26.0 5.25.0 5.24.0 5.23.0 5.22.0 5.21.0 5.20.0 5.19.0 5.18.0 5.17.0 5.16.0 5.15.0 5.14.0 5.13.0 5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.0.0 3.4.0 3.3.0 3.2.0 3.1.0

    public sealed class GceClusterConfig : IMessage<GceClusterConfig>, IEquatable<GceClusterConfig>, IDeepCloneable<GceClusterConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dataproc v1 API class GceClusterConfig.

Common config settings for resources of Compute Engine cluster
instances, applicable to all instances in the cluster.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GceClusterConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GceClusterConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GceClusterConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GceClusterConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GceClusterConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GceClusterConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GceClusterConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dataproc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.md.txt)

## Assembly

Google.Cloud.Dataproc.V1.dll

## Constructors

### GceClusterConfig()

    public GceClusterConfig()

### GceClusterConfig(GceClusterConfig)

    public GceClusterConfig(GceClusterConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GceClusterConfig` |

## Properties

### ConfidentialInstanceConfig

    public ConfidentialInstanceConfig ConfidentialInstanceConfig { get; set; }

Optional. Confidential Instance Config for clusters using [Confidential
VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ConfidentialInstanceConfig` |   |

### HasInternalIpOnly

    public bool HasInternalIpOnly { get; }

Gets whether the "internal_ip_only" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### InternalIpOnly

    public bool InternalIpOnly { get; set; }

Optional. This setting applies to subnetwork-enabled networks. It is set to
`true` by default in clusters created with image versions 2.2.x.

When set to `true`:

- All cluster VMs have internal IP addresses.
- [Google Private Access](https://cloud.google.com/vpc/docs/private-google-access) must be enabled to access Dataproc and other Google Cloud APIs.
- Off-cluster dependencies must be configured to be accessible without external IP addresses.

When set to `false`:

- Cluster VMs are not restricted to internal IP addresses.
- Ephemeral external IP addresses are assigned to each cluster VM.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Metadata

    public MapField<string, string> Metadata { get; }

Optional. The Compute Engine metadata entries to add to all instances (see
[Project and instance
metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### MultiZoneConfig

    public MultiZoneConfig MultiZoneConfig { get; set; }

Optional. Controls how instances within this Cluster are allowed to exist
in multiple Zones within the Region. Only one of `zone_uri` or
`multi_zone_config` must be set.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MultiZoneConfig` |   |

### NetworkUri

    public string NetworkUri { get; set; }

Optional. The Compute Engine network to be used for machine
communications. Cannot be specified with subnetwork_uri. If neither
`network_uri` nor `subnetwork_uri` is specified, the "default" network of
the project is used, if it exists. Cannot be a "Custom Subnet Network" (see
[Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for
more information).

A full URL, partial URI, or short name are valid. Examples:

- `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default`
- `projects/[project_id]/global/networks/default`
- `default`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### NodeGroupAffinity

    public NodeGroupAffinity NodeGroupAffinity { get; set; }

Optional. Node Group Affinity for sole-tenant clusters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `NodeGroupAffinity` |   |

### PrivateIpv6GoogleAccess

    public GceClusterConfig.Types.PrivateIpv6GoogleAccess PrivateIpv6GoogleAccess { get; set; }

Optional. The type of IPv6 access for a cluster.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GceClusterConfigTypesPrivateIpv6GoogleAccess` |   |

### ReservationAffinity

    public ReservationAffinity ReservationAffinity { get; set; }

Optional. Reservation Affinity for consuming Zonal reservation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ReservationAffinity` |   |

### ResourceManagerTags

    public MapField<string, string> ResourceManagerTags { get; }

Optional. [Resource manager tags](https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
to add to all instances (see [Use secure tags](https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### ServiceAccount

    public string ServiceAccount { get; set; }

Optional. The [Dataproc service
account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
(also see [VM Data Plane
identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
used by Dataproc cluster VM instances to access Google Cloud Platform
services.

If not specified, the
[Compute Engine default service
account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServiceAccountScopes

    public RepeatedField<string> ServiceAccountScopes { get; }

Optional. The URIs of service account scopes to be included in
Compute Engine instances. The following base set of scopes is always
included:

- <https://www.googleapis.com/auth/cloud.useraccounts.readonly>
- <https://www.googleapis.com/auth/devstorage.read_write>
- <https://www.googleapis.com/auth/logging.write>

If no scopes are specified, the following defaults are also provided:

- <https://www.googleapis.com/auth/bigquery>
- <https://www.googleapis.com/auth/bigtable.admin.table>
- <https://www.googleapis.com/auth/bigtable.data>
- <https://www.googleapis.com/auth/devstorage.full_control>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### ShieldedInstanceConfig

    public ShieldedInstanceConfig ShieldedInstanceConfig { get; set; }

Optional. Shielded Instance Config for clusters using [Compute Engine
Shielded
VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ShieldedInstanceConfig` |   |

### SubnetworkUri

    public string SubnetworkUri { get; set; }

Optional. The Compute Engine subnetwork to be used for machine
communications. Cannot be specified with network_uri.

A full URL, partial URI, or short name are valid. Examples:

- `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0`
- `projects/[project_id]/regions/[region]/subnetworks/sub0`
- `sub0`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Tags

    public RepeatedField<string> Tags { get; }

The Compute Engine network tags to add to all instances (see [Tagging
instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### ZoneUri

    public string ZoneUri { get; set; }

Optional. The Compute Engine zone where the Dataproc cluster will be
located. If omitted, the service will pick a zone in the cluster's Compute
Engine region. On a get request, zone will always be present.

A full URL, partial URI, or short name are valid. Examples:

- `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`
- `projects/[project_id]/zones/[zone]`
- `[zone]`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |