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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PersonDetectionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PersonDetectionConfig build()
Returns
buildPartial()
public PersonDetectionConfig buildPartial()
Returns
clear()
public PersonDetectionConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PersonDetectionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearIncludeBoundingBoxes()
public PersonDetectionConfig.Builder clearIncludeBoundingBoxes()
Whether bounding boxes are included in the person detection annotation
output.
bool include_bounding_boxes = 1;
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public PersonDetectionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public PersonDetectionConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PersonDetectionConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PersonDetectionConfig other)
public PersonDetectionConfig.Builder mergeFrom(PersonDetectionConfig other)
Parameter
Returns
public PersonDetectionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PersonDetectionConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PersonDetectionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PersonDetectionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PersonDetectionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PersonDetectionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides