Class FaceDetectionAnnotation.Builder (2.35.0)

public static final class FaceDetectionAnnotation.Builder extends GeneratedMessageV3.Builder<FaceDetectionAnnotation.Builder> implements FaceDetectionAnnotationOrBuilder

Face detection annotation.

Protobuf type google.cloud.videointelligence.v1.FaceDetectionAnnotation

Static Methods

getDescriptor()

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

Methods

addAllTracks(Iterable<? extends Track> values)

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

The face tracks with attributes.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTracks(Track value)

public FaceDetectionAnnotation.Builder addTracks(Track value)

The face tracks with attributes.

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

Parameter
NameDescription
valueTrack
Returns
TypeDescription
FaceDetectionAnnotation.Builder

addTracks(Track.Builder builderForValue)

public FaceDetectionAnnotation.Builder addTracks(Track.Builder builderForValue)

The face tracks with attributes.

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

Parameter
NameDescription
builderForValueTrack.Builder
Returns
TypeDescription
FaceDetectionAnnotation.Builder

addTracks(int index, Track value)

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

The face tracks with attributes.

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

Parameters
NameDescription
indexint
valueTrack
Returns
TypeDescription
FaceDetectionAnnotation.Builder

addTracks(int index, Track.Builder builderForValue)

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

The face tracks with attributes.

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

Parameters
NameDescription
indexint
builderForValueTrack.Builder
Returns
TypeDescription
FaceDetectionAnnotation.Builder

addTracksBuilder()

public Track.Builder addTracksBuilder()

The face tracks with attributes.

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

Returns
TypeDescription
Track.Builder

addTracksBuilder(int index)

public Track.Builder addTracksBuilder(int index)

The face tracks with attributes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Track.Builder

build()

public FaceDetectionAnnotation build()
Returns
TypeDescription
FaceDetectionAnnotation

buildPartial()

public FaceDetectionAnnotation buildPartial()
Returns
TypeDescription
FaceDetectionAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThumbnail()

public FaceDetectionAnnotation.Builder clearThumbnail()

The thumbnail of a person's face.

bytes thumbnail = 4;

Returns
TypeDescription
FaceDetectionAnnotation.Builder

This builder for chaining.

clearTracks()

public FaceDetectionAnnotation.Builder clearTracks()

The face tracks with attributes.

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

Returns
TypeDescription
FaceDetectionAnnotation.Builder

clearVersion()

public FaceDetectionAnnotation.Builder clearVersion()

Feature version.

string version = 5;

Returns
TypeDescription
FaceDetectionAnnotation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FaceDetectionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
FaceDetectionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getThumbnail()

public ByteString getThumbnail()

The thumbnail of a person's face.

bytes thumbnail = 4;

Returns
TypeDescription
ByteString

The thumbnail.

getTracks(int index)

public Track getTracks(int index)

The face tracks with attributes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Track

getTracksBuilder(int index)

public Track.Builder getTracksBuilder(int index)

The face tracks with attributes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Track.Builder

getTracksBuilderList()

public List<Track.Builder> getTracksBuilderList()

The face tracks with attributes.

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

Returns
TypeDescription
List<Builder>

getTracksCount()

public int getTracksCount()

The face tracks with attributes.

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

Returns
TypeDescription
int

getTracksList()

public List<Track> getTracksList()

The face tracks with attributes.

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

Returns
TypeDescription
List<Track>

getTracksOrBuilder(int index)

public TrackOrBuilder getTracksOrBuilder(int index)

The face tracks with attributes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TrackOrBuilder

getTracksOrBuilderList()

public List<? extends TrackOrBuilder> getTracksOrBuilderList()

The face tracks with attributes.

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

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

getVersion()

public String getVersion()

Feature version.

string version = 5;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Feature version.

string version = 5;

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(FaceDetectionAnnotation other)

public FaceDetectionAnnotation.Builder mergeFrom(FaceDetectionAnnotation other)
Parameter
NameDescription
otherFaceDetectionAnnotation
Returns
TypeDescription
FaceDetectionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTracks(int index)

public FaceDetectionAnnotation.Builder removeTracks(int index)

The face tracks with attributes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceDetectionAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setThumbnail(ByteString value)

public FaceDetectionAnnotation.Builder setThumbnail(ByteString value)

The thumbnail of a person's face.

bytes thumbnail = 4;

Parameter
NameDescription
valueByteString

The thumbnail to set.

Returns
TypeDescription
FaceDetectionAnnotation.Builder

This builder for chaining.

setTracks(int index, Track value)

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

The face tracks with attributes.

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

Parameters
NameDescription
indexint
valueTrack
Returns
TypeDescription
FaceDetectionAnnotation.Builder

setTracks(int index, Track.Builder builderForValue)

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

The face tracks with attributes.

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

Parameters
NameDescription
indexint
builderForValueTrack.Builder
Returns
TypeDescription
FaceDetectionAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public FaceDetectionAnnotation.Builder setVersion(String value)

Feature version.

string version = 5;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
FaceDetectionAnnotation.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public FaceDetectionAnnotation.Builder setVersionBytes(ByteString value)

Feature version.

string version = 5;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
FaceDetectionAnnotation.Builder

This builder for chaining.