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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Topic
build()
Topic
buildPartial()
Topic.Builder
clear()
Topic.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Topic.Builder
clearKmsKeyName()
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.Topic.Builder
clearLabels()
Topic.Builder
clearMessageRetentionDuration()
Indicates the minimum duration to retain a message after it is published to the topic.Topic.Builder
clearMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.Builder
clearName()
Required.Topic.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Topic.Builder
clearSatisfiesPzs()
Reserved for future use.Topic.Builder
clearSchemaSettings()
Settings for validating messages published against a schema.Topic.Builder
clone()
boolean
containsLabels(String key)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Topic
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getKmsKeyName()
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.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.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
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).String
getLabelsOrDefault(String key, String defaultValue)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).String
getLabelsOrThrow(String key)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).com.google.protobuf.Duration
getMessageRetentionDuration()
Indicates the minimum duration to retain a message after it is published to the topic.com.google.protobuf.Duration.Builder
getMessageRetentionDurationBuilder()
Indicates the minimum duration to retain a message after it is published to the topic.com.google.protobuf.DurationOrBuilder
getMessageRetentionDurationOrBuilder()
Indicates the minimum duration to retain a message after it is published to the topic.MessageStoragePolicy
getMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.MessageStoragePolicy.Builder
getMessageStoragePolicyBuilder()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.MessageStoragePolicyOrBuilder
getMessageStoragePolicyOrBuilder()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Required.com.google.protobuf.ByteString
getNameBytes()
Required.boolean
getSatisfiesPzs()
Reserved for future use.SchemaSettings
getSchemaSettings()
Settings for validating messages published against a schema.SchemaSettings.Builder
getSchemaSettingsBuilder()
Settings for validating messages published against a schema.SchemaSettingsOrBuilder
getSchemaSettingsOrBuilder()
Settings for validating messages published against a schema.boolean
hasMessageRetentionDuration()
Indicates the minimum duration to retain a message after it is published to the topic.boolean
hasMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.boolean
hasSchemaSettings()
Settings for validating messages published against a schema.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Topic.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Topic.Builder
mergeFrom(com.google.protobuf.Message other)
Topic.Builder
mergeFrom(Topic other)
Topic.Builder
mergeMessageRetentionDuration(com.google.protobuf.Duration value)
Indicates the minimum duration to retain a message after it is published to the topic.Topic.Builder
mergeMessageStoragePolicy(MessageStoragePolicy value)
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.Builder
mergeSchemaSettings(SchemaSettings value)
Settings for validating messages published against a schema.Topic.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Topic.Builder
putAllLabels(Map<String,String> values)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Topic.Builder
putLabels(String key, String value)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Topic.Builder
removeLabels(String key)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).Topic.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.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.Topic.Builder
setMessageRetentionDuration(com.google.protobuf.Duration value)
Indicates the minimum duration to retain a message after it is published to the topic.Topic.Builder
setMessageRetentionDuration(com.google.protobuf.Duration.Builder builderForValue)
Indicates the minimum duration to retain a message after it is published to the topic.Topic.Builder
setMessageStoragePolicy(MessageStoragePolicy value)
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.Builder
setMessageStoragePolicy(MessageStoragePolicy.Builder builderForValue)
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.Topic.Builder
setName(String value)
Required.Topic.Builder
setNameBytes(com.google.protobuf.ByteString value)
Required.Topic.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Topic.Builder
setSatisfiesPzs(boolean value)
Reserved for future use.Topic.Builder
setSchemaSettings(SchemaSettings value)
Settings for validating messages published against a schema.Topic.Builder
setSchemaSettings(SchemaSettings.Builder builderForValue)
Settings for validating messages published against a schema.Topic.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
clear
public Topic.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
getDefaultInstanceForType
public Topic getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Topic build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Topic buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Topic.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
setField
public Topic.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
clearField
public Topic.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
clearOneof
public Topic.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
setRepeatedField
public Topic.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
addRepeatedField
public Topic.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
mergeFrom
public Topic.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Topic.Builder>
-
mergeFrom
public Topic.Builder mergeFrom(Topic other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:TopicOrBuilder
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
map<string, string> labels = 2;
- Specified by:
getLabelsCount
in 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:
containsLabels
in interfaceTopicOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
hasMessageStoragePolicy
in 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:
getMessageStoragePolicy
in 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:
getMessageStoragePolicyOrBuilder
in 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:
getKmsKeyName
in 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:
getKmsKeyNameBytes
in 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:
hasSchemaSettings
in 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:
getSchemaSettings
in 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:
getSchemaSettingsOrBuilder
in 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:
getSatisfiesPzs
in 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:
hasMessageRetentionDuration
in 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:
getMessageRetentionDuration
in 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:
getMessageRetentionDurationOrBuilder
in interfaceTopicOrBuilder
-
setUnknownFields
public final Topic.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
mergeUnknownFields
public final Topic.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Topic.Builder>
-
-