Interface Document.LabelOrBuilder (2.5.1)

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
TypeDescription
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
TypeDescription
ByteString

The bytes for automlModel.

getConfidence()

public abstract float getConfidence()

Confidence score between 0 and 1 for label assignment.

float confidence = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getSourceCase()

public abstract Document.Label.SourceCase getSourceCase()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the automlModel field is set.