@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    getSerializedSize();
    if (getIdsList().size() > 0) {
      output.writeUInt32NoTag(10);
      output.writeUInt32NoTag(idsMemoizedSerializedSize);
    }
    for (int i = 0; i < ids_.size(); i++) {
      output.writeInt64NoTag(ids_.getLong(i));
    }
    for (int i = 0; i < displayNames_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayNames_.getRaw(i));
    }
    if (getConfidencesList().size() > 0) {
      output.writeUInt32NoTag(26);
      output.writeUInt32NoTag(confidencesMemoizedSerializedSize);
    }
    for (int i = 0; i < confidences_.size(); i++) {
      output.writeFloatNoTag(confidences_.getFloat(i));
    }
    getUnknownFields().writeTo(output);
  }
<pre>
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence. Order matches the Ids.
</pre>

<code>repeated float confidences = 3;</code>

@param index The index of the element to return.
@return The confidences at the given index.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ClassificationPredictionResult.java