Class LabelAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LabelAnnotation.Builder>
com.google.cloud.videointelligence.v1.LabelAnnotation.Builder
- All Implemented Interfaces:
LabelAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LabelAnnotation
public static final class LabelAnnotation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LabelAnnotation.Builder>
implements LabelAnnotationOrBuilder
Label annotation.Protobuf type
google.cloud.videointelligence.v1.LabelAnnotation-
Method Summary
Modifier and TypeMethodDescriptionaddAllCategoryEntities(Iterable<? extends Entity> values) Common categories for the detected entity.addAllFrames(Iterable<? extends LabelFrame> values) All video frames where a label was detected.addAllSegments(Iterable<? extends LabelSegment> values) All video segments where a label was detected.addCategoryEntities(int index, Entity value) Common categories for the detected entity.addCategoryEntities(int index, Entity.Builder builderForValue) Common categories for the detected entity.addCategoryEntities(Entity value) Common categories for the detected entity.addCategoryEntities(Entity.Builder builderForValue) Common categories for the detected entity.Common categories for the detected entity.addCategoryEntitiesBuilder(int index) Common categories for the detected entity.addFrames(int index, LabelFrame value) All video frames where a label was detected.addFrames(int index, LabelFrame.Builder builderForValue) All video frames where a label was detected.addFrames(LabelFrame value) All video frames where a label was detected.addFrames(LabelFrame.Builder builderForValue) All video frames where a label was detected.All video frames where a label was detected.addFramesBuilder(int index) All video frames where a label was detected.addSegments(int index, LabelSegment value) All video segments where a label was detected.addSegments(int index, LabelSegment.Builder builderForValue) All video segments where a label was detected.addSegments(LabelSegment value) All video segments where a label was detected.addSegments(LabelSegment.Builder builderForValue) All video segments where a label was detected.All video segments where a label was detected.addSegmentsBuilder(int index) All video segments where a label was detected.build()clear()Common categories for the detected entity.Detected entity.All video frames where a label was detected.All video segments where a label was detected.Feature version.getCategoryEntities(int index) Common categories for the detected entity.getCategoryEntitiesBuilder(int index) Common categories for the detected entity.Common categories for the detected entity.intCommon categories for the detected entity.Common categories for the detected entity.getCategoryEntitiesOrBuilder(int index) Common categories for the detected entity.List<? extends EntityOrBuilder>Common categories for the detected entity.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDetected entity.Detected entity.Detected entity.getFrames(int index) All video frames where a label was detected.getFramesBuilder(int index) All video frames where a label was detected.All video frames where a label was detected.intAll video frames where a label was detected.All video frames where a label was detected.getFramesOrBuilder(int index) All video frames where a label was detected.List<? extends LabelFrameOrBuilder>All video frames where a label was detected.getSegments(int index) All video segments where a label was detected.getSegmentsBuilder(int index) All video segments where a label was detected.All video segments where a label was detected.intAll video segments where a label was detected.All video segments where a label was detected.getSegmentsOrBuilder(int index) All video segments where a label was detected.List<? extends LabelSegmentOrBuilder>All video segments where a label was detected.Feature version.com.google.protobuf.ByteStringFeature version.booleanDetected entity.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEntity(Entity value) Detected entity.mergeFrom(LabelAnnotation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeCategoryEntities(int index) Common categories for the detected entity.removeFrames(int index) All video frames where a label was detected.removeSegments(int index) All video segments where a label was detected.setCategoryEntities(int index, Entity value) Common categories for the detected entity.setCategoryEntities(int index, Entity.Builder builderForValue) Common categories for the detected entity.Detected entity.setEntity(Entity.Builder builderForValue) Detected entity.setFrames(int index, LabelFrame value) All video frames where a label was detected.setFrames(int index, LabelFrame.Builder builderForValue) All video frames where a label was detected.setSegments(int index, LabelSegment value) All video segments where a label was detected.setSegments(int index, LabelSegment.Builder builderForValue) All video segments where a label was detected.setVersion(String value) Feature version.setVersionBytes(com.google.protobuf.ByteString value) Feature version.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LabelAnnotation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LabelAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LabelAnnotation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LabelAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LabelAnnotation.Builder>
-
mergeFrom
public LabelAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LabelAnnotation.Builder>- Throws:
IOException
-
hasEntity
public boolean hasEntity()Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;- Specified by:
hasEntityin interfaceLabelAnnotationOrBuilder- Returns:
- Whether the entity field is set.
-
getEntity
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;- Specified by:
getEntityin interfaceLabelAnnotationOrBuilder- Returns:
- The entity.
-
setEntity
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1; -
setEntity
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1; -
mergeEntity
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1; -
clearEntity
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1; -
getEntityBuilder
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1; -
getEntityOrBuilder
Detected entity.
.google.cloud.videointelligence.v1.Entity entity = 1;- Specified by:
getEntityOrBuilderin interfaceLabelAnnotationOrBuilder
-
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;- Specified by:
getCategoryEntitiesListin interfaceLabelAnnotationOrBuilder
-
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;- Specified by:
getCategoryEntitiesCountin interfaceLabelAnnotationOrBuilder
-
getCategoryEntities
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;- Specified by:
getCategoryEntitiesin interfaceLabelAnnotationOrBuilder
-
setCategoryEntities
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; -
setCategoryEntities
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; -
addCategoryEntities
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; -
addCategoryEntities
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; -
addCategoryEntities
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; -
addCategoryEntities
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; -
addAllCategoryEntities
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; -
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; -
removeCategoryEntities
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; -
getCategoryEntitiesBuilder
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; -
getCategoryEntitiesOrBuilder
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;- Specified by:
getCategoryEntitiesOrBuilderin interfaceLabelAnnotationOrBuilder
-
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;- Specified by:
getCategoryEntitiesOrBuilderListin interfaceLabelAnnotationOrBuilder
-
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; -
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; -
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; -
getSegmentsList
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;- Specified by:
getSegmentsListin interfaceLabelAnnotationOrBuilder
-
getSegmentsCount
public int getSegmentsCount()All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;- Specified by:
getSegmentsCountin interfaceLabelAnnotationOrBuilder
-
getSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;- Specified by:
getSegmentsin interfaceLabelAnnotationOrBuilder
-
setSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
setSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
addSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
addSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
addSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
addSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
addAllSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
clearSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
removeSegments
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
getSegmentsBuilder
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
getSegmentsOrBuilder
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;- Specified by:
getSegmentsOrBuilderin interfaceLabelAnnotationOrBuilder
-
getSegmentsOrBuilderList
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3;- Specified by:
getSegmentsOrBuilderListin interfaceLabelAnnotationOrBuilder
-
addSegmentsBuilder
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
addSegmentsBuilder
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
getSegmentsBuilderList
All video segments where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelSegment segments = 3; -
getFramesList
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;- Specified by:
getFramesListin interfaceLabelAnnotationOrBuilder
-
getFramesCount
public int getFramesCount()All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;- Specified by:
getFramesCountin interfaceLabelAnnotationOrBuilder
-
getFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;- Specified by:
getFramesin interfaceLabelAnnotationOrBuilder
-
setFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
setFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
addFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
addFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
addFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
addFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
addAllFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
clearFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
removeFrames
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
getFramesBuilder
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
getFramesOrBuilder
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;- Specified by:
getFramesOrBuilderin interfaceLabelAnnotationOrBuilder
-
getFramesOrBuilderList
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4;- Specified by:
getFramesOrBuilderListin interfaceLabelAnnotationOrBuilder
-
addFramesBuilder
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
addFramesBuilder
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
getFramesBuilderList
All video frames where a label was detected.
repeated .google.cloud.videointelligence.v1.LabelFrame frames = 4; -
getVersion
Feature version.
string version = 5;- Specified by:
getVersionin interfaceLabelAnnotationOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Feature version.
string version = 5;- Specified by:
getVersionBytesin interfaceLabelAnnotationOrBuilder- Returns:
- The bytes for version.
-
setVersion
Feature version.
string version = 5;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Feature version.
string version = 5;- Returns:
- This builder for chaining.
-
setVersionBytes
Feature version.
string version = 5;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-