# Private Catalog V1beta1 API - Class Google::Cloud::PrivateCatalog::V1beta1::SearchProductsRequest (v0.15.0)

0.15.0 (latest) 0.14.1 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.1 0.7.1 0.6.2 0.5.0 0.4.1 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Private Catalog V1beta1 API class Google::Cloud::PrivateCatalog::V1beta1::SearchProductsRequest.

Request message for [PrivateCatalog.SearchProducts](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-private_catalog-v1beta1/latest/Google-Cloud-PrivateCatalog-V1beta1-PrivateCatalog-Client#Google__Cloud__PrivateCatalog__V1beta1__PrivateCatalog__Client_search_products_instance_ "Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client#search_products (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- The maximum number of entries that are requested.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The maximum number of entries that are requested.
**Returns**

- (::Integer) --- The maximum number of entries that are requested.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- A pagination token returned from a previous call to SearchProducts that indicates where this listing should continue from.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- A pagination token returned from a previous call to SearchProducts that indicates where this listing should continue from.
**Returns**

- (::String) --- A pagination token returned from a previous call to SearchProducts that indicates where this listing should continue from.

### #query

    def query() -> ::String

**Returns**

- (::String) --- The query to filter the products.

  The supported queries are:
  - List products of all catalogs: empty
  - List products under a catalog: `parent=catalogs/{catalog}`
  - Get a product by name: `name=catalogs/{catalog}/products/{product}`

### #query=

    def query=(value) -> ::String

**Parameter**

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

  The query to filter the products.

  The supported queries are:
  - List products of all catalogs: empty
  - List products under a catalog: `parent=catalogs/{catalog}`
  - Get a product by name: `name=catalogs/{catalog}/products/{product}`
**Returns**

- (::String) --- The query to filter the products.

  The supported queries are:
  - List products of all catalogs: empty
  - List products under a catalog: `parent=catalogs/{catalog}`
  - Get a product by name: `name=catalogs/{catalog}/products/{product}`

### #resource

    def resource() -> ::String

**Returns**

- (::String) --- Required. The name of the resource context. See [SearchCatalogsRequest.resource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-private_catalog-v1beta1/latest/Google-Cloud-PrivateCatalog-V1beta1-SearchCatalogsRequest#Google__Cloud__PrivateCatalog__V1beta1__SearchCatalogsRequest_resource_instance_ "Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest#resource (method)") for details.

### #resource=

    def resource=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the resource context. See [SearchCatalogsRequest.resource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-private_catalog-v1beta1/latest/Google-Cloud-PrivateCatalog-V1beta1-SearchCatalogsRequest#Google__Cloud__PrivateCatalog__V1beta1__SearchCatalogsRequest_resource_instance_ "Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest#resource (method)") for details.
**Returns**

- (::String) --- Required. The name of the resource context. See [SearchCatalogsRequest.resource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-private_catalog-v1beta1/latest/Google-Cloud-PrivateCatalog-V1beta1-SearchCatalogsRequest#Google__Cloud__PrivateCatalog__V1beta1__SearchCatalogsRequest_resource_instance_ "Google::Cloud::PrivateCatalog::V1beta1::SearchCatalogsRequest#resource (method)") for details.