Interface MessageStoragePolicyOrBuilder (1.130.0)

public interface MessageStoragePolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedPersistenceRegions(int index)

public abstract String getAllowedPersistenceRegions(int index)

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.

repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedPersistenceRegions at the given index.

getAllowedPersistenceRegionsBytes(int index)

public abstract ByteString getAllowedPersistenceRegionsBytes(int index)

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.

repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedPersistenceRegions at the given index.

getAllowedPersistenceRegionsCount()

public abstract int getAllowedPersistenceRegionsCount()

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.

repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of allowedPersistenceRegions.

getAllowedPersistenceRegionsList()

public abstract List<String> getAllowedPersistenceRegionsList()

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.

repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the allowedPersistenceRegions.

getEnforceInTransit()

public abstract boolean getEnforceInTransit()

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.

bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enforceInTransit.