public static final class ClassificationProto.ClassificationAnnotation extends GeneratedMessageV3 implements ClassificationProto.ClassificationAnnotationOrBuilder
Contains annotation details specific to classification.
Protobuf type google.cloud.automl.v1beta1.ClassificationAnnotation
Static Fields
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ClassificationProto.ClassificationAnnotation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ClassificationProto.ClassificationAnnotation.Builder newBuilder()
Returns
newBuilder(ClassificationProto.ClassificationAnnotation prototype)
public static ClassificationProto.ClassificationAnnotation.Builder newBuilder(ClassificationProto.ClassificationAnnotation prototype)
Parameter
Returns
public static ClassificationProto.ClassificationAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationProto.ClassificationAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ClassificationProto.ClassificationAnnotation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ClassificationProto.ClassificationAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationProto.ClassificationAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ClassificationProto.ClassificationAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationProto.ClassificationAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationProto.ClassificationAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ClassificationProto.ClassificationAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ClassificationProto.ClassificationAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ClassificationProto.ClassificationAnnotation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ClassificationProto.ClassificationAnnotation getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ClassificationProto.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 ClassificationProto.ClassificationAnnotation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ClassificationProto.ClassificationAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ClassificationProto.ClassificationAnnotation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions