1.15.0 (latest) 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0-beta06

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

Reference documentation and code samples for the Discovery Engine v1 API class GcsSource.

Cloud Storage location for input content.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GcsSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GcsSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GcsSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GcsSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GcsSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GcsSource), [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.DiscoveryEngine.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)

## Assembly

Google.Cloud.DiscoveryEngine.V1.dll

## Constructors

### GcsSource()

    public GcsSource()

### GcsSource(GcsSource)

    public GcsSource(GcsSource other)

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

## Properties

### DataSchema

    public string DataSchema { get; set; }

The schema to use when parsing the data from the source.

Supported values for document imports:

- `document` (default): One JSON \[Document\]\[google.cloud.discoveryengine.v1.Document\] per line. Each document must have a valid \[Document.id\]\[google.cloud.discoveryengine.v1.Document.id\].
- `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` becomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string.
- `custom`: One custom data JSON per row in arbitrary format that conforms to the defined \[Schema\]\[google.cloud.discoveryengine.v1.Schema\] of the data store. This can only be used by the GENERIC Data Store vertical.
- `csv`: A CSV file with header conforming to the defined \[Schema\]\[google.cloud.discoveryengine.v1.Schema\] of the data store. Each entry after the header is imported as a Document. This can only be used by the GENERIC Data Store vertical.

Supported values for user event imports:

- `user_event` (default): One JSON \[UserEvent\]\[google.cloud.discoveryengine.v1.UserEvent\] per line.

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

### InputUris

    public RepeatedField<string> InputUris { get; }

Required. Cloud Storage URIs to input files. Each URI can be up to
2000 characters long. URIs can match the full object path (for example,
`gs://bucket/directory/object.json`) or a pattern matching one or more
files, such as `gs://bucket/directory/*.json`.

A request can contain at most 100 files (or 100,000 files if `data_schema`
is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is
`content`).

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