Class TlsConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TlsConfig.Builder>
com.google.cloud.managedkafka.v1.TlsConfig.Builder
All Implemented Interfaces:
TlsConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TlsConfig

public static final class TlsConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TlsConfig.Builder> implements TlsConfigOrBuilder
 The TLS configuration for the Kafka cluster.
 
Protobuf type google.cloud.managedkafka.v1.TlsConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TlsConfig.Builder>
    • clear

      public TlsConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TlsConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TlsConfig.Builder>
    • getDefaultInstanceForType

      public TlsConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TlsConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TlsConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TlsConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TlsConfig.Builder>
    • mergeFrom

      public TlsConfig.Builder mergeFrom(TlsConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TlsConfig.Builder>
    • mergeFrom

      public TlsConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TlsConfig.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      hasTrustConfig in interface TlsConfigOrBuilder
      Returns:
      Whether the trustConfig field is set.
    • 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];
      Specified by:
      getTrustConfig in interface TlsConfigOrBuilder
      Returns:
      The trustConfig.
    • setTrustConfig

      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

      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];
    • mergeTrustConfig

      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];
    • 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];
    • 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];
      Specified by:
      getTrustConfigOrBuilder in interface TlsConfigOrBuilder
    • 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];
      Specified by:
      getSslPrincipalMappingRules in interface TlsConfigOrBuilder
      Returns:
      The sslPrincipalMappingRules.
    • getSslPrincipalMappingRulesBytes

      public com.google.protobuf.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];
      Specified by:
      getSslPrincipalMappingRulesBytes in interface TlsConfigOrBuilder
      Returns:
      The bytes for sslPrincipalMappingRules.
    • setSslPrincipalMappingRules

      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];
      Parameters:
      value - The sslPrincipalMappingRules to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setSslPrincipalMappingRulesBytes

      public TlsConfig.Builder setSslPrincipalMappingRulesBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for sslPrincipalMappingRules to set.
      Returns:
      This builder for chaining.