Class PersonDetectionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder>
com.google.cloud.videointelligence.v1.PersonDetectionConfig.Builder
- All Implemented Interfaces:
PersonDetectionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PersonDetectionConfig
public static final class PersonDetectionConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder>
implements PersonDetectionConfigOrBuilder
Config for PERSON_DETECTION.Protobuf type
google.cloud.videointelligence.v1.PersonDetectionConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc.Whether bounding boxes are included in the person detection annotation output.Whether to enable pose landmarks detection.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc.booleanWhether bounding boxes are included in the person detection annotation output.booleanWhether to enable pose landmarks detection.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PersonDetectionConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setIncludeBoundingBoxes(boolean value) Whether bounding boxes are included in the person detection annotation output.setIncludePoseLandmarks(boolean value) Whether to enable pose landmarks detection.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PersonDetectionConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PersonDetectionConfig.Builder>
-
mergeFrom
public PersonDetectionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PersonDetectionConfig.Builder>- Throws:
IOException
-
getIncludeBoundingBoxes
public boolean getIncludeBoundingBoxes()Whether bounding boxes are included in the person detection annotation output.
bool include_bounding_boxes = 1;- Specified by:
getIncludeBoundingBoxesin interfacePersonDetectionConfigOrBuilder- Returns:
- The includeBoundingBoxes.
-
setIncludeBoundingBoxes
Whether bounding boxes are included in the person detection annotation output.
bool include_bounding_boxes = 1;- Parameters:
value- The includeBoundingBoxes to set.- Returns:
- This builder for chaining.
-
clearIncludeBoundingBoxes
Whether bounding boxes are included in the person detection annotation output.
bool include_bounding_boxes = 1;- Returns:
- This builder for chaining.
-
getIncludePoseLandmarks
public boolean getIncludePoseLandmarks()Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.
bool include_pose_landmarks = 2;- Specified by:
getIncludePoseLandmarksin interfacePersonDetectionConfigOrBuilder- Returns:
- The includePoseLandmarks.
-
setIncludePoseLandmarks
Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.
bool include_pose_landmarks = 2;- Parameters:
value- The includePoseLandmarks to set.- Returns:
- This builder for chaining.
-
clearIncludePoseLandmarks
Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.
bool include_pose_landmarks = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
getIncludeAttributesin interfacePersonDetectionConfigOrBuilder- Returns:
- The includeAttributes.
-
setIncludeAttributes
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;- Parameters:
value- The includeAttributes to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-