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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Topic.BuilderImplements
TopicOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Topic.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Topic.Builder |
build()
public Topic build()
Type | Description |
Topic |
buildPartial()
public Topic buildPartial()
Type | Description |
Topic |
clear()
public Topic.Builder clear()
Type | Description |
Topic.Builder |
clearField(Descriptors.FieldDescriptor field)
public Topic.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Topic.Builder |
clearName()
public Topic.Builder clearName()
The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
string name = 1;
Type | Description |
Topic.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Topic.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Topic.Builder |
clearPartitionConfig()
public Topic.Builder clearPartitionConfig()
The settings for this topic's partitions.
.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;
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;
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;
Type | Description |
Topic.Builder |
clone()
public Topic.Builder clone()
Type | Description |
Topic.Builder |
getDefaultInstanceForType()
public Topic getDefaultInstanceForType()
Type | Description |
Topic |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getName()
public String getName()
The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
string name = 1;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
Type | Description |
Topic.RetentionConfigOrBuilder |
hasPartitionConfig()
public boolean hasPartitionConfig()
The settings for this topic's partitions.
.google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2;
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;
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;
Type | Description |
boolean | Whether the retentionConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Topic other)
public Topic.Builder mergeFrom(Topic other)
Name | Description |
other | Topic |
Type | Description |
Topic.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Topic.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Topic.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Topic.Builder |
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;
Name | Description |
value | Topic.PartitionConfig |
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;
Name | Description |
value | Topic.ReservationConfig |
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;
Name | Description |
value | Topic.RetentionConfig |
Type | Description |
Topic.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Topic.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Topic.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Topic.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Topic.Builder |
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;
Name | Description |
value | String The name to set. |
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;
Name | Description |
value | ByteString The bytes for name to set. |
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;
Name | Description |
value | Topic.PartitionConfig |
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;
Name | Description |
builderForValue | Topic.PartitionConfig.Builder |
Type | Description |
Topic.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Topic.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Topic.Builder |
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;
Name | Description |
value | Topic.ReservationConfig |
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;
Name | Description |
builderForValue | Topic.ReservationConfig.Builder |
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;
Name | Description |
value | Topic.RetentionConfig |
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;
Name | Description |
builderForValue | Topic.RetentionConfig.Builder |
Type | Description |
Topic.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Topic.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Topic.Builder |