Class SslConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SslConfig.Builder>
com.google.cloud.alloydb.v1beta.SslConfig.Builder
All Implemented Interfaces:
SslConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SslConfig

public static final class SslConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SslConfig.Builder> implements SslConfigOrBuilder
 SSL configuration.
 
Protobuf type google.cloud.alloydb.v1beta.SslConfig
  • 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<SslConfig.Builder>
    • clear

      public SslConfig.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<SslConfig.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<SslConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public SslConfig.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<SslConfig.Builder>
    • mergeFrom

      public SslConfig.Builder mergeFrom(SslConfig other)
    • isInitialized

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

      public SslConfig.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<SslConfig.Builder>
      Throws:
      IOException
    • getSslModeValue

      public int getSslModeValue()
       Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
       
      .google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSslModeValue in interface SslConfigOrBuilder
      Returns:
      The enum numeric value on the wire for sslMode.
    • setSslModeValue

      public SslConfig.Builder setSslModeValue(int value)
       Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
       
      .google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for sslMode to set.
      Returns:
      This builder for chaining.
    • getSslMode

      public SslConfig.SslMode getSslMode()
       Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
       
      .google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSslMode in interface SslConfigOrBuilder
      Returns:
      The sslMode.
    • setSslMode

      public SslConfig.Builder setSslMode(SslConfig.SslMode value)
       Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
       
      .google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sslMode to set.
      Returns:
      This builder for chaining.
    • clearSslMode

      public SslConfig.Builder clearSslMode()
       Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.
       
      .google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getCaSourceValue

      public int getCaSourceValue()
       Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
       supported currently, and is the default value.
       
      .google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCaSourceValue in interface SslConfigOrBuilder
      Returns:
      The enum numeric value on the wire for caSource.
    • setCaSourceValue

      public SslConfig.Builder setCaSourceValue(int value)
       Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
       supported currently, and is the default value.
       
      .google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for caSource to set.
      Returns:
      This builder for chaining.
    • getCaSource

      public SslConfig.CaSource getCaSource()
       Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
       supported currently, and is the default value.
       
      .google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCaSource in interface SslConfigOrBuilder
      Returns:
      The caSource.
    • setCaSource

      public SslConfig.Builder setCaSource(SslConfig.CaSource value)
       Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
       supported currently, and is the default value.
       
      .google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The caSource to set.
      Returns:
      This builder for chaining.
    • clearCaSource

      public SslConfig.Builder clearCaSource()
       Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is
       supported currently, and is the default value.
       
      .google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.