Class VideoContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VideoContext.Builder>
com.google.cloud.videointelligence.v1beta2.VideoContext.Builder
- All Implemented Interfaces:
VideoContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VideoContext
public static final class VideoContext.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VideoContext.Builder>
implements VideoContextOrBuilder
Video context and/or feature-specific parameters.Protobuf type
google.cloud.videointelligence.v1beta2.VideoContext-
Method Summary
Modifier and TypeMethodDescriptionaddAllSegments(Iterable<? extends VideoSegment> values) Video segments to annotate.addSegments(int index, VideoSegment value) Video segments to annotate.addSegments(int index, VideoSegment.Builder builderForValue) Video segments to annotate.addSegments(VideoSegment value) Video segments to annotate.addSegments(VideoSegment.Builder builderForValue) Video segments to annotate.Video segments to annotate.addSegmentsBuilder(int index) Video segments to annotate.build()clear()Config for EXPLICIT_CONTENT_DETECTION.Config for FACE_DETECTION.Config for LABEL_DETECTION.Video segments to annotate.Config for SHOT_CHANGE_DETECTION.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorConfig for EXPLICIT_CONTENT_DETECTION.Config for EXPLICIT_CONTENT_DETECTION.Config for EXPLICIT_CONTENT_DETECTION.Config for FACE_DETECTION.Config for FACE_DETECTION.Config for FACE_DETECTION.Config for LABEL_DETECTION.Config for LABEL_DETECTION.Config for LABEL_DETECTION.getSegments(int index) Video segments to annotate.getSegmentsBuilder(int index) Video segments to annotate.Video segments to annotate.intVideo segments to annotate.Video segments to annotate.getSegmentsOrBuilder(int index) Video segments to annotate.List<? extends VideoSegmentOrBuilder>Video segments to annotate.Config for SHOT_CHANGE_DETECTION.Config for SHOT_CHANGE_DETECTION.Config for SHOT_CHANGE_DETECTION.booleanConfig for EXPLICIT_CONTENT_DETECTION.booleanConfig for FACE_DETECTION.booleanConfig for LABEL_DETECTION.booleanConfig for SHOT_CHANGE_DETECTION.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanConfig for EXPLICIT_CONTENT_DETECTION.Config for FACE_DETECTION.mergeFrom(VideoContext other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Config for LABEL_DETECTION.Config for SHOT_CHANGE_DETECTION.removeSegments(int index) Video segments to annotate.Config for EXPLICIT_CONTENT_DETECTION.setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue) Config for EXPLICIT_CONTENT_DETECTION.Config for FACE_DETECTION.setFaceDetectionConfig(FaceDetectionConfig.Builder builderForValue) Config for FACE_DETECTION.Config for LABEL_DETECTION.setLabelDetectionConfig(LabelDetectionConfig.Builder builderForValue) Config for LABEL_DETECTION.setSegments(int index, VideoSegment value) Video segments to annotate.setSegments(int index, VideoSegment.Builder builderForValue) Video segments to annotate.Config for SHOT_CHANGE_DETECTION.setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue) Config for SHOT_CHANGE_DETECTION.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<VideoContext.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<VideoContext.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<VideoContext.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<VideoContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VideoContext.Builder>
-
mergeFrom
public VideoContext.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<VideoContext.Builder>- Throws:
IOException
-
getSegmentsList
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;- Specified by:
getSegmentsListin interfaceVideoContextOrBuilder
-
getSegmentsCount
public int getSegmentsCount()Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;- Specified by:
getSegmentsCountin interfaceVideoContextOrBuilder
-
getSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;- Specified by:
getSegmentsin interfaceVideoContextOrBuilder
-
setSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
setSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
addSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
addSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
addSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
addSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
addAllSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
clearSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
removeSegments
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
getSegmentsBuilder
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
getSegmentsOrBuilder
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;- Specified by:
getSegmentsOrBuilderin interfaceVideoContextOrBuilder
-
getSegmentsOrBuilderList
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1;- Specified by:
getSegmentsOrBuilderListin interfaceVideoContextOrBuilder
-
addSegmentsBuilder
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
addSegmentsBuilder
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
getSegmentsBuilderList
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment.
repeated .google.cloud.videointelligence.v1beta2.VideoSegment segments = 1; -
hasLabelDetectionConfig
public boolean hasLabelDetectionConfig()Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;- Specified by:
hasLabelDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the labelDetectionConfig field is set.
-
getLabelDetectionConfig
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;- Specified by:
getLabelDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The labelDetectionConfig.
-
setLabelDetectionConfig
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; -
setLabelDetectionConfig
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; -
mergeLabelDetectionConfig
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; -
clearLabelDetectionConfig
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; -
getLabelDetectionConfigBuilder
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2; -
getLabelDetectionConfigOrBuilder
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1beta2.LabelDetectionConfig label_detection_config = 2;- Specified by:
getLabelDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-
hasShotChangeDetectionConfig
public boolean hasShotChangeDetectionConfig()Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;- Specified by:
hasShotChangeDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the shotChangeDetectionConfig field is set.
-
getShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;- Specified by:
getShotChangeDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The shotChangeDetectionConfig.
-
setShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; -
setShotChangeDetectionConfig
public VideoContext.Builder setShotChangeDetectionConfig(ShotChangeDetectionConfig.Builder builderForValue) Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; -
mergeShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; -
clearShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; -
getShotChangeDetectionConfigBuilder
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3; -
getShotChangeDetectionConfigOrBuilder
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig shot_change_detection_config = 3;- Specified by:
getShotChangeDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-
hasExplicitContentDetectionConfig
public boolean hasExplicitContentDetectionConfig()Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;- Specified by:
hasExplicitContentDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the explicitContentDetectionConfig field is set.
-
getExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;- Specified by:
getExplicitContentDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The explicitContentDetectionConfig.
-
setExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; -
setExplicitContentDetectionConfig
public VideoContext.Builder setExplicitContentDetectionConfig(ExplicitContentDetectionConfig.Builder builderForValue) Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; -
mergeExplicitContentDetectionConfig
public VideoContext.Builder mergeExplicitContentDetectionConfig(ExplicitContentDetectionConfig value) Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; -
clearExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; -
getExplicitContentDetectionConfigBuilder
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4; -
getExplicitContentDetectionConfigOrBuilder
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig explicit_content_detection_config = 4;- Specified by:
getExplicitContentDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-
hasFaceDetectionConfig
public boolean hasFaceDetectionConfig()Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;- Specified by:
hasFaceDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- Whether the faceDetectionConfig field is set.
-
getFaceDetectionConfig
Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;- Specified by:
getFaceDetectionConfigin interfaceVideoContextOrBuilder- Returns:
- The faceDetectionConfig.
-
setFaceDetectionConfig
Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; -
setFaceDetectionConfig
Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; -
mergeFaceDetectionConfig
Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; -
clearFaceDetectionConfig
Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; -
getFaceDetectionConfigBuilder
Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5; -
getFaceDetectionConfigOrBuilder
Config for FACE_DETECTION.
.google.cloud.videointelligence.v1beta2.FaceDetectionConfig face_detection_config = 5;- Specified by:
getFaceDetectionConfigOrBuilderin interfaceVideoContextOrBuilder
-