Interface KafkaBrokerOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
KafkaBroker,KafkaBroker.Builder
public interface KafkaBrokerOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintgetApiKeysAllowed(int index) Optional list of allowed Kafka API keys.intOptional list of allowed Kafka API keys.Optional list of allowed Kafka API keys.intgetApiKeysDenied(int index) Optional list of denied Kafka API keys.intOptional list of denied Kafka API keys.Optional list of denied Kafka API keys.booleanSet to true if broker filter should attempt to serialize the received responses from the upstream broker instead of passing received bytes as is.Broker address rewrite rules that match by broker ID.Broker address rewrite rules that match by broker ID.The prefix to use when emitting :ref:`statistics <config_network_filters_kafka_broker_stats>`.com.google.protobuf.ByteStringThe prefix to use when emitting :ref:`statistics <config_network_filters_kafka_broker_stats>`.booleanBroker address rewrite rules that match by broker ID.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
-
getStatPrefix
String getStatPrefix()The prefix to use when emitting :ref:`statistics <config_network_filters_kafka_broker_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Returns:
- The statPrefix.
-
getStatPrefixBytes
com.google.protobuf.ByteString getStatPrefixBytes()The prefix to use when emitting :ref:`statistics <config_network_filters_kafka_broker_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Returns:
- The bytes for statPrefix.
-
getForceResponseRewrite
boolean getForceResponseRewrite()Set to true if broker filter should attempt to serialize the received responses from the upstream broker instead of passing received bytes as is. Disabled by default.
bool force_response_rewrite = 2;- Returns:
- The forceResponseRewrite.
-
hasIdBasedBrokerAddressRewriteSpec
boolean hasIdBasedBrokerAddressRewriteSpec()Broker address rewrite rules that match by broker ID.
.envoy.config.filter.network.kafka_broker.v2alpha1.IdBasedBrokerRewriteSpec id_based_broker_address_rewrite_spec = 3;- Returns:
- Whether the idBasedBrokerAddressRewriteSpec field is set.
-
getIdBasedBrokerAddressRewriteSpec
IdBasedBrokerRewriteSpec getIdBasedBrokerAddressRewriteSpec()Broker address rewrite rules that match by broker ID.
.envoy.config.filter.network.kafka_broker.v2alpha1.IdBasedBrokerRewriteSpec id_based_broker_address_rewrite_spec = 3;- Returns:
- The idBasedBrokerAddressRewriteSpec.
-
getIdBasedBrokerAddressRewriteSpecOrBuilder
IdBasedBrokerRewriteSpecOrBuilder getIdBasedBrokerAddressRewriteSpecOrBuilder()Broker address rewrite rules that match by broker ID.
.envoy.config.filter.network.kafka_broker.v2alpha1.IdBasedBrokerRewriteSpec id_based_broker_address_rewrite_spec = 3; -
getApiKeysAllowedList
Optional list of allowed Kafka API keys. Only requests with provided API keys will be routed, otherwise the connection will be closed. No effect if empty.
repeated uint32 api_keys_allowed = 4 [(.validate.rules) = { ... }- Returns:
- A list containing the apiKeysAllowed.
-
getApiKeysAllowedCount
int getApiKeysAllowedCount()Optional list of allowed Kafka API keys. Only requests with provided API keys will be routed, otherwise the connection will be closed. No effect if empty.
repeated uint32 api_keys_allowed = 4 [(.validate.rules) = { ... }- Returns:
- The count of apiKeysAllowed.
-
getApiKeysAllowed
int getApiKeysAllowed(int index) Optional list of allowed Kafka API keys. Only requests with provided API keys will be routed, otherwise the connection will be closed. No effect if empty.
repeated uint32 api_keys_allowed = 4 [(.validate.rules) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The apiKeysAllowed at the given index.
-
getApiKeysDeniedList
Optional list of denied Kafka API keys. Requests with API keys matching this list will have the connection closed. No effect if empty.
repeated uint32 api_keys_denied = 5 [(.validate.rules) = { ... }- Returns:
- A list containing the apiKeysDenied.
-
getApiKeysDeniedCount
int getApiKeysDeniedCount()Optional list of denied Kafka API keys. Requests with API keys matching this list will have the connection closed. No effect if empty.
repeated uint32 api_keys_denied = 5 [(.validate.rules) = { ... }- Returns:
- The count of apiKeysDenied.
-
getApiKeysDenied
int getApiKeysDenied(int index) Optional list of denied Kafka API keys. Requests with API keys matching this list will have the connection closed. No effect if empty.
repeated uint32 api_keys_denied = 5 [(.validate.rules) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The apiKeysDenied at the given index.
-
getBrokerAddressRewriteSpecCase
KafkaBroker.BrokerAddressRewriteSpecCase getBrokerAddressRewriteSpecCase()
-