- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.13
- 2.1.0
- 2.0.27
public static final class LabelAnnotation.Builder extends GeneratedMessageV3.Builder<LabelAnnotation.Builder> implements LabelAnnotationOrBuilder
Label annotation.
Protobuf type google.cloud.videointelligence.v1.LabelAnnotation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LabelAnnotation.BuilderImplements
LabelAnnotationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllCategoryEntities(Iterable<? extends Entity> values)
public LabelAnnotation.Builder addAllCategoryEntities(Iterable<? extends Entity> values)
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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.videointelligence.v1.Entity> |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addAllFrames(Iterable<? extends LabelFrame> values)
public LabelAnnotation.Builder addAllFrames(Iterable<? extends LabelFrame> values)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.videointelligence.v1.LabelFrame> |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addAllSegments(Iterable<? extends LabelSegment> values)
public LabelAnnotation.Builder addAllSegments(Iterable<? extends LabelSegment> values)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.videointelligence.v1.LabelSegment> |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addCategoryEntities(Entity value)
public LabelAnnotation.Builder addCategoryEntities(Entity value)
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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
value |
Entity |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addCategoryEntities(Entity.Builder builderForValue)
public LabelAnnotation.Builder addCategoryEntities(Entity.Builder builderForValue)
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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
Entity.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addCategoryEntities(int index, Entity value)
public LabelAnnotation.Builder addCategoryEntities(int index, Entity value)
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.v1.Entity category_entities = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Entity |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addCategoryEntities(int index, Entity.Builder builderForValue)
public LabelAnnotation.Builder addCategoryEntities(int index, Entity.Builder builderForValue)
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.v1.Entity category_entities = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Entity.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addCategoryEntitiesBuilder()
public Entity.Builder addCategoryEntitiesBuilder()
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.v1.Entity category_entities = 2;
Returns | |
---|---|
Type | Description |
Entity.Builder |
addCategoryEntitiesBuilder(int index)
public Entity.Builder addCategoryEntitiesBuilder(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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Entity.Builder |
addFrames(LabelFrame value)
public LabelAnnotation.Builder addFrames(LabelFrame value)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
value |
LabelFrame |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addFrames(LabelFrame.Builder builderForValue)
public LabelAnnotation.Builder addFrames(LabelFrame.Builder builderForValue)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
LabelFrame.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addFrames(int index, LabelFrame value)
public LabelAnnotation.Builder addFrames(int index, LabelFrame value)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
LabelFrame |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addFrames(int index, LabelFrame.Builder builderForValue)
public LabelAnnotation.Builder addFrames(int index, LabelFrame.Builder builderForValue)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
LabelFrame.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addFramesBuilder()
public LabelFrame.Builder addFramesBuilder()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Returns | |
---|---|
Type | Description |
LabelFrame.Builder |
addFramesBuilder(int index)
public LabelFrame.Builder addFramesBuilder(int index)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelFrame.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LabelAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addSegments(LabelSegment value)
public LabelAnnotation.Builder addSegments(LabelSegment value)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
value |
LabelSegment |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addSegments(LabelSegment.Builder builderForValue)
public LabelAnnotation.Builder addSegments(LabelSegment.Builder builderForValue)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
LabelSegment.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addSegments(int index, LabelSegment value)
public LabelAnnotation.Builder addSegments(int index, LabelSegment value)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
LabelSegment |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addSegments(int index, LabelSegment.Builder builderForValue)
public LabelAnnotation.Builder addSegments(int index, LabelSegment.Builder builderForValue)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
LabelSegment.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
addSegmentsBuilder()
public LabelSegment.Builder addSegmentsBuilder()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Returns | |
---|---|
Type | Description |
LabelSegment.Builder |
addSegmentsBuilder(int index)
public LabelSegment.Builder addSegmentsBuilder(int index)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelSegment.Builder |
build()
public LabelAnnotation build()
Returns | |
---|---|
Type | Description |
LabelAnnotation |
buildPartial()
public LabelAnnotation buildPartial()
Returns | |
---|---|
Type | Description |
LabelAnnotation |
clear()
public LabelAnnotation.Builder clear()
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
clearCategoryEntities()
public LabelAnnotation.Builder clearCategoryEntities()
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.v1.Entity category_entities = 2;
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
clearEntity()
public LabelAnnotation.Builder clearEntity()
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
clearField(Descriptors.FieldDescriptor field)
public LabelAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
clearFrames()
public LabelAnnotation.Builder clearFrames()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public LabelAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
clearSegments()
public LabelAnnotation.Builder clearSegments()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
clearVersion()
public LabelAnnotation.Builder clearVersion()
Feature version.
string version = 5;
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
This builder for chaining. |
clone()
public LabelAnnotation.Builder clone()
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Entity |
getCategoryEntitiesBuilder(int index)
public Entity.Builder getCategoryEntitiesBuilder(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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Entity.Builder |
getCategoryEntitiesBuilderList()
public List<Entity.Builder> getCategoryEntitiesBuilderList()
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.v1.Entity category_entities = 2;
Returns | |
---|---|
Type | Description |
List<Builder> |
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.v1.Entity category_entities = 2;
Returns | |
---|---|
Type | Description |
int |
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.v1.Entity category_entities = 2;
Returns | |
---|---|
Type | Description |
List<Entity> |
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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
EntityOrBuilder |
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.v1.Entity category_entities = 2;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.videointelligence.v1.EntityOrBuilder> |
getDefaultInstanceForType()
public LabelAnnotation getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
LabelAnnotation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEntity()
public Entity getEntity()
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns | |
---|---|
Type | Description |
Entity |
The entity. |
getEntityBuilder()
public Entity.Builder getEntityBuilder()
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns | |
---|---|
Type | Description |
Entity.Builder |
getEntityOrBuilder()
public EntityOrBuilder getEntityOrBuilder()
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns | |
---|---|
Type | Description |
EntityOrBuilder |
getFrames(int index)
public LabelFrame getFrames(int index)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelFrame |
getFramesBuilder(int index)
public LabelFrame.Builder getFramesBuilder(int index)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelFrame.Builder |
getFramesBuilderList()
public List<LabelFrame.Builder> getFramesBuilderList()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Returns | |
---|---|
Type | Description |
List<Builder> |
getFramesCount()
public int getFramesCount()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Returns | |
---|---|
Type | Description |
int |
getFramesList()
public List<LabelFrame> getFramesList()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Returns | |
---|---|
Type | Description |
List<LabelFrame> |
getFramesOrBuilder(int index)
public LabelFrameOrBuilder getFramesOrBuilder(int index)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelFrameOrBuilder |
getFramesOrBuilderList()
public List<? extends LabelFrameOrBuilder> getFramesOrBuilderList()
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.videointelligence.v1.LabelFrameOrBuilder> |
getSegments(int index)
public LabelSegment getSegments(int index)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelSegment |
getSegmentsBuilder(int index)
public LabelSegment.Builder getSegmentsBuilder(int index)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelSegment.Builder |
getSegmentsBuilderList()
public List<LabelSegment.Builder> getSegmentsBuilderList()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Returns | |
---|---|
Type | Description |
List<Builder> |
getSegmentsCount()
public int getSegmentsCount()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Returns | |
---|---|
Type | Description |
int |
getSegmentsList()
public List<LabelSegment> getSegmentsList()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Returns | |
---|---|
Type | Description |
List<LabelSegment> |
getSegmentsOrBuilder(int index)
public LabelSegmentOrBuilder getSegmentsOrBuilder(int index)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelSegmentOrBuilder |
getSegmentsOrBuilderList()
public List<? extends LabelSegmentOrBuilder> getSegmentsOrBuilderList()
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.videointelligence.v1.LabelSegmentOrBuilder> |
getVersion()
public String getVersion()
Feature version.
string version = 5;
Returns | |
---|---|
Type | Description |
String |
The version. |
getVersionBytes()
public ByteString getVersionBytes()
Feature version.
string version = 5;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for version. |
hasEntity()
public boolean hasEntity()
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the entity field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeEntity(Entity value)
public LabelAnnotation.Builder mergeEntity(Entity value)
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Parameter | |
---|---|
Name | Description |
value |
Entity |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
mergeFrom(LabelAnnotation other)
public LabelAnnotation.Builder mergeFrom(LabelAnnotation other)
Parameter | |
---|---|
Name | Description |
other |
LabelAnnotation |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LabelAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public LabelAnnotation.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LabelAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
removeCategoryEntities(int index)
public LabelAnnotation.Builder removeCategoryEntities(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.v1.Entity category_entities = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
removeFrames(int index)
public LabelAnnotation.Builder removeFrames(int index)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
removeSegments(int index)
public LabelAnnotation.Builder removeSegments(int index)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setCategoryEntities(int index, Entity value)
public LabelAnnotation.Builder setCategoryEntities(int index, Entity value)
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.v1.Entity category_entities = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Entity |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setCategoryEntities(int index, Entity.Builder builderForValue)
public LabelAnnotation.Builder setCategoryEntities(int index, Entity.Builder builderForValue)
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.v1.Entity category_entities = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Entity.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setEntity(Entity value)
public LabelAnnotation.Builder setEntity(Entity value)
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Parameter | |
---|---|
Name | Description |
value |
Entity |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setEntity(Entity.Builder builderForValue)
public LabelAnnotation.Builder setEntity(Entity.Builder builderForValue)
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;
Parameter | |
---|---|
Name | Description |
builderForValue |
Entity.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LabelAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setFrames(int index, LabelFrame value)
public LabelAnnotation.Builder setFrames(int index, LabelFrame value)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
LabelFrame |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setFrames(int index, LabelFrame.Builder builderForValue)
public LabelAnnotation.Builder setFrames(int index, LabelFrame.Builder builderForValue)
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
LabelFrame.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LabelAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setSegments(int index, LabelSegment value)
public LabelAnnotation.Builder setSegments(int index, LabelSegment value)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
LabelSegment |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setSegments(int index, LabelSegment.Builder builderForValue)
public LabelAnnotation.Builder setSegments(int index, LabelSegment.Builder builderForValue)
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
LabelSegment.Builder |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LabelAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
setVersion(String value)
public LabelAnnotation.Builder setVersion(String value)
Feature version.
string version = 5;
Parameter | |
---|---|
Name | Description |
value |
String The version to set. |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
This builder for chaining. |
setVersionBytes(ByteString value)
public LabelAnnotation.Builder setVersionBytes(ByteString value)
Feature version.
string version = 5;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for version to set. |
Returns | |
---|---|
Type | Description |
LabelAnnotation.Builder |
This builder for chaining. |