Interface Document.LabelOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document.Label,Document.Label.Builder
- Enclosing class:
- Document
public static interface Document.LabelOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAutomlModel()Label is generated AutoML model.com.google.protobuf.ByteStringgetAutomlModelBytes()Label is generated AutoML model.floatgetConfidence()Confidence score between 0 and 1 for label assignment.StringgetName()Name of the label.com.google.protobuf.ByteStringgetNameBytes()Name of the label.Document.Label.SourceCasegetSourceCase()booleanhasAutomlModel()Label is generated AutoML model.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasAutomlModel
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:
- Whether the automlModel field is set.
-
getAutomlModel
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:
- The automlModel.
-
getAutomlModelBytes
com.google.protobuf.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:
- The bytes for automlModel.
-
getName
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:
- The name.
-
getNameBytes
com.google.protobuf.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:
- The bytes for name.
-
getConfidence
float getConfidence()
Confidence score between 0 and 1 for label assignment.
float confidence = 3;- Returns:
- The confidence.
-
getSourceCase
Document.Label.SourceCase getSourceCase()
-
-