Class Track.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Track.Builder>
com.google.cloud.videointelligence.v1.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.GeneratedMessage.Builder<Track.Builder> implements TrackOrBuilder
 A track of an object instance.
 
Protobuf type google.cloud.videointelligence.v1.Track
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Track.Builder mergeFrom(Track other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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;
    • getSegmentOrBuilder

      public VideoSegmentOrBuilder getSegmentOrBuilder()
       Video segment of a track.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
      Specified by:
      getSegmentOrBuilder in interface TrackOrBuilder
    • 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;
    • getTimestampedObjectsOrBuilder

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

      public List<? extends TimestampedObjectOrBuilder> getTimestampedObjectsOrBuilderList()
       The object with timestamp and attributes per frame in the track.
       
      repeated .google.cloud.videointelligence.v1.TimestampedObject timestamped_objects = 2;
      Specified by:
      getTimestampedObjectsOrBuilderList in interface TrackOrBuilder
    • 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
    • getAttributesOrBuilderList

      public List<? extends DetectedAttributeOrBuilder> getAttributesOrBuilderList()
       Optional. Attributes in the track level.
       
      repeated .google.cloud.videointelligence.v1.DetectedAttribute attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributesOrBuilderList 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.