Class Topic.Builder (1.14.7)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Topic.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Topic.Builder
Overrides

build()

public Topic build()
Returns
Type Description
Topic

buildPartial()

public Topic buildPartial()
Returns
Type Description
Topic

clear()

public Topic.Builder clear()
Returns
Type Description
Topic.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Topic.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
Topic.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Topic.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Topic.Builder

clone()

public Topic.Builder clone()
Returns
Type Description
Topic.Builder
Overrides

getDefaultInstanceForType()

public Topic getDefaultInstanceForType()
Returns
Type Description
Topic

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Topic.RetentionConfigOrBuilder

hasPartitionConfig()

public boolean hasPartitionConfig()

The settings for this topic's partitions.

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the retentionConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Topic other)

public Topic.Builder mergeFrom(Topic other)
Parameter
Name Description
other Topic
Returns
Type Description
Topic.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Topic.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Topic.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Topic.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Topic.PartitionConfig
Returns
Type Description
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
Name Description
value Topic.ReservationConfig
Returns
Type Description
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
Name Description
value Topic.RetentionConfig
Returns
Type Description
Topic.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Topic.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Topic.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Topic.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value Topic.PartitionConfig
Returns
Type Description
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
Name Description
builderForValue Topic.PartitionConfig.Builder
Returns
Type Description
Topic.Builder

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

public Topic.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Topic.ReservationConfig
Returns
Type Description
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
Name Description
builderForValue Topic.ReservationConfig.Builder
Returns
Type Description
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
Name Description
value Topic.RetentionConfig
Returns
Type Description
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
Name Description
builderForValue Topic.RetentionConfig.Builder
Returns
Type Description
Topic.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Topic.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Topic.Builder
Overrides