Class Track.Builder (2.2.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1p3beta1.DetectedAttribute>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1p3beta1.TimestampedObject>
Returns
TypeDescription
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
NameDescription
valueDetectedAttribute
Returns
TypeDescription
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
NameDescription
builderForValueDetectedAttribute.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDetectedAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDetectedAttribute.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DetectedAttribute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Track.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestampedObject
Returns
TypeDescription
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
NameDescription
builderForValueTimestampedObject.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTimestampedObject
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTimestampedObject.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TimestampedObject.Builder

build()

public Track build()
Returns
TypeDescription
Track

buildPartial()

public Track buildPartial()
Returns
TypeDescription
Track

clear()

public Track.Builder clear()
Returns
TypeDescription
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
TypeDescription
Track.Builder

clearConfidence()

public Track.Builder clearConfidence()

Optional. The confidence score of the tracked object.

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

Returns
TypeDescription
Track.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegment()

public Track.Builder clearSegment()

Video segment of a track.

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

Returns
TypeDescription
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
TypeDescription
Track.Builder

clone()

public Track.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public Track getDefaultInstanceForType()
Returns
TypeDescription
Track

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSegment()

public VideoSegment getSegment()

Video segment of a track.

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

Returns
TypeDescription
VideoSegment

The segment.

getSegmentBuilder()

public VideoSegment.Builder getSegmentBuilder()

Video segment of a track.

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

Returns
TypeDescription
VideoSegment.Builder

getSegmentOrBuilder()

public VideoSegmentOrBuilder getSegmentOrBuilder()

Video segment of a track.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the segment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Track other)

public Track.Builder mergeFrom(Track other)
Parameter
NameDescription
otherTrack
Returns
TypeDescription
Track.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Track.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueVideoSegment
Returns
TypeDescription
Track.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Track.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDetectedAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDetectedAttribute.Builder
Returns
TypeDescription
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
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
Track.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Track.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueVideoSegment
Returns
TypeDescription
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
NameDescription
builderForValueVideoSegment.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTimestampedObject
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTimestampedObject.Builder
Returns
TypeDescription
Track.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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