Class LogoRecognitionAnnotation.Builder (2.45.0)

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
Type Description
Descriptor

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
Type Description
LogoRecognitionAnnotation.Builder

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
Type Description
LogoRecognitionAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LogoRecognitionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LogoRecognitionAnnotation.Builder
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
Name Description
value VideoSegment
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
builderForValue VideoSegment.Builder
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
value VideoSegment
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
builderForValue VideoSegment.Builder
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Type Description
VideoSegment.Builder

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
Name Description
index int
Returns
Type Description
VideoSegment.Builder

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
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
builderForValue Track.Builder
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
value Track
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
builderForValue Track.Builder
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Type Description
Track.Builder

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
Name Description
index int
Returns
Type Description
Track.Builder

build()

public LogoRecognitionAnnotation build()
Returns
Type Description
LogoRecognitionAnnotation

buildPartial()

public LogoRecognitionAnnotation buildPartial()
Returns
Type Description
LogoRecognitionAnnotation

clear()

public LogoRecognitionAnnotation.Builder clear()
Returns
Type Description
LogoRecognitionAnnotation.Builder
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
Type Description
LogoRecognitionAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public LogoRecognitionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LogoRecognitionAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LogoRecognitionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LogoRecognitionAnnotation.Builder
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
Type Description
LogoRecognitionAnnotation.Builder

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
Type Description
LogoRecognitionAnnotation.Builder

clone()

public LogoRecognitionAnnotation.Builder clone()
Returns
Type Description
LogoRecognitionAnnotation.Builder
Overrides

getDefaultInstanceForType()

public LogoRecognitionAnnotation getDefaultInstanceForType()
Returns
Type Description
LogoRecognitionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
Entity.Builder

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
Type Description
EntityOrBuilder

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
Name Description
index int
Returns
Type Description
VideoSegment

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
Name Description
index int
Returns
Type Description
VideoSegment.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<VideoSegment>

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
Name Description
index int
Returns
Type Description
VideoSegmentOrBuilder

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
Name Description
index int
Returns
Type Description
Track

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
Name Description
index int
Returns
Type Description
Track.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<Track>

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
Name Description
index int
Returns
Type Description
TrackOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
Name Description
value Entity
Returns
Type Description
LogoRecognitionAnnotation.Builder

mergeFrom(LogoRecognitionAnnotation other)

public LogoRecognitionAnnotation.Builder mergeFrom(LogoRecognitionAnnotation other)
Parameter
Name Description
other LogoRecognitionAnnotation
Returns
Type Description
LogoRecognitionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LogoRecognitionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogoRecognitionAnnotation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LogoRecognitionAnnotation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LogoRecognitionAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LogoRecognitionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LogoRecognitionAnnotation.Builder
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
Name Description
index int
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
value Entity
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
builderForValue Entity.Builder
Returns
Type Description
LogoRecognitionAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LogoRecognitionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LogoRecognitionAnnotation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LogoRecognitionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LogoRecognitionAnnotation.Builder
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
Name Description
index int
value VideoSegment
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
builderForValue VideoSegment.Builder
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
value Track
Returns
Type Description
LogoRecognitionAnnotation.Builder

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
Name Description
index int
builderForValue Track.Builder
Returns
Type Description
LogoRecognitionAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LogoRecognitionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LogoRecognitionAnnotation.Builder
Overrides