Send feedback
Class VideoContext (2.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.12.0 keyboard_arrow_down
public final class VideoContext extends GeneratedMessageV3 implements VideoContextOrBuilder
Video context and/or feature-specific parameters.
Protobuf type google.cloud.videointelligence.v1p2beta1.VideoContext
Static Fields
EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
Field Value Type Description int
LABEL_DETECTION_CONFIG_FIELD_NUMBER
public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER
Field Value Type Description int
SEGMENTS_FIELD_NUMBER
public static final int SEGMENTS_FIELD_NUMBER
Field Value Type Description int
SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
Field Value Type Description int
TEXT_DETECTION_CONFIG_FIELD_NUMBER
public static final int TEXT_DETECTION_CONFIG_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static VideoContext getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static VideoContext . Builder newBuilder ()
newBuilder(VideoContext prototype)
public static VideoContext . Builder newBuilder ( VideoContext prototype )
parseDelimitedFrom(InputStream input)
public static VideoContext parseDelimitedFrom ( InputStream input )
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static VideoContext parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static VideoContext parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
parseFrom(CodedInputStream input)
public static VideoContext parseFrom ( CodedInputStream input )
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(InputStream input)
public static VideoContext parseFrom ( InputStream input )
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static VideoContext parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static VideoContext parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<VideoContext> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public VideoContext getDefaultInstanceForType ()
getExplicitContentDetectionConfig()
public ExplicitContentDetectionConfig getExplicitContentDetectionConfig ()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
getExplicitContentDetectionConfigOrBuilder()
public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder ()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
getLabelDetectionConfig()
public LabelDetectionConfig getLabelDetectionConfig ()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
getLabelDetectionConfigOrBuilder()
public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder ()
Config for LABEL_DETECTION.
.google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
getParserForType()
public Parser<VideoContext> getParserForType ()
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.v1p2beta1.VideoSegment segments = 1;
Parameter Name Description index
int
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.v1p2beta1.VideoSegment segments = 1;
Returns Type Description int
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.v1p2beta1.VideoSegment segments = 1;
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.v1p2beta1.VideoSegment segments = 1;
Parameter Name Description index
int
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.v1p2beta1.VideoSegment segments = 1;
Returns Type Description List <? extends com.google.cloud.videointelligence.v1p2beta1.VideoSegmentOrBuilder >
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
getShotChangeDetectionConfig()
public ShotChangeDetectionConfig getShotChangeDetectionConfig ()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
getShotChangeDetectionConfigOrBuilder()
public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder ()
Config for SHOT_CHANGE_DETECTION.
.google.cloud.videointelligence.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
getTextDetectionConfig()
public TextDetectionConfig getTextDetectionConfig ()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
getTextDetectionConfigOrBuilder()
public TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder ()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Overrides
hasExplicitContentDetectionConfig()
public boolean hasExplicitContentDetectionConfig ()
Config for EXPLICIT_CONTENT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.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.v1p2beta1.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.v1p2beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
Returns Type Description boolean
Whether the shotChangeDetectionConfig field is set.
hasTextDetectionConfig()
public boolean hasTextDetectionConfig ()
Config for TEXT_DETECTION.
.google.cloud.videointelligence.v1p2beta1.TextDetectionConfig text_detection_config = 8;
Returns Type Description boolean
Whether the textDetectionConfig field is set.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public VideoContext . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected VideoContext . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public VideoContext . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]