Class PersonDetectionConfig.Builder (2.32.0)

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

Config for PERSON_DETECTION.

Protobuf type google.cloud.videointelligence.v1p3beta1.PersonDetectionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PersonDetectionConfig build()
Returns
TypeDescription
PersonDetectionConfig

buildPartial()

public PersonDetectionConfig buildPartial()
Returns
TypeDescription
PersonDetectionConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public PersonDetectionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PersonDetectionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PersonDetectionConfig getDefaultInstanceForType()
Returns
TypeDescription
PersonDetectionConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The includeAttributes.

getIncludeBoundingBoxes()

public boolean getIncludeBoundingBoxes()

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

bool include_bounding_boxes = 1;

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

The includePoseLandmarks.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PersonDetectionConfig other)

public PersonDetectionConfig.Builder mergeFrom(PersonDetectionConfig other)
Parameter
NameDescription
otherPersonDetectionConfig
Returns
TypeDescription
PersonDetectionConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The includeAttributes to set.

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

The includeBoundingBoxes to set.

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

The includePoseLandmarks to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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