Class PersonalProtectiveEquipmentDetectionConfig.Builder (0.8.0)

public static final class PersonalProtectiveEquipmentDetectionConfig.Builder extends GeneratedMessageV3.Builder<PersonalProtectiveEquipmentDetectionConfig.Builder> implements PersonalProtectiveEquipmentDetectionConfigOrBuilder

Message describing PersonalProtectiveEquipmentDetectionConfig.

Protobuf type google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PersonalProtectiveEquipmentDetectionConfig build()
Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig

buildPartial()

public PersonalProtectiveEquipmentDetectionConfig buildPartial()
Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig

clear()

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

clearEnableFaceCoverageDetection()

public PersonalProtectiveEquipmentDetectionConfig.Builder clearEnableFaceCoverageDetection()

Whether to enable face coverage detection.

bool enable_face_coverage_detection = 1;

Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig.Builder

This builder for chaining.

clearEnableHandsCoverageDetection()

public PersonalProtectiveEquipmentDetectionConfig.Builder clearEnableHandsCoverageDetection()

Whether to enable hands coverage detection.

bool enable_hands_coverage_detection = 3;

Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig.Builder

This builder for chaining.

clearEnableHeadCoverageDetection()

public PersonalProtectiveEquipmentDetectionConfig.Builder clearEnableHeadCoverageDetection()

Whether to enable head coverage detection.

bool enable_head_coverage_detection = 2;

Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PersonalProtectiveEquipmentDetectionConfig getDefaultInstanceForType()
Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig

getDescriptorForType()

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

getEnableFaceCoverageDetection()

public boolean getEnableFaceCoverageDetection()

Whether to enable face coverage detection.

bool enable_face_coverage_detection = 1;

Returns
Type Description
boolean

The enableFaceCoverageDetection.

getEnableHandsCoverageDetection()

public boolean getEnableHandsCoverageDetection()

Whether to enable hands coverage detection.

bool enable_hands_coverage_detection = 3;

Returns
Type Description
boolean

The enableHandsCoverageDetection.

getEnableHeadCoverageDetection()

public boolean getEnableHeadCoverageDetection()

Whether to enable head coverage detection.

bool enable_head_coverage_detection = 2;

Returns
Type Description
boolean

The enableHeadCoverageDetection.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PersonalProtectiveEquipmentDetectionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnableFaceCoverageDetection(boolean value)

public PersonalProtectiveEquipmentDetectionConfig.Builder setEnableFaceCoverageDetection(boolean value)

Whether to enable face coverage detection.

bool enable_face_coverage_detection = 1;

Parameter
Name Description
value boolean

The enableFaceCoverageDetection to set.

Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig.Builder

This builder for chaining.

setEnableHandsCoverageDetection(boolean value)

public PersonalProtectiveEquipmentDetectionConfig.Builder setEnableHandsCoverageDetection(boolean value)

Whether to enable hands coverage detection.

bool enable_hands_coverage_detection = 3;

Parameter
Name Description
value boolean

The enableHandsCoverageDetection to set.

Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig.Builder

This builder for chaining.

setEnableHeadCoverageDetection(boolean value)

public PersonalProtectiveEquipmentDetectionConfig.Builder setEnableHeadCoverageDetection(boolean value)

Whether to enable head coverage detection.

bool enable_head_coverage_detection = 2;

Parameter
Name Description
value boolean

The enableHeadCoverageDetection to set.

Returns
Type Description
PersonalProtectiveEquipmentDetectionConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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