public static final class TlsConfig.Builder extends GeneratedMessageV3.Builder<TlsConfig.Builder> implements TlsConfigOrBuilder
The TLS configuration for the Kafka cluster.
Protobuf type google.cloud.managedkafka.v1.TlsConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TlsConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public TlsConfig buildPartial()
clear()
public TlsConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TlsConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TlsConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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];
clone()
public TlsConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public TlsConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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];
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];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TlsConfig other)
public TlsConfig.Builder mergeFrom(TlsConfig other)
public TlsConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TlsConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TlsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TlsConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TlsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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 |
String
The sslPrincipalMappingRules to set.
|
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 |
ByteString
The bytes for sslPrincipalMappingRules to set.
|
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final TlsConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides