public final class MessageStoragePolicy extends GeneratedMessageV3 implements MessageStoragePolicyOrBuilder
A policy constraining the storage of messages published to the topic.
Protobuf type google.pubsub.v1.MessageStoragePolicy
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MessageStoragePolicyImplements
MessageStoragePolicyOrBuilderStatic Fields
ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER
public static final int ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MessageStoragePolicy getDefaultInstance()
Type | Description |
MessageStoragePolicy |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static MessageStoragePolicy.Builder newBuilder()
Type | Description |
MessageStoragePolicy.Builder |
newBuilder(MessageStoragePolicy prototype)
public static MessageStoragePolicy.Builder newBuilder(MessageStoragePolicy prototype)
Name | Description |
prototype | MessageStoragePolicy |
Type | Description |
MessageStoragePolicy.Builder |
parseDelimitedFrom(InputStream input)
public static MessageStoragePolicy parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessageStoragePolicy |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessageStoragePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageStoragePolicy |
Type | Description |
IOException |
parseFrom(byte[] data)
public static MessageStoragePolicy parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
MessageStoragePolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessageStoragePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageStoragePolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MessageStoragePolicy parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
MessageStoragePolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessageStoragePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageStoragePolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MessageStoragePolicy parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
MessageStoragePolicy |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MessageStoragePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageStoragePolicy |
Type | Description |
IOException |
parseFrom(InputStream input)
public static MessageStoragePolicy parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessageStoragePolicy |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessageStoragePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageStoragePolicy |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MessageStoragePolicy parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
MessageStoragePolicy |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessageStoragePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageStoragePolicy |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MessageStoragePolicy> parser()
Type | Description |
Parser<MessageStoragePolicy> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
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;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
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;
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;
Type | Description |
ProtocolStringList | A list containing the allowedPersistenceRegions. |
getDefaultInstanceForType()
public MessageStoragePolicy getDefaultInstanceForType()
Type | Description |
MessageStoragePolicy |
getParserForType()
public Parser<MessageStoragePolicy> getParserForType()
Type | Description |
Parser<MessageStoragePolicy> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public MessageStoragePolicy.Builder newBuilderForType()
Type | Description |
MessageStoragePolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessageStoragePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
MessageStoragePolicy.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public MessageStoragePolicy.Builder toBuilder()
Type | Description |
MessageStoragePolicy.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |