Class LabelAnnotation (2.12.0)

public final class LabelAnnotation extends GeneratedMessageV3 implements LabelAnnotationOrBuilder

Label annotation.

Protobuf type google.cloud.videointelligence.v1beta2.LabelAnnotation

Static Fields

CATEGORY_ENTITIES_FIELD_NUMBER

public static final int CATEGORY_ENTITIES_FIELD_NUMBER
Field Value
TypeDescription
int

ENTITY_FIELD_NUMBER

public static final int ENTITY_FIELD_NUMBER
Field Value
TypeDescription
int

FRAMES_FIELD_NUMBER

public static final int FRAMES_FIELD_NUMBER
Field Value
TypeDescription
int

SEGMENTS_FIELD_NUMBER

public static final int SEGMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LabelAnnotation getDefaultInstance()
Returns
TypeDescription
LabelAnnotation

getDescriptor()

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

newBuilder()

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

newBuilder(LabelAnnotation prototype)

public static LabelAnnotation.Builder newBuilder(LabelAnnotation prototype)
Parameter
NameDescription
prototypeLabelAnnotation
Returns
TypeDescription
LabelAnnotation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCategoryEntities(int index)

public Entity getCategoryEntities(int index)

Common categories for the detected entity. E.g. when the label is Terrier the category is likely dog. And in some cases there might be more than one categories e.g. Terrier could also be a pet.

repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Entity

getCategoryEntitiesCount()

public int getCategoryEntitiesCount()

Common categories for the detected entity. E.g. when the label is Terrier the category is likely dog. And in some cases there might be more than one categories e.g. Terrier could also be a pet.

repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;

Returns
TypeDescription
int

getCategoryEntitiesList()

public List<Entity> getCategoryEntitiesList()

Common categories for the detected entity. E.g. when the label is Terrier the category is likely dog. And in some cases there might be more than one categories e.g. Terrier could also be a pet.

repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;

Returns
TypeDescription
List<Entity>

getCategoryEntitiesOrBuilder(int index)

public EntityOrBuilder getCategoryEntitiesOrBuilder(int index)

Common categories for the detected entity. E.g. when the label is Terrier the category is likely dog. And in some cases there might be more than one categories e.g. Terrier could also be a pet.

repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityOrBuilder

getCategoryEntitiesOrBuilderList()

public List<? extends EntityOrBuilder> getCategoryEntitiesOrBuilderList()

Common categories for the detected entity. E.g. when the label is Terrier the category is likely dog. And in some cases there might be more than one categories e.g. Terrier could also be a pet.

repeated .google.cloud.videointelligence.v1beta2.Entity category_entities = 2;

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.EntityOrBuilder>

getDefaultInstanceForType()

public LabelAnnotation getDefaultInstanceForType()
Returns
TypeDescription
LabelAnnotation

getEntity()

public Entity getEntity()

Detected entity.

.google.cloud.videointelligence.v1beta2.Entity entity = 1;

Returns
TypeDescription
Entity

The entity.

getEntityOrBuilder()

public EntityOrBuilder getEntityOrBuilder()

Detected entity.

.google.cloud.videointelligence.v1beta2.Entity entity = 1;

Returns
TypeDescription
EntityOrBuilder

getFrames(int index)

public LabelFrame getFrames(int index)

All video frames where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelFrame frames = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelFrame

getFramesCount()

public int getFramesCount()

All video frames where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelFrame frames = 4;

Returns
TypeDescription
int

getFramesList()

public List<LabelFrame> getFramesList()

All video frames where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelFrame frames = 4;

Returns
TypeDescription
List<LabelFrame>

getFramesOrBuilder(int index)

public LabelFrameOrBuilder getFramesOrBuilder(int index)

All video frames where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelFrame frames = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelFrameOrBuilder

getFramesOrBuilderList()

public List<? extends LabelFrameOrBuilder> getFramesOrBuilderList()

All video frames where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelFrame frames = 4;

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.LabelFrameOrBuilder>

getParserForType()

public Parser<LabelAnnotation> getParserForType()
Returns
TypeDescription
Parser<LabelAnnotation>
Overrides

getSegments(int index)

public LabelSegment getSegments(int index)

All video segments where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelSegment segments = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelSegment

getSegmentsCount()

public int getSegmentsCount()

All video segments where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelSegment segments = 3;

Returns
TypeDescription
int

getSegmentsList()

public List<LabelSegment> getSegmentsList()

All video segments where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelSegment segments = 3;

Returns
TypeDescription
List<LabelSegment>

getSegmentsOrBuilder(int index)

public LabelSegmentOrBuilder getSegmentsOrBuilder(int index)

All video segments where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelSegment segments = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelSegmentOrBuilder

getSegmentsOrBuilderList()

public List<? extends LabelSegmentOrBuilder> getSegmentsOrBuilderList()

All video segments where a label was detected.

repeated .google.cloud.videointelligence.v1beta2.LabelSegment segments = 3;

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.LabelSegmentOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasEntity()

public boolean hasEntity()

Detected entity.

.google.cloud.videointelligence.v1beta2.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 LabelAnnotation.Builder newBuilderForType()
Returns
TypeDescription
LabelAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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