ServerStreamingCallSettings extends StreamingCallSettings<RequestT, ResponseT> { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("idleTimeout", idleTimeout) .add("retryableCodes", retryableCodes) .add("retrySettings", retrySettings) .toString(); } private  ServerStreamingCallSettings(Builder<RequestT, ResponseT> builder); @Nonnull Set<Code> getRetryableCodes(); @Nonnull RetrySettings getRetrySettings(); @Nonnull StreamResumptionStrategy<RequestT, ResponseT> getResumptionStrategy(); @Nonnull Duration getIdleTimeout(); Builder<RequestT, ResponseT> toBuilder(); static Builder<RequestT, ResponseT> newBuilder(); @Override String toString();  }
@Test public void testToString() { RetrySettings retrySettings = RetrySettings.newBuilder().build(); Set<StatusCode.Code> retryableCodes = ImmutableSet.of(StatusCode.Code.DEADLINE_EXCEEDED); Duration idleTime = Duration.ofSeconds(100); ServerStreamingCallSettings serverCallSettings = ServerStreamingCallSettings.newBuilder() .setRetrySettings(retrySettings) .setRetryableCodes(retryableCodes) .setIdleTimeout(idleTime) .build(); assertThat(serverCallSettings.toString()).contains("idleTimeout=" + idleTime); assertThat(serverCallSettings.toString()).contains("retryableCodes=" + retryableCodes); assertThat(serverCallSettings.toString()).contains("retrySettings=" + retrySettings); }