Class Track.Builder

  • All Implemented Interfaces:
    TrackOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Track

    public static final class Track.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Track.Builder>
    implements TrackOrBuilder
     A track of an object instance.
     
    Protobuf type google.cloud.videointelligence.v1.Track
    • 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<Track.Builder>
      • clear

        public Track.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<Track.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<Track.Builder>
      • getDefaultInstanceForType

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

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

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

        public Track.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<Track.Builder>
      • setField

        public Track.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<Track.Builder>
      • clearField

        public Track.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<Track.Builder>
      • clearOneof

        public Track.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<Track.Builder>
      • setRepeatedField

        public Track.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<Track.Builder>
      • addRepeatedField

        public Track.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<Track.Builder>
      • mergeFrom

        public Track.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<Track.Builder>
      • isInitialized

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

        public Track.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<Track.Builder>
        Throws:
        IOException
      • hasSegment

        public boolean hasSegment()
         Video segment of a track.
         
        .google.cloud.videointelligence.v1.VideoSegment segment = 1;
        Specified by:
        hasSegment in interface TrackOrBuilder
        Returns:
        Whether the segment field is set.
      • getSegment

        public VideoSegment getSegment()
         Video segment of a track.
         
        .google.cloud.videointelligence.v1.VideoSegment segment = 1;
        Specified by:
        getSegment in interface TrackOrBuilder
        Returns:
        The segment.
      • setSegment

        public Track.Builder setSegment​(VideoSegment value)
         Video segment of a track.
         
        .google.cloud.videointelligence.v1.VideoSegment segment = 1;
      • setSegment

        public Track.Builder setSegment​(VideoSegment.Builder builderForValue)
         Video segment of a track.
         
        .google.cloud.videointelligence.v1.VideoSegment segment = 1;
      • mergeSegment

        public Track.Builder mergeSegment​(VideoSegment value)
         Video segment of a track.
         
        .google.cloud.videointelligence.v1.VideoSegment segment = 1;
      • clearSegment

        public Track.Builder clearSegment()
         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;
      • 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;
        Specified by:
        getTimestampedObjectsList in interface TrackOrBuilder
      • getTimestampedObjectsCount

        public int getTimestampedObjectsCount()
         The object with timestamp and attributes per frame in the track.
         
        repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
        Specified by:
        getTimestampedObjectsCount in interface TrackOrBuilder
      • getTimestampedObjects

        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;
        Specified by:
        getTimestampedObjects in interface TrackOrBuilder
      • setTimestampedObjects

        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

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

        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

        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

        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

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

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

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

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

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

        public List<DetectedAttribute> getAttributesList()
         Optional. Attributes in the track level.
         
        repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributesList in interface TrackOrBuilder
      • getAttributesCount

        public int getAttributesCount()
         Optional. Attributes in the track level.
         
        repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributesCount in interface TrackOrBuilder
      • getAttributes

        public DetectedAttribute getAttributes​(int index)
         Optional. Attributes in the track level.
         
        repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributes in interface TrackOrBuilder
      • setAttributes

        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

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

        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

        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

        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

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

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

        public Track.Builder clearAttributes()
         Optional. Attributes in the track level.
         
        repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      • removeAttributes

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

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

        public DetectedAttributeOrBuilder getAttributesOrBuilder​(int index)
         Optional. Attributes in the track level.
         
        repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributesOrBuilder in interface TrackOrBuilder
      • 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

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

        public float getConfidence()
         Optional. The confidence score of the tracked object.
         
        float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getConfidence in interface TrackOrBuilder
        Returns:
        The confidence.
      • setConfidence

        public Track.Builder setConfidence​(float value)
         Optional. The confidence score of the tracked object.
         
        float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The confidence to set.
        Returns:
        This builder for chaining.
      • clearConfidence

        public Track.Builder clearConfidence()
         Optional. The confidence score of the tracked object.
         
        float confidence = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Track.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<Track.Builder>
      • mergeUnknownFields

        public final Track.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<Track.Builder>