Class PersonalProtectiveEquipmentDetectionOutput.Builder (0.40.0)

public static final class PersonalProtectiveEquipmentDetectionOutput.Builder extends GeneratedMessage.Builder<PersonalProtectiveEquipmentDetectionOutput.Builder> implements PersonalProtectiveEquipmentDetectionOutputOrBuilder

Output format for Personal Protective Equipment Detection Operator.

Protobuf type google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput

Static Methods

getDescriptor()

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

Methods

addAllDetectedPersons(Iterable<? extends PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> values)

public PersonalProtectiveEquipmentDetectionOutput.Builder addAllDetectedPersons(Iterable<? extends PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> values)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson>
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

addDetectedPersons(PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value)

public PersonalProtectiveEquipmentDetectionOutput.Builder addDetectedPersons(PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
value PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

addDetectedPersons(PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder builderForValue)

public PersonalProtectiveEquipmentDetectionOutput.Builder addDetectedPersons(PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder builderForValue)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
builderForValue PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

addDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value)

public PersonalProtectiveEquipmentDetectionOutput.Builder addDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameters
Name Description
index int
value PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

addDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder builderForValue)

public PersonalProtectiveEquipmentDetectionOutput.Builder addDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder builderForValue)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameters
Name Description
index int
builderForValue PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

addDetectedPersonsBuilder()

public PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder addDetectedPersonsBuilder()

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder

addDetectedPersonsBuilder(int index)

public PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder addDetectedPersonsBuilder(int index)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
index int
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder

build()

public PersonalProtectiveEquipmentDetectionOutput build()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput

buildPartial()

public PersonalProtectiveEquipmentDetectionOutput buildPartial()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput

clear()

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

clearCurrentTime()

public PersonalProtectiveEquipmentDetectionOutput.Builder clearCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

clearDetectedPersons()

public PersonalProtectiveEquipmentDetectionOutput.Builder clearDetectedPersons()

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

getCurrentTime()

public Timestamp getCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
Timestamp

The currentTime.

getCurrentTimeBuilder()

public Timestamp.Builder getCurrentTimeBuilder()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
Builder

getCurrentTimeOrBuilder()

public TimestampOrBuilder getCurrentTimeOrBuilder()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public PersonalProtectiveEquipmentDetectionOutput getDefaultInstanceForType()
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput

getDescriptorForType()

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

getDetectedPersons(int index)

public PersonalProtectiveEquipmentDetectionOutput.DetectedPerson getDetectedPersons(int index)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
index int
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson

getDetectedPersonsBuilder(int index)

public PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder getDetectedPersonsBuilder(int index)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
index int
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder

getDetectedPersonsBuilderList()

public List<PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder> getDetectedPersonsBuilderList()

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Returns
Type Description
List<Builder>

getDetectedPersonsCount()

public int getDetectedPersonsCount()

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Returns
Type Description
int

getDetectedPersonsList()

public List<PersonalProtectiveEquipmentDetectionOutput.DetectedPerson> getDetectedPersonsList()

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Returns
Type Description
List<DetectedPerson>

getDetectedPersonsOrBuilder(int index)

public PersonalProtectiveEquipmentDetectionOutput.DetectedPersonOrBuilder getDetectedPersonsOrBuilder(int index)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
index int
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.DetectedPersonOrBuilder

getDetectedPersonsOrBuilderList()

public List<? extends PersonalProtectiveEquipmentDetectionOutput.DetectedPersonOrBuilder> getDetectedPersonsOrBuilderList()

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPersonOrBuilder>

hasCurrentTime()

public boolean hasCurrentTime()

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Returns
Type Description
boolean

Whether the currentTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCurrentTime(Timestamp value)

public PersonalProtectiveEquipmentDetectionOutput.Builder mergeCurrentTime(Timestamp value)

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

mergeFrom(PersonalProtectiveEquipmentDetectionOutput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeDetectedPersons(int index)

public PersonalProtectiveEquipmentDetectionOutput.Builder removeDetectedPersons(int index)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameter
Name Description
index int
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

setCurrentTime(Timestamp value)

public PersonalProtectiveEquipmentDetectionOutput.Builder setCurrentTime(Timestamp value)

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

setCurrentTime(Timestamp.Builder builderForValue)

public PersonalProtectiveEquipmentDetectionOutput.Builder setCurrentTime(Timestamp.Builder builderForValue)

Current timestamp.

.google.protobuf.Timestamp current_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

setDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value)

public PersonalProtectiveEquipmentDetectionOutput.Builder setDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson value)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameters
Name Description
index int
value PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder

setDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder builderForValue)

public PersonalProtectiveEquipmentDetectionOutput.Builder setDetectedPersons(int index, PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder builderForValue)

A list of DetectedPersons.

repeated .google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson detected_persons = 2;

Parameters
Name Description
index int
builderForValue PersonalProtectiveEquipmentDetectionOutput.DetectedPerson.Builder
Returns
Type Description
PersonalProtectiveEquipmentDetectionOutput.Builder