Class ClassificationAnnotation.Builder (2.46.0)

public static final class ClassificationAnnotation.Builder extends GeneratedMessageV3.Builder<ClassificationAnnotation.Builder> implements ClassificationAnnotationOrBuilder

Contains annotation details specific to classification.

Protobuf type google.cloud.automl.v1.ClassificationAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClassificationAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

build()

public ClassificationAnnotation build()
Returns
Type Description
ClassificationAnnotation

buildPartial()

public ClassificationAnnotation buildPartial()
Returns
Type Description
ClassificationAnnotation

clear()

public ClassificationAnnotation.Builder clear()
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ClassificationAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

clearScore()

public 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
Type Description
ClassificationAnnotation.Builder

This builder for chaining.

clone()

public ClassificationAnnotation.Builder clone()
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

getDefaultInstanceForType()

public ClassificationAnnotation getDefaultInstanceForType()
Returns
Type Description
ClassificationAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getScore()

public float 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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClassificationAnnotation other)

public ClassificationAnnotation.Builder mergeFrom(ClassificationAnnotation other)
Parameter
Name Description
other ClassificationAnnotation
Returns
Type Description
ClassificationAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClassificationAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationAnnotation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClassificationAnnotation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ClassificationAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ClassificationAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ClassificationAnnotation.Builder
Overrides

setScore(float value)

public 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
Type Description
ClassificationAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClassificationAnnotation.Builder
Overrides