Expressions use the following fields separated by AND and specified with
=:
organization: An organization name in the form
organizations/<organization_id>.
project: A project name in the form projects/<project_id>.
state: Can be OPEN or CLOSED.
priority: Can be P0, P1, P2, P3, or P4. You
can specify multiple values for priority using the OR operator. For
example, priority=P1 OR priority=P2.
creator.email: The email address of the case creator.
You must specify either organization or project.
To search across displayName, description, and comments, use a global
restriction with no keyword or operator. For example, "my search".
To search only cases updated after a certain date, use update_time
restricted with that particular date, time, and timezone in ISO datetime
format. For example, update_time>"2020-01-01T00:00:00-05:00".
update_time only supports the greater than operator (>).
Examples:
organization="organizations/123456789"
project="projects/my-project-id"
project="projects/123456789"
organization="organizations/123456789" AND state=CLOSED
project="projects/my-project-id" AND creator.email="tester@example.com"
project="projects/my-project-id" AND (priority=P0 OR priority=P1)
[[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSearchCasesRequest\u003c/code\u003e class is used to request a search for cases within the Google Cloud Support v2 API, and it is available in version 1.3.0, as well as older versions.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIPageRequest\u003c/code\u003e, providing functionality for message handling, equality checks, deep cloning, buffered messages, and handling page requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSearchCasesRequest\u003c/code\u003e class allows filtering search results using properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eQuery\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, and \u003ccode\u003ePageToken\u003c/code\u003e, which allow for criteria such as organization, project, state, and priority, as well as defining pagination parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQuery\u003c/code\u003e property in particular allows the use of an expression written in filter language to refine the search based on various criteria like \u003ccode\u003eorganization\u003c/code\u003e, \u003ccode\u003eproject\u003c/code\u003e, \u003ccode\u003estate\u003c/code\u003e, \u003ccode\u003epriority\u003c/code\u003e, \u003ccode\u003ecreator.email\u003c/code\u003e, and \u003ccode\u003ebillingAccount\u003c/code\u003e, in addition to full-text search across text fields.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides two constructors, the default \u003ccode\u003eSearchCasesRequest()\u003c/code\u003e and \u003ccode\u003eSearchCasesRequest(SearchCasesRequest other)\u003c/code\u003e which allows the use of an existing SearchCasesRequest.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Support v2 API - Class SearchCasesRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.SearchCasesRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.3.0/Google.Cloud.Support.V2.SearchCasesRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.2.0/Google.Cloud.Support.V2.SearchCasesRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.1.0/Google.Cloud.Support.V2.SearchCasesRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Support.V2/1.0.0/Google.Cloud.Support.V2.SearchCasesRequest) \n\n public sealed class SearchCasesRequest : IMessage\u003cSearchCasesRequest\u003e, IEquatable\u003cSearchCasesRequest\u003e, IDeepCloneable\u003cSearchCasesRequest\u003e, IBufferMessage, IMessage, IPageRequest\n\nReference documentation and code samples for the Google Cloud Support v2 API class SearchCasesRequest.\n\nThe request message for the SearchCases endpoint. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SearchCasesRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchCasesRequest](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.SearchCasesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchCasesRequest](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.SearchCasesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchCasesRequest](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2.SearchCasesRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html), [IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Support.V2](/dotnet/docs/reference/Google.Cloud.Support.V2/latest/Google.Cloud.Support.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Support.V2.dll\n\nConstructors\n------------\n\n### SearchCasesRequest()\n\n public SearchCasesRequest()\n\n### SearchCasesRequest(SearchCasesRequest)\n\n public SearchCasesRequest(SearchCasesRequest other)\n\nProperties\n----------\n\n### PageSize\n\n public int PageSize { get; set; }\n\nThe maximum number of cases fetched with each request. The default page\nsize is 10.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nA token identifying the page of results to return. If unspecified, the\nfirst page is retrieved.\n\n### Parent\n\n public string Parent { get; set; }\n\nThe name of the parent resource to search for cases under.\n\n### Query\n\n public string Query { get; set; }\n\nAn expression used to filter cases.\n\nExpressions use the following fields separated by `AND` and specified with\n`=`:\n\n- `organization`: An organization name in the form `organizations/\u003corganization_id\u003e`.\n- `project`: A project name in the form `projects/\u003cproject_id\u003e`.\n- `state`: Can be `OPEN` or `CLOSED`.\n- `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You can specify multiple values for priority using the `OR` operator. For example, `priority=P1 OR priority=P2`.\n- `creator.email`: The email address of the case creator.\n\nYou must specify either `organization` or `project`.\n\nTo search across `displayName`, `description`, and comments, use a global\nrestriction with no keyword or operator. For example, `\"my search\"`.\n\nTo search only cases updated after a certain date, use `update_time`\nrestricted with that particular date, time, and timezone in ISO datetime\nformat. For example, `update_time\u003e\"2020-01-01T00:00:00-05:00\"`.\n`update_time` only supports the greater than operator (`\u003e`).\n\nExamples:\n\n- `organization=\"organizations/123456789\"`\n- `project=\"projects/my-project-id\"`\n- `project=\"projects/123456789\"`\n- `organization=\"organizations/123456789\" AND state=CLOSED`\n- `project=\"projects/my-project-id\" AND creator.email=\"tester@example.com\"`\n- `project=\"projects/my-project-id\" AND (priority=P0 OR priority=P1)`"]]