public Builder setDim(
          int index, org.nd4j.ir.TensorNamespace.TensorShapeProto.Dimension value) {
        if (dimBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();