Class FaceDetectionConfig.Builder (2.54.0)

public static final class FaceDetectionConfig.Builder extends GeneratedMessageV3.Builder<FaceDetectionConfig.Builder> implements FaceDetectionConfigOrBuilder

Config for FACE_DETECTION.

Protobuf type google.cloud.videointelligence.v1beta2.FaceDetectionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FaceDetectionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

build()

public FaceDetectionConfig build()
Returns
Type Description
FaceDetectionConfig

buildPartial()

public FaceDetectionConfig buildPartial()
Returns
Type Description
FaceDetectionConfig

clear()

public FaceDetectionConfig.Builder clear()
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FaceDetectionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

clearIncludeBoundingBoxes()

public FaceDetectionConfig.Builder clearIncludeBoundingBoxes()

Whether bounding boxes be included in the face annotation output.

bool include_bounding_boxes = 2;

Returns
Type Description
FaceDetectionConfig.Builder

This builder for chaining.

clearModel()

public FaceDetectionConfig.Builder clearModel()

Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Returns
Type Description
FaceDetectionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FaceDetectionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

clone()

public FaceDetectionConfig.Builder clone()
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

getDefaultInstanceForType()

public FaceDetectionConfig getDefaultInstanceForType()
Returns
Type Description
FaceDetectionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIncludeBoundingBoxes()

public boolean getIncludeBoundingBoxes()

Whether bounding boxes be included in the face annotation output.

bool include_bounding_boxes = 2;

Returns
Type Description
boolean

The includeBoundingBoxes.

getModel()

public String getModel()

Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Returns
Type Description
ByteString

The bytes for model.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FaceDetectionConfig other)

public FaceDetectionConfig.Builder mergeFrom(FaceDetectionConfig other)
Parameter
Name Description
other FaceDetectionConfig
Returns
Type Description
FaceDetectionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FaceDetectionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceDetectionConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FaceDetectionConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FaceDetectionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FaceDetectionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

setIncludeBoundingBoxes(boolean value)

public FaceDetectionConfig.Builder setIncludeBoundingBoxes(boolean value)

Whether bounding boxes be included in the face annotation output.

bool include_bounding_boxes = 2;

Parameter
Name Description
value boolean

The includeBoundingBoxes to set.

Returns
Type Description
FaceDetectionConfig.Builder

This builder for chaining.

setModel(String value)

public FaceDetectionConfig.Builder setModel(String value)

Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Parameter
Name Description
value String

The model to set.

Returns
Type Description
FaceDetectionConfig.Builder

This builder for chaining.

setModelBytes(ByteString value)

public FaceDetectionConfig.Builder setModelBytes(ByteString value)

Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 1;

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
FaceDetectionConfig.Builder

This builder for chaining.

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

public FaceDetectionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FaceDetectionConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FaceDetectionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FaceDetectionConfig.Builder
Overrides