Optional. An expression for filtering the results of the request. Filter
rules are case insensitive. The fields eligible for filtering are:
name
annotations
Examples of using a filter:
To filter the results of your request to packages with the name
my-package in project my-project in the us-central region, in
repository my-repo, append the following filter expression to your
request:
To filter the results of your request to packages with the annotation
key-value pair [external_link: external_link_value], append the
following filter expression to your request":
"annotations.external_link:external_link_value"
To filter the results just for a specific annotation key external_link,
append the following filter expression to your request:
"annotations.external_link"
If the annotation key or value contains special characters, you can escape
them by surrounding the value with backticks. For example, to filter the
results of your request to packages with the annotation key-value pair
[external.link:https://example.com/my-package], append the following
filter expression to your request:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eListPackagesRequest\u003c/code\u003e class within the Google Cloud Artifact Registry v1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListPackagesRequest\u003c/code\u003e class is used to formulate a request to list packages and it implements several interfaces, including \u003ccode\u003eIPageRequest\u003c/code\u003e, \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API, with \u003ccode\u003e2.9.0\u003c/code\u003e being the latest, and previous versions from \u003ccode\u003e2.8.0\u003c/code\u003e back to \u003ccode\u003e1.0.0\u003c/code\u003e are also documented.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eListPackagesRequest\u003c/code\u003e class include \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eOrderBy\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, \u003ccode\u003ePageToken\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, which allow users to customize the package listing request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFilter\u003c/code\u003e property of the \u003ccode\u003eListPackagesRequest\u003c/code\u003e class allows for fine-grained filtering of results based on package name and annotations, supporting wildcard characters and special character escaping.\u003c/p\u003e\n"]]],[],null,["# Artifact Registry v1 API - Class ListPackagesRequest (2.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.9.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.8.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.7.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.6.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.5.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.4.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.3.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.2.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.1.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.0.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/1.1.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/1.0.0/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest) \n\n public sealed class ListPackagesRequest : IPageRequest, IMessage\u003cListPackagesRequest\u003e, IEquatable\u003cListPackagesRequest\u003e, IDeepCloneable\u003cListPackagesRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Artifact Registry v1 API class ListPackagesRequest.\n\nThe request to list packages. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListPackagesRequest \n\nImplements\n----------\n\n[IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListPackagesRequest](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListPackagesRequest](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListPackagesRequest](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest), [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) \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.ArtifactRegistry.V1](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ArtifactRegistry.V1.dll\n\nConstructors\n------------\n\n### ListPackagesRequest()\n\n public ListPackagesRequest()\n\n### ListPackagesRequest(ListPackagesRequest)\n\n public ListPackagesRequest(ListPackagesRequest other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nOptional. An expression for filtering the results of the request. Filter\nrules are case insensitive. The fields eligible for filtering are:\n\n- `name`\n- `annotations`\n\nExamples of using a filter:\n\nTo filter the results of your request to packages with the name\n`my-package` in project `my-project` in the `us-central` region, in\nrepository `my-repo`, append the following filter expression to your\nrequest:\n\n- `name=\"projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package\"`\n\n You can also use wildcards to match any number of characters before or\n after the value:\n- `name=\"projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*\"`\n\n- `name=\"projects/my-project/locations/us-central1/repositories/my-repo/packages/*package\"`\n- `name=\"projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*\"`\n\n To filter the results of your request to packages with the annotation\n key-value pair \\[`external_link`: `external_link_value`\\], append the\n following filter expression to your request\":\n- `\"annotations.external_link:external_link_value\"`\n\n To filter the results just for a specific annotation key `external_link`,\n append the following filter expression to your request:\n- `\"annotations.external_link\"`\n\n If the annotation key or value contains special characters, you can escape\n them by surrounding the value with backticks. For example, to filter the\n results of your request to packages with the annotation key-value pair\n \\[`external.link`:`https://example.com/my-package`\\], append the following\n filter expression to your request:\n- ``\"annotations.`external.link`:`https://example.com/my-package`\"``\n\n You can also filter with annotations with a wildcard to\n match any number of characters before or after the value:\n- ``\"annotations.*_link:`*example.com*`\"``\n\n### OrderBy\n\n public string OrderBy { get; set; }\n\nOptional. The field to order the results by.\n\n### PageSize\n\n public int PageSize { get; set; }\n\nThe maximum number of packages to return. Maximum page size is 1,000.\n\n### PageToken\n\n public string PageToken { get; set; }\n\nThe next_page_token value returned from a previous list request, if any.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The name of the parent resource whose packages will be listed.\n\n### ParentAsRepositoryName\n\n public RepositoryName ParentAsRepositoryName { get; set; }\n\n[RepositoryName](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RepositoryName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListPackagesRequest#Google_Cloud_ArtifactRegistry_V1_ListPackagesRequest_Parent) resource name property."]]