public final class ClassificationAnnotation extends GeneratedMessageV3 implements ClassificationAnnotationOrBuilder
Contains annotation details specific to classification.
Protobuf type google.cloud.automl.v1.ClassificationAnnotation
Static Fields
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ClassificationAnnotation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ClassificationAnnotation.Builder newBuilder()
Returns
newBuilder(ClassificationAnnotation prototype)
public static ClassificationAnnotation.Builder newBuilder(ClassificationAnnotation prototype)
Parameter
Returns
public static ClassificationAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ClassificationAnnotation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ClassificationAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ClassificationAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassificationAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ClassificationAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ClassificationAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ClassificationAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ClassificationAnnotation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ClassificationAnnotation getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ClassificationAnnotation> getParserForType()
Returns
Overrides
getScore()
Output only. A confidence estimate between 0.0 and 1.0. A higher value
means greater confidence that the annotation is positive. If a user
approves an annotation as negative or positive, the score value remains
unchanged. If a user creates an annotation, the score is 0 for negative or
1 for positive.
float score = 1;
Returns
Type | Description |
float | The score.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ClassificationAnnotation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ClassificationAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ClassificationAnnotation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions