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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public VideoContext build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public VideoContext buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public VideoContext.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<VideoContext.Builder>
public VideoContext.Builder mergeFrom(VideoContext other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public VideoContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<VideoContext.Builder>
java.io.IOException
public 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 VideoContextOrBuilder
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.v1beta1.VideoSegment segments = 1;
getSegmentsCount
in interface VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public ByteString getLabelDetectionModelBytes()
Model to use for label detection. Supported values: "latest" and "stable" (the default).
string label_detection_model = 4;
getLabelDetectionModelBytes
in interface VideoContextOrBuilder
public 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 VideoContextOrBuilder
public ByteString getFaceDetectionModelBytes()
Model to use for face detection. Supported values: "latest" and "stable" (the default).
string face_detection_model = 5;
getFaceDetectionModelBytes
in interface VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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 VideoContextOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<VideoContext.Builder>
public final VideoContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<VideoContext.Builder>