# Google Cloud Data Catalog V1BETA1 API - Class Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest (v0.13.0)

0.13.0 (latest) 0.12.0 0.11.0 0.10.1 0.9.1 0.8.4 0.7.0 0.6.0 0.5.2 0.4.0 0.3.2 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Data Catalog V1BETA1 API class Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest.

Request message for
[SearchCatalog](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-DataCatalog-Client#Google__Cloud__DataCatalog__V1beta1__DataCatalog__Client_search_catalog_instance_ "Google::Cloud::DataCatalog::V1beta1::DataCatalog::Client#search_catalog (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #order_by

    def order_by() -> ::String

**Returns**

- (::String) --- Specifies the ordering of results, currently supported case-sensitive choices are:

  - `relevance`, only supports descending
  - `last_modified_timestamp [asc|desc]`, defaults to descending if not specified
  - `default` that can only be descending

  If not specified, defaults to `relevance` descending.

### #order_by=

    def order_by=(value) -> ::String

**Parameter**

- **value** (::String) --- Specifies the ordering of results, currently supported case-sensitive choices are:


  - `relevance`, only supports descending
  - `last_modified_timestamp [asc|desc]`, defaults to descending if not specified
  - `default` that can only be descending

  If not specified, defaults to `relevance` descending.
**Returns**

- (::String) --- Specifies the ordering of results, currently supported case-sensitive choices are:

  - `relevance`, only supports descending
  - `last_modified_timestamp [asc|desc]`, defaults to descending if not specified
  - `default` that can only be descending

  If not specified, defaults to `relevance` descending.

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Number of results in the search page. If \<=0 then defaults to 10. Max limit for page_size is 1000. Throws an invalid argument for page_size \> 1000.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Number of results in the search page. If \<=0 then defaults to 10. Max limit for page_size is 1000. Throws an invalid argument for page_size \> 1000.
**Returns**

- (::Integer) --- Number of results in the search page. If \<=0 then defaults to 10. Max limit for page_size is 1000. Throws an invalid argument for page_size \> 1000.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. Pagination token returned in an earlier [SearchCatalogResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-SearchCatalogResponse#Google__Cloud__DataCatalog__V1beta1__SearchCatalogResponse_next_page_token_instance_ "Google::Cloud::DataCatalog::V1beta1::SearchCatalogResponse#next_page_token (method)"), which indicates that this is a continuation of a prior [SearchCatalogRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-DataCatalog-Client#Google__Cloud__DataCatalog__V1beta1__DataCatalog__Client_search_catalog_instance_ "Google::Cloud::DataCatalog::V1beta1::DataCatalog::Client#search_catalog (method)") call, and that the system should return the next page of data. If empty, the first page is returned.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Pagination token returned in an earlier [SearchCatalogResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-SearchCatalogResponse#Google__Cloud__DataCatalog__V1beta1__SearchCatalogResponse_next_page_token_instance_ "Google::Cloud::DataCatalog::V1beta1::SearchCatalogResponse#next_page_token (method)"), which indicates that this is a continuation of a prior [SearchCatalogRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-DataCatalog-Client#Google__Cloud__DataCatalog__V1beta1__DataCatalog__Client_search_catalog_instance_ "Google::Cloud::DataCatalog::V1beta1::DataCatalog::Client#search_catalog (method)") call, and that the system should return the next page of data. If empty, the first page is returned.
**Returns**

- (::String) --- Optional. Pagination token returned in an earlier [SearchCatalogResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-SearchCatalogResponse#Google__Cloud__DataCatalog__V1beta1__SearchCatalogResponse_next_page_token_instance_ "Google::Cloud::DataCatalog::V1beta1::SearchCatalogResponse#next_page_token (method)"), which indicates that this is a continuation of a prior [SearchCatalogRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-DataCatalog-Client#Google__Cloud__DataCatalog__V1beta1__DataCatalog__Client_search_catalog_instance_ "Google::Cloud::DataCatalog::V1beta1::DataCatalog::Client#search_catalog (method)") call, and that the system should return the next page of data. If empty, the first page is returned.

### #query

    def query() -> ::String

**Returns**

- (::String) --- Optional. The query string in search query syntax. An empty query string will result in all data assets (in the specified scope) that the user has access to. Query strings can be simple as "x" or more qualified as:

  - name:x
  - column:x
  - description:y

  Note: Query tokens need to have a minimum of 3 characters for substring
  matching to work correctly. See [Data Catalog Search
  Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
  for more information.

### #query=

    def query=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The query string in search query syntax. An empty query string will result in all data assets (in the specified scope) that the user has access to. Query strings can be simple as "x" or more qualified as:


  - name:x
  - column:x
  - description:y

  Note: Query tokens need to have a minimum of 3 characters for substring
  matching to work correctly. See [Data Catalog Search
  Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
  for more information.
**Returns**

- (::String) --- Optional. The query string in search query syntax. An empty query string will result in all data assets (in the specified scope) that the user has access to. Query strings can be simple as "x" or more qualified as:

  - name:x
  - column:x
  - description:y

  Note: Query tokens need to have a minimum of 3 characters for substring
  matching to work correctly. See [Data Catalog Search
  Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
  for more information.

### #scope

    def scope() -> ::Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest::Scope

**Returns**

- ([::Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest::Scope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-SearchCatalogRequest-Scope)) --- Required. The scope of this search request. A `scope` that has empty `include_org_ids`, `include_project_ids` AND false `include_gcp_public_datasets` is considered invalid. Data Catalog will return an error in such a case.

### #scope=

    def scope=(value) -> ::Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest::Scope

**Parameter**

- **value** ([::Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest::Scope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-SearchCatalogRequest-Scope)) --- Required. The scope of this search request. A `scope` that has empty `include_org_ids`, `include_project_ids` AND false `include_gcp_public_datasets` is considered invalid. Data Catalog will return an error in such a case.
**Returns**

- ([::Google::Cloud::DataCatalog::V1beta1::SearchCatalogRequest::Scope](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-SearchCatalogRequest-Scope)) --- Required. The scope of this search request. A `scope` that has empty `include_org_ids`, `include_project_ids` AND false `include_gcp_public_datasets` is considered invalid. Data Catalog will return an error in such a case.