Class Topic
A Kafka topic in a given cluster.
Implements
Inherited Members
Namespace: Google.Apis.ManagedKafka .v1.Data
Assembly: Google.Apis.ManagedKafka.v1.dll
Syntax
public class Topic : IDirectResponseSchema
Properties
Configs
Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is
a Kafka topic property name, for example: cleanup.policy
, compression.type
.
Declaration
[JsonProperty("configs")]
public virtual IDictionary<string, string> Configs { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Identifier. The name of the topic. The topic
segment is used when connecting directly to the cluster.
Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
PartitionCount
Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected.
Declaration
[JsonProperty("partitionCount")]
public virtual int? PartitionCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
ReplicationFactor
Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
Declaration
[JsonProperty("replicationFactor")]
public virtual int? ReplicationFactor { get; set; }
Property Value
Type | Description |
---|---|
int? |