Class: Google::Cloud::ManagedKafka::V1::Topic
- Inherits:
-
Object
- Object
- Google::Cloud::ManagedKafka::V1::Topic
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/managedkafka/v1/resources.rb
Overview
A Kafka topic in a given cluster.
Defined Under Namespace
Classes: ConfigsEntry
Instance Attribute Summary collapse
-
#configs ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#name ⇒ ::String
Identifier.
-
#partition_count ⇒ ::Integer
Required.
-
#replication_factor ⇒ ::Integer
Required.
Instance Attribute Details
#configs ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns 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.
234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'proto_docs/google/cloud/managedkafka/v1/resources.rb', line 234 class Topic include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class ConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String
Returns 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}.
234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'proto_docs/google/cloud/managedkafka/v1/resources.rb', line 234 class Topic include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class ConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#partition_count ⇒ ::Integer
Returns 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.
234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'proto_docs/google/cloud/managedkafka/v1/resources.rb', line 234 class Topic include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class ConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#replication_factor ⇒ ::Integer
Returns Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability.
234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'proto_docs/google/cloud/managedkafka/v1/resources.rb', line 234 class Topic include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class ConfigsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |