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