public final class LabelAnnotation extends GeneratedMessageV3 implements LabelAnnotationOrBuilder
Label annotation.
Protobuf type google.cloud.videointelligence.v1p3beta1.LabelAnnotation
Static Fields
CATEGORY_ENTITIES_FIELD_NUMBER
public static final int CATEGORY_ENTITIES_FIELD_NUMBER
Field Value
ENTITY_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
Field Value
FRAMES_FIELD_NUMBER
public static final int FRAMES_FIELD_NUMBER
Field Value
SEGMENTS_FIELD_NUMBER
public static final int SEGMENTS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LabelAnnotation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LabelAnnotation.Builder newBuilder()
Returns
newBuilder(LabelAnnotation prototype)
public static LabelAnnotation.Builder newBuilder(LabelAnnotation prototype)
Parameter
Returns
public static LabelAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LabelAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LabelAnnotation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LabelAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LabelAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LabelAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LabelAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LabelAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LabelAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LabelAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LabelAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LabelAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LabelAnnotation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCategoryEntities(int index)
public Entity getCategoryEntities(int index)
Common categories for the detected entity.
For example, 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.v1p3beta1.Entity category_entities = 2;
Parameter
Returns
getCategoryEntitiesCount()
public int getCategoryEntitiesCount()
Common categories for the detected entity.
For example, 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.v1p3beta1.Entity category_entities = 2;
Returns
getCategoryEntitiesList()
public List<Entity> getCategoryEntitiesList()
Common categories for the detected entity.
For example, 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.v1p3beta1.Entity category_entities = 2;
Returns
getCategoryEntitiesOrBuilder(int index)
public EntityOrBuilder getCategoryEntitiesOrBuilder(int index)
Common categories for the detected entity.
For example, 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.v1p3beta1.Entity category_entities = 2;
Parameter
Returns
getCategoryEntitiesOrBuilderList()
public List<? extends EntityOrBuilder> getCategoryEntitiesOrBuilderList()
Common categories for the detected entity.
For example, 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.v1p3beta1.Entity category_entities = 2;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1p3beta1.EntityOrBuilder> | |
getDefaultInstanceForType()
public LabelAnnotation getDefaultInstanceForType()
Returns
getEntity()
public Entity getEntity()
Detected entity.
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
Returns
Type | Description |
Entity | The entity.
|
getEntityOrBuilder()
public EntityOrBuilder getEntityOrBuilder()
Detected entity.
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
Returns
getFrames(int index)
public LabelFrame getFrames(int index)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
Parameter
Returns
getFramesCount()
public int getFramesCount()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
Returns
getFramesList()
public List<LabelFrame> getFramesList()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
Returns
getFramesOrBuilder(int index)
public LabelFrameOrBuilder getFramesOrBuilder(int index)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
Parameter
Returns
getFramesOrBuilderList()
public List<? extends LabelFrameOrBuilder> getFramesOrBuilderList()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelFrame frames = 4;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1p3beta1.LabelFrameOrBuilder> | |
getParserForType()
public Parser<LabelAnnotation> getParserForType()
Returns
Overrides
getSegments(int index)
public LabelSegment getSegments(int index)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
Parameter
Returns
getSegmentsCount()
public int getSegmentsCount()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
Returns
getSegmentsList()
public List<LabelSegment> getSegmentsList()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
Returns
getSegmentsOrBuilder(int index)
public LabelSegmentOrBuilder getSegmentsOrBuilder(int index)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
Parameter
Returns
getSegmentsOrBuilderList()
public List<? extends LabelSegmentOrBuilder> getSegmentsOrBuilderList()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1p3beta1.LabelSegment segments = 3;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1p3beta1.LabelSegmentOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasEntity()
public boolean hasEntity()
Detected entity.
.google.cloud.videointelligence.v1p3beta1.Entity entity = 1;
Returns
Type | Description |
boolean | Whether the entity field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LabelAnnotation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LabelAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LabelAnnotation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions