Class FaceRecognitionParams (3.10.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static FaceRecognitionParams getDefaultInstance()
Returns
TypeDescription
FaceRecognitionParams

getDescriptor()

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

newBuilder()

public static FaceRecognitionParams.Builder newBuilder()
Returns
TypeDescription
FaceRecognitionParams.Builder

newBuilder(FaceRecognitionParams prototype)

public static FaceRecognitionParams.Builder newBuilder(FaceRecognitionParams prototype)
Parameter
NameDescription
prototypeFaceRecognitionParams
Returns
TypeDescription
FaceRecognitionParams.Builder

parseDelimitedFrom(InputStream input)

public static FaceRecognitionParams parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FaceRecognitionParams parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FaceRecognitionParams parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FaceRecognitionParams parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FaceRecognitionParams parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FaceRecognitionParams parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FaceRecognitionParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceRecognitionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FaceRecognitionParams> parser()
Returns
TypeDescription
Parser<FaceRecognitionParams>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the celebritySet.

getDefaultInstanceForType()

public FaceRecognitionParams getDefaultInstanceForType()
Returns
TypeDescription
FaceRecognitionParams

getParserForType()

public Parser<FaceRecognitionParams> getParserForType()
Returns
TypeDescription
Parser<FaceRecognitionParams>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FaceRecognitionParams.Builder newBuilderForType()
Returns
TypeDescription
FaceRecognitionParams.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FaceRecognitionParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FaceRecognitionParams.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FaceRecognitionParams.Builder toBuilder()
Returns
TypeDescription
FaceRecognitionParams.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException