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 versions with the name
my-version 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 versions 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 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 versions with the annotation key-value pair
[external.link:https://example.com/my-version], 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\u003eListVersionsRequest\u003c/code\u003e class within the Google Cloud Artifact Registry v1 API, specifically for .NET developers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListVersionsRequest\u003c/code\u003e class is used to request a list of versions from the Artifact Registry, with the latest version being 2.9.0.\u003c/p\u003e\n"],["\u003cp\u003eIt supports filtering results by name or annotations, using wildcard matching and special character escaping, with various examples demonstrated.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can order results and manage pagination through the \u003ccode\u003eOrderBy\u003c/code\u003e, \u003ccode\u003ePageSize\u003c/code\u003e, and \u003ccode\u003ePageToken\u003c/code\u003e properties of the \u003ccode\u003eListVersionsRequest\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from multiple 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, all designed for efficient handling of requests.\u003c/p\u003e\n"]]],[],null,["# Artifact Registry v1 API - Class ListVersionsRequest (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.ListVersionsRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.9.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.8.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.7.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.6.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.5.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.4.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.3.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.2.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.1.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.0.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/1.1.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/1.0.0/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest) \n\n public sealed class ListVersionsRequest : IPageRequest, IMessage\u003cListVersionsRequest\u003e, IEquatable\u003cListVersionsRequest\u003e, IDeepCloneable\u003cListVersionsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Artifact Registry v1 API class ListVersionsRequest.\n\nThe request to list versions. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListVersionsRequest \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)[ListVersionsRequest](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListVersionsRequest](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListVersionsRequest](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.ListVersionsRequest), [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### ListVersionsRequest()\n\n public ListVersionsRequest()\n\n### ListVersionsRequest(ListVersionsRequest)\n\n public ListVersionsRequest(ListVersionsRequest 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\n Examples of using a filter:\n\n To filter the results of your request to versions with the name\n `my-version` in project `my-project` in the `us-central` region, in\n repository `my-repo`, append the following filter expression to your\n request:\n- `name=\"projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version\"`\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-package/versions/*version\"`\n\n- `name=\"projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*\"`\n- `name=\"projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*\"`\n\n To filter the results of your request to versions 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 just for a specific annotation key `external_link`, append the\n 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 versions with the annotation key-value pair\n \\[`external.link`:`https://example.com/my-version`\\], append the following\n filter expression to your request:\n- ``\"annotations.`external.link`:`https://example.com/my-version`\"``\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 versions 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\nThe name of the parent resource whose versions will be listed.\n\n### View\n\n public VersionView View { get; set; }\n\nThe view that should be returned in the response."]]