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 Google Cloud regions where messages that are published
to the topic may be persisted in storage. Messages published by publishers
running in non-allowed Google Cloud regions (or running outside of Google
Cloud altogether) are 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."],[[["The latest version available for the `MessageStoragePolicy` class is 3.23.0, and the page contains documentation for multiple versions, ranging down to version 2.3.0."],["The `MessageStoragePolicy` class, part of the Google Cloud Pub/Sub v1 API, constrains message storage policies for topics, and is implemented with multiple interfaces."],["The `MessageStoragePolicy` class includes properties such as `AllowedPersistenceRegions`, which controls where messages can be stored, and is of the type `RepeatedField\u003cstring\u003e`."],["The `MessageStoragePolicy` class has a default constructor as well as a copy constructor, and is found within the `Google.Cloud.PubSub.V1` namespace."]]],[]]