Class Topic.Builder (1.9.0)

public static final class Topic.Builder extends GeneratedMessageV3.Builder<Topic.Builder> implements TopicOrBuilder

Metadata about a topic resource.

Protobuf type google.cloud.pubsublite.v1.Topic

Implements

TopicOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Topic.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Topic.Builder
Overrides

build()

public Topic build()
Returns
TypeDescription
Topic

buildPartial()

public Topic buildPartial()
Returns
TypeDescription
Topic

clear()

public Topic.Builder clear()
Returns
TypeDescription
Topic.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Topic.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Topic.Builder
Overrides

clearName()

public Topic.Builder clearName()

The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string name = 1;

Returns
TypeDescription
Topic.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Topic.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Topic.Builder
Overrides

clearPartitionConfig()

public Topic.Builder clearPartitionConfig()

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Returns
TypeDescription
Topic.Builder

clearReservationConfig()

public Topic.Builder clearReservationConfig()

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Returns
TypeDescription
Topic.Builder

clearRetentionConfig()

public Topic.Builder clearRetentionConfig()

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Returns
TypeDescription
Topic.Builder

clone()

public Topic.Builder clone()
Returns
TypeDescription
Topic.Builder
Overrides

getDefaultInstanceForType()

public Topic getDefaultInstanceForType()
Returns
TypeDescription
Topic

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPartitionConfig()

public Topic.PartitionConfig getPartitionConfig()

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Returns
TypeDescription
Topic.PartitionConfig

The partitionConfig.

getPartitionConfigBuilder()

public Topic.PartitionConfig.Builder getPartitionConfigBuilder()

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Returns
TypeDescription
Topic.PartitionConfig.Builder

getPartitionConfigOrBuilder()

public Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder()

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Returns
TypeDescription
Topic.PartitionConfigOrBuilder

getReservationConfig()

public Topic.ReservationConfig getReservationConfig()

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Returns
TypeDescription
Topic.ReservationConfig

The reservationConfig.

getReservationConfigBuilder()

public Topic.ReservationConfig.Builder getReservationConfigBuilder()

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Returns
TypeDescription
Topic.ReservationConfig.Builder

getReservationConfigOrBuilder()

public Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder()

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Returns
TypeDescription
Topic.ReservationConfigOrBuilder

getRetentionConfig()

public Topic.RetentionConfig getRetentionConfig()

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Returns
TypeDescription
Topic.RetentionConfig

The retentionConfig.

getRetentionConfigBuilder()

public Topic.RetentionConfig.Builder getRetentionConfigBuilder()

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Returns
TypeDescription
Topic.RetentionConfig.Builder

getRetentionConfigOrBuilder()

public Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder()

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Returns
TypeDescription
Topic.RetentionConfigOrBuilder

hasPartitionConfig()

public boolean hasPartitionConfig()

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Returns
TypeDescription
boolean

Whether the partitionConfig field is set.

hasReservationConfig()

public boolean hasReservationConfig()

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Returns
TypeDescription
boolean

Whether the reservationConfig field is set.

hasRetentionConfig()

public boolean hasRetentionConfig()

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Returns
TypeDescription
boolean

Whether the retentionConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Topic other)

public Topic.Builder mergeFrom(Topic other)
Parameter
NameDescription
otherTopic
Returns
TypeDescription
Topic.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Topic.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Topic.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Topic.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Topic.Builder
Overrides

mergePartitionConfig(Topic.PartitionConfig value)

public Topic.Builder mergePartitionConfig(Topic.PartitionConfig value)

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Parameter
NameDescription
valueTopic.PartitionConfig
Returns
TypeDescription
Topic.Builder

mergeReservationConfig(Topic.ReservationConfig value)

public Topic.Builder mergeReservationConfig(Topic.ReservationConfig value)

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Parameter
NameDescription
valueTopic.ReservationConfig
Returns
TypeDescription
Topic.Builder

mergeRetentionConfig(Topic.RetentionConfig value)

public Topic.Builder mergeRetentionConfig(Topic.RetentionConfig value)

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Parameter
NameDescription
valueTopic.RetentionConfig
Returns
TypeDescription
Topic.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Topic.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Topic.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Topic.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Topic.Builder
Overrides

setName(String value)

public Topic.Builder setName(String value)

The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Topic.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Topic.Builder setNameBytes(ByteString value)

The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Topic.Builder

This builder for chaining.

setPartitionConfig(Topic.PartitionConfig value)

public Topic.Builder setPartitionConfig(Topic.PartitionConfig value)

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Parameter
NameDescription
valueTopic.PartitionConfig
Returns
TypeDescription
Topic.Builder

setPartitionConfig(Topic.PartitionConfig.Builder builderForValue)

public Topic.Builder setPartitionConfig(Topic.PartitionConfig.Builder builderForValue)

The settings for this topic's partitions.

.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;

Parameter
NameDescription
builderForValueTopic.PartitionConfig.Builder
Returns
TypeDescription
Topic.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Topic.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Topic.Builder
Overrides

setReservationConfig(Topic.ReservationConfig value)

public Topic.Builder setReservationConfig(Topic.ReservationConfig value)

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Parameter
NameDescription
valueTopic.ReservationConfig
Returns
TypeDescription
Topic.Builder

setReservationConfig(Topic.ReservationConfig.Builder builderForValue)

public Topic.Builder setReservationConfig(Topic.ReservationConfig.Builder builderForValue)

The settings for this topic's Reservation usage.

.google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4;

Parameter
NameDescription
builderForValueTopic.ReservationConfig.Builder
Returns
TypeDescription
Topic.Builder

setRetentionConfig(Topic.RetentionConfig value)

public Topic.Builder setRetentionConfig(Topic.RetentionConfig value)

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Parameter
NameDescription
valueTopic.RetentionConfig
Returns
TypeDescription
Topic.Builder

setRetentionConfig(Topic.RetentionConfig.Builder builderForValue)

public Topic.Builder setRetentionConfig(Topic.RetentionConfig.Builder builderForValue)

The settings for this topic's message retention.

.google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3;

Parameter
NameDescription
builderForValueTopic.RetentionConfig.Builder
Returns
TypeDescription
Topic.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Topic.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Topic.Builder
Overrides