Class ClassificationAnnotation.Builder (2.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClassificationAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides

build()

public ClassificationAnnotation build()
Returns
TypeDescription
ClassificationAnnotation

buildPartial()

public ClassificationAnnotation buildPartial()
Returns
TypeDescription
ClassificationAnnotation

clear()

public ClassificationAnnotation.Builder clear()
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ClassificationAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ClassificationAnnotation.Builder

This builder for chaining.

clone()

public ClassificationAnnotation.Builder clone()
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides

getDefaultInstanceForType()

public ClassificationAnnotation getDefaultInstanceForType()
Returns
TypeDescription
ClassificationAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
float

The score.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ClassificationAnnotation other)

public ClassificationAnnotation.Builder mergeFrom(ClassificationAnnotation other)
Parameter
NameDescription
otherClassificationAnnotation
Returns
TypeDescription
ClassificationAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClassificationAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ClassificationAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ClassificationAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides

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

public ClassificationAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The score to set.

Returns
TypeDescription
ClassificationAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClassificationAnnotation.Builder
Overrides