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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ClassificationProto.ClassificationAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ClassificationProto.ClassificationAnnotation build()
buildPartial()
public ClassificationProto.ClassificationAnnotation buildPartial()
clear()
public ClassificationProto.ClassificationAnnotation.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ClassificationProto.ClassificationAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ClassificationProto.ClassificationAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public ClassificationProto.ClassificationAnnotation.Builder clone()
Overrides
getDefaultInstanceForType()
public ClassificationProto.ClassificationAnnotation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ClassificationProto.ClassificationAnnotation other)
public ClassificationProto.ClassificationAnnotation.Builder mergeFrom(ClassificationProto.ClassificationAnnotation other)
public ClassificationProto.ClassificationAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ClassificationProto.ClassificationAnnotation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationProto.ClassificationAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ClassificationProto.ClassificationAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClassificationProto.ClassificationAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationProto.ClassificationAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides