Class FaceRecognitionResult.Builder (3.27.0)

public static final class FaceRecognitionResult.Builder extends GeneratedMessageV3.Builder<FaceRecognitionResult.Builder> implements FaceRecognitionResultOrBuilder

Information about a face's identity.

Protobuf type google.cloud.vision.v1p4beta1.FaceRecognitionResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FaceRecognitionResult build()
Returns
TypeDescription
FaceRecognitionResult

buildPartial()

public FaceRecognitionResult buildPartial()
Returns
TypeDescription
FaceRecognitionResult

clear()

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

clearCelebrity()

public FaceRecognitionResult.Builder clearCelebrity()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
FaceRecognitionResult.Builder

clearConfidence()

public FaceRecognitionResult.Builder clearConfidence()

Recognition confidence. Range [0, 1].

float confidence = 2;

Returns
TypeDescription
FaceRecognitionResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public FaceRecognitionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FaceRecognitionResult.Builder
Overrides

clone()

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

getCelebrity()

public Celebrity getCelebrity()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
Celebrity

The celebrity.

getCelebrityBuilder()

public Celebrity.Builder getCelebrityBuilder()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
Celebrity.Builder

getCelebrityOrBuilder()

public CelebrityOrBuilder getCelebrityOrBuilder()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
CelebrityOrBuilder

getConfidence()

public float getConfidence()

Recognition confidence. Range [0, 1].

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public FaceRecognitionResult getDefaultInstanceForType()
Returns
TypeDescription
FaceRecognitionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasCelebrity()

public boolean hasCelebrity()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
boolean

Whether the celebrity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCelebrity(Celebrity value)

public FaceRecognitionResult.Builder mergeCelebrity(Celebrity value)

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Parameter
NameDescription
valueCelebrity
Returns
TypeDescription
FaceRecognitionResult.Builder

mergeFrom(FaceRecognitionResult other)

public FaceRecognitionResult.Builder mergeFrom(FaceRecognitionResult other)
Parameter
NameDescription
otherFaceRecognitionResult
Returns
TypeDescription
FaceRecognitionResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCelebrity(Celebrity value)

public FaceRecognitionResult.Builder setCelebrity(Celebrity value)

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Parameter
NameDescription
valueCelebrity
Returns
TypeDescription
FaceRecognitionResult.Builder

setCelebrity(Celebrity.Builder builderForValue)

public FaceRecognitionResult.Builder setCelebrity(Celebrity.Builder builderForValue)

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Parameter
NameDescription
builderForValueCelebrity.Builder
Returns
TypeDescription
FaceRecognitionResult.Builder

setConfidence(float value)

public FaceRecognitionResult.Builder setConfidence(float value)

Recognition confidence. Range [0, 1].

float confidence = 2;

Parameter
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
FaceRecognitionResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public FaceRecognitionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FaceRecognitionResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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