Class LogoRecognitionAnnotation.Builder (2.27.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1.VideoSegment>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1.Track>
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LogoRecognitionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueVideoSegment
Returns
TypeDescription
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
NameDescription
builderForValueVideoSegment.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVideoSegment
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVideoSegment.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTrack
Returns
TypeDescription
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
NameDescription
builderForValueTrack.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTrack
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTrack.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Track.Builder

build()

public LogoRecognitionAnnotation build()
Returns
TypeDescription
LogoRecognitionAnnotation

buildPartial()

public LogoRecognitionAnnotation buildPartial()
Returns
TypeDescription
LogoRecognitionAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

public LogoRecognitionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LogoRecognitionAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LogoRecognitionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LogoRecognitionAnnotation.Builder

clone()

public LogoRecognitionAnnotation.Builder clone()
Returns
TypeDescription
LogoRecognitionAnnotation.Builder
Overrides

getDefaultInstanceForType()

public LogoRecognitionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
LogoRecognitionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the entity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueEntity
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

mergeFrom(LogoRecognitionAnnotation other)

public LogoRecognitionAnnotation.Builder mergeFrom(LogoRecognitionAnnotation other)
Parameter
NameDescription
otherLogoRecognitionAnnotation
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LogoRecognitionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogoRecognitionAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LogoRecognitionAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LogoRecognitionAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LogoRecognitionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueEntity
Returns
TypeDescription
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
NameDescription
builderForValueEntity.Builder
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LogoRecognitionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LogoRecognitionAnnotation.Builder
Overrides

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

public LogoRecognitionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueVideoSegment
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVideoSegment.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTrack
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTrack.Builder
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LogoRecognitionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LogoRecognitionAnnotation.Builder
Overrides