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-03-31 UTC."],[[["This webpage provides documentation for the `MessageStoragePolicy` class within the `Google.Cloud.PubSub.V1` namespace, covering versions from 2.3.0 to 3.23.0 (latest)."],["The `MessageStoragePolicy` class is a sealed class that implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing for deep cloning and comparison functionalities."],["The `MessageStoragePolicy` class is designed to define policies for message storage, such as specifying allowed regions for message persistence, within Google Cloud Pub/Sub topics."],["The class offers two constructors, a default one and one that copies an existing `MessageStoragePolicy` object."],["The `AllowedPersistenceRegions` property, a `RepeatedField` of strings, specifies which GCP regions are allowed to persist messages published to the topic, and it's invalid if the list is empty."]]],[]]