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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Track.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
build()
Returns
buildPartial()
public Track buildPartial()
Returns
clear()
public Track.Builder clear()
Returns
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
clearConfidence()
public Track.Builder clearConfidence()
Optional. The confidence score of the tracked object.
float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearField(Descriptors.FieldDescriptor field)
public Track.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Track.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSegment()
public Track.Builder clearSegment()
Video segment of a track.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Returns
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
clone()
public Track.Builder clone()
Returns
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
Returns
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
Returns
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
getAttributesCount()
public int getAttributesCount()
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
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
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
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSegment()
public VideoSegment getSegment()
Video segment of a track.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Returns
getSegmentBuilder()
public VideoSegment.Builder getSegmentBuilder()
Video segment of a track.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Returns
getSegmentOrBuilder()
public VideoSegmentOrBuilder getSegmentOrBuilder()
Video segment of a track.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Track other)
public Track.Builder mergeFrom(Track other)
Parameter
Name | Description |
other | Track
|
Returns
public Track.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Track.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeSegment(VideoSegment value)
public Track.Builder mergeSegment(VideoSegment value)
Video segment of a track.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Track.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public Track.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Track.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSegment(VideoSegment value)
public Track.Builder setSegment(VideoSegment value)
Video segment of a track.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Parameter
Returns
setSegment(VideoSegment.Builder builderForValue)
public Track.Builder setSegment(VideoSegment.Builder builderForValue)
Video segment of a track.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Parameter
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Track.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides