public void copyDefaultsFrom ( final GrpcChannelProperties config ) { if ( this == config ) { return ; } if ( this . address == null ) { this . address = config . address ; } if ( this . defaultLoadBalancingPolicy == null ) { this . defaultLoadBalancingPolicy = config . defaultLoadBalancingPolicy ; } if ( this . enableKeepAlive == null ) { this . enableKeepAlive = config . enableKeepAlive ; } if ( this . keepAliveTime == null ) { this . keepAliveTime = config . keepAliveTime ; } if ( this . keepAliveTimeout == null ) { this . keepAliveTimeout = config . keepAliveTimeout ; } if ( this . keepAliveWithoutCalls == null ) { this . keepAliveWithoutCalls = config . keepAliveWithoutCalls ; } if ( this . maxInboundMessageSize == null ) { this . maxInboundMessageSize = config . maxInboundMessageSize ; } if ( this . fullStreamDecompression == null ) { this . fullStreamDecompression = config . fullStreamDecompression ; } if ( this . negotiationType == null ) { this . negotiationType = config . negotiationType ; } this . security . copyDefaultsFrom ( config . security ) ; }
Copies the defaults from the given configuration . Values are considered default if they are null . Please note that the getters might return fallback values instead .