Class VideoContext (2.74.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.74.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  VideoContext   extends   GeneratedMessageV3   implements   VideoContextOrBuilder  
   
   Video context and/or feature-specific parameters.
 Protobuf type google.cloud.videointelligence.v1p1beta1.VideoContext
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  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  
         
       
     
  
  SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER 
  
    
public   static   final   int   SPEECH_TRANSCRIPTION_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.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
 
 
  
   
  getExplicitContentDetectionConfigOrBuilder() 
  
    
public   ExplicitContentDetectionConfigOrBuilder   getExplicitContentDetectionConfigOrBuilder ()  
   
   Config for EXPLICIT_CONTENT_DETECTION.
 
 .google.cloud.videointelligence.v1p1beta1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
 
 
  
   
  getLabelDetectionConfig() 
  
    
public   LabelDetectionConfig   getLabelDetectionConfig ()  
   
   Config for LABEL_DETECTION.
 
 .google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig label_detection_config = 2;
 
 
  
   
  getLabelDetectionConfigOrBuilder() 
  
    
public   LabelDetectionConfigOrBuilder   getLabelDetectionConfigOrBuilder ()  
   
   Config for LABEL_DETECTION.
 
 .google.cloud.videointelligence.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.VideoSegment segments = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <? extends com.google.cloud.videointelligence.v1p1beta1.VideoSegmentOrBuilder > 
         
       
     
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  getShotChangeDetectionConfig() 
  
    
public   ShotChangeDetectionConfig   getShotChangeDetectionConfig ()  
   
   Config for SHOT_CHANGE_DETECTION.
 
 .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
 
 
  
   
  getShotChangeDetectionConfigOrBuilder() 
  
    
public   ShotChangeDetectionConfigOrBuilder   getShotChangeDetectionConfigOrBuilder ()  
   
   Config for SHOT_CHANGE_DETECTION.
 
 .google.cloud.videointelligence.v1p1beta1.ShotChangeDetectionConfig shot_change_detection_config = 3;
 
 
  
   
  getSpeechTranscriptionConfig() 
  
    
public   SpeechTranscriptionConfig   getSpeechTranscriptionConfig ()  
   
   Config for SPEECH_TRANSCRIPTION.
 
 .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
 
 
  
   
  getSpeechTranscriptionConfigOrBuilder() 
  
    
public   SpeechTranscriptionConfigOrBuilder   getSpeechTranscriptionConfigOrBuilder ()  
   
   Config for SPEECH_TRANSCRIPTION.
 
 .google.cloud.videointelligence.v1p1beta1.SpeechTranscriptionConfig speech_transcription_config = 6;
 
 
  
   
  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  
       
      
        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 )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   VideoContext . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]