Class TimestampedObject.Builder (2.43.0)

public static final class TimestampedObject.Builder extends GeneratedMessageV3.Builder<TimestampedObject.Builder> implements TimestampedObjectOrBuilder

For tracking related features. An object at time_offset with attributes, and located with normalized_bounding_box.

Protobuf type google.cloud.videointelligence.v1.TimestampedObject

Static Methods

getDescriptor()

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

Methods

addAllAttributes(Iterable<? extends DetectedAttribute> values)

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

Optional. The attributes of the object in the bounding box.

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>
Returns
Type Description
TimestampedObject.Builder

addAllLandmarks(Iterable<? extends DetectedLandmark> values)

public TimestampedObject.Builder addAllLandmarks(Iterable<? extends DetectedLandmark> values)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

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

addAttributes(DetectedAttribute value)

public TimestampedObject.Builder addAttributes(DetectedAttribute value)

Optional. The attributes of the object in the bounding box.

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

Parameter
Name Description
value DetectedAttribute
Returns
Type Description
TimestampedObject.Builder

addAttributes(DetectedAttribute.Builder builderForValue)

public TimestampedObject.Builder addAttributes(DetectedAttribute.Builder builderForValue)

Optional. The attributes of the object in the bounding box.

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

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

addAttributes(int index, DetectedAttribute value)

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

Optional. The attributes of the object in the bounding box.

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

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

addAttributes(int index, DetectedAttribute.Builder builderForValue)

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

Optional. The attributes of the object in the bounding box.

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

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

addAttributesBuilder()

public DetectedAttribute.Builder addAttributesBuilder()

Optional. The attributes of the object in the bounding box.

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

Returns
Type Description
DetectedAttribute.Builder

addAttributesBuilder(int index)

public DetectedAttribute.Builder addAttributesBuilder(int index)

Optional. The attributes of the object in the bounding box.

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

Parameter
Name Description
index int
Returns
Type Description
DetectedAttribute.Builder

addLandmarks(DetectedLandmark value)

public TimestampedObject.Builder addLandmarks(DetectedLandmark value)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DetectedLandmark
Returns
Type Description
TimestampedObject.Builder

addLandmarks(DetectedLandmark.Builder builderForValue)

public TimestampedObject.Builder addLandmarks(DetectedLandmark.Builder builderForValue)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

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

addLandmarks(int index, DetectedLandmark value)

public TimestampedObject.Builder addLandmarks(int index, DetectedLandmark value)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

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

addLandmarks(int index, DetectedLandmark.Builder builderForValue)

public TimestampedObject.Builder addLandmarks(int index, DetectedLandmark.Builder builderForValue)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

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

addLandmarksBuilder()

public DetectedLandmark.Builder addLandmarksBuilder()

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DetectedLandmark.Builder

addLandmarksBuilder(int index)

public DetectedLandmark.Builder addLandmarksBuilder(int index)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedLandmark.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimestampedObject build()
Returns
Type Description
TimestampedObject

buildPartial()

public TimestampedObject buildPartial()
Returns
Type Description
TimestampedObject

clear()

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

clearAttributes()

public TimestampedObject.Builder clearAttributes()

Optional. The attributes of the object in the bounding box.

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

Returns
Type Description
TimestampedObject.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLandmarks()

public TimestampedObject.Builder clearLandmarks()

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampedObject.Builder

clearNormalizedBoundingBox()

public TimestampedObject.Builder clearNormalizedBoundingBox()

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
TimestampedObject.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeOffset()

public TimestampedObject.Builder clearTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
TimestampedObject.Builder

clone()

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

getAttributes(int index)

public DetectedAttribute getAttributes(int index)

Optional. The attributes of the object in the bounding box.

repeated .google.cloud.videointelligence.v1.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. The attributes of the object in the bounding box.

repeated .google.cloud.videointelligence.v1.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. The attributes of the object in the bounding box.

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

Returns
Type Description
List<Builder>

getAttributesCount()

public int getAttributesCount()

Optional. The attributes of the object in the bounding box.

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

Returns
Type Description
int

getAttributesList()

public List<DetectedAttribute> getAttributesList()

Optional. The attributes of the object in the bounding box.

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

Returns
Type Description
List<DetectedAttribute>

getAttributesOrBuilder(int index)

public DetectedAttributeOrBuilder getAttributesOrBuilder(int index)

Optional. The attributes of the object in the bounding box.

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

Parameter
Name Description
index int
Returns
Type Description
DetectedAttributeOrBuilder

getAttributesOrBuilderList()

public List<? extends DetectedAttributeOrBuilder> getAttributesOrBuilderList()

Optional. The attributes of the object in the bounding box.

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

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

getDefaultInstanceForType()

public TimestampedObject getDefaultInstanceForType()
Returns
Type Description
TimestampedObject

getDescriptorForType()

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

getLandmarks(int index)

public DetectedLandmark getLandmarks(int index)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedLandmark

getLandmarksBuilder(int index)

public DetectedLandmark.Builder getLandmarksBuilder(int index)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedLandmark.Builder

getLandmarksBuilderList()

public List<DetectedLandmark.Builder> getLandmarksBuilderList()

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getLandmarksCount()

public int getLandmarksCount()

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLandmarksList()

public List<DetectedLandmark> getLandmarksList()

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<DetectedLandmark>

getLandmarksOrBuilder(int index)

public DetectedLandmarkOrBuilder getLandmarksOrBuilder(int index)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DetectedLandmarkOrBuilder

getLandmarksOrBuilderList()

public List<? extends DetectedLandmarkOrBuilder> getLandmarksOrBuilderList()

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1.DetectedLandmarkOrBuilder>

getNormalizedBoundingBox()

public NormalizedBoundingBox getNormalizedBoundingBox()

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
NormalizedBoundingBox

The normalizedBoundingBox.

getNormalizedBoundingBoxBuilder()

public NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder()

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
NormalizedBoundingBox.Builder

getNormalizedBoundingBoxOrBuilder()

public NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder()

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
NormalizedBoundingBoxOrBuilder

getTimeOffset()

public Duration getTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
DurationOrBuilder

hasNormalizedBoundingBox()

public boolean hasNormalizedBoundingBox()

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Returns
Type Description
boolean

Whether the normalizedBoundingBox field is set.

hasTimeOffset()

public boolean hasTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimestampedObject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNormalizedBoundingBox(NormalizedBoundingBox value)

public TimestampedObject.Builder mergeNormalizedBoundingBox(NormalizedBoundingBox value)

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Parameter
Name Description
value NormalizedBoundingBox
Returns
Type Description
TimestampedObject.Builder

mergeTimeOffset(Duration value)

public TimestampedObject.Builder mergeTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
TimestampedObject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAttributes(int index)

public TimestampedObject.Builder removeAttributes(int index)

Optional. The attributes of the object in the bounding box.

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

Parameter
Name Description
index int
Returns
Type Description
TimestampedObject.Builder

removeLandmarks(int index)

public TimestampedObject.Builder removeLandmarks(int index)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TimestampedObject.Builder

setAttributes(int index, DetectedAttribute value)

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

Optional. The attributes of the object in the bounding box.

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

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

setAttributes(int index, DetectedAttribute.Builder builderForValue)

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

Optional. The attributes of the object in the bounding box.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLandmarks(int index, DetectedLandmark value)

public TimestampedObject.Builder setLandmarks(int index, DetectedLandmark value)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

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

setLandmarks(int index, DetectedLandmark.Builder builderForValue)

public TimestampedObject.Builder setLandmarks(int index, DetectedLandmark.Builder builderForValue)

Optional. The detected landmarks.

repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];

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

setNormalizedBoundingBox(NormalizedBoundingBox value)

public TimestampedObject.Builder setNormalizedBoundingBox(NormalizedBoundingBox value)

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

Parameter
Name Description
value NormalizedBoundingBox
Returns
Type Description
TimestampedObject.Builder

setNormalizedBoundingBox(NormalizedBoundingBox.Builder builderForValue)

public TimestampedObject.Builder setNormalizedBoundingBox(NormalizedBoundingBox.Builder builderForValue)

Normalized Bounding box in a frame, where the object is located.

.google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;

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

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

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

setTimeOffset(Duration value)

public TimestampedObject.Builder setTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
TimestampedObject.Builder

setTimeOffset(Duration.Builder builderForValue)

public TimestampedObject.Builder setTimeOffset(Duration.Builder builderForValue)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this object.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimestampedObject.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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