public final class VideoContext extends GeneratedMessageV3 implements VideoContextOrBuilder
Video context and/or feature-specific parameters.
Protobuf type google.cloud.videointelligence.v1p1beta1.VideoContext
Static Fields
EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
Field Value
LABEL_DETECTION_CONFIG_FIELD_NUMBER
public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER
Field Value
SEGMENTS_FIELD_NUMBER
public static final int SEGMENTS_FIELD_NUMBER
Field Value
SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
Field Value
SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER
public static final int SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static VideoContext getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static VideoContext.Builder newBuilder()
Returns
newBuilder(VideoContext prototype)
public static VideoContext.Builder newBuilder(VideoContext prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static VideoContext parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static VideoContext parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static VideoContext parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static VideoContext parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static VideoContext parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static VideoContext parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<VideoContext> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public VideoContext getDefaultInstanceForType()
Returns
getExplicitContentDetectionConfig()
public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
Returns
getExplicitContentDetectionConfigOrBuilder()
public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
Returns
getLabelDetectionConfig()
public LabelDetectionConfig getLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
Returns
getLabelDetectionConfigOrBuilder()
public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
Returns
getParserForType()
public Parser<VideoContext> getParserForType()
Returns
Overrides
getSegments(int index)
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.v1p1beta1.VideoSegment segments = 1;
Parameter
Returns
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.v1p1beta1.VideoSegment segments = 1;
Returns
getSegmentsList()
public 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.v1p1beta1.VideoSegment segments = 1;
Returns
getSegmentsOrBuilder(int index)
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.v1p1beta1.VideoSegment segments = 1;
Parameter
Returns
getSegmentsOrBuilderList()
public 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.v1p1beta1.VideoSegment segments = 1;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getShotChangeDetectionConfig()
public ShotChangeDetectionConfig getShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
Returns
getShotChangeDetectionConfigOrBuilder()
public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
Returns
getSpeechTranscriptionConfig()
public SpeechTranscriptionConfig getSpeechTranscriptionConfig()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
Returns
getSpeechTranscriptionConfigOrBuilder()
public SpeechTranscriptionConfigOrBuilder getSpeechTranscriptionConfigOrBuilder()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasExplicitContentDetectionConfig()
public boolean hasExplicitContentDetectionConfig()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
Returns
Type | Description |
boolean | Whether the explicitContentDetectionConfig field is set.
|
hasLabelDetectionConfig()
public boolean hasLabelDetectionConfig()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
Returns
Type | Description |
boolean | Whether the labelDetectionConfig field is set.
|
hasShotChangeDetectionConfig()
public boolean hasShotChangeDetectionConfig()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
Returns
Type | Description |
boolean | Whether the shotChangeDetectionConfig field is set.
|
hasSpeechTranscriptionConfig()
public boolean hasSpeechTranscriptionConfig()
Config for SPEECH_TRANSCRIPTION.
.google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
Returns
Type | Description |
boolean | Whether the speechTranscriptionConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public VideoContext.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected VideoContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public VideoContext.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions