Class FaceDetectionConfig.Builder (2.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FaceDetectionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

build()

public FaceDetectionConfig build()
Returns
TypeDescription
FaceDetectionConfig

buildPartial()

public FaceDetectionConfig buildPartial()
Returns
TypeDescription
FaceDetectionConfig

clear()

public FaceDetectionConfig.Builder clear()
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FaceDetectionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

clearIncludeBoundingBoxes()

public FaceDetectionConfig.Builder clearIncludeBoundingBoxes()

Whether bounding boxes be included in the face annotation output.

bool include_bounding_boxes = 2;

Returns
TypeDescription
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
TypeDescription
FaceDetectionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FaceDetectionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

clone()

public FaceDetectionConfig.Builder clone()
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

getDefaultInstanceForType()

public FaceDetectionConfig getDefaultInstanceForType()
Returns
TypeDescription
FaceDetectionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIncludeBoundingBoxes()

public boolean getIncludeBoundingBoxes()

Whether bounding boxes be included in the face annotation output.

bool include_bounding_boxes = 2;

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

The bytes for model.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FaceDetectionConfig other)

public FaceDetectionConfig.Builder mergeFrom(FaceDetectionConfig other)
Parameter
NameDescription
otherFaceDetectionConfig
Returns
TypeDescription
FaceDetectionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FaceDetectionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FaceDetectionConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FaceDetectionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FaceDetectionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The includeBoundingBoxes to set.

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

The model to set.

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

The bytes for model to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FaceDetectionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FaceDetectionConfig.Builder
Overrides