Class ClassificationProto.ClassificationAnnotation.Builder (2.51.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ClassificationProto.ClassificationAnnotation build()
Returns
Type Description
ClassificationProto.ClassificationAnnotation

buildPartial()

public ClassificationProto.ClassificationAnnotation buildPartial()
Returns
Type Description
ClassificationProto.ClassificationAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationProto.ClassificationAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ClassificationProto.ClassificationAnnotation.Builder
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
Type Description
ClassificationProto.ClassificationAnnotation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ClassificationProto.ClassificationAnnotation getDefaultInstanceForType()
Returns
Type Description
ClassificationProto.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(ClassificationProto.ClassificationAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ClassificationProto.ClassificationAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ClassificationProto.ClassificationAnnotation.Builder
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
Type Description
ClassificationProto.ClassificationAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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