public static final class VideoContext.Builder extends GeneratedMessageV3.Builder<VideoContext.Builder> implements VideoContextOrBuilder
Video context and/or feature-specific parameters.Protobuf type
google.cloud.videointelligence.v1beta1.VideoContext| Modifier and Type | Method and Description |
|---|---|
VideoContext.Builder |
addAllSegments(java.lang.Iterable<? extends VideoSegment> values)
Video segments to annotate.
|
VideoContext.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
VideoContext.Builder |
addSegments(int index,
VideoSegment.Builder builderForValue)
Video segments to annotate.
|
VideoContext.Builder |
addSegments(int index,
VideoSegment value)
Video segments to annotate.
|
VideoContext.Builder |
addSegments(VideoSegment.Builder builderForValue)
Video segments to annotate.
|
VideoContext.Builder |
addSegments(VideoSegment value)
Video segments to annotate.
|
VideoSegment.Builder |
addSegmentsBuilder()
Video segments to annotate.
|
VideoSegment.Builder |
addSegmentsBuilder(int index)
Video segments to annotate.
|
VideoContext |
build() |
VideoContext |
buildPartial() |
VideoContext.Builder |
clear() |
VideoContext.Builder |
clearFaceDetectionModel()
Model to use for face detection.
|
VideoContext.Builder |
clearField(Descriptors.FieldDescriptor field) |
VideoContext.Builder |
clearLabelDetectionMode()
If label detection has been requested, what labels should be detected
in addition to video-level labels or segment-level labels.
|
VideoContext.Builder |
clearLabelDetectionModel()
Model to use for label detection.
|
VideoContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
VideoContext.Builder |
clearSafeSearchDetectionModel()
Model to use for safe search detection.
|
VideoContext.Builder |
clearSegments()
Video segments to annotate.
|
VideoContext.Builder |
clearShotChangeDetectionModel()
Model to use for shot change detection.
|
VideoContext.Builder |
clearStationaryCamera()
Whether the video has been shot from a stationary (i.e.
|
VideoContext.Builder |
clone() |
VideoContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getFaceDetectionModel()
Model to use for face detection.
|
ByteString |
getFaceDetectionModelBytes()
Model to use for face detection.
|
LabelDetectionMode |
getLabelDetectionMode()
If label detection has been requested, what labels should be detected
in addition to video-level labels or segment-level labels.
|
java.lang.String |
getLabelDetectionModel()
Model to use for label detection.
|
ByteString |
getLabelDetectionModelBytes()
Model to use for label detection.
|
int |
getLabelDetectionModeValue()
If label detection has been requested, what labels should be detected
in addition to video-level labels or segment-level labels.
|
java.lang.String |
getSafeSearchDetectionModel()
Model to use for safe search detection.
|
ByteString |
getSafeSearchDetectionModelBytes()
Model to use for safe search detection.
|
VideoSegment |
getSegments(int index)
Video segments to annotate.
|
VideoSegment.Builder |
getSegmentsBuilder(int index)
Video segments to annotate.
|
java.util.List<VideoSegment.Builder> |
getSegmentsBuilderList()
Video segments to annotate.
|
int |
getSegmentsCount()
Video segments to annotate.
|
java.util.List<VideoSegment> |
getSegmentsList()
Video segments to annotate.
|
VideoSegmentOrBuilder |
getSegmentsOrBuilder(int index)
Video segments to annotate.
|
java.util.List<? extends VideoSegmentOrBuilder> |
getSegmentsOrBuilderList()
Video segments to annotate.
|
java.lang.String |
getShotChangeDetectionModel()
Model to use for shot change detection.
|
ByteString |
getShotChangeDetectionModelBytes()
Model to use for shot change detection.
|
boolean |
getStationaryCamera()
Whether the video has been shot from a stationary (i.e.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
VideoContext.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
VideoContext.Builder |
mergeFrom(Message other) |
VideoContext.Builder |
mergeFrom(VideoContext other) |
VideoContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
VideoContext.Builder |
removeSegments(int index)
Video segments to annotate.
|
VideoContext.Builder |
setFaceDetectionModel(java.lang.String value)
Model to use for face detection.
|
VideoContext.Builder |
setFaceDetectionModelBytes(ByteString value)
Model to use for face detection.
|
VideoContext.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
VideoContext.Builder |
setLabelDetectionMode(LabelDetectionMode value)
If label detection has been requested, what labels should be detected
in addition to video-level labels or segment-level labels.
|
VideoContext.Builder |
setLabelDetectionModel(java.lang.String value)
Model to use for label detection.
|
VideoContext.Builder |
setLabelDetectionModelBytes(ByteString value)
Model to use for label detection.
|
VideoContext.Builder |
setLabelDetectionModeValue(int value)
If label detection has been requested, what labels should be detected
in addition to video-level labels or segment-level labels.
|
VideoContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
VideoContext.Builder |
setSafeSearchDetectionModel(java.lang.String value)
Model to use for safe search detection.
|
VideoContext.Builder |
setSafeSearchDetectionModelBytes(ByteString value)
Model to use for safe search detection.
|
VideoContext.Builder |
setSegments(int index,
VideoSegment.Builder builderForValue)
Video segments to annotate.
|
VideoContext.Builder |
setSegments(int index,
VideoSegment value)
Video segments to annotate.
|
VideoContext.Builder |
setShotChangeDetectionModel(java.lang.String value)
Model to use for shot change detection.
|
VideoContext.Builder |
setShotChangeDetectionModelBytes(ByteString value)
Model to use for shot change detection.
|
VideoContext.Builder |
setStationaryCamera(boolean value)
Whether the video has been shot from a stationary (i.e.
|
VideoContext.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<VideoContext.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic VideoContext build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic VideoContext buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic VideoContext.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<VideoContext.Builder>public VideoContext.Builder mergeFrom(VideoContext other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<VideoContext.Builder>public VideoContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<VideoContext.Builder>java.io.IOExceptionpublic java.util.List<VideoSegment> 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.v1beta1.VideoSegment segments = 1;getSegmentsList in interface VideoContextOrBuilderpublic 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.v1beta1.VideoSegment segments = 1;getSegmentsCount in interface VideoContextOrBuilderpublic VideoSegment getSegments(int index)
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.v1beta1.VideoSegment segments = 1;getSegments in interface VideoContextOrBuilderpublic VideoContext.Builder setSegments(int index, VideoSegment value)
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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder setSegments(int index, VideoSegment.Builder builderForValue)
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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder addSegments(VideoSegment value)
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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder addSegments(int index, VideoSegment value)
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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder addSegments(VideoSegment.Builder builderForValue)
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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder addSegments(int index, VideoSegment.Builder builderForValue)
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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder addAllSegments(java.lang.Iterable<? extends VideoSegment> values)
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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder 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.v1beta1.VideoSegment segments = 1;public VideoContext.Builder removeSegments(int index)
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.v1beta1.VideoSegment segments = 1;public VideoSegment.Builder getSegmentsBuilder(int index)
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.v1beta1.VideoSegment segments = 1;public VideoSegmentOrBuilder getSegmentsOrBuilder(int index)
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.v1beta1.VideoSegment segments = 1;getSegmentsOrBuilder in interface VideoContextOrBuilderpublic java.util.List<? extends VideoSegmentOrBuilder> 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.v1beta1.VideoSegment segments = 1;getSegmentsOrBuilderList in interface VideoContextOrBuilderpublic VideoSegment.Builder 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.v1beta1.VideoSegment segments = 1;public VideoSegment.Builder addSegmentsBuilder(int index)
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.v1beta1.VideoSegment segments = 1;public java.util.List<VideoSegment.Builder> 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.v1beta1.VideoSegment segments = 1;public int getLabelDetectionModeValue()
If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;getLabelDetectionModeValue in interface VideoContextOrBuilderpublic VideoContext.Builder setLabelDetectionModeValue(int value)
If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;public LabelDetectionMode getLabelDetectionMode()
If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;getLabelDetectionMode in interface VideoContextOrBuilderpublic VideoContext.Builder setLabelDetectionMode(LabelDetectionMode value)
If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;public VideoContext.Builder clearLabelDetectionMode()
If label detection has been requested, what labels should be detected in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.
.google.cloud.videointelligence.v1beta1.LabelDetectionMode label_detection_mode = 2;public boolean getStationaryCamera()
Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects.
bool stationary_camera = 3;getStationaryCamera in interface VideoContextOrBuilderpublic VideoContext.Builder setStationaryCamera(boolean value)
Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects.
bool stationary_camera = 3;public VideoContext.Builder clearStationaryCamera()
Whether the video has been shot from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects.
bool stationary_camera = 3;public java.lang.String getLabelDetectionModel()
Model to use for label detection. Supported values: "latest" and "stable" (the default).
string label_detection_model = 4;getLabelDetectionModel in interface VideoContextOrBuilderpublic ByteString getLabelDetectionModelBytes()
Model to use for label detection. Supported values: "latest" and "stable" (the default).
string label_detection_model = 4;getLabelDetectionModelBytes in interface VideoContextOrBuilderpublic VideoContext.Builder setLabelDetectionModel(java.lang.String value)
Model to use for label detection. Supported values: "latest" and "stable" (the default).
string label_detection_model = 4;public VideoContext.Builder clearLabelDetectionModel()
Model to use for label detection. Supported values: "latest" and "stable" (the default).
string label_detection_model = 4;public VideoContext.Builder setLabelDetectionModelBytes(ByteString value)
Model to use for label detection. Supported values: "latest" and "stable" (the default).
string label_detection_model = 4;public java.lang.String getFaceDetectionModel()
Model to use for face detection. Supported values: "latest" and "stable" (the default).
string face_detection_model = 5;getFaceDetectionModel in interface VideoContextOrBuilderpublic ByteString getFaceDetectionModelBytes()
Model to use for face detection. Supported values: "latest" and "stable" (the default).
string face_detection_model = 5;getFaceDetectionModelBytes in interface VideoContextOrBuilderpublic VideoContext.Builder setFaceDetectionModel(java.lang.String value)
Model to use for face detection. Supported values: "latest" and "stable" (the default).
string face_detection_model = 5;public VideoContext.Builder clearFaceDetectionModel()
Model to use for face detection. Supported values: "latest" and "stable" (the default).
string face_detection_model = 5;public VideoContext.Builder setFaceDetectionModelBytes(ByteString value)
Model to use for face detection. Supported values: "latest" and "stable" (the default).
string face_detection_model = 5;public java.lang.String getShotChangeDetectionModel()
Model to use for shot change detection. Supported values: "latest" and "stable" (the default).
string shot_change_detection_model = 6;getShotChangeDetectionModel in interface VideoContextOrBuilderpublic ByteString getShotChangeDetectionModelBytes()
Model to use for shot change detection. Supported values: "latest" and "stable" (the default).
string shot_change_detection_model = 6;getShotChangeDetectionModelBytes in interface VideoContextOrBuilderpublic VideoContext.Builder setShotChangeDetectionModel(java.lang.String value)
Model to use for shot change detection. Supported values: "latest" and "stable" (the default).
string shot_change_detection_model = 6;public VideoContext.Builder clearShotChangeDetectionModel()
Model to use for shot change detection. Supported values: "latest" and "stable" (the default).
string shot_change_detection_model = 6;public VideoContext.Builder setShotChangeDetectionModelBytes(ByteString value)
Model to use for shot change detection. Supported values: "latest" and "stable" (the default).
string shot_change_detection_model = 6;public java.lang.String getSafeSearchDetectionModel()
Model to use for safe search detection. Supported values: "latest" and "stable" (the default).
string safe_search_detection_model = 7;getSafeSearchDetectionModel in interface VideoContextOrBuilderpublic ByteString getSafeSearchDetectionModelBytes()
Model to use for safe search detection. Supported values: "latest" and "stable" (the default).
string safe_search_detection_model = 7;getSafeSearchDetectionModelBytes in interface VideoContextOrBuilderpublic VideoContext.Builder setSafeSearchDetectionModel(java.lang.String value)
Model to use for safe search detection. Supported values: "latest" and "stable" (the default).
string safe_search_detection_model = 7;public VideoContext.Builder clearSafeSearchDetectionModel()
Model to use for safe search detection. Supported values: "latest" and "stable" (the default).
string safe_search_detection_model = 7;public VideoContext.Builder setSafeSearchDetectionModelBytes(ByteString value)
Model to use for safe search detection. Supported values: "latest" and "stable" (the default).
string safe_search_detection_model = 7;public final VideoContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<VideoContext.Builder>public final VideoContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<VideoContext.Builder>