public static final class MessageStoragePolicy.Builder extends GeneratedMessageV3.Builder<MessageStoragePolicy.Builder> implements MessageStoragePolicyOrBuilder
A policy constraining the storage of messages published to the topic.
Protobuf type google.pubsub.v1.MessageStoragePolicy
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllAllowedPersistenceRegions(Iterable<String> values)
public MessageStoragePolicy.Builder addAllAllowedPersistenceRegions(Iterable<String> values)
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.
repeated string allowed_persistence_regions = 1;
Parameter
Name | Description |
values | Iterable<String>
The allowedPersistenceRegions to add.
|
Returns
addAllowedPersistenceRegions(String value)
public MessageStoragePolicy.Builder addAllowedPersistenceRegions(String value)
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.
repeated string allowed_persistence_regions = 1;
Parameter
Name | Description |
value | String
The allowedPersistenceRegions to add.
|
Returns
addAllowedPersistenceRegionsBytes(ByteString value)
public MessageStoragePolicy.Builder addAllowedPersistenceRegionsBytes(ByteString value)
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.
repeated string allowed_persistence_regions = 1;
Parameter
Name | Description |
value | ByteString
The bytes of the allowedPersistenceRegions to add.
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessageStoragePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MessageStoragePolicy build()
Returns
buildPartial()
public MessageStoragePolicy buildPartial()
Returns
clear()
public MessageStoragePolicy.Builder clear()
Returns
Overrides
clearAllowedPersistenceRegions()
public MessageStoragePolicy.Builder clearAllowedPersistenceRegions()
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.
repeated string allowed_persistence_regions = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public MessageStoragePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public MessageStoragePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MessageStoragePolicy.Builder clone()
Returns
Overrides
getAllowedPersistenceRegions(int index)
public String getAllowedPersistenceRegions(int index)
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.
repeated string allowed_persistence_regions = 1;
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 ByteString getAllowedPersistenceRegionsBytes(int index)
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.
repeated string allowed_persistence_regions = 1;
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 int getAllowedPersistenceRegionsCount()
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.
repeated string allowed_persistence_regions = 1;
Returns
Type | Description |
int | The count of allowedPersistenceRegions.
|
getAllowedPersistenceRegionsList()
public ProtocolStringList getAllowedPersistenceRegionsList()
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.
repeated string allowed_persistence_regions = 1;
Returns
getDefaultInstanceForType()
public MessageStoragePolicy getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public MessageStoragePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MessageStoragePolicy.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(MessageStoragePolicy other)
public MessageStoragePolicy.Builder mergeFrom(MessageStoragePolicy other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessageStoragePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAllowedPersistenceRegions(int index, String value)
public MessageStoragePolicy.Builder setAllowedPersistenceRegions(int index, String value)
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.
repeated string allowed_persistence_regions = 1;
Parameters
Name | Description |
index | int
The index to set the value at.
|
value | String
The allowedPersistenceRegions to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public MessageStoragePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessageStoragePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MessageStoragePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides