public final class VideoContext extends GeneratedMessageV3 implements VideoContextOrBuilder
Video context and/or feature-specific parameters.Protobuf type
google.cloud.videointelligence.v1beta1.VideoContext| Modifier and Type | Class and Description |
|---|---|
static class |
VideoContext.Builder
Video context and/or feature-specific parameters.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
FACE_DETECTION_MODEL_FIELD_NUMBER |
static int |
LABEL_DETECTION_MODE_FIELD_NUMBER |
static int |
LABEL_DETECTION_MODEL_FIELD_NUMBER |
static int |
SAFE_SEARCH_DETECTION_MODEL_FIELD_NUMBER |
static int |
SEGMENTS_FIELD_NUMBER |
static int |
SHOT_CHANGE_DETECTION_MODEL_FIELD_NUMBER |
static int |
STATIONARY_CAMERA_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static VideoContext |
getDefaultInstance() |
VideoContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<VideoContext> |
getParserForType() |
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.
|
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.
|
int |
getSerializedSize() |
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.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static VideoContext.Builder |
newBuilder() |
static VideoContext.Builder |
newBuilder(VideoContext prototype) |
VideoContext.Builder |
newBuilderForType() |
protected VideoContext.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static VideoContext |
parseDelimitedFrom(java.io.InputStream input) |
static VideoContext |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static VideoContext |
parseFrom(byte[] data) |
static VideoContext |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static VideoContext |
parseFrom(java.nio.ByteBuffer data) |
static VideoContext |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static VideoContext |
parseFrom(ByteString data) |
static VideoContext |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static VideoContext |
parseFrom(CodedInputStream input) |
static VideoContext |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static VideoContext |
parseFrom(java.io.InputStream input) |
static VideoContext |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<VideoContext> |
parser() |
VideoContext.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int SEGMENTS_FIELD_NUMBER
public static final int LABEL_DETECTION_MODE_FIELD_NUMBER
public static final int STATIONARY_CAMERA_FIELD_NUMBER
public static final int LABEL_DETECTION_MODEL_FIELD_NUMBER
public static final int FACE_DETECTION_MODEL_FIELD_NUMBER
public static final int SHOT_CHANGE_DETECTION_MODEL_FIELD_NUMBER
public static final int SAFE_SEARCH_DETECTION_MODEL_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static VideoContext parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoContext parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoContext parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoContext parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static VideoContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static VideoContext parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static VideoContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static VideoContext parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static VideoContext parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static VideoContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic VideoContext.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static VideoContext.Builder newBuilder()
public static VideoContext.Builder newBuilder(VideoContext prototype)
public VideoContext.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected VideoContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static VideoContext getDefaultInstance()
public static Parser<VideoContext> parser()
public Parser<VideoContext> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public VideoContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder