public sealed class UpdateAnywhereCacheRequest : IMessage<UpdateAnywhereCacheRequest>, IEquatable<UpdateAnywhereCacheRequest>, IDeepCloneable<UpdateAnywhereCacheRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Storage v2 API class UpdateAnywhereCacheRequest.
Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted. This request is only
idempotent if a request_id is provided.
Required. List of fields to be updated. Mutable fields of AnywhereCache
include ttl and admission_policy.
To specify ALL fields, specify a single field with the value *. Note: We
recommend against doing this. If a new field is introduced at a later time,
an older client updating with the * may accidentally reset the new
field's value.
[[["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."],[],[],null,["# Cloud Storage v2 API - Class UpdateAnywhereCacheRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.3.0/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.2.0/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.1.0/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest)\n- [1.0.1](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/1.0.1/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest) \n\n public sealed class UpdateAnywhereCacheRequest : IMessage\u003cUpdateAnywhereCacheRequest\u003e, IEquatable\u003cUpdateAnywhereCacheRequest\u003e, IDeepCloneable\u003cUpdateAnywhereCacheRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Storage v2 API class UpdateAnywhereCacheRequest.\n\nRequest message for UpdateAnywhereCache. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateAnywhereCacheRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateAnywhereCacheRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateAnywhereCacheRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateAnywhereCacheRequest](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2.UpdateAnywhereCacheRequest), [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.Storage.Control.V2](/dotnet/docs/reference/Google.Cloud.Storage.Control.V2/latest/Google.Cloud.Storage.Control.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Storage.Control.V2.dll\n\nConstructors\n------------\n\n### UpdateAnywhereCacheRequest()\n\n public UpdateAnywhereCacheRequest()\n\n### UpdateAnywhereCacheRequest(UpdateAnywhereCacheRequest)\n\n public UpdateAnywhereCacheRequest(UpdateAnywhereCacheRequest other)\n\nProperties\n----------\n\n### AnywhereCache\n\n public AnywhereCache AnywhereCache { get; set; }\n\nRequired. The Anywhere Cache instance to be updated.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A unique identifier for this request. UUID is the recommended\nformat, but other formats are still accepted. This request is only\nidempotent if a `request_id` is provided.\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nRequired. List of fields to be updated. Mutable fields of AnywhereCache\ninclude `ttl` and `admission_policy`.\n\nTo specify ALL fields, specify a single field with the value `*`. Note: We\nrecommend against doing this. If a new field is introduced at a later time,\nan older client updating with the `*` may accidentally reset the new\nfield's value.\n\nNot specifying any fields is an error."]]