Class Track.Builder (2.52.0)

public static final class Track.Builder extends GeneratedMessageV3.Builder<Track.Builder> implements TrackOrBuilder

A track of an object instance.

Protobuf type google.cloud.videointelligence.v1p3beta1.Track

Implements

TrackOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAttributes(Iterable<? extends DetectedAttribute> values)

public Track.Builder addAllAttributes(Iterable<? extends DetectedAttribute> values)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute>
Returns
Type Description
Track.Builder

addAllTimestampedObjects(Iterable<? extends TimestampedObject> values)

public Track.Builder addAllTimestampedObjects(Iterable<? extends TimestampedObject> values)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1p3beta1.TimestampedObject>
Returns
Type Description
Track.Builder

addAttributes(DetectedAttribute value)

public Track.Builder addAttributes(DetectedAttribute value)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DetectedAttribute
Returns
Type Description
Track.Builder

addAttributes(DetectedAttribute.Builder builderForValue)

public Track.Builder addAttributes(DetectedAttribute.Builder builderForValue)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DetectedAttribute.Builder
Returns
Type Description
Track.Builder

addAttributes(int index, DetectedAttribute value)

public Track.Builder addAttributes(int index, DetectedAttribute value)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value DetectedAttribute
Returns
Type Description
Track.Builder

addAttributes(int index, DetectedAttribute.Builder builderForValue)

public Track.Builder addAttributes(int index, DetectedAttribute.Builder builderForValue)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue DetectedAttribute.Builder
Returns
Type Description
Track.Builder

addAttributesBuilder()

public DetectedAttribute.Builder addAttributesBuilder()

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DetectedAttribute.Builder

addAttributesBuilder(int index)

public DetectedAttribute.Builder addAttributesBuilder(int index)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedAttribute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTimestampedObjects(TimestampedObject value)

public Track.Builder addTimestampedObjects(TimestampedObject value)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
value TimestampedObject
Returns
Type Description
Track.Builder

addTimestampedObjects(TimestampedObject.Builder builderForValue)

public Track.Builder addTimestampedObjects(TimestampedObject.Builder builderForValue)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
builderForValue TimestampedObject.Builder
Returns
Type Description
Track.Builder

addTimestampedObjects(int index, TimestampedObject value)

public Track.Builder addTimestampedObjects(int index, TimestampedObject value)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameters
Name Description
index int
value TimestampedObject
Returns
Type Description
Track.Builder

addTimestampedObjects(int index, TimestampedObject.Builder builderForValue)

public Track.Builder addTimestampedObjects(int index, TimestampedObject.Builder builderForValue)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameters
Name Description
index int
builderForValue TimestampedObject.Builder
Returns
Type Description
Track.Builder

addTimestampedObjectsBuilder()

public TimestampedObject.Builder addTimestampedObjectsBuilder()

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Returns
Type Description
TimestampedObject.Builder

addTimestampedObjectsBuilder(int index)

public TimestampedObject.Builder addTimestampedObjectsBuilder(int index)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
TimestampedObject.Builder

build()

public Track build()
Returns
Type Description
Track

buildPartial()

public Track buildPartial()
Returns
Type Description
Track

clear()

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

clearAttributes()

public Track.Builder clearAttributes()

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Track.Builder

clearConfidence()

public Track.Builder clearConfidence()

Optional. The confidence score of the tracked object.

float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Track.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegment()

public Track.Builder clearSegment()

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Returns
Type Description
Track.Builder

clearTimestampedObjects()

public Track.Builder clearTimestampedObjects()

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Returns
Type Description
Track.Builder

clone()

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

getAttributes(int index)

public DetectedAttribute getAttributes(int index)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedAttribute

getAttributesBuilder(int index)

public DetectedAttribute.Builder getAttributesBuilder(int index)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedAttribute.Builder

getAttributesBuilderList()

public List<DetectedAttribute.Builder> getAttributesBuilderList()

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAttributesCount()

public int getAttributesCount()

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAttributesList()

public List<DetectedAttribute> getAttributesList()

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<DetectedAttribute>

getAttributesOrBuilder(int index)

public DetectedAttributeOrBuilder getAttributesOrBuilder(int index)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedAttributeOrBuilder

getAttributesOrBuilderList()

public List<? extends DetectedAttributeOrBuilder> getAttributesOrBuilderList()

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.DetectedAttributeOrBuilder>

getConfidence()

public float getConfidence()

Optional. The confidence score of the tracked object.

float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
float

The confidence.

getDefaultInstanceForType()

public Track getDefaultInstanceForType()
Returns
Type Description
Track

getDescriptorForType()

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

getSegment()

public VideoSegment getSegment()

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Returns
Type Description
VideoSegment

The segment.

getSegmentBuilder()

public VideoSegment.Builder getSegmentBuilder()

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Returns
Type Description
VideoSegment.Builder

getSegmentOrBuilder()

public VideoSegmentOrBuilder getSegmentOrBuilder()

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Returns
Type Description
VideoSegmentOrBuilder

getTimestampedObjects(int index)

public TimestampedObject getTimestampedObjects(int index)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
TimestampedObject

getTimestampedObjectsBuilder(int index)

public TimestampedObject.Builder getTimestampedObjectsBuilder(int index)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
TimestampedObject.Builder

getTimestampedObjectsBuilderList()

public List<TimestampedObject.Builder> getTimestampedObjectsBuilderList()

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Returns
Type Description
List<Builder>

getTimestampedObjectsCount()

public int getTimestampedObjectsCount()

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Returns
Type Description
int

getTimestampedObjectsList()

public List<TimestampedObject> getTimestampedObjectsList()

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Returns
Type Description
List<TimestampedObject>

getTimestampedObjectsOrBuilder(int index)

public TimestampedObjectOrBuilder getTimestampedObjectsOrBuilder(int index)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
TimestampedObjectOrBuilder

getTimestampedObjectsOrBuilderList()

public List<? extends TimestampedObjectOrBuilder> getTimestampedObjectsOrBuilderList()

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.TimestampedObjectOrBuilder>

hasSegment()

public boolean hasSegment()

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Returns
Type Description
boolean

Whether the segment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Track other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSegment(VideoSegment value)

public Track.Builder mergeSegment(VideoSegment value)

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Parameter
Name Description
value VideoSegment
Returns
Type Description
Track.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAttributes(int index)

public Track.Builder removeAttributes(int index)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Track.Builder

removeTimestampedObjects(int index)

public Track.Builder removeTimestampedObjects(int index)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
Track.Builder

setAttributes(int index, DetectedAttribute value)

public Track.Builder setAttributes(int index, DetectedAttribute value)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value DetectedAttribute
Returns
Type Description
Track.Builder

setAttributes(int index, DetectedAttribute.Builder builderForValue)

public Track.Builder setAttributes(int index, DetectedAttribute.Builder builderForValue)

Optional. Attributes in the track level.

repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue DetectedAttribute.Builder
Returns
Type Description
Track.Builder

setConfidence(float value)

public Track.Builder setConfidence(float value)

Optional. The confidence score of the tracked object.

float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value float

The confidence to set.

Returns
Type Description
Track.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSegment(VideoSegment value)

public Track.Builder setSegment(VideoSegment value)

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Parameter
Name Description
value VideoSegment
Returns
Type Description
Track.Builder

setSegment(VideoSegment.Builder builderForValue)

public Track.Builder setSegment(VideoSegment.Builder builderForValue)

Video segment of a track.

.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;

Parameter
Name Description
builderForValue VideoSegment.Builder
Returns
Type Description
Track.Builder

setTimestampedObjects(int index, TimestampedObject value)

public Track.Builder setTimestampedObjects(int index, TimestampedObject value)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameters
Name Description
index int
value TimestampedObject
Returns
Type Description
Track.Builder

setTimestampedObjects(int index, TimestampedObject.Builder builderForValue)

public Track.Builder setTimestampedObjects(int index, TimestampedObject.Builder builderForValue)

The object with timestamp and attributes per frame in the track.

repeated .google.cloud.videointelligence.v1p3beta1.TimestampedObject timestamped_objects = 2;

Parameters
Name Description
index int
builderForValue TimestampedObject.Builder
Returns
Type Description
Track.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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