public static final class Track.Builder extends GeneratedMessageV3.Builder<Track.Builder> implements TrackOrBuilder
A track of an object instance.
Protobuf type google.cloud.videointelligence.v1.Track
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addAllAttributes(Iterable<? extends DetectedAttribute> values)
public Track.Builder addAllAttributes(Iterable<? extends DetectedAttribute> values)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.videointelligence.v1.DetectedAttribute>
|
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.v1.TimestampedObject timestamped_objects = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.videointelligence.v1.TimestampedObject>
|
addAttributes(DetectedAttribute value)
public Track.Builder addAttributes(DetectedAttribute value)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
addAttributes(DetectedAttribute.Builder builderForValue)
public Track.Builder addAttributes(DetectedAttribute.Builder builderForValue)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
addAttributes(int index, DetectedAttribute value)
public Track.Builder addAttributes(int index, DetectedAttribute value)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
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.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
addAttributesBuilder()
public DetectedAttribute.Builder addAttributesBuilder()
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
addAttributesBuilder(int index)
public DetectedAttribute.Builder addAttributesBuilder(int index)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Track.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.v1.TimestampedObject timestamped_objects = 2;
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.v1.TimestampedObject timestamped_objects = 2;
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.v1.TimestampedObject timestamped_objects = 2;
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.v1.TimestampedObject timestamped_objects = 2;
addTimestampedObjectsBuilder()
public TimestampedObject.Builder addTimestampedObjectsBuilder()
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
addTimestampedObjectsBuilder(int index)
public TimestampedObject.Builder addTimestampedObjectsBuilder(int index)
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
Parameter |
Name |
Description |
index |
int
|
build()
Returns |
Type |
Description |
Track |
|
buildPartial()
public Track buildPartial()
Returns |
Type |
Description |
Track |
|
clear()
public Track.Builder clear()
Overrides
clearAttributes()
public Track.Builder clearAttributes()
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
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)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Track.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSegment()
public Track.Builder clearSegment()
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
clearTimestampedObjects()
public Track.Builder clearTimestampedObjects()
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
clone()
public Track.Builder clone()
Overrides
getAttributes(int index)
public DetectedAttribute getAttributes(int index)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getAttributesBuilder(int index)
public DetectedAttribute.Builder getAttributesBuilder(int index)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getAttributesBuilderList()
public List<DetectedAttribute.Builder> getAttributesBuilderList()
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
getAttributesCount()
public int getAttributesCount()
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.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.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
getAttributesOrBuilder(int index)
public DetectedAttributeOrBuilder getAttributesOrBuilder(int index)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getAttributesOrBuilderList()
public List<? extends DetectedAttributeOrBuilder> getAttributesOrBuilderList()
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.videointelligence.v1.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()
Overrides
getSegment()
public VideoSegment getSegment()
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
getSegmentBuilder()
public VideoSegment.Builder getSegmentBuilder()
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
getSegmentOrBuilder()
public VideoSegmentOrBuilder getSegmentOrBuilder()
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
getTimestampedObjects(int index)
public TimestampedObject getTimestampedObjects(int index)
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
Parameter |
Name |
Description |
index |
int
|
getTimestampedObjectsBuilder(int index)
public TimestampedObject.Builder getTimestampedObjectsBuilder(int index)
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
Parameter |
Name |
Description |
index |
int
|
getTimestampedObjectsBuilderList()
public List<TimestampedObject.Builder> getTimestampedObjectsBuilderList()
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
getTimestampedObjectsCount()
public int getTimestampedObjectsCount()
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.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.v1.TimestampedObject timestamped_objects = 2;
getTimestampedObjectsOrBuilder(int index)
public TimestampedObjectOrBuilder getTimestampedObjectsOrBuilder(int index)
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
Parameter |
Name |
Description |
index |
int
|
getTimestampedObjectsOrBuilderList()
public List<? extends TimestampedObjectOrBuilder> getTimestampedObjectsOrBuilderList()
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.videointelligence.v1.TimestampedObjectOrBuilder> |
|
hasSegment()
public boolean hasSegment()
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
Returns |
Type |
Description |
boolean |
Whether the segment field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Track other)
public Track.Builder mergeFrom(Track other)
Parameter |
Name |
Description |
other |
Track
|
public Track.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Track.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeSegment(VideoSegment value)
public Track.Builder mergeSegment(VideoSegment value)
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Track.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeAttributes(int index)
public Track.Builder removeAttributes(int index)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
removeTimestampedObjects(int index)
public Track.Builder removeTimestampedObjects(int index)
The object with timestamp and attributes per frame in the track.
repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
Parameter |
Name |
Description |
index |
int
|
setAttributes(int index, DetectedAttribute value)
public Track.Builder setAttributes(int index, DetectedAttribute value)
Optional. Attributes in the track level.
repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
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.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
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)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Track.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSegment(VideoSegment value)
public Track.Builder setSegment(VideoSegment value)
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
setSegment(VideoSegment.Builder builderForValue)
public Track.Builder setSegment(VideoSegment.Builder builderForValue)
Video segment of a track.
.google.cloud.videointelligence.v1.VideoSegment segment = 1;
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.v1.TimestampedObject timestamped_objects = 2;
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.v1.TimestampedObject timestamped_objects = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final Track.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides