Class LogoRecognitionAnnotation (2.2.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
TypeDescription
int

SEGMENTS_FIELD_NUMBER

public static final int SEGMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

TRACKS_FIELD_NUMBER

public static final int TRACKS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LogoRecognitionAnnotation getDefaultInstance()
Returns
TypeDescription
LogoRecognitionAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LogoRecognitionAnnotation.Builder newBuilder()
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

newBuilder(LogoRecognitionAnnotation prototype)

public static LogoRecognitionAnnotation.Builder newBuilder(LogoRecognitionAnnotation prototype)
Parameter
NameDescription
prototypeLogoRecognitionAnnotation
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static LogoRecognitionAnnotation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LogoRecognitionAnnotation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LogoRecognitionAnnotation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LogoRecognitionAnnotation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LogoRecognitionAnnotation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LogoRecognitionAnnotation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LogoRecognitionAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogoRecognitionAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LogoRecognitionAnnotation> parser()
Returns
TypeDescription
Parser<LogoRecognitionAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LogoRecognitionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EntityOrBuilder

getParserForType()

public Parser<LogoRecognitionAnnotation> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.VideoSegment segments = 3;

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.Track tracks = 2;

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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
TypeDescription
boolean

Whether the entity field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LogoRecognitionAnnotation.Builder newBuilderForType()
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LogoRecognitionAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LogoRecognitionAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LogoRecognitionAnnotation.Builder toBuilder()
Returns
TypeDescription
LogoRecognitionAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException