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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FaceRecognitionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public FaceRecognitionResult build()
buildPartial()
public FaceRecognitionResult buildPartial()
clear()
public FaceRecognitionResult.Builder clear()
Overrides
clearCelebrity()
public FaceRecognitionResult.Builder clearCelebrity()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
clearConfidence()
public FaceRecognitionResult.Builder clearConfidence()
Recognition confidence. Range [0, 1].
float confidence = 2;
clearField(Descriptors.FieldDescriptor field)
public FaceRecognitionResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public FaceRecognitionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public FaceRecognitionResult.Builder clone()
Overrides
getCelebrity()
public Celebrity getCelebrity()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns |
Type |
Description |
Celebrity |
The celebrity.
|
getCelebrityBuilder()
public Celebrity.Builder getCelebrityBuilder()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
getCelebrityOrBuilder()
public CelebrityOrBuilder getCelebrityOrBuilder()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
getConfidence()
public float getConfidence()
Recognition confidence. Range [0, 1].
float confidence = 2;
Returns |
Type |
Description |
float |
The confidence.
|
getDefaultInstanceForType()
public FaceRecognitionResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(FaceRecognitionResult other)
public FaceRecognitionResult.Builder mergeFrom(FaceRecognitionResult other)
public FaceRecognitionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FaceRecognitionResult.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FaceRecognitionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public FaceRecognitionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FaceRecognitionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FaceRecognitionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides