@java.lang.Override
      public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) {
          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_);
        }
        if (java.lang.Float.floatToRawIntBits(threshold_) != 0) {
          size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, threshold_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
      }
<pre>
Required. The threshold.
</pre>

<code>float threshold = 2 [(.google.api.field_behavior) = REQUIRED];</code>

@return The threshold.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaDetails.java