BatchingCallSettings extends UnaryCallSettings<RequestT, ResponseT> { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("retryableCodes", getRetryableCodes()) .add("retrySettings", getRetrySettings()) .add("batchingSettings", batchingSettings) .toString(); } private  BatchingCallSettings(Builder<ElementT, ElementResultT, RequestT, ResponseT> builder); @InternalApi("For google-cloud-java client use only") BatchingDescriptor<ElementT, ElementResultT, RequestT, ResponseT> getBatchingDescriptor(); BatchingSettings getBatchingSettings(); @InternalApi("For google-cloud-java client use only") static Builder<ElementT, ElementResultT, RequestT, ResponseT> newBuilder(
          BatchingDescriptor<ElementT, ElementResultT, RequestT, ResponseT> batchingDescriptor); @Override final Builder<ElementT, ElementResultT, RequestT, ResponseT> toBuilder(); @Override String toString();  }
@Test public void testToString() { RetrySettings retrySettings = RetrySettings.newBuilder().build(); Set<StatusCode.Code> retryCodes = ImmutableSet.of(StatusCode.Code.UNAUTHENTICATED); BatchingCallSettings<Integer, Integer, LabeledIntList, List<Integer>> batchingCallSettings = BatchingCallSettings.newBuilder(SQUARER_BATCHING_DESC_V2) .setRetryableCodes(retryCodes) .setRetrySettings(retrySettings) .setBatchingSettings(BATCHING_SETTINGS) .build(); assertThat(batchingCallSettings.toString()).contains("retryableCodes=" + retryCodes); assertThat(batchingCallSettings.toString()).contains("retrySettings=" + retrySettings); assertThat(batchingCallSettings.toString()).contains("batchingSettings=" + BATCHING_SETTINGS); }