Class FaceRecognitionParams (3.40.0)

public final class FaceRecognitionParams extends GeneratedMessageV3 implements FaceRecognitionParamsOrBuilder

Parameters for a celebrity recognition request.

Protobuf type google.cloud.vision.v1p4beta1.FaceRecognitionParams

Static Fields

CELEBRITY_SET_FIELD_NUMBER

public static final int CELEBRITY_SET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FaceRecognitionParams getDefaultInstance()
Returns
Type Description
FaceRecognitionParams

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static FaceRecognitionParams.Builder newBuilder()
Returns
Type Description
FaceRecognitionParams.Builder

newBuilder(FaceRecognitionParams prototype)

public static FaceRecognitionParams.Builder newBuilder(FaceRecognitionParams prototype)
Parameter
Name Description
prototype FaceRecognitionParams
Returns
Type Description
FaceRecognitionParams.Builder

parseDelimitedFrom(InputStream input)

public static FaceRecognitionParams parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FaceRecognitionParams parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FaceRecognitionParams parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FaceRecognitionParams parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FaceRecognitionParams parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FaceRecognitionParams parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceRecognitionParams
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FaceRecognitionParams> parser()
Returns
Type Description
Parser<FaceRecognitionParams>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCelebritySet(int index)

public String getCelebritySet(int index)

The resource names for one or more CelebritySets. A celebrity set is preloaded and can be specified as "builtin/default". If this is specified, the algorithm will try to match the faces detected in the input image to the Celebrities in the CelebritySets.

repeated string celebrity_set = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The celebritySet at the given index.

getCelebritySetBytes(int index)

public ByteString getCelebritySetBytes(int index)

The resource names for one or more CelebritySets. A celebrity set is preloaded and can be specified as "builtin/default". If this is specified, the algorithm will try to match the faces detected in the input image to the Celebrities in the CelebritySets.

repeated string celebrity_set = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the celebritySet at the given index.

getCelebritySetCount()

public int getCelebritySetCount()

The resource names for one or more CelebritySets. A celebrity set is preloaded and can be specified as "builtin/default". If this is specified, the algorithm will try to match the faces detected in the input image to the Celebrities in the CelebritySets.

repeated string celebrity_set = 1;

Returns
Type Description
int

The count of celebritySet.

getCelebritySetList()

public ProtocolStringList getCelebritySetList()

The resource names for one or more CelebritySets. A celebrity set is preloaded and can be specified as "builtin/default". If this is specified, the algorithm will try to match the faces detected in the input image to the Celebrities in the CelebritySets.

repeated string celebrity_set = 1;

Returns
Type Description
ProtocolStringList

A list containing the celebritySet.

getDefaultInstanceForType()

public FaceRecognitionParams getDefaultInstanceForType()
Returns
Type Description
FaceRecognitionParams

getParserForType()

public Parser<FaceRecognitionParams> getParserForType()
Returns
Type Description
Parser<FaceRecognitionParams>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FaceRecognitionParams.Builder newBuilderForType()
Returns
Type Description
FaceRecognitionParams.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FaceRecognitionParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FaceRecognitionParams.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FaceRecognitionParams.Builder toBuilder()
Returns
Type Description
FaceRecognitionParams.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException