Freigeben über


DocumentBarcode Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.DocumentBarcode

Implements

public final class DocumentBarcode
implements JsonSerializable<DocumentBarcode>

Barcode in a document.

Method Summary

Modifier and Type Method and Description
static DocumentBarcode fromJson(JsonReader jsonReader)

Reads an instance of DocumentBarcode from the JsonReader.

Double getConfidence()

Get the confidence property: Confidence of predicting the barcode.

DocumentBarcodeKind getKind()

Get the kind property: Barcode kind.

String getSource()

Get the source property: Encoded source that identifies the position of the barcode in the content.

ContentSpan getSpan()

Get the span property: Span of the barcode in the markdown content.

String getValue()

Get the value property: Barcode value.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentBarcode fromJson(JsonReader jsonReader)

Reads an instance of DocumentBarcode from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DocumentBarcode if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getConfidence

public Double getConfidence()

Get the confidence property: Confidence of predicting the barcode.

Returns:

the confidence value.

getKind

public DocumentBarcodeKind getKind()

Get the kind property: Barcode kind.

Returns:

the kind value.

getSource

public String getSource()

Get the source property: Encoded source that identifies the position of the barcode in the content.

Returns:

the source value.

getSpan

public ContentSpan getSpan()

Get the span property: Span of the barcode in the markdown content.

Returns:

the span value.

getValue

public String getValue()

Get the value property: Barcode value.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to