Class PersonalProtectiveEquipmentDetectionOutput.Builder (0.9.0)

public static final class PersonalProtectiveEquipmentDetectionOutput.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PersonalProtectiveEquipmentDetectionOutput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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