Package com.google.pubsub.v1
Class Topic.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
- com.google.pubsub.v1.Topic.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TopicOrBuilder,Cloneable
- Enclosing class:
- Topic
public static final class Topic.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder> implements TopicOrBuilder
A topic resource.
Protobuf typegoogle.pubsub.v1.Topic
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Topic.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Topicbuild()TopicbuildPartial()Topic.Builderclear()Topic.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Topic.BuilderclearKmsKeyName()The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.Topic.BuilderclearLabels()Topic.BuilderclearMessageRetentionDuration()Indicates the minimum duration to retain a message after it is published to the topic.Topic.BuilderclearMessageStoragePolicy()Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.BuilderclearName()Required.Topic.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Topic.BuilderclearSatisfiesPzs()Reserved for future use.Topic.BuilderclearSchemaSettings()Settings for validating messages published against a schema.Topic.Builderclone()booleancontainsLabels(String key)See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).TopicgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKmsKeyName()The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.com.google.protobuf.ByteStringgetKmsKeyNameBytes()The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.Map<String,String>getLabels()Deprecated.intgetLabelsCount()See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Map<String,String>getLabelsMap()See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).StringgetLabelsOrDefault(String key, String defaultValue)See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).StringgetLabelsOrThrow(String key)See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).com.google.protobuf.DurationgetMessageRetentionDuration()Indicates the minimum duration to retain a message after it is published to the topic.com.google.protobuf.Duration.BuildergetMessageRetentionDurationBuilder()Indicates the minimum duration to retain a message after it is published to the topic.com.google.protobuf.DurationOrBuildergetMessageRetentionDurationOrBuilder()Indicates the minimum duration to retain a message after it is published to the topic.MessageStoragePolicygetMessageStoragePolicy()Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.MessageStoragePolicy.BuildergetMessageStoragePolicyBuilder()Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.MessageStoragePolicyOrBuildergetMessageStoragePolicyOrBuilder()Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Map<String,String>getMutableLabels()Deprecated.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.booleangetSatisfiesPzs()Reserved for future use.SchemaSettingsgetSchemaSettings()Settings for validating messages published against a schema.SchemaSettings.BuildergetSchemaSettingsBuilder()Settings for validating messages published against a schema.SchemaSettingsOrBuildergetSchemaSettingsOrBuilder()Settings for validating messages published against a schema.booleanhasMessageRetentionDuration()Indicates the minimum duration to retain a message after it is published to the topic.booleanhasMessageStoragePolicy()Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.booleanhasSchemaSettings()Settings for validating messages published against a schema.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Topic.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Topic.BuildermergeFrom(com.google.protobuf.Message other)Topic.BuildermergeFrom(Topic other)Topic.BuildermergeMessageRetentionDuration(com.google.protobuf.Duration value)Indicates the minimum duration to retain a message after it is published to the topic.Topic.BuildermergeMessageStoragePolicy(MessageStoragePolicy value)Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.BuildermergeSchemaSettings(SchemaSettings value)Settings for validating messages published against a schema.Topic.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Topic.BuilderputAllLabels(Map<String,String> values)See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Topic.BuilderputLabels(String key, String value)See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Topic.BuilderremoveLabels(String key)See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Topic.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Topic.BuildersetKmsKeyName(String value)The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.Topic.BuildersetKmsKeyNameBytes(com.google.protobuf.ByteString value)The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.Topic.BuildersetMessageRetentionDuration(com.google.protobuf.Duration value)Indicates the minimum duration to retain a message after it is published to the topic.Topic.BuildersetMessageRetentionDuration(com.google.protobuf.Duration.Builder builderForValue)Indicates the minimum duration to retain a message after it is published to the topic.Topic.BuildersetMessageStoragePolicy(MessageStoragePolicy value)Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.BuildersetMessageStoragePolicy(MessageStoragePolicy.Builder builderForValue)Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.BuildersetName(String value)Required.Topic.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.Topic.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Topic.BuildersetSatisfiesPzs(boolean value)Reserved for future use.Topic.BuildersetSchemaSettings(SchemaSettings value)Settings for validating messages published against a schema.Topic.BuildersetSchemaSettings(SchemaSettings.Builder builderForValue)Settings for validating messages published against a schema.Topic.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
clear
public Topic.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
getDefaultInstanceForType
public Topic getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Topic build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Topic buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Topic.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
setField
public Topic.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
clearField
public Topic.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
clearOneof
public Topic.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
setRepeatedField
public Topic.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
addRepeatedField
public Topic.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
mergeFrom
public Topic.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Topic.Builder>
-
mergeFrom
public Topic.Builder mergeFrom(Topic other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
mergeFrom
public Topic.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Topic.Builder>- Throws:
IOException
-
getName
public String getName()
Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceTopicOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceTopicOrBuilder- Returns:
- The bytes for name.
-
setName
public Topic.Builder setName(String value)
Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Topic.Builder clearName()
Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
public Topic.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:TopicOrBuilderSee [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;- Specified by:
getLabelsCountin interfaceTopicOrBuilder
-
containsLabels
public boolean containsLabels(String key)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;- Specified by:
containsLabelsin interfaceTopicOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceTopicOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;- Specified by:
getLabelsMapin interfaceTopicOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;- Specified by:
getLabelsOrDefaultin interfaceTopicOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;- Specified by:
getLabelsOrThrowin interfaceTopicOrBuilder
-
clearLabels
public Topic.Builder clearLabels()
-
removeLabels
public Topic.Builder removeLabels(String key)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Topic.Builder putLabels(String key, String value)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;
-
putAllLabels
public Topic.Builder putAllLabels(Map<String,String> values)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;
-
hasMessageStoragePolicy
public boolean hasMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;- Specified by:
hasMessageStoragePolicyin interfaceTopicOrBuilder- Returns:
- Whether the messageStoragePolicy field is set.
-
getMessageStoragePolicy
public MessageStoragePolicy getMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;- Specified by:
getMessageStoragePolicyin interfaceTopicOrBuilder- Returns:
- The messageStoragePolicy.
-
setMessageStoragePolicy
public Topic.Builder setMessageStoragePolicy(MessageStoragePolicy value)
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
-
setMessageStoragePolicy
public Topic.Builder setMessageStoragePolicy(MessageStoragePolicy.Builder builderForValue)
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
-
mergeMessageStoragePolicy
public Topic.Builder mergeMessageStoragePolicy(MessageStoragePolicy value)
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
-
clearMessageStoragePolicy
public Topic.Builder clearMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
-
getMessageStoragePolicyBuilder
public MessageStoragePolicy.Builder getMessageStoragePolicyBuilder()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
-
getMessageStoragePolicyOrBuilder
public MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored. If not present, then no constraints are in effect.
.google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;- Specified by:
getMessageStoragePolicyOrBuilderin interfaceTopicOrBuilder
-
getKmsKeyName
public String getKmsKeyName()
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string kms_key_name = 5;- Specified by:
getKmsKeyNamein interfaceTopicOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string kms_key_name = 5;- Specified by:
getKmsKeyNameBytesin interfaceTopicOrBuilder- Returns:
- The bytes for kmsKeyName.
-
setKmsKeyName
public Topic.Builder setKmsKeyName(String value)
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string kms_key_name = 5;- Parameters:
value- The kmsKeyName to set.- Returns:
- This builder for chaining.
-
clearKmsKeyName
public Topic.Builder clearKmsKeyName()
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string kms_key_name = 5;- Returns:
- This builder for chaining.
-
setKmsKeyNameBytes
public Topic.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string kms_key_name = 5;- Parameters:
value- The bytes for kmsKeyName to set.- Returns:
- This builder for chaining.
-
hasSchemaSettings
public boolean hasSchemaSettings()
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;- Specified by:
hasSchemaSettingsin interfaceTopicOrBuilder- Returns:
- Whether the schemaSettings field is set.
-
getSchemaSettings
public SchemaSettings getSchemaSettings()
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;- Specified by:
getSchemaSettingsin interfaceTopicOrBuilder- Returns:
- The schemaSettings.
-
setSchemaSettings
public Topic.Builder setSchemaSettings(SchemaSettings value)
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;
-
setSchemaSettings
public Topic.Builder setSchemaSettings(SchemaSettings.Builder builderForValue)
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;
-
mergeSchemaSettings
public Topic.Builder mergeSchemaSettings(SchemaSettings value)
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;
-
clearSchemaSettings
public Topic.Builder clearSchemaSettings()
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;
-
getSchemaSettingsBuilder
public SchemaSettings.Builder getSchemaSettingsBuilder()
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;
-
getSchemaSettingsOrBuilder
public SchemaSettingsOrBuilder getSchemaSettingsOrBuilder()
Settings for validating messages published against a schema.
.google.pubsub.v1.SchemaSettings schema_settings = 6;- Specified by:
getSchemaSettingsOrBuilderin interfaceTopicOrBuilder
-
getSatisfiesPzs
public boolean getSatisfiesPzs()
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
bool satisfies_pzs = 7;- Specified by:
getSatisfiesPzsin interfaceTopicOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
public Topic.Builder setSatisfiesPzs(boolean value)
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
bool satisfies_pzs = 7;- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
public Topic.Builder clearSatisfiesPzs()
Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.
bool satisfies_pzs = 7;- Returns:
- This builder for chaining.
-
hasMessageRetentionDuration
public boolean hasMessageRetentionDuration()
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;- Specified by:
hasMessageRetentionDurationin interfaceTopicOrBuilder- Returns:
- Whether the messageRetentionDuration field is set.
-
getMessageRetentionDuration
public com.google.protobuf.Duration getMessageRetentionDuration()
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;- Specified by:
getMessageRetentionDurationin interfaceTopicOrBuilder- Returns:
- The messageRetentionDuration.
-
setMessageRetentionDuration
public Topic.Builder setMessageRetentionDuration(com.google.protobuf.Duration value)
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;
-
setMessageRetentionDuration
public Topic.Builder setMessageRetentionDuration(com.google.protobuf.Duration.Builder builderForValue)
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;
-
mergeMessageRetentionDuration
public Topic.Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;
-
clearMessageRetentionDuration
public Topic.Builder clearMessageRetentionDuration()
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;
-
getMessageRetentionDurationBuilder
public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder()
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;
-
getMessageRetentionDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder()
Indicates the minimum duration to retain a message after it is published to the topic. If this field is set, messages published to the topic in the last `message_retention_duration` are always available to subscribers. For instance, it allows any attached subscription to [seek to a timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) that is up to `message_retention_duration` in the past. If this field is not set, message retention is controlled by settings on individual subscriptions. Cannot be more than 31 days or less than 10 minutes.
.google.protobuf.Duration message_retention_duration = 8;- Specified by:
getMessageRetentionDurationOrBuilderin interfaceTopicOrBuilder
-
setUnknownFields
public final Topic.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
mergeUnknownFields
public final Topic.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
-