# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::GcsSource (v0.28.0)

0.28.0 (latest) 0.27.0 0.26.0 0.25.0 0.24.0 0.23.1 0.22.0 0.21.0 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::GcsSource.

Cloud Storage location for input content.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_schema

    def data_schema() -> ::String

**Returns**

- (::String) --- The schema to use when parsing the data from the source.

  Supported values for document imports:
  - `document` (default): One JSON [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document "Google::Cloud::DiscoveryEngine::V1beta::Document (class)") per line. Each document must have a valid [Document.id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document#Google__Cloud__DiscoveryEngine__V1beta__Document_id_instance_ "Google::Cloud::DiscoveryEngine::V1beta::Document#id (method)").
  - `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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Schema "Google::Cloud::DiscoveryEngine::V1beta::Schema (class)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Schema "Google::Cloud::DiscoveryEngine::V1beta::Schema (class)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-UserEvent "Google::Cloud::DiscoveryEngine::V1beta::UserEvent (class)") per line.

### #data_schema=

    def data_schema=(value) -> ::String

**Parameter**

- **value** (::String) ---

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

  Supported values for document imports:
  - `document` (default): One JSON [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document "Google::Cloud::DiscoveryEngine::V1beta::Document (class)") per line. Each document must have a valid [Document.id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document#Google__Cloud__DiscoveryEngine__V1beta__Document_id_instance_ "Google::Cloud::DiscoveryEngine::V1beta::Document#id (method)").
  - `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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Schema "Google::Cloud::DiscoveryEngine::V1beta::Schema (class)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Schema "Google::Cloud::DiscoveryEngine::V1beta::Schema (class)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-UserEvent "Google::Cloud::DiscoveryEngine::V1beta::UserEvent (class)") per line.
**Returns**

- (::String) --- The schema to use when parsing the data from the source.

  Supported values for document imports:
  - `document` (default): One JSON [Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document "Google::Cloud::DiscoveryEngine::V1beta::Document (class)") per line. Each document must have a valid [Document.id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Document#Google__Cloud__DiscoveryEngine__V1beta__Document_id_instance_ "Google::Cloud::DiscoveryEngine::V1beta::Document#id (method)").
  - `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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Schema "Google::Cloud::DiscoveryEngine::V1beta::Schema (class)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-Schema "Google::Cloud::DiscoveryEngine::V1beta::Schema (class)") 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-UserEvent "Google::Cloud::DiscoveryEngine::V1beta::UserEvent (class)") per line.

### #input_uris

    def input_uris() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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`).

### #input_uris=

    def input_uris=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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`).
**Returns**

- (::Array\<::String\>) --- 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`).