Class LogoRecognitionAnnotation (2.48.0)

public final class LogoRecognitionAnnotation extends GeneratedMessageV3 implements LogoRecognitionAnnotationOrBuilder

Annotation corresponding to one detected, tracked and recognized logo class.

Protobuf type google.cloud.videointelligence.v1p3beta1.LogoRecognitionAnnotation

Static Fields

ENTITY_FIELD_NUMBER

public static final int ENTITY_FIELD_NUMBER
Field Value
Type Description
int

SEGMENTS_FIELD_NUMBER

public static final int SEGMENTS_FIELD_NUMBER
Field Value
Type Description
int

TRACKS_FIELD_NUMBER

public static final int TRACKS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LogoRecognitionAnnotation getDefaultInstance()
Returns
Type Description
LogoRecognitionAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LogoRecognitionAnnotation.Builder newBuilder()
Returns
Type Description
LogoRecognitionAnnotation.Builder

newBuilder(LogoRecognitionAnnotation prototype)

public static LogoRecognitionAnnotation.Builder newBuilder(LogoRecognitionAnnotation prototype)
Parameter
Name Description
prototype LogoRecognitionAnnotation
Returns
Type Description
LogoRecognitionAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static LogoRecognitionAnnotation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LogoRecognitionAnnotation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LogoRecognitionAnnotation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LogoRecognitionAnnotation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LogoRecognitionAnnotation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LogoRecognitionAnnotation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LogoRecognitionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LogoRecognitionAnnotation> parser()
Returns
Type Description
Parser<LogoRecognitionAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LogoRecognitionAnnotation getDefaultInstanceForType()
Returns
Type Description
LogoRecognitionAnnotation

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.v1p3beta1.Entity entity = 1;

Returns
Type Description
Entity

The entity.

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.v1p3beta1.Entity entity = 1;

Returns
Type Description
EntityOrBuilder

getParserForType()

public Parser<LogoRecognitionAnnotation> getParserForType()
Returns
Type Description
Parser<LogoRecognitionAnnotation>
Overrides

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.v1p3beta1.VideoSegment segments = 3;

Parameter
Name Description
index int
Returns
Type Description
VideoSegment

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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.VideoSegment segments = 3;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.VideoSegmentOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.v1p3beta1.Track tracks = 2;

Parameter
Name Description
index int
Returns
Type Description
Track

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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.Track tracks = 2;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.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.v1p3beta1.Entity entity = 1;

Returns
Type Description
boolean

Whether the entity field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LogoRecognitionAnnotation.Builder newBuilderForType()
Returns
Type Description
LogoRecognitionAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LogoRecognitionAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LogoRecognitionAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LogoRecognitionAnnotation.Builder toBuilder()
Returns
Type Description
LogoRecognitionAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException