Class PersonDetectionAnnotation.Builder (2.3.0)

public static final class PersonDetectionAnnotation.Builder extends GeneratedMessageV3.Builder<PersonDetectionAnnotation.Builder> implements PersonDetectionAnnotationOrBuilder

Person detection annotation per video.

Protobuf type google.cloud.videointelligence.v1.PersonDetectionAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTracks(Iterable<? extends Track> values)

public PersonDetectionAnnotation.Builder addAllTracks(Iterable<? extends Track> values)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1.Track>
Returns
TypeDescription
PersonDetectionAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PersonDetectionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

addTracks(Track value)

public PersonDetectionAnnotation.Builder addTracks(Track value)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
valueTrack
Returns
TypeDescription
PersonDetectionAnnotation.Builder

addTracks(Track.Builder builderForValue)

public PersonDetectionAnnotation.Builder addTracks(Track.Builder builderForValue)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
builderForValueTrack.Builder
Returns
TypeDescription
PersonDetectionAnnotation.Builder

addTracks(int index, Track value)

public PersonDetectionAnnotation.Builder addTracks(int index, Track value)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameters
NameDescription
indexint
valueTrack
Returns
TypeDescription
PersonDetectionAnnotation.Builder

addTracks(int index, Track.Builder builderForValue)

public PersonDetectionAnnotation.Builder addTracks(int index, Track.Builder builderForValue)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameters
NameDescription
indexint
builderForValueTrack.Builder
Returns
TypeDescription
PersonDetectionAnnotation.Builder

addTracksBuilder()

public Track.Builder addTracksBuilder()

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Returns
TypeDescription
Track.Builder

addTracksBuilder(int index)

public Track.Builder addTracksBuilder(int index)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Track.Builder

build()

public PersonDetectionAnnotation build()
Returns
TypeDescription
PersonDetectionAnnotation

buildPartial()

public PersonDetectionAnnotation buildPartial()
Returns
TypeDescription
PersonDetectionAnnotation

clear()

public PersonDetectionAnnotation.Builder clear()
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PersonDetectionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PersonDetectionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

clearTracks()

public PersonDetectionAnnotation.Builder clearTracks()

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Returns
TypeDescription
PersonDetectionAnnotation.Builder

clearVersion()

public PersonDetectionAnnotation.Builder clearVersion()

Feature version.

string version = 2;

Returns
TypeDescription
PersonDetectionAnnotation.Builder

This builder for chaining.

clone()

public PersonDetectionAnnotation.Builder clone()
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

getDefaultInstanceForType()

public PersonDetectionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
PersonDetectionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTracks(int index)

public Track getTracks(int index)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Track

getTracksBuilder(int index)

public Track.Builder getTracksBuilder(int index)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Track.Builder

getTracksBuilderList()

public List<Track.Builder> getTracksBuilderList()

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Returns
TypeDescription
List<Builder>

getTracksCount()

public int getTracksCount()

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Returns
TypeDescription
int

getTracksList()

public List<Track> getTracksList()

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Returns
TypeDescription
List<Track>

getTracksOrBuilder(int index)

public TrackOrBuilder getTracksOrBuilder(int index)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TrackOrBuilder

getTracksOrBuilderList()

public List<? extends TrackOrBuilder> getTracksOrBuilderList()

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1.TrackOrBuilder>

getVersion()

public String getVersion()

Feature version.

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Feature version.

string version = 2;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PersonDetectionAnnotation other)

public PersonDetectionAnnotation.Builder mergeFrom(PersonDetectionAnnotation other)
Parameter
NameDescription
otherPersonDetectionAnnotation
Returns
TypeDescription
PersonDetectionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PersonDetectionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PersonDetectionAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PersonDetectionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

removeTracks(int index)

public PersonDetectionAnnotation.Builder removeTracks(int index)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PersonDetectionAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PersonDetectionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

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

public PersonDetectionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

setTracks(int index, Track value)

public PersonDetectionAnnotation.Builder setTracks(int index, Track value)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameters
NameDescription
indexint
valueTrack
Returns
TypeDescription
PersonDetectionAnnotation.Builder

setTracks(int index, Track.Builder builderForValue)

public PersonDetectionAnnotation.Builder setTracks(int index, Track.Builder builderForValue)

The detected tracks of a person.

repeated .google.cloud.videointelligence.v1.Track tracks = 1;

Parameters
NameDescription
indexint
builderForValueTrack.Builder
Returns
TypeDescription
PersonDetectionAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final PersonDetectionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PersonDetectionAnnotation.Builder
Overrides

setVersion(String value)

public PersonDetectionAnnotation.Builder setVersion(String value)

Feature version.

string version = 2;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
PersonDetectionAnnotation.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public PersonDetectionAnnotation.Builder setVersionBytes(ByteString value)

Feature version.

string version = 2;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
PersonDetectionAnnotation.Builder

This builder for chaining.