public static final class TlsConfig.Builder extends GeneratedMessage.Builder<TlsConfig.Builder> implements TlsConfigOrBuilderThe TLS configuration for the Kafka cluster.
Protobuf type google.cloud.managedkafka.v1.TlsConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TlsConfig.BuilderImplements
TlsConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TlsConfig build()| Returns | |
|---|---|
| Type | Description |
TlsConfig |
|
buildPartial()
public TlsConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
TlsConfig |
|
clear()
public TlsConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|
clearSslPrincipalMappingRules()
public TlsConfig.Builder clearSslPrincipalMappingRules() Optional. A list of rules for mapping from SSL principal names to
short names. These are applied in order by Kafka.
Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax.
Example: "RULE:^CN=(.?),OU=ServiceUsers.$/$1@example.com/,DEFAULT"
This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
This builder for chaining. |
clearTrustConfig()
public TlsConfig.Builder clearTrustConfig()Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|
getDefaultInstanceForType()
public TlsConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TlsConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSslPrincipalMappingRules()
public String getSslPrincipalMappingRules() Optional. A list of rules for mapping from SSL principal names to
short names. These are applied in order by Kafka.
Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax.
Example: "RULE:^CN=(.?),OU=ServiceUsers.$/$1@example.com/,DEFAULT"
This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The sslPrincipalMappingRules. |
getSslPrincipalMappingRulesBytes()
public ByteString getSslPrincipalMappingRulesBytes() Optional. A list of rules for mapping from SSL principal names to
short names. These are applied in order by Kafka.
Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax.
Example: "RULE:^CN=(.?),OU=ServiceUsers.$/$1@example.com/,DEFAULT"
This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sslPrincipalMappingRules. |
getTrustConfig()
public TrustConfig getTrustConfig()Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TrustConfig |
The trustConfig. |
getTrustConfigBuilder()
public TrustConfig.Builder getTrustConfigBuilder()Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TrustConfig.Builder |
|
getTrustConfigOrBuilder()
public TrustConfigOrBuilder getTrustConfigOrBuilder()Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TrustConfigOrBuilder |
|
hasTrustConfig()
public boolean hasTrustConfig()Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the trustConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TlsConfig other)
public TlsConfig.Builder mergeFrom(TlsConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
TlsConfig |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TlsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TlsConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|
mergeTrustConfig(TrustConfig value)
public TlsConfig.Builder mergeTrustConfig(TrustConfig value)Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TrustConfig |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|
setSslPrincipalMappingRules(String value)
public TlsConfig.Builder setSslPrincipalMappingRules(String value) Optional. A list of rules for mapping from SSL principal names to
short names. These are applied in order by Kafka.
Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax.
Example: "RULE:^CN=(.?),OU=ServiceUsers.$/$1@example.com/,DEFAULT"
This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sslPrincipalMappingRules to set. |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
This builder for chaining. |
setSslPrincipalMappingRulesBytes(ByteString value)
public TlsConfig.Builder setSslPrincipalMappingRulesBytes(ByteString value) Optional. A list of rules for mapping from SSL principal names to
short names. These are applied in order by Kafka.
Refer to the Apache Kafka documentation for ssl.principal.mapping.rules
for the precise formatting details and syntax.
Example: "RULE:^CN=(.?),OU=ServiceUsers.$/$1@example.com/,DEFAULT"
This is a static Kafka broker configuration. Setting or modifying this field will trigger a rolling restart of the Kafka brokers to apply the change. An empty string means no rules are applied (Kafka default).
string ssl_principal_mapping_rules = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sslPrincipalMappingRules to set. |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
This builder for chaining. |
setTrustConfig(TrustConfig value)
public TlsConfig.Builder setTrustConfig(TrustConfig value)Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TrustConfig |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|
setTrustConfig(TrustConfig.Builder builderForValue)
public TlsConfig.Builder setTrustConfig(TrustConfig.Builder builderForValue)Optional. The configuration of the broker truststore. If specified, clients can use mTLS for authentication.
.google.cloud.managedkafka.v1.TrustConfig trust_config = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TrustConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
TlsConfig.Builder |
|