(::String) — The filter expression used to filter documents returned by the list method.
The expression has the following syntax:
The following fields and operators are supported:
knowledge_types with has(:) operator
display_name with has(:) operator
state with equals(=) operator
Examples:
"knowledge_types:FAQ" matches documents with FAQ knowledge type.
"display_name:customer" matches documents whose display name contains
"customer".
"state=ACTIVE" matches documents with ACTIVE state.
"knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
For more information about filtering, see
API Filtering.
#filter=
deffilter=(value)->::String
Parameter
value (::String) — The filter expression used to filter documents returned by the list method.
The expression has the following syntax:
The following fields and operators are supported:
knowledge_types with has(:) operator
display_name with has(:) operator
state with equals(=) operator
Examples:
"knowledge_types:FAQ" matches documents with FAQ knowledge type.
"display_name:customer" matches documents whose display name contains
"customer".
"state=ACTIVE" matches documents with ACTIVE state.
"knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
For more information about filtering, see
API Filtering.
Returns
(::String) — The filter expression used to filter documents returned by the list method.
The expression has the following syntax:
The following fields and operators are supported:
knowledge_types with has(:) operator
display_name with has(:) operator
state with equals(=) operator
Examples:
"knowledge_types:FAQ" matches documents with FAQ knowledge type.
"display_name:customer" matches documents whose display name contains
"customer".
"state=ACTIVE" matches documents with ACTIVE state.
"knowledge_types:FAQ AND state=ACTIVE" matches all active FAQ documents.
For more information about filtering, see
API Filtering.
#page_size
defpage_size()->::Integer
Returns
(::Integer) — The maximum number of items to return in a single page. By
default 10 and at most 100.
#page_size=
defpage_size=(value)->::Integer
Parameter
value (::Integer) — The maximum number of items to return in a single page. By
default 10 and at most 100.
Returns
(::Integer) — The maximum number of items to return in a single page. By
default 10 and at most 100.
#page_token
defpage_token()->::String
Returns
(::String) — The next_page_token value returned from a previous list request.
#page_token=
defpage_token=(value)->::String
Parameter
value (::String) — The next_page_token value returned from a previous list request.
Returns
(::String) — The next_page_token value returned from a previous list request.
#parent
defparent()->::String
Returns
(::String) — Required. The knowledge base to list all documents for.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The knowledge base to list all documents for.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
Returns
(::String) — Required. The knowledge base to list all documents for.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::ListDocumentsRequest (v1.10.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.1 (latest)](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-ListDocumentsRequest) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::ListDocumentsRequest.\n\nRequest message for\n[Documents.ListDocuments](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Documents-Client#Google__Cloud__Dialogflow__V2__Documents__Client_list_documents_instance_ \"Google::Cloud::Dialogflow::V2::Documents::Client#list_documents (method)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #filter\n\n def filter() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The filter expression used to filter documents returned by the list method. The expression has the following syntax:\n\n \u003cbr /\u003e\n\n\n The following fields and operators are supported:\n - knowledge_types with has(:) operator\n - display_name with has(:) operator\n - state with equals(=) operator\n\n Examples:\n - \"knowledge_types:FAQ\" matches documents with FAQ knowledge type.\n - \"display_name:customer\" matches documents whose display name contains \"customer\".\n - \"state=ACTIVE\" matches documents with ACTIVE state.\n - \"knowledge_types:FAQ AND state=ACTIVE\" matches all active FAQ documents.\n\n For more information about filtering, see\n [API Filtering](https://aip.dev/160).\n\n### #filter=\n\n def filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The filter expression used to filter documents returned by the list method. The expression has the following syntax:\n\n\n \u003cbr /\u003e\n\n\n The following fields and operators are supported:\n - knowledge_types with has(:) operator\n - display_name with has(:) operator\n - state with equals(=) operator\n\n Examples:\n - \"knowledge_types:FAQ\" matches documents with FAQ knowledge type.\n - \"display_name:customer\" matches documents whose display name contains \"customer\".\n - \"state=ACTIVE\" matches documents with ACTIVE state.\n - \"knowledge_types:FAQ AND state=ACTIVE\" matches all active FAQ documents.\n\n For more information about filtering, see\n[API Filtering](https://aip.dev/160). \n**Returns**\n\n- (::String) --- The filter expression used to filter documents returned by the list method. The expression has the following syntax:\n\n \u003cbr /\u003e\n\n\n The following fields and operators are supported:\n - knowledge_types with has(:) operator\n - display_name with has(:) operator\n - state with equals(=) operator\n\n Examples:\n - \"knowledge_types:FAQ\" matches documents with FAQ knowledge type.\n - \"display_name:customer\" matches documents whose display name contains \"customer\".\n - \"state=ACTIVE\" matches documents with ACTIVE state.\n - \"knowledge_types:FAQ AND state=ACTIVE\" matches all active FAQ documents.\n\n For more information about filtering, see\n [API Filtering](https://aip.dev/160).\n\n### #page_size\n\n def page_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The maximum number of items to return in a single page. By default 10 and at most 100.\n\n### #page_size=\n\n def page_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The maximum number of items to return in a single page. By default 10 and at most 100. \n**Returns**\n\n- (::Integer) --- The maximum number of items to return in a single page. By default 10 and at most 100.\n\n### #page_token\n\n def page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The next_page_token value returned from a previous list request.\n\n### #page_token=\n\n def page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The next_page_token value returned from a previous list request. \n**Returns**\n\n- (::String) --- The next_page_token value returned from a previous list request.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The knowledge base to list all documents for. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/knowledgeBases/\u003cKnowledge Base ID\u003e`.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The knowledge base to list all documents for. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/knowledgeBases/\u003cKnowledge Base ID\u003e`. \n**Returns**\n\n- (::String) --- Required. The knowledge base to list all documents for. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/knowledgeBases/\u003cKnowledge Base ID\u003e`."]]