Package com.google.cloud.managedkafka.v1
Interface TopicOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Topic,Topic.Builder
@Generated
public interface TopicOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsConfigs(String key) Optional.Deprecated.intOptional.Optional.getConfigsOrDefault(String key, String defaultValue) Optional.getConfigsOrThrow(String key) Optional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.intRequired.intRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()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}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()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}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The bytes for name.
-
getPartitionCount
int getPartitionCount()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.
int32 partition_count = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The partitionCount.
-
getReplicationFactor
int getReplicationFactor()Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
int32 replication_factor = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- The replicationFactor.
-
getConfigsCount
int getConfigsCount()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`.
map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL]; -
containsConfigs
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`.
map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getConfigs
Deprecated.UsegetConfigsMap()instead. -
getConfigsMap
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`.
map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getConfigsOrDefault
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`.
map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getConfigsOrThrow
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`.
map<string, string> configs = 4 [(.google.api.field_behavior) = OPTIONAL];
-