Class TimestampedObject.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TimestampedObject.Builder>
com.google.cloud.videointelligence.v1.TimestampedObject.Builder
All Implemented Interfaces:
TimestampedObjectOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TimestampedObject

public static final class TimestampedObject.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TimestampedObject.Builder>
    • clear

      public TimestampedObject.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TimestampedObject.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TimestampedObject.Builder>
    • getDefaultInstanceForType

      public TimestampedObject getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TimestampedObject build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TimestampedObject buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TimestampedObject.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimestampedObject.Builder>
    • mergeFrom

      public TimestampedObject.Builder mergeFrom(TimestampedObject other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TimestampedObject.Builder>
    • mergeFrom

      public TimestampedObject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimestampedObject.Builder>
      Throws:
      IOException
    • hasNormalizedBoundingBox

      public boolean hasNormalizedBoundingBox()
       Normalized Bounding box in a frame, where the object is located.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;
      Specified by:
      hasNormalizedBoundingBox in interface TimestampedObjectOrBuilder
      Returns:
      Whether the normalizedBoundingBox field is set.
    • getNormalizedBoundingBox

      public NormalizedBoundingBox getNormalizedBoundingBox()
       Normalized Bounding box in a frame, where the object is located.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;
      Specified by:
      getNormalizedBoundingBox in interface TimestampedObjectOrBuilder
      Returns:
      The normalizedBoundingBox.
    • setNormalizedBoundingBox

      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;
    • setNormalizedBoundingBox

      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;
    • mergeNormalizedBoundingBox

      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;
    • 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;
    • 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;
    • getNormalizedBoundingBoxOrBuilder

      public NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxOrBuilder()
       Normalized Bounding box in a frame, where the object is located.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingBox normalized_bounding_box = 1;
      Specified by:
      getNormalizedBoundingBoxOrBuilder in interface TimestampedObjectOrBuilder
    • 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;
      Specified by:
      hasTimeOffset in interface TimestampedObjectOrBuilder
      Returns:
      Whether the timeOffset field is set.
    • getTimeOffset

      public com.google.protobuf.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;
      Specified by:
      getTimeOffset in interface TimestampedObjectOrBuilder
      Returns:
      The timeOffset.
    • setTimeOffset

      public TimestampedObject.Builder setTimeOffset(com.google.protobuf.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;
    • setTimeOffset

      public TimestampedObject.Builder setTimeOffset(com.google.protobuf.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;
    • mergeTimeOffset

      public TimestampedObject.Builder mergeTimeOffset(com.google.protobuf.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;
    • 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;
    • getTimeOffsetBuilder

      public com.google.protobuf.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;
    • getTimeOffsetOrBuilder

      public com.google.protobuf.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;
      Specified by:
      getTimeOffsetOrBuilder in interface TimestampedObjectOrBuilder
    • 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];
      Specified by:
      getAttributesList in interface TimestampedObjectOrBuilder
    • 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];
      Specified by:
      getAttributesCount in interface TimestampedObjectOrBuilder
    • getAttributes

      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];
      Specified by:
      getAttributes in interface TimestampedObjectOrBuilder
    • setAttributes

      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];
    • setAttributes

      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];
    • addAttributes

      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];
    • addAttributes

      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];
    • addAttributes

      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];
    • addAttributes

      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];
    • addAllAttributes

      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];
    • 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];
    • removeAttributes

      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];
    • getAttributesBuilder

      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];
    • getAttributesOrBuilder

      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];
      Specified by:
      getAttributesOrBuilder in interface TimestampedObjectOrBuilder
    • 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];
      Specified by:
      getAttributesOrBuilderList in interface TimestampedObjectOrBuilder
    • 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];
    • addAttributesBuilder

      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];
    • 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];
    • getLandmarksList

      public List<DetectedLandmark> getLandmarksList()
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLandmarksList in interface TimestampedObjectOrBuilder
    • getLandmarksCount

      public int getLandmarksCount()
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLandmarksCount in interface TimestampedObjectOrBuilder
    • getLandmarks

      public DetectedLandmark getLandmarks(int index)
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLandmarks in interface TimestampedObjectOrBuilder
    • setLandmarks

      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];
    • setLandmarks

      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];
    • addLandmarks

      public TimestampedObject.Builder addLandmarks(DetectedLandmark value)
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addLandmarks

      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];
    • addLandmarks

      public TimestampedObject.Builder addLandmarks(DetectedLandmark.Builder builderForValue)
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addLandmarks

      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];
    • addAllLandmarks

      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];
    • clearLandmarks

      public TimestampedObject.Builder clearLandmarks()
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
    • removeLandmarks

      public TimestampedObject.Builder removeLandmarks(int index)
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLandmarksBuilder

      public DetectedLandmark.Builder getLandmarksBuilder(int index)
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLandmarksOrBuilder

      public DetectedLandmarkOrBuilder getLandmarksOrBuilder(int index)
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLandmarksOrBuilder in interface TimestampedObjectOrBuilder
    • getLandmarksOrBuilderList

      public List<? extends DetectedLandmarkOrBuilder> getLandmarksOrBuilderList()
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLandmarksOrBuilderList in interface TimestampedObjectOrBuilder
    • addLandmarksBuilder

      public DetectedLandmark.Builder addLandmarksBuilder()
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addLandmarksBuilder

      public DetectedLandmark.Builder addLandmarksBuilder(int index)
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLandmarksBuilderList

      public List<DetectedLandmark.Builder> getLandmarksBuilderList()
       Optional. The detected landmarks.
       
      repeated .google.cloud.videointelligence.v1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];