public static interface Document.LabelOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
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;
| 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;
| Type | Description |
| ByteString | The bytes for automlModel. |
getConfidence()
public abstract float getConfidence()Confidence score between 0 and 1 for label assignment.
float confidence = 3;
| 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;
| 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;
| Type | Description |
| ByteString | The bytes for name. |
getSourceCase()
public abstract Document.Label.SourceCase getSourceCase()| 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;
| Type | Description |
| boolean | Whether the automlModel field is set. |