BatchingCallSettings extends UnaryCallSettings<RequestT, ResponseT> { @InternalApi("For google-cloud-java client use only") public static <ElementT, ElementResultT, RequestT, ResponseT> Builder<ElementT, ElementResultT, RequestT, ResponseT> newBuilder( BatchingDescriptor<ElementT, ElementResultT, RequestT, ResponseT> batchingDescriptor) { return new Builder<>(batchingDescriptor); } 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 testMandatorySettings() { Exception actualEx = null; try { BatchingCallSettings.newBuilder(null); } catch (Exception ex) { actualEx = ex; } assertThat(actualEx).isInstanceOf(NullPointerException.class); actualEx = null; try { BatchingCallSettings.newBuilder(SQUARER_BATCHING_DESC_V2).build(); } catch (Exception ex) { actualEx = ex; } assertThat(actualEx).isInstanceOf(IllegalStateException.class); }