# Google Cloud Storage Insights v1 API - Class DatasetConfig (1.5.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/1.4.0/Google.Cloud.StorageInsights.V1.DatasetConfig)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/1.3.0/Google.Cloud.StorageInsights.V1.DatasetConfig)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/1.2.0/Google.Cloud.StorageInsights.V1.DatasetConfig)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/1.1.0/Google.Cloud.StorageInsights.V1.DatasetConfig)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/1.0.0/Google.Cloud.StorageInsights.V1.DatasetConfig)

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

Reference documentation and code samples for the Google Cloud Storage Insights v1 API class DatasetConfig.

Message describing the dataset configuration properties. For more
information, see [Dataset configuration
properties](https://cloud.google.com/storage/docs/insights/datasets#dataset-config).

## Inheritance

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

## Implements

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

## 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.StorageInsights.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1)

## Assembly

Google.Cloud.StorageInsights.V1.dll

## Constructors

### DatasetConfig()

    public DatasetConfig()

### DatasetConfig(DatasetConfig)

    public DatasetConfig(DatasetConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig` |

## Properties

### CloudStorageBucketsCase

    public DatasetConfig.CloudStorageBucketsOneofCase CloudStorageBucketsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.CloudStorageBucketsOneofCase` |   |

### CloudStorageLocationsCase

    public DatasetConfig.CloudStorageLocationsOneofCase CloudStorageLocationsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.CloudStorageLocationsOneofCase` |   |

### CloudStorageObjectPath

    public string CloudStorageObjectPath { get; set; }

Input only. Cloud Storage object path containing a list of
project or folder numbers to include in the dataset;
it cannot contain a mix of project and folders.

The object must be a text file where each line has one of the following
entries:

- Project number, formatted as `projects/{project_number}`, for example, `projects/1234567890`.
- Folder identifier, formatted as `folders/{folder_number}`, for example, `folders/9876543210`. Path must be in the format `gs://{bucket_name}/{object_name}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The UTC time at which the dataset configuration was created.
This is auto-populated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### DatasetConfigName

    public DatasetConfigName DatasetConfigName { get; set; }

[DatasetConfigName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfigName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig#Google_Cloud_StorageInsights_V1_DatasetConfig_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfigName` |   |

### DatasetConfigState

    public DatasetConfig.Types.ConfigState DatasetConfigState { get; set; }

Output only. State of the `datasetConfig`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.ConfigState` |   |

### Description

    public string Description { get; set; }

Optional. A user-provided description for the dataset configuration.

Maximum length: 256 characters.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ExcludeCloudStorageBuckets

    public DatasetConfig.Types.CloudStorageBuckets ExcludeCloudStorageBuckets { get; set; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.CloudStorageBuckets` |   |

### ExcludeCloudStorageLocations

    public DatasetConfig.Types.CloudStorageLocations ExcludeCloudStorageLocations { get; set; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.CloudStorageLocations` |   |

### HasCloudStorageObjectPath

    public bool HasCloudStorageObjectPath { get; }

Gets whether the "cloud_storage_object_path" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasOrganizationScope

    public bool HasOrganizationScope { get; }

Gets whether the "organization_scope" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Identity

    public Identity Identity { get; set; }

Identity used by this `datasetConfig`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.Identity` |   |

### IncludeCloudStorageBuckets

    public DatasetConfig.Types.CloudStorageBuckets IncludeCloudStorageBuckets { get; set; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.CloudStorageBuckets` |   |

### IncludeCloudStorageLocations

    public DatasetConfig.Types.CloudStorageLocations IncludeCloudStorageLocations { get; set; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.CloudStorageLocations` |   |

### IncludeNewlyCreatedBuckets

    public bool IncludeNewlyCreatedBuckets { get; set; }

If set to `true`, the request includes all the newly created buckets in the
dataset that meet the inclusion and exclusion rules.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### Labels

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

Labels as key value pairs

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Link

    public DatasetConfig.Types.Link Link { get; set; }

Details of the linked dataset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.Link` |   |

### Name

    public string Name { get; set; }

Identifier. name of resource

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### OrganizationNumber

    public long OrganizationNumber { get; set; }

Optional. Organization resource ID that the source projects should belong
to. Projects that do not belong to the provided organization are not
considered when creating the dataset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

### OrganizationScope

    public bool OrganizationScope { get; set; }

Defines the options for providing a source organization for the dataset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### RetentionPeriodDays

    public int RetentionPeriodDays { get; set; }

Number of days of history that must be retained.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### SkipVerificationAndIngest

    [Obsolete]
    public bool SkipVerificationAndIngest { get; set; }

Optional. If set to `false`, then all the permission checks must be
successful before the system can start ingesting data. This field can only
be updated before the system ingests data for the first time. Any attempt
to modify the field after data ingestion starts results in an error.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### SourceFolders

    public DatasetConfig.Types.SourceFolders SourceFolders { get; set; }

Defines the options for providing source folders for the dataset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.SourceFolders` |   |

### SourceOptionsCase

    public DatasetConfig.SourceOptionsOneofCase SourceOptionsCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.SourceOptionsOneofCase` |   |

### SourceProjects

    public DatasetConfig.Types.SourceProjects SourceProjects { get; set; }

Defines the options for providing source projects for the dataset.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageInsights.V1/latest/Google.Cloud.StorageInsights.V1.DatasetConfig.Types.SourceProjects` |   |

### Status

    public Status Status { get; set; }

Output only. Status of the `datasetConfig`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Status.html` |   |

### Uid

    public string Uid { get; set; }

Output only. System generated unique identifier for the resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The UTC time at which the dataset configuration was last
updated. This is auto-populated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |