Class PersonDetectionConfig.Builder (2.53.0)

public static final class PersonDetectionConfig.Builder extends GeneratedMessageV3.Builder<PersonDetectionConfig.Builder> implements PersonDetectionConfigOrBuilder

Config for PERSON_DETECTION.

Protobuf type google.cloud.videointelligence.v1.PersonDetectionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PersonDetectionConfig build()
Returns
Type Description
PersonDetectionConfig

buildPartial()

public PersonDetectionConfig buildPartial()
Returns
Type Description
PersonDetectionConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIncludeAttributes()

public PersonDetectionConfig.Builder clearIncludeAttributes()

Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc. Ignored if 'include_bounding_boxes' is set to false.

bool include_attributes = 3;

Returns
Type Description
PersonDetectionConfig.Builder

This builder for chaining.

clearIncludeBoundingBoxes()

public PersonDetectionConfig.Builder clearIncludeBoundingBoxes()

Whether bounding boxes are included in the person detection annotation output.

bool include_bounding_boxes = 1;

Returns
Type Description
PersonDetectionConfig.Builder

This builder for chaining.

clearIncludePoseLandmarks()

public PersonDetectionConfig.Builder clearIncludePoseLandmarks()

Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.

bool include_pose_landmarks = 2;

Returns
Type Description
PersonDetectionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PersonDetectionConfig getDefaultInstanceForType()
Returns
Type Description
PersonDetectionConfig

getDescriptorForType()

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

getIncludeAttributes()

public boolean getIncludeAttributes()

Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc. Ignored if 'include_bounding_boxes' is set to false.

bool include_attributes = 3;

Returns
Type Description
boolean

The includeAttributes.

getIncludeBoundingBoxes()

public boolean getIncludeBoundingBoxes()

Whether bounding boxes are included in the person detection annotation output.

bool include_bounding_boxes = 1;

Returns
Type Description
boolean

The includeBoundingBoxes.

getIncludePoseLandmarks()

public boolean getIncludePoseLandmarks()

Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.

bool include_pose_landmarks = 2;

Returns
Type Description
boolean

The includePoseLandmarks.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PersonDetectionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIncludeAttributes(boolean value)

public PersonDetectionConfig.Builder setIncludeAttributes(boolean value)

Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc. Ignored if 'include_bounding_boxes' is set to false.

bool include_attributes = 3;

Parameter
Name Description
value boolean

The includeAttributes to set.

Returns
Type Description
PersonDetectionConfig.Builder

This builder for chaining.

setIncludeBoundingBoxes(boolean value)

public PersonDetectionConfig.Builder setIncludeBoundingBoxes(boolean value)

Whether bounding boxes are included in the person detection annotation output.

bool include_bounding_boxes = 1;

Parameter
Name Description
value boolean

The includeBoundingBoxes to set.

Returns
Type Description
PersonDetectionConfig.Builder

This builder for chaining.

setIncludePoseLandmarks(boolean value)

public PersonDetectionConfig.Builder setIncludePoseLandmarks(boolean value)

Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.

bool include_pose_landmarks = 2;

Parameter
Name Description
value boolean

The includePoseLandmarks to set.

Returns
Type Description
PersonDetectionConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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