public static final class MessageStoragePolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder> implements MessageStoragePolicyOrBuilder
A policy constraining the storage of messages published to the topic.Protobuf type
google.pubsub.v1.MessageStoragePolicy
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
MessageStoragePolicy.Builder |
addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString value)
A list of IDs of GCP regions where messages that are published to the topic
may be persisted in storage.
|
MessageStoragePolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MessageStoragePolicy |
build() |
MessageStoragePolicy |
buildPartial() |
MessageStoragePolicy.Builder |
clear() |
MessageStoragePolicy.Builder |
clearAllowedPersistenceRegions()
A list of IDs of GCP regions where messages that are published to the topic
may be persisted in storage.
|
MessageStoragePolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MessageStoragePolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MessageStoragePolicy.Builder |
clone() |
String |
getAllowedPersistenceRegions(int index)
A list of IDs of GCP regions where messages that are published to the topic
may be persisted in storage.
|
com.google.protobuf.ByteString |
getAllowedPersistenceRegionsBytes(int index)
A list of IDs of GCP regions where messages that are published to the topic
may be persisted in storage.
|
int |
getAllowedPersistenceRegionsCount()
A list of IDs of GCP regions where messages that are published to the topic
may be persisted in storage.
|
com.google.protobuf.ProtocolStringList |
getAllowedPersistenceRegionsList()
A list of IDs of GCP regions where messages that are published to the topic
may be persisted in storage.
|
MessageStoragePolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MessageStoragePolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MessageStoragePolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
MessageStoragePolicy.Builder |
mergeFrom(MessageStoragePolicy other) |
MessageStoragePolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
MessageStoragePolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MessageStoragePolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MessageStoragePolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public MessageStoragePolicy build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public MessageStoragePolicy buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public MessageStoragePolicy.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder mergeFrom(MessageStoragePolicy other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public MessageStoragePolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<MessageStoragePolicy.Builder>
IOException
public com.google.protobuf.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;
getAllowedPersistenceRegionsList
in interface MessageStoragePolicyOrBuilder
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;
getAllowedPersistenceRegionsCount
in interface MessageStoragePolicyOrBuilder
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;
getAllowedPersistenceRegions
in interface MessageStoragePolicyOrBuilder
index
- The index of the element to return.public com.google.protobuf.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;
getAllowedPersistenceRegionsBytes
in interface MessageStoragePolicyOrBuilder
index
- The index of the value to return.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;
index
- The index to set the value at.value
- The allowedPersistenceRegions to set.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;
value
- The allowedPersistenceRegions to add.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;
values
- The allowedPersistenceRegions to add.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;
public MessageStoragePolicy.Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.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;
value
- The bytes of the allowedPersistenceRegions to add.public final MessageStoragePolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
public final MessageStoragePolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<MessageStoragePolicy.Builder>
Copyright © 2023 Google LLC. All rights reserved.