Class VideoContext

  • All Implemented Interfaces:
    VideoContextOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class VideoContext
    extends com.google.protobuf.GeneratedMessageV3
    implements VideoContextOrBuilder
     Video context and/or feature-specific parameters.
     
    Protobuf type google.cloud.videointelligence.v1p2beta1.VideoContext
    See Also:
    Serialized Form
    • Field Detail

      • LABEL_DETECTION_CONFIG_FIELD_NUMBER

        public static final int LABEL_DETECTION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER

        public static final int SHOT_CHANGE_DETECTION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER

        public static final int EXPLICIT_CONTENT_DETECTION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TEXT_DETECTION_CONFIG_FIELD_NUMBER

        public static final int TEXT_DETECTION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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;
        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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.VideoSegment segments = 1;
        Specified by:
        getSegmentsOrBuilder in interface VideoContextOrBuilder
      • hasLabelDetectionConfig

        public boolean hasLabelDetectionConfig()
         Config for LABEL_DETECTION.
         
        .google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig label_detection_config = 2;
        Specified by:
        hasLabelDetectionConfig in interface VideoContextOrBuilder
        Returns:
        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;
        Specified by:
        hasShotChangeDetectionConfig in interface VideoContextOrBuilder
        Returns:
        Whether the shotChangeDetectionConfig field is set.
      • hasExplicitContentDetectionConfig

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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