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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static VideoContext parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoContext parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoContext parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoContext parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static VideoContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static VideoContext parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static VideoContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static VideoContext parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static VideoContext parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static VideoContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public VideoContext.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static VideoContext.Builder newBuilder()
public static VideoContext.Builder newBuilder(VideoContext prototype)
public VideoContext.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected VideoContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static VideoContext getDefaultInstance()
public static Parser<VideoContext> parser()
public Parser<VideoContext> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public VideoContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder