Class 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.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.v1p3beta1.TimestampedObject
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public TimestampedObject.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.Builder>
      • setField

        public TimestampedObject.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.Builder>
      • clearField

        public TimestampedObject.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.Builder>
      • clearOneof

        public TimestampedObject.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.Builder>
      • setRepeatedField

        public TimestampedObject.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.Builder>
      • addRepeatedField

        public TimestampedObject.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
      • clearNormalizedBoundingBox

        public TimestampedObject.Builder clearNormalizedBoundingBox()
         Normalized Bounding box in a frame, where the object is located.
         
        .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
      • getNormalizedBoundingBoxBuilder

        public NormalizedBoundingBox.Builder getNormalizedBoundingBoxBuilder()
         Normalized Bounding box in a frame, where the object is located.
         
        .google.cloud.videointelligence.v1p3beta1.NormalizedBoundingBox normalized_bounding_box = 1;
      • 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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      • addAttributesBuilder

        public DetectedAttribute.Builder addAttributesBuilder()
         Optional. The attributes of the object in the bounding box.
         
        repeated .google.cloud.videointelligence.v1p3beta1.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.v1p3beta1.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.v1p3beta1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getLandmarksCount

        public int getLandmarksCount()
         Optional. The detected landmarks.
         
        repeated .google.cloud.videointelligence.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      • addLandmarks

        public TimestampedObject.Builder addLandmarks​(DetectedLandmark value)
         Optional. The detected landmarks.
         
        repeated .google.cloud.videointelligence.v1p3beta1.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.v1p3beta1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      • addLandmarks

        public TimestampedObject.Builder addLandmarks​(DetectedLandmark.Builder builderForValue)
         Optional. The detected landmarks.
         
        repeated .google.cloud.videointelligence.v1p3beta1.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.v1p3beta1.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.v1p3beta1.DetectedLandmark landmarks = 4 [(.google.api.field_behavior) = OPTIONAL];
      • clearLandmarks

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

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

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

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

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

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

        public final TimestampedObject.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.Builder>
      • mergeUnknownFields

        public final TimestampedObject.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimestampedObject.Builder>