@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) {
      output.writeFloat(1, confidenceThreshold_);
    }
    if (maxPredictions_ != 0) {
      output.writeInt32(2, maxPredictions_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
At most this many predictions will be returned per output frame.
Value 0 means to return all the detected entities.
</pre>

<code>int32 max_predictions = 2;</code>

@return The maxPredictions.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/VertexAutoMLVisionConfig.java