public Builder addFlags(org.bwapi.proxy.messages.Messages.Flag value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFlagsIsMutable();
        flags_.add(value);
        onChanged();
        return this;
      }