public static final class LogoRecognitionAnnotation.Builder extends GeneratedMessageV3.Builder<LogoRecognitionAnnotation.Builder> implements LogoRecognitionAnnotationOrBuilder
Annotation corresponding to one detected, tracked and recognized logo class.
Protobuf type google.cloud.videointelligence.v1.LogoRecognitionAnnotation
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllSegments(Iterable<? extends VideoSegment> values)
public LogoRecognitionAnnotation.Builder addAllSegments(Iterable<? extends VideoSegment> values)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.videointelligence.v1.VideoSegment>
|
Returns
addAllTracks(Iterable<? extends Track> values)
public LogoRecognitionAnnotation.Builder addAllTracks(Iterable<? extends Track> values)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.videointelligence.v1.Track>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LogoRecognitionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addSegments(VideoSegment value)
public LogoRecognitionAnnotation.Builder addSegments(VideoSegment value)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Returns
addSegments(VideoSegment.Builder builderForValue)
public LogoRecognitionAnnotation.Builder addSegments(VideoSegment.Builder builderForValue)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Returns
addSegments(int index, VideoSegment value)
public LogoRecognitionAnnotation.Builder addSegments(int index, VideoSegment value)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameters
Returns
addSegments(int index, VideoSegment.Builder builderForValue)
public LogoRecognitionAnnotation.Builder addSegments(int index, VideoSegment.Builder builderForValue)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameters
Returns
addSegmentsBuilder()
public VideoSegment.Builder addSegmentsBuilder()
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Returns
addSegmentsBuilder(int index)
public VideoSegment.Builder addSegmentsBuilder(int index)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Returns
addTracks(Track value)
public LogoRecognitionAnnotation.Builder addTracks(Track value)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Name | Description |
value | Track
|
Returns
addTracks(Track.Builder builderForValue)
public LogoRecognitionAnnotation.Builder addTracks(Track.Builder builderForValue)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Returns
addTracks(int index, Track value)
public LogoRecognitionAnnotation.Builder addTracks(int index, Track value)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameters
Returns
addTracks(int index, Track.Builder builderForValue)
public LogoRecognitionAnnotation.Builder addTracks(int index, Track.Builder builderForValue)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameters
Returns
addTracksBuilder()
public Track.Builder addTracksBuilder()
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Returns
addTracksBuilder(int index)
public Track.Builder addTracksBuilder(int index)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Returns
build()
public LogoRecognitionAnnotation build()
Returns
buildPartial()
public LogoRecognitionAnnotation buildPartial()
Returns
clear()
public LogoRecognitionAnnotation.Builder clear()
Returns
Overrides
clearEntity()
public LogoRecognitionAnnotation.Builder clearEntity()
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public LogoRecognitionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LogoRecognitionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSegments()
public LogoRecognitionAnnotation.Builder clearSegments()
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Returns
clearTracks()
public LogoRecognitionAnnotation.Builder clearTracks()
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Returns
clone()
public LogoRecognitionAnnotation.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LogoRecognitionAnnotation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEntity()
public Entity getEntity()
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns
Type | Description |
Entity | The entity.
|
getEntityBuilder()
public Entity.Builder getEntityBuilder()
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns
getEntityOrBuilder()
public EntityOrBuilder getEntityOrBuilder()
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns
getSegments(int index)
public VideoSegment getSegments(int index)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Returns
getSegmentsBuilder(int index)
public VideoSegment.Builder getSegmentsBuilder(int index)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Returns
getSegmentsBuilderList()
public List<VideoSegment.Builder> getSegmentsBuilderList()
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Returns
getSegmentsCount()
public int getSegmentsCount()
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Returns
getSegmentsList()
public List<VideoSegment> getSegmentsList()
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Returns
getSegmentsOrBuilder(int index)
public VideoSegmentOrBuilder getSegmentsOrBuilder(int index)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Returns
getSegmentsOrBuilderList()
public List<? extends VideoSegmentOrBuilder> getSegmentsOrBuilderList()
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1.VideoSegmentOrBuilder> | |
getTracks(int index)
public Track getTracks(int index)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Returns
getTracksBuilder(int index)
public Track.Builder getTracksBuilder(int index)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Returns
getTracksBuilderList()
public List<Track.Builder> getTracksBuilderList()
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Returns
getTracksCount()
public int getTracksCount()
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Returns
getTracksList()
public List<Track> getTracksList()
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Returns
getTracksOrBuilder(int index)
public TrackOrBuilder getTracksOrBuilder(int index)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Returns
getTracksOrBuilderList()
public List<? extends TrackOrBuilder> getTracksOrBuilderList()
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1.TrackOrBuilder> | |
hasEntity()
public boolean hasEntity()
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns
Type | Description |
boolean | Whether the entity field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeEntity(Entity value)
public LogoRecognitionAnnotation.Builder mergeEntity(Entity value)
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Parameter
Returns
mergeFrom(LogoRecognitionAnnotation other)
public LogoRecognitionAnnotation.Builder mergeFrom(LogoRecognitionAnnotation other)
Parameter
Returns
public LogoRecognitionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LogoRecognitionAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LogoRecognitionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSegments(int index)
public LogoRecognitionAnnotation.Builder removeSegments(int index)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameter
Returns
removeTracks(int index)
public LogoRecognitionAnnotation.Builder removeTracks(int index)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameter
Returns
setEntity(Entity value)
public LogoRecognitionAnnotation.Builder setEntity(Entity value)
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Parameter
Returns
setEntity(Entity.Builder builderForValue)
public LogoRecognitionAnnotation.Builder setEntity(Entity.Builder builderForValue)
Entity category information to specify the logo class that all the logo
tracks within this LogoRecognitionAnnotation are recognized as.
.google.cloud.videointelligence.v1.Entity entity = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LogoRecognitionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LogoRecognitionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSegments(int index, VideoSegment value)
public LogoRecognitionAnnotation.Builder setSegments(int index, VideoSegment value)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameters
Returns
setSegments(int index, VideoSegment.Builder builderForValue)
public LogoRecognitionAnnotation.Builder setSegments(int index, VideoSegment.Builder builderForValue)
All video segments where the recognized logo appears. There might be
multiple instances of the same logo class appearing in one VideoSegment.
repeated .google.cloud.videointelligence.v1.VideoSegment segments = 3;
Parameters
Returns
setTracks(int index, Track value)
public LogoRecognitionAnnotation.Builder setTracks(int index, Track value)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameters
Returns
setTracks(int index, Track.Builder builderForValue)
public LogoRecognitionAnnotation.Builder setTracks(int index, Track.Builder builderForValue)
All logo tracks where the recognized logo appears. Each track corresponds
to one logo instance appearing in consecutive frames.
repeated .google.cloud.videointelligence.v1.Track tracks = 2;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final LogoRecognitionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides