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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FaceRecognitionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public FaceRecognitionResult build()
Returns
buildPartial()
public FaceRecognitionResult buildPartial()
Returns
clear()
public FaceRecognitionResult.Builder clear()
Returns
Overrides
clearCelebrity()
public FaceRecognitionResult.Builder clearCelebrity()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
clearConfidence()
public FaceRecognitionResult.Builder clearConfidence()
Recognition confidence. Range [0, 1].
float confidence = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public FaceRecognitionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public FaceRecognitionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public FaceRecognitionResult.Builder clone()
Returns
Overrides
getCelebrity()
public Celebrity getCelebrity()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
getCelebrityBuilder()
public Celebrity.Builder getCelebrityBuilder()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
getCelebrityOrBuilder()
public CelebrityOrBuilder getCelebrityOrBuilder()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
getConfidence()
public float getConfidence()
Recognition confidence. Range [0, 1].
float confidence = 2;
Returns
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public FaceRecognitionResult getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
hasCelebrity()
public boolean hasCelebrity()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
Type | Description |
boolean | Whether the celebrity field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(FaceRecognitionResult other)
public FaceRecognitionResult.Builder mergeFrom(FaceRecognitionResult other)
Parameter
Returns
public FaceRecognitionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public FaceRecognitionResult.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FaceRecognitionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setConfidence(float value)
public FaceRecognitionResult.Builder setConfidence(float value)
Recognition confidence. Range [0, 1].
float confidence = 2;
Parameter
Name | Description |
value | float
The confidence to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public FaceRecognitionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FaceRecognitionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FaceRecognitionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides