public sealed class MessageStoragePolicy : IMessage<MessageStoragePolicy>, IEquatable<MessageStoragePolicy>, IDeepCloneable<MessageStoragePolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Pub/Sub v1 API class MessageStoragePolicy.
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 Pub/Sub v1 API, specifically for .NET developers."],["The latest version of the API documented is 3.23.0, while the current page is focused on version 3.5.1, with links to other previous versions all the way back to 2.3.0."],["The `MessageStoragePolicy` class is a part of the `Google.Cloud.PubSub.V1` namespace and defines policies for storing messages published to a topic, inherited from the object class, and implements interfaces like `IMessage`, `IEquatable`, and `IDeepCloneable`."],["Key functionalities of `MessageStoragePolicy` include constructors for creating instances and managing `AllowedPersistenceRegions`, which specify the GCP regions where messages can be stored."],["The documented `MessageStoragePolicy` object has methods that it uses from its inheritence of the object class such as, `GetHashCode`, `GetType`, and `ToString`."]]],[]]