Class VideoContext

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.videointelligence.v1.VideoContext
All Implemented Interfaces:
VideoContextOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class VideoContext extends com.google.protobuf.GeneratedMessage implements VideoContextOrBuilder
 Video context and/or feature-specific parameters.
 
Protobuf type google.cloud.videointelligence.v1.VideoContext
See Also:
  • Field Details

    • SEGMENTS_FIELD_NUMBER

      public static final int SEGMENTS_FIELD_NUMBER
      See Also:
    • LABEL_DETECTION_CONFIG_FIELD_NUMBER

      public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER
      See Also:
    • SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER

      public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
      See Also:
    • EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER

      public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
      See Also:
    • FACE_DETECTION_CONFIG_FIELD_NUMBER

      public static final int FACE_DETECTION_CONFIG_FIELD_NUMBER
      See Also:
    • SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER

      public static final int SPEECH_TRANSCRIPTION_CONFIG_FIELD_NUMBER
      See Also:
    • TEXT_DETECTION_CONFIG_FIELD_NUMBER

      public static final int TEXT_DETECTION_CONFIG_FIELD_NUMBER
      See Also:
    • PERSON_DETECTION_CONFIG_FIELD_NUMBER

      public static final int PERSON_DETECTION_CONFIG_FIELD_NUMBER
      See Also:
    • OBJECT_TRACKING_CONFIG_FIELD_NUMBER

      public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.v1.VideoSegment segments = 1;
      Specified by:
      getSegmentsList in interface VideoContextOrBuilder
    • 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.v1.VideoSegment segments = 1;
      Specified by:
      getSegmentsOrBuilderList in interface VideoContextOrBuilder
    • 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.v1.VideoSegment segments = 1;
      Specified by:
      getSegmentsCount in interface VideoContextOrBuilder
    • getSegments

      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.v1.VideoSegment segments = 1;
      Specified by:
      getSegments in interface VideoContextOrBuilder
    • getSegmentsOrBuilder

      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.v1.VideoSegment segments = 1;
      Specified by:
      getSegmentsOrBuilder in interface VideoContextOrBuilder
    • hasLabelDetectionConfig

      public boolean hasLabelDetectionConfig()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2;
      Specified by:
      hasLabelDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the labelDetectionConfig field is set.
    • getLabelDetectionConfig

      public LabelDetectionConfig getLabelDetectionConfig()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2;
      Specified by:
      getLabelDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The labelDetectionConfig.
    • getLabelDetectionConfigOrBuilder

      public LabelDetectionConfigOrBuilder getLabelDetectionConfigOrBuilder()
       Config for LABEL_DETECTION.
       
      .google.cloud.videointelligence.v1.LabelDetectionConfig label_detection_config = 2;
      Specified by:
      getLabelDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasShotChangeDetectionConfig

      public boolean hasShotChangeDetectionConfig()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3;
      Specified by:
      hasShotChangeDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the shotChangeDetectionConfig field is set.
    • getShotChangeDetectionConfig

      public ShotChangeDetectionConfig getShotChangeDetectionConfig()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3;
      Specified by:
      getShotChangeDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The shotChangeDetectionConfig.
    • getShotChangeDetectionConfigOrBuilder

      public ShotChangeDetectionConfigOrBuilder getShotChangeDetectionConfigOrBuilder()
       Config for SHOT_CHANGE_DETECTION.
       
      .google.cloud.videointelligence.v1.ShotChangeDetectionConfig shot_change_detection_config = 3;
      Specified by:
      getShotChangeDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasExplicitContentDetectionConfig

      public boolean hasExplicitContentDetectionConfig()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
      Specified by:
      hasExplicitContentDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the explicitContentDetectionConfig field is set.
    • getExplicitContentDetectionConfig

      public ExplicitContentDetectionConfig getExplicitContentDetectionConfig()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
      Specified by:
      getExplicitContentDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The explicitContentDetectionConfig.
    • getExplicitContentDetectionConfigOrBuilder

      public ExplicitContentDetectionConfigOrBuilder getExplicitContentDetectionConfigOrBuilder()
       Config for EXPLICIT_CONTENT_DETECTION.
       
      .google.cloud.videointelligence.v1.ExplicitContentDetectionConfig explicit_content_detection_config = 4;
      Specified by:
      getExplicitContentDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasFaceDetectionConfig

      public boolean hasFaceDetectionConfig()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5;
      Specified by:
      hasFaceDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the faceDetectionConfig field is set.
    • getFaceDetectionConfig

      public FaceDetectionConfig getFaceDetectionConfig()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5;
      Specified by:
      getFaceDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The faceDetectionConfig.
    • getFaceDetectionConfigOrBuilder

      public FaceDetectionConfigOrBuilder getFaceDetectionConfigOrBuilder()
       Config for FACE_DETECTION.
       
      .google.cloud.videointelligence.v1.FaceDetectionConfig face_detection_config = 5;
      Specified by:
      getFaceDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasSpeechTranscriptionConfig

      public boolean hasSpeechTranscriptionConfig()
       Config for SPEECH_TRANSCRIPTION.
       
      .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6;
      Specified by:
      hasSpeechTranscriptionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the speechTranscriptionConfig field is set.
    • getSpeechTranscriptionConfig

      public SpeechTranscriptionConfig getSpeechTranscriptionConfig()
       Config for SPEECH_TRANSCRIPTION.
       
      .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6;
      Specified by:
      getSpeechTranscriptionConfig in interface VideoContextOrBuilder
      Returns:
      The speechTranscriptionConfig.
    • getSpeechTranscriptionConfigOrBuilder

      public SpeechTranscriptionConfigOrBuilder getSpeechTranscriptionConfigOrBuilder()
       Config for SPEECH_TRANSCRIPTION.
       
      .google.cloud.videointelligence.v1.SpeechTranscriptionConfig speech_transcription_config = 6;
      Specified by:
      getSpeechTranscriptionConfigOrBuilder in interface VideoContextOrBuilder
    • hasTextDetectionConfig

      public boolean hasTextDetectionConfig()
       Config for TEXT_DETECTION.
       
      .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8;
      Specified by:
      hasTextDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the textDetectionConfig field is set.
    • getTextDetectionConfig

      public TextDetectionConfig getTextDetectionConfig()
       Config for TEXT_DETECTION.
       
      .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8;
      Specified by:
      getTextDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The textDetectionConfig.
    • getTextDetectionConfigOrBuilder

      public TextDetectionConfigOrBuilder getTextDetectionConfigOrBuilder()
       Config for TEXT_DETECTION.
       
      .google.cloud.videointelligence.v1.TextDetectionConfig text_detection_config = 8;
      Specified by:
      getTextDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasPersonDetectionConfig

      public boolean hasPersonDetectionConfig()
       Config for PERSON_DETECTION.
       
      .google.cloud.videointelligence.v1.PersonDetectionConfig person_detection_config = 11;
      Specified by:
      hasPersonDetectionConfig in interface VideoContextOrBuilder
      Returns:
      Whether the personDetectionConfig field is set.
    • getPersonDetectionConfig

      public PersonDetectionConfig getPersonDetectionConfig()
       Config for PERSON_DETECTION.
       
      .google.cloud.videointelligence.v1.PersonDetectionConfig person_detection_config = 11;
      Specified by:
      getPersonDetectionConfig in interface VideoContextOrBuilder
      Returns:
      The personDetectionConfig.
    • getPersonDetectionConfigOrBuilder

      public PersonDetectionConfigOrBuilder getPersonDetectionConfigOrBuilder()
       Config for PERSON_DETECTION.
       
      .google.cloud.videointelligence.v1.PersonDetectionConfig person_detection_config = 11;
      Specified by:
      getPersonDetectionConfigOrBuilder in interface VideoContextOrBuilder
    • hasObjectTrackingConfig

      public boolean hasObjectTrackingConfig()
       Config for OBJECT_TRACKING.
       
      .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13;
      Specified by:
      hasObjectTrackingConfig in interface VideoContextOrBuilder
      Returns:
      Whether the objectTrackingConfig field is set.
    • getObjectTrackingConfig

      public ObjectTrackingConfig getObjectTrackingConfig()
       Config for OBJECT_TRACKING.
       
      .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13;
      Specified by:
      getObjectTrackingConfig in interface VideoContextOrBuilder
      Returns:
      The objectTrackingConfig.
    • getObjectTrackingConfigOrBuilder

      public ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder()
       Config for OBJECT_TRACKING.
       
      .google.cloud.videointelligence.v1.ObjectTrackingConfig object_tracking_config = 13;
      Specified by:
      getObjectTrackingConfigOrBuilder in interface VideoContextOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static VideoContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VideoContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VideoContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VideoContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VideoContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VideoContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VideoContext parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VideoContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VideoContext parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static VideoContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VideoContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static VideoContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public VideoContext.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static VideoContext.Builder newBuilder()
    • newBuilder

      public static VideoContext.Builder newBuilder(VideoContext prototype)
    • toBuilder

      public VideoContext.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected VideoContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static VideoContext getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<VideoContext> parser()
    • getParserForType

      public com.google.protobuf.Parser<VideoContext> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public VideoContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder