Interface MessageStoragePolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
MessageStoragePolicy, MessageStoragePolicy.Builder

public interface MessageStoragePolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getAllowedPersistenceRegionsList

      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:
      A list containing the allowedPersistenceRegions.
    • getAllowedPersistenceRegionsCount

      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:
      The count of allowedPersistenceRegions.
    • getAllowedPersistenceRegions

      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];
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedPersistenceRegions at the given index.
    • getAllowedPersistenceRegionsBytes

      com.google.protobuf.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];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedPersistenceRegions at the given index.
    • getEnforceInTransit

      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:
      The enforceInTransit.