Interface TopicOrBuilder (1.5.5)

public interface TopicOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

public abstract 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 abstract 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 abstract 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.

getPartitionConfigOrBuilder()

public abstract 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 abstract 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.

getReservationConfigOrBuilder()

public abstract 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 abstract 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.

getRetentionConfigOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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.