Send feedback
Class ClassificationProto.ClassificationAnnotation.Builder (2.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.0 keyboard_arrow_down
public static final class ClassificationProto . ClassificationAnnotation . Builder extends GeneratedMessageV3 . Builder<ClassificationProto . ClassificationAnnotation . Builder > implements ClassificationProto . ClassificationAnnotationOrBuilder
Contains annotation details specific to classification.
Protobuf type google.cloud.automl.v1beta1.ClassificationAnnotation
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ClassificationProto . ClassificationAnnotation . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public ClassificationProto . ClassificationAnnotation build ()
Returns
buildPartial()
public ClassificationProto . ClassificationAnnotation buildPartial ()
Returns
clear()
public ClassificationProto . ClassificationAnnotation . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ClassificationProto . ClassificationAnnotation . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ClassificationProto . ClassificationAnnotation . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearScore()
public ClassificationProto . ClassificationAnnotation . Builder clearScore ()
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
clone()
public ClassificationProto . ClassificationAnnotation . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ClassificationProto . ClassificationAnnotation getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ClassificationProto.ClassificationAnnotation other)
public ClassificationProto . ClassificationAnnotation . Builder mergeFrom ( ClassificationProto . ClassificationAnnotation other )
Parameter
Returns
public ClassificationProto . ClassificationAnnotation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ClassificationProto . ClassificationAnnotation . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationProto . ClassificationAnnotation . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ClassificationProto . ClassificationAnnotation . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClassificationProto . ClassificationAnnotation . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setScore(float value)
public ClassificationProto . ClassificationAnnotation . Builder setScore ( float value )
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;
Parameter
Name Description value float
The score to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationProto . ClassificationAnnotation . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]