# Dataform V1beta1 API - Class Google::Cloud::Dataform::V1beta1::SearchResult (v0.15.0)

0.15.0 (latest) 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Dataform V1beta1 API class Google::Cloud::Dataform::V1beta1::SearchResult.

Client-facing representation of a search result entry.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #directory

    def directory() -> ::Google::Cloud::Dataform::V1beta1::DirectorySearchResult

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::DirectorySearchResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-DirectorySearchResult)) --- Details when search result is a directory.


  Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #directory=

    def directory=(value) -> ::Google::Cloud::Dataform::V1beta1::DirectorySearchResult

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::DirectorySearchResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-DirectorySearchResult)) --- Details when search result is a directory.


  Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::DirectorySearchResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-DirectorySearchResult)) --- Details when search result is a directory.


  Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #file

    def file() -> ::Google::Cloud::Dataform::V1beta1::FileSearchResult

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::FileSearchResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-FileSearchResult)) --- Details when search result is a file.


  Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #file=

    def file=(value) -> ::Google::Cloud::Dataform::V1beta1::FileSearchResult

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::FileSearchResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-FileSearchResult)) --- Details when search result is a file.


  Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::FileSearchResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-FileSearchResult)) --- Details when search result is a file.


  Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared.