Class TlsConfig.Builder (0.24.0)

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

Implements

TlsConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TlsConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TlsConfig.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public TlsConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TlsConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TlsConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TlsConfig.Builder
Overrides

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

clone()

public TlsConfig.Builder clone()
Returns
Type Description
TlsConfig.Builder
Overrides

getDefaultInstanceForType()

public TlsConfig getDefaultInstanceForType()
Returns
Type Description
TlsConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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];

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TlsConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TlsConfig.Builder
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];

Parameter
Name Description
value TrustConfig
Returns
Type Description
TlsConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TlsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TlsConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TlsConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TlsConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TlsConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TlsConfig.Builder
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.

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 ByteString

The 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

setUnknownFields(UnknownFieldSet unknownFields)

public final TlsConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TlsConfig.Builder
Overrides