public Builder toBuilder() {
    Builder result = new Builder();
    result.flags = flags;
    result.traceIdHigh = traceIdHigh;
    result.traceId = traceId;
    return result;
  }
@Test void canUsePrimitiveOverloads_true() {
    TraceIdContext primitives = base.toBuilder()
      .sampled(true)
      .debug(true)
      .build();

    TraceIdContext objects = base.toBuilder()
      .sampled(Boolean.TRUE)
      .debug(Boolean.TRUE)
      .build();

    assertThat(primitives)
      .isEqualToComparingFieldByField(objects);
    assertThat(primitives.debug())
      .isTrue();
    assertThat(primitives.sampled())
      .isTrue();
  }