public org.box2d.proto.Box2D.PbJointOrBuilder getJointsOrBuilder(
          int index) {
        if (jointsBuilder_ == null) {
          return joints_.get(index);  } else {
          return jointsBuilder_.getMessageOrBuilder(index);
        }
      }