# Cloud AutoML V1 API - Class Google::Cloud::AutoML::V1::ListModelsRequest (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.1 0.4.8 Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::ListModelsRequest.

Request message for [AutoMl.ListModels](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-AutoML-Client#Google__Cloud__AutoML__V1__AutoML__Client_list_models_instance_ "Google::Cloud::AutoML::V1::AutoML::Client#list_models (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- An expression for filtering the results of the request.

  - `model_metadata` - for existence of the case (e.g. `video_classification_model_metadata:*`).
  - `dataset_id` - for = or !=. Some examples of using the filter are:

  - `image_classification_model_metadata:*` --\> The model has
    `image_classification_model_metadata`.

  - `dataset_id=5` --\> The model was created from a dataset with ID 5.

### #filter=

    def filter=(value) -> ::String

**Parameter**

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

  An expression for filtering the results of the request.
  - `model_metadata` - for existence of the case (e.g. `video_classification_model_metadata:*`).
  - `dataset_id` - for = or !=. Some examples of using the filter are:

  - `image_classification_model_metadata:*` --\> The model has
    `image_classification_model_metadata`.

  - `dataset_id=5` --\> The model was created from a dataset with ID 5.

**Returns**

- (::String) --- An expression for filtering the results of the request.

  - `model_metadata` - for existence of the case (e.g. `video_classification_model_metadata:*`).
  - `dataset_id` - for = or !=. Some examples of using the filter are:

  - `image_classification_model_metadata:*` --\> The model has
    `image_classification_model_metadata`.

  - `dataset_id=5` --\> The model was created from a dataset with ID 5.

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Requested page size.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Requested page size.
**Returns**

- (::Integer) --- Requested page size.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- A token identifying a page of results for the server to return Typically obtained via [ListModelsResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-ListModelsResponse#Google__Cloud__AutoML__V1__ListModelsResponse_next_page_token_instance_ "Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token (method)") of the previous [AutoMl.ListModels](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-AutoML-Client#Google__Cloud__AutoML__V1__AutoML__Client_list_models_instance_ "Google::Cloud::AutoML::V1::AutoML::Client#list_models (method)") call.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- A token identifying a page of results for the server to return Typically obtained via [ListModelsResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-ListModelsResponse#Google__Cloud__AutoML__V1__ListModelsResponse_next_page_token_instance_ "Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token (method)") of the previous [AutoMl.ListModels](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-AutoML-Client#Google__Cloud__AutoML__V1__AutoML__Client_list_models_instance_ "Google::Cloud::AutoML::V1::AutoML::Client#list_models (method)") call.
**Returns**

- (::String) --- A token identifying a page of results for the server to return Typically obtained via [ListModelsResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-ListModelsResponse#Google__Cloud__AutoML__V1__ListModelsResponse_next_page_token_instance_ "Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token (method)") of the previous [AutoMl.ListModels](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-automl-v1/latest/Google-Cloud-AutoML-V1-AutoML-Client#Google__Cloud__AutoML__V1__AutoML__Client_list_models_instance_ "Google::Cloud::AutoML::V1::AutoML::Client#list_models (method)") call.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. Resource name of the project, from which to list the models.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Resource name of the project, from which to list the models.
**Returns**

- (::String) --- Required. Resource name of the project, from which to list the models.