/** * Builds a new {@link ImmutableEventResponse ImmutableEventResponse}. * @return An immutable instance of EventResponse * @throws java.lang.IllegalStateException if any required attributes are missing */ public ImmutableEventResponse build() { if (initBits != 0) { throw new IllegalStateException(formatRequiredAttributesMessage()); } return new ImmutableEventResponse(null, eventsBuilder.build(), index); }