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; }
Optional. 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.
Optional. If true, allowed_persistence_regions is also used to enforce
in-transit guarantees for messages. That is, Pub/Sub will fail
Publish operations on this topic and subscribe operations
on any subscription attached to this topic in any region that is
not in allowed_persistence_regions.
[[["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, specifically for .NET developers."],["The `MessageStoragePolicy` class is used to manage constraints regarding the storage of messages published to a Pub/Sub topic, such as defining allowed regions."],["This page is a part of the documentation for Google.Cloud.PubSub.V1, with the latest version being 3.23.0 and provides a list of versions for the class, ranging from 2.3.0 to 3.23.0."],["Key properties of the `MessageStoragePolicy` include `AllowedPersistenceRegions` which is a list of Google Cloud region IDs where messages can be stored, and `EnforceInTransit`, a boolean value to enforce in-transit guarantees."],["The class implements multiple interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` and it can be constructed using either the default constructor or with another `MessageStoragePolicy` instance."]]],[]]