public UnaryCallSettings<BatchWriteSpansRequest, Empty> batchWriteSpansSettings() {
    return ((TraceServiceStubSettings) getStubSettings()).batchWriteSpansSettings();
  }
Returns the object with the settings used for calls to batchWriteSpans.
java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/TraceServiceSettings.java