Cloud Pub/Sub v1 API - Class MessageStoragePolicy (3.19.0)

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.

Inheritance

object > MessageStoragePolicy

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

MessageStoragePolicy()

public MessageStoragePolicy()

MessageStoragePolicy(MessageStoragePolicy)

public MessageStoragePolicy(MessageStoragePolicy other)
Parameter
Name Description
other MessageStoragePolicy

Properties

AllowedPersistenceRegions

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.

Property Value
Type Description
RepeatedFieldstring

EnforceInTransit

public bool EnforceInTransit { get; set; }

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.

Property Value
Type Description
bool