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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe content provides a comprehensive list of versions for \u003ccode\u003eMessageStoragePolicy\u003c/code\u003e within the \u003ccode\u003eGoogle.Cloud.PubSub.V1\u003c/code\u003e library, ranging from the latest version 3.23.0 down to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMessageStoragePolicy\u003c/code\u003e is a class that implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, as well as defining message storage constraints in a given topic.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eMessageStoragePolicy\u003c/code\u003e includes constructors for creating new instances and copying existing instances, which are \u003ccode\u003eMessageStoragePolicy()\u003c/code\u003e and \u003ccode\u003eMessageStoragePolicy(MessageStoragePolicy other)\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessageStoragePolicy\u003c/code\u003e class includes the property \u003ccode\u003eAllowedPersistenceRegions\u003c/code\u003e, which is a list of GCP regions where messages published to a topic can be stored.\u003c/p\u003e\n"],["\u003cp\u003eThis webpage details the namespace \u003ccode\u003eGoogle.Cloud.PubSub.V1\u003c/code\u003e, in the \u003ccode\u003eGoogle.Cloud.PubSub.V1.dll\u003c/code\u003e assembly, and includes information about inherited members, such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]