Class ClassificationProto.ClassificationAnnotation.Builder (2.2.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ClassificationProto.ClassificationAnnotation build()
Returns
TypeDescription
ClassificationProto.ClassificationAnnotation

buildPartial()

public ClassificationProto.ClassificationAnnotation buildPartial()
Returns
TypeDescription
ClassificationProto.ClassificationAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The score to set.

Returns
TypeDescription
ClassificationProto.ClassificationAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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