public sealed class MessageStoragePolicy : IMessage<MessageStoragePolicy>, IEquatable<MessageStoragePolicy>, IDeepCloneable<MessageStoragePolicy>, IBufferMessage, IMessage
A policy constraining the storage of messages published to the topic.
public RepeatedField<string> AllowedPersistenceRegions { get; }
A list of IDs of GCP regions where messages that are published to the topic
may be persisted in storage. Messages published by publishers running in
non-allowed GCP regions (or running outside of GCP altogether) will be
routed for storage in one of the allowed regions. An empty list means that
no regions are allowed, and is not a valid configuration.
[[["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-04-09 UTC."],[[["This webpage provides documentation for the `MessageStoragePolicy` class within the `Google.Cloud.PubSub.V1` namespace, specifically within the context of the .NET library."],["The latest version available for this class is `3.23.0`, with multiple past versions ranging from `3.22.0` down to `2.3.0`, also accessible through the page."],["The `MessageStoragePolicy` class, inheriting from `Object`, is a policy that constrains the storage of messages published to a Google Pub/Sub topic, and implements several interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `MessageStoragePolicy` class has two constructors, one being a parameterless constructor and the other one taking another `MessageStoragePolicy` object as a parameter, allowing for the creation of a copy."],["The class provides a property called `AllowedPersistenceRegions` which is a `RepeatedField` of strings indicating allowed GCP regions where messages can be stored."]]],[]]