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 page provides reference documentation for the `MessageStoragePolicy` class within the Google Cloud Pub/Sub v1 API for .NET."],["The `MessageStoragePolicy` class allows users to define policies that control where messages published to a topic are stored."],["The latest version documented is 3.23.0, and the page includes documentation for versions down to 2.3.0, including a long list of other in between versions."],["The `MessageStoragePolicy` class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and has properties like `AllowedPersistenceRegions` to control allowed storage locations."],["There is also an overview of the constructors available with the class."]]],[]]