Interface Document.LabelOrBuilder (2.51.0)

public static interface Document.LabelOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutomlModel()

public abstract String getAutomlModel()

Label is generated AutoML model. This field stores the full resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}

string automl_model = 2;

Returns
Type Description
String

The automlModel.

getAutomlModelBytes()

public abstract ByteString getAutomlModelBytes()

Label is generated AutoML model. This field stores the full resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}

string automl_model = 2;

Returns
Type Description
ByteString

The bytes for automlModel.

getConfidence()

public abstract float getConfidence()

Confidence score between 0 and 1 for label assignment.

float confidence = 3;

Returns
Type Description
float

The confidence.

getName()

public abstract String getName()

Name of the label.

When the label is generated from AutoML Text Classification model, this field represents the name of the category.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of the label.

When the label is generated from AutoML Text Classification model, this field represents the name of the category.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSourceCase()

public abstract Document.Label.SourceCase getSourceCase()
Returns
Type Description
Document.Label.SourceCase

hasAutomlModel()

public abstract boolean hasAutomlModel()

Label is generated AutoML model. This field stores the full resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}

string automl_model = 2;

Returns
Type Description
boolean

Whether the automlModel field is set.