Class TimestampedObject.Builder (2.11.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

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1.DetectedAttribute>
Returns

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
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1.DetectedLandmark>
Returns

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
NameDescription
valueDetectedAttribute
Returns

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
NameDescription
builderForValueDetectedAttribute.Builder
Returns

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
NameDescription
indexint
valueDetectedAttribute
Returns

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
NameDescription
indexint
builderForValueDetectedAttribute.Builder
Returns

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

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

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
NameDescription
valueDetectedLandmark
Returns

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
NameDescription
builderForValueDetectedLandmark.Builder
Returns

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
NameDescription
indexint
valueDetectedLandmark
Returns

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
NameDescription
indexint
builderForValueDetectedLandmark.Builder
Returns

addLandmarksBuilder()

public DetectedLandmark.Builder addLandmarksBuilder()

Optional. The detected landmarks.

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

Returns

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimestampedObject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

build()

public TimestampedObject build()
Returns
TypeDescription
TimestampedObject

buildPartial()

public TimestampedObject buildPartial()
Returns
TypeDescription
TimestampedObject

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLandmarks()

public TimestampedObject.Builder clearLandmarks()

Optional. The detected landmarks.

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

Returns

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TimestampedObject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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

clone()

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

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

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
TypeDescription
List<? extends com.google.cloud.videointelligence.v1.DetectedAttributeOrBuilder>

getDefaultInstanceForType()

public TimestampedObject getDefaultInstanceForType()
Returns
TypeDescription
TimestampedObject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns

getLandmarksBuilderList()

public List<DetectedLandmark.Builder> getLandmarksBuilderList()

Optional. The detected landmarks.

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

Returns
TypeDescription
List<Builder>

getLandmarksCount()

public int getLandmarksCount()

Optional. The detected landmarks.

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

Returns
TypeDescription
int

getLandmarksList()

public List<DetectedLandmark> getLandmarksList()

Optional. The detected landmarks.

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

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

getLandmarksOrBuilderList()

public List<? extends DetectedLandmarkOrBuilder> getLandmarksOrBuilderList()

Optional. The detected landmarks.

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

Returns
TypeDescription
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
TypeDescription
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

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimestampedObject other)

public TimestampedObject.Builder mergeFrom(TimestampedObject other)
Parameter
NameDescription
otherTimestampedObject
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

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
NameDescription
valueDuration
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimestampedObject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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
NameDescription
indexint
Returns

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

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
NameDescription
indexint
valueDetectedAttribute
Returns

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
NameDescription
indexint
builderForValueDetectedAttribute.Builder
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public TimestampedObject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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
NameDescription
indexint
valueDetectedLandmark
Returns

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
NameDescription
indexint
builderForValueDetectedLandmark.Builder
Returns

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
NameDescription
valueNormalizedBoundingBox
Returns

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
NameDescription
builderForValueNormalizedBoundingBox.Builder
Returns

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

public TimestampedObject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns 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
NameDescription
valueDuration
Returns

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
NameDescription
builderForValueBuilder
Returns

setUnknownFields(UnknownFieldSet unknownFields)

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