public final class Topic extends GeneratedMessageV3 implements TopicOrBuilder
Metadata about a topic resource.
Protobuf type google.cloud.pubsublite.v1.Topic
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TopicImplements
TopicOrBuilderStatic Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
PARTITION_CONFIG_FIELD_NUMBER
public static final int PARTITION_CONFIG_FIELD_NUMBER
Type | Description |
int |
RESERVATION_CONFIG_FIELD_NUMBER
public static final int RESERVATION_CONFIG_FIELD_NUMBER
Type | Description |
int |
RETENTION_CONFIG_FIELD_NUMBER
public static final int RETENTION_CONFIG_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Topic getDefaultInstance()
Type | Description |
Topic |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Topic.Builder newBuilder()
Type | Description |
Topic.Builder |
newBuilder(Topic prototype)
public static Topic.Builder newBuilder(Topic prototype)
Name | Description |
prototype | Topic |
Type | Description |
Topic.Builder |
parseDelimitedFrom(InputStream input)
public static Topic parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Topic |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Topic parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Topic |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Topic parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Topic parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Topic |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Topic parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Topic parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Topic |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Topic parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Topic |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Topic parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Topic parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Topic |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Topic parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Topic |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Topic> parser()
Type | Description |
Parser<Topic> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Topic getDefaultInstanceForType()
Type | Description |
Topic |
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. |
getParserForType()
public Parser<Topic> getParserForType()
Type | Description |
Parser<Topic> |
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. |
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. |
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. |
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 |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Topic.Builder newBuilderForType()
Type | Description |
Topic.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Topic.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Topic.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Topic.Builder toBuilder()
Type | Description |
Topic.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |